Class: Stripe::PromotionCodeService::UpdateParams::Restrictions

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

Defined Under Namespace

Classes: CurrencyOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(currency_options: nil) ⇒ Restrictions

Returns a new instance of Restrictions.



163
164
165
# File 'lib/stripe/services/promotion_code_service.rb', line 163

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

Instance Attribute Details

#currency_optionsObject

Promotion codes defined in each available currency option. Each key must be a three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html) and a [supported currency](stripe.com/docs/currencies).



161
162
163
# File 'lib/stripe/services/promotion_code_service.rb', line 161

def currency_options
  @currency_options
end