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.



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

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.



72
73
74
# File 'lib/stripe/resources/billing/credit_grant.rb', line 72

def currency
  @currency
end

#valueObject

A positive integer representing the amount of the credit grant.



74
75
76
# File 'lib/stripe/resources/billing/credit_grant.rb', line 74

def value
  @value
end