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

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.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.



4947
4948
4949
# File 'lib/stripe/services/invoice_service.rb', line 4947

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

Instance Attribute Details

#typeObject

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



4945
4946
4947
# File 'lib/stripe/services/invoice_service.rb', line 4945

def type
  @type
end