Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction::Add::DiscountEnd

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/invoice_create_preview_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(type: nil) ⇒ DiscountEnd

Returns a new instance of DiscountEnd.



450
451
452
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 450

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

Instance Attribute Details

#typeObject

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



448
449
450
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 448

def type
  @type
end