Class: Stripe::Billing::AlertCreateParams::SpendThreshold::Gte::Amount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(currency: nil, value: nil) ⇒ Amount

Returns a new instance of Amount.



149
150
151
152
# File 'lib/stripe/params/billing/alert_create_params.rb', line 149

def initialize(currency: nil, value: nil)
  @currency = currency
  @value = value
end

Instance Attribute Details

#currencyObject

Three-letter [ISO code for the currency](stripe.com/docs/currencies) of the ‘value` parameter.



145
146
147
# File 'lib/stripe/params/billing/alert_create_params.rb', line 145

def currency
  @currency
end

#valueObject

An integer representing the amount of the threshold.



147
148
149
# File 'lib/stripe/params/billing/alert_create_params.rb', line 147

def value
  @value
end