Class: Stripe::Billing::CreditGrantCreateParams::Amount::Monetary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

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

Returns a new instance of Monetary.



26
27
28
29
# File 'lib/stripe/params/billing/credit_grant_create_params.rb', line 26

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.



22
23
24
# File 'lib/stripe/params/billing/credit_grant_create_params.rb', line 22

def currency
  @currency
end

#valueObject

A positive integer representing the amount of the credit grant.



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

def value
  @value
end