Class: Stripe::QuoteService::UpdateParams::Line::Action::AddDiscount::DiscountEnd

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



1242
1243
1244
# File 'lib/stripe/services/quote_service.rb', line 1242

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

Instance Attribute Details

#typeObject

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



1240
1241
1242
# File 'lib/stripe/services/quote_service.rb', line 1240

def type
  @type
end