Class: Stripe::V2::Billing::ServiceActionCreateParams::CreditGrant::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.



28
29
30
31
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 28

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).



26
27
28
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 26

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).



24
25
26
# File 'lib/stripe/params/v2/billing/service_action_create_params.rb', line 24

def value
  @value
end