Class: Stripe::Billing::AlertService::CreateParams::CreditBalanceThreshold::Lte::Monetary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Monetary.



75
76
77
78
# File 'lib/stripe/services/billing/alert_service.rb', line 75

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.



71
72
73
# File 'lib/stripe/services/billing/alert_service.rb', line 71

def currency
  @currency
end

#valueObject

An integer representing the amount of the threshold.



73
74
75
# File 'lib/stripe/services/billing/alert_service.rb', line 73

def value
  @value
end