Class: Stripe::Billing::CreditGrantService::CreateParams::Amount::Monetary

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



42
43
44
45
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 42

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.



38
39
40
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 38

def currency
  @currency
end

#valueObject

A positive integer representing the amount of the credit grant.



40
41
42
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 40

def value
  @value
end