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.



1254
1255
1256
1257
# File 'lib/stripe/resources/payment_record.rb', line 1254

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).



1250
1251
1252
# File 'lib/stripe/resources/payment_record.rb', line 1250

def currency
  @currency
end

#valueObject

A positive integer representing the amount in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).



1252
1253
1254
# File 'lib/stripe/resources/payment_record.rb', line 1252

def value
  @value
end