Class: Stripe::PaymentRecord::ReportPaymentParams::AmountRequested

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of AmountRequested.



1275
1276
1277
1278
# File 'lib/stripe/resources/payment_record.rb', line 1275

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

Instance Attribute Details

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



1271
1272
1273
# File 'lib/stripe/resources/payment_record.rb', line 1271

def currency
  @currency
end

#valueObject

A positive integer representing the amount in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.



1273
1274
1275
# File 'lib/stripe/resources/payment_record.rb', line 1273

def value
  @value
end