Class: Stripe::Billing::CreditGrant::CreateParams::Amount::Monetary

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/credit_grant.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.



82
83
84
85
# File 'lib/stripe/resources/billing/credit_grant.rb', line 82

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.



78
79
80
# File 'lib/stripe/resources/billing/credit_grant.rb', line 78

def currency
  @currency
end

#valueObject

A positive integer representing the amount of the credit grant.



80
81
82
# File 'lib/stripe/resources/billing/credit_grant.rb', line 80

def value
  @value
end