Class: Stripe::PaymentRecordCreateParams::Funded::Amount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of Amount.



34
35
36
37
# File 'lib/stripe/params/payment_record_create_params.rb', line 34

def initialize(currency: nil, value: nil)
  @currency = currency
  @value = value
end

Instance Attribute Details

#currencyObject

Three-letter ISO currency code, in lowercase. Must be a supported currency.



30
31
32
# File 'lib/stripe/params/payment_record_create_params.rb', line 30

def currency
  @currency
end

#valueObject

A positive integer representing the amount in the currency's minor unit. For example, 100 can represent 1 USD or 100 JPY.



32
33
34
# File 'lib/stripe/params/payment_record_create_params.rb', line 32

def value
  @value
end