Class: Stripe::CouponService::CreateParams::CurrencyOptions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/coupon_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount_off: nil) ⇒ CurrencyOptions

Returns a new instance of CurrencyOptions.



96
97
98
# File 'lib/stripe/services/coupon_service.rb', line 96

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

Instance Attribute Details

#amount_offObject

A positive integer representing the amount to subtract from an invoice total.



94
95
96
# File 'lib/stripe/services/coupon_service.rb', line 94

def amount_off
  @amount_off
end