Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrantPerTenant::Amount::Monetary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Monetary.



125
126
127
128
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 125

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

Instance Attribute Details

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



123
124
125
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 123

def currency
  @currency
end

#valueObject

A non-negative integer representing how much to charge in the [smallest currency unit](docs.stripe.com/currencies#minor-units).



121
122
123
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 121

def value
  @value
end