Class: Stripe::SetupIntentCreateParams::SingleUse

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/setup_intent_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil) ⇒ SingleUse

Returns a new instance of SingleUse.



1096
1097
1098
1099
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1096

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

Instance Attribute Details

#amountObject

Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](docs.stripe.com/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](docs.stripe.com/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).



1092
1093
1094
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1092

def amount
  @amount
end

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



1094
1095
1096
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1094

def currency
  @currency
end