Class: Stripe::SetupIntentCreateParams::PaymentMethodOptions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SetupIntentCreateParams::PaymentMethodOptions
- Defined in:
- lib/stripe/params/setup_intent_create_params.rb
Defined Under Namespace
Classes: AcssDebit, AmazonPay, BacsDebit, Card, CardPresent, Klarna, Link, Paypal, Payto, Pix, SepaDebit, Upi, UsBankAccount
Instance Attribute Summary collapse
-
#acss_debit ⇒ Object
If this is a
acss_debitSetupIntent, this sub-hash contains details about the ACSS Debit payment method options. -
#amazon_pay ⇒ Object
If this is a
amazon_paySetupIntent, this sub-hash contains details about the AmazonPay payment method options. -
#bacs_debit ⇒ Object
If this is a
bacs_debitSetupIntent, this sub-hash contains details about the Bacs Debit payment method options. -
#card ⇒ Object
Configuration for any card setup attempted on this SetupIntent.
-
#card_present ⇒ Object
If this is a
card_presentPaymentMethod, this sub-hash contains details about the card-present payment method options. -
#klarna ⇒ Object
If this is a
klarnaPaymentMethod, this hash contains details about the Klarna payment method options. -
#link ⇒ Object
If this is a
linkPaymentMethod, this sub-hash contains details about the Link payment method options. -
#paypal ⇒ Object
If this is a
paypalPaymentMethod, this sub-hash contains details about the PayPal payment method options. -
#payto ⇒ Object
If this is a
paytoSetupIntent, this sub-hash contains details about the PayTo payment method options. -
#pix ⇒ Object
If this is a
pixSetupIntent, this sub-hash contains details about the Pix payment method options. -
#sepa_debit ⇒ Object
If this is a
sepa_debitSetupIntent, this sub-hash contains details about the SEPA Debit payment method options. -
#upi ⇒ Object
If this is a
upiSetupIntent, this sub-hash contains details about the UPI payment method options. -
#us_bank_account ⇒ Object
If this is a
us_bank_accountSetupIntent, this sub-hash contains details about the US bank account payment method options.
Instance Method Summary collapse
-
#initialize(acss_debit: nil, amazon_pay: nil, bacs_debit: nil, card: nil, card_present: nil, klarna: nil, link: nil, paypal: nil, payto: nil, pix: nil, sepa_debit: nil, upi: nil, us_bank_account: nil) ⇒ PaymentMethodOptions
constructor
A new instance of PaymentMethodOptions.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(acss_debit: nil, amazon_pay: nil, bacs_debit: nil, card: nil, card_present: nil, klarna: nil, link: nil, paypal: nil, payto: nil, pix: nil, sepa_debit: nil, upi: nil, us_bank_account: nil) ⇒ PaymentMethodOptions
Returns a new instance of PaymentMethodOptions.
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1178 def initialize( acss_debit: nil, amazon_pay: nil, bacs_debit: nil, card: nil, card_present: nil, klarna: nil, link: nil, paypal: nil, payto: nil, pix: nil, sepa_debit: nil, upi: nil, us_bank_account: nil ) @acss_debit = acss_debit @amazon_pay = amazon_pay @bacs_debit = bacs_debit @card = card @card_present = card_present @klarna = klarna @link = link @paypal = paypal @payto = payto @pix = pix @sepa_debit = sepa_debit @upi = upi @us_bank_account = us_bank_account end |
Instance Attribute Details
#acss_debit ⇒ Object
If this is a acss_debit SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
1152 1153 1154 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1152 def acss_debit @acss_debit end |
#amazon_pay ⇒ Object
If this is a amazon_pay SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
1154 1155 1156 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1154 def amazon_pay @amazon_pay end |
#bacs_debit ⇒ Object
If this is a bacs_debit SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
1156 1157 1158 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1156 def bacs_debit @bacs_debit end |
#card ⇒ Object
Configuration for any card setup attempted on this SetupIntent.
1158 1159 1160 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1158 def card @card end |
#card_present ⇒ Object
If this is a card_present PaymentMethod, this sub-hash contains details about the card-present payment method options.
1160 1161 1162 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1160 def card_present @card_present end |
#klarna ⇒ Object
If this is a klarna PaymentMethod, this hash contains details about the Klarna payment method options.
1162 1163 1164 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1162 def klarna @klarna end |
#link ⇒ Object
If this is a link PaymentMethod, this sub-hash contains details about the Link payment method options.
1164 1165 1166 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1164 def link @link end |
#paypal ⇒ Object
If this is a paypal PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1166 1167 1168 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1166 def paypal @paypal end |
#payto ⇒ Object
If this is a payto SetupIntent, this sub-hash contains details about the PayTo payment method options.
1168 1169 1170 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1168 def payto @payto end |
#pix ⇒ Object
If this is a pix SetupIntent, this sub-hash contains details about the Pix payment method options.
1170 1171 1172 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1170 def pix @pix end |
#sepa_debit ⇒ Object
If this is a sepa_debit SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1172 1173 1174 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1172 def sepa_debit @sepa_debit end |
#upi ⇒ Object
If this is a upi SetupIntent, this sub-hash contains details about the UPI payment method options.
1174 1175 1176 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1174 def upi @upi end |
#us_bank_account ⇒ Object
If this is a us_bank_account SetupIntent, this sub-hash contains details about the US bank account payment method options.
1176 1177 1178 |
# File 'lib/stripe/params/setup_intent_create_params.rb', line 1176 def us_bank_account @us_bank_account end |