Class: Stripe::Invoice::CreatePreviewParams::ScheduleDetails::Amendment::DiscountAction::Add::DiscountEnd

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(type: nil) ⇒ DiscountEnd

Returns a new instance of DiscountEnd.



6644
6645
6646
# File 'lib/stripe/resources/invoice.rb', line 6644

def initialize(type: nil)
  @type = type
end

Instance Attribute Details

#typeObject

The type of calculation made to determine when the discount ends.



6642
6643
6644
# File 'lib/stripe/resources/invoice.rb', line 6642

def type
  @type
end