Class: Stripe::SetupIntentCreateParams::SingleUse
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SetupIntentCreateParams::SingleUse
- Defined in:
- lib/stripe/params/setup_intent_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount the customer is granting permission to collect later.
-
#currency ⇒ Object
Three-letter ISO currency code, in lowercase.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil) ⇒ SingleUse
constructor
A new instance of SingleUse.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, currency: nil) ⇒ SingleUse
Returns a new instance of SingleUse.
1215 1216 1217 1218 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1215 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 (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. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1211 1212 1213 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1211 def amount @amount end |
#currency ⇒ Object
Three-letter ISO currency code, in lowercase. Must be a supported currency.
1213 1214 1215 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1213 def currency @currency end |