Class: Stripe::PaymentRecordReportPaymentParams::AmountRequested
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentRecordReportPaymentParams::AmountRequested
- Defined in:
- lib/stripe/params/payment_record_report_payment_params.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#value ⇒ Object
A positive integer representing the amount in the currency’s [minor unit](stripe.com/docs/currencies#zero-decimal).
Instance Method Summary collapse
-
#initialize(currency: nil, value: nil) ⇒ AmountRequested
constructor
A new instance of AmountRequested.
Methods inherited from RequestParams
Constructor Details
#initialize(currency: nil, value: nil) ⇒ AmountRequested
Returns a new instance of AmountRequested.
12 13 14 15 |
# File 'lib/stripe/params/payment_record_report_payment_params.rb', line 12 def initialize(currency: nil, value: nil) @currency = currency @value = value end |
Instance Attribute Details
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
8 9 10 |
# File 'lib/stripe/params/payment_record_report_payment_params.rb', line 8 def currency @currency end |
#value ⇒ Object
A positive integer representing the amount in the currency’s [minor unit](stripe.com/docs/currencies#zero-decimal). For example, ‘100` can represent 1 USD or 100 JPY.
10 11 12 |
# File 'lib/stripe/params/payment_record_report_payment_params.rb', line 10 def value @value end |