Class: Stripe::SetupIntent::CreateParams::SingleUse
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SetupIntent::CreateParams::SingleUse
- Defined in:
- lib/stripe/resources/setup_intent.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount the customer is granting permission to collect later.
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil) ⇒ SingleUse
constructor
A new instance of SingleUse.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, currency: nil) ⇒ SingleUse
Returns a new instance of SingleUse.
1338 1339 1340 1341 |
# File 'lib/stripe/resources/setup_intent.rb', line 1338 def initialize(amount: nil, currency: nil) @amount = amount @currency = currency end |
Instance Attribute Details
#amount ⇒ Object
Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1334 1335 1336 |
# File 'lib/stripe/resources/setup_intent.rb', line 1334 def amount @amount end |
#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).
1336 1337 1338 |
# File 'lib/stripe/resources/setup_intent.rb', line 1336 def currency @currency end |