stripe 13.6.0.pre.beta.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +699 -1457
- data/OPENAPI_VERSION +1 -1
- data/README.md +29 -0
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/object_types.rb +0 -26
- data/lib/stripe/resources/account.rb +83 -614
- data/lib/stripe/resources/account_session.rb +1 -247
- data/lib/stripe/resources/apple_pay_domain.rb +0 -9
- data/lib/stripe/resources/application_fee.rb +1 -10
- data/lib/stripe/resources/balance.rb +0 -9
- data/lib/stripe/resources/balance_transaction.rb +2 -11
- data/lib/stripe/resources/bank_account.rb +1 -1
- data/lib/stripe/resources/billing/alert.rb +0 -9
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -48
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -9
- data/lib/stripe/resources/billing/credit_grant.rb +4 -13
- data/lib/stripe/resources/billing/meter.rb +1 -10
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -9
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/charge.rb +35 -1457
- data/lib/stripe/resources/checkout/session.rb +100 -293
- data/lib/stripe/resources/climate/order.rb +0 -9
- data/lib/stripe/resources/climate/product.rb +0 -9
- data/lib/stripe/resources/climate/supplier.rb +0 -9
- data/lib/stripe/resources/confirmation_token.rb +74 -156
- data/lib/stripe/resources/country_spec.rb +0 -9
- data/lib/stripe/resources/coupon.rb +0 -9
- data/lib/stripe/resources/credit_note.rb +14 -35
- data/lib/stripe/resources/credit_note_line_item.rb +14 -12
- data/lib/stripe/resources/customer.rb +12 -28
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -1
- data/lib/stripe/resources/dispute.rb +0 -9
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -9
- data/lib/stripe/resources/entitlements/feature.rb +0 -9
- data/lib/stripe/resources/event.rb +0 -40
- data/lib/stripe/resources/exchange_rate.rb +0 -9
- data/lib/stripe/resources/file.rb +0 -9
- data/lib/stripe/resources/file_link.rb +0 -9
- data/lib/stripe/resources/financial_connections/account.rb +0 -23
- data/lib/stripe/resources/financial_connections/session.rb +1 -65
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -9
- data/lib/stripe/resources/forwarding/request.rb +0 -9
- data/lib/stripe/resources/identity/verification_report.rb +0 -9
- data/lib/stripe/resources/identity/verification_session.rb +0 -9
- data/lib/stripe/resources/invoice.rb +225 -5120
- data/lib/stripe/resources/invoice_item.rb +65 -110
- data/lib/stripe/resources/invoice_line_item.rb +106 -89
- data/lib/stripe/resources/invoice_payment.rb +53 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
- data/lib/stripe/resources/issuing/authorization.rb +0 -9
- data/lib/stripe/resources/issuing/card.rb +0 -9
- data/lib/stripe/resources/issuing/cardholder.rb +1 -11
- data/lib/stripe/resources/issuing/dispute.rb +0 -9
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -9
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -9
- data/lib/stripe/resources/issuing/token.rb +0 -9
- data/lib/stripe/resources/issuing/transaction.rb +0 -15
- data/lib/stripe/resources/line_item.rb +0 -28
- data/lib/stripe/resources/mandate.rb +6 -33
- data/lib/stripe/resources/payment_intent.rb +642 -4975
- data/lib/stripe/resources/payment_link.rb +84 -15
- data/lib/stripe/resources/payment_method.rb +74 -187
- data/lib/stripe/resources/payment_method_configuration.rb +87 -214
- data/lib/stripe/resources/payment_method_domain.rb +9 -18
- data/lib/stripe/resources/payout.rb +0 -9
- data/lib/stripe/resources/person.rb +9 -9
- data/lib/stripe/resources/plan.rb +0 -15
- data/lib/stripe/resources/price.rb +2 -47
- data/lib/stripe/resources/product.rb +0 -68
- data/lib/stripe/resources/promotion_code.rb +0 -9
- data/lib/stripe/resources/quote.rb +8 -2037
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -9
- data/lib/stripe/resources/radar/value_list.rb +0 -9
- data/lib/stripe/resources/radar/value_list_item.rb +0 -9
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reporting/report_run.rb +0 -9
- data/lib/stripe/resources/reporting/report_type.rb +0 -9
- data/lib/stripe/resources/review.rb +2 -11
- data/lib/stripe/resources/setup_attempt.rb +11 -16
- data/lib/stripe/resources/setup_intent.rb +158 -540
- data/lib/stripe/resources/shipping_rate.rb +0 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -9
- data/lib/stripe/resources/source.rb +0 -41
- data/lib/stripe/resources/subscription.rb +14 -385
- data/lib/stripe/resources/subscription_item.rb +9 -134
- data/lib/stripe/resources/subscription_schedule.rb +14 -1135
- data/lib/stripe/resources/tax/calculation.rb +0 -9
- data/lib/stripe/resources/tax/registration.rb +1 -10
- data/lib/stripe/resources/tax/settings.rb +0 -9
- data/lib/stripe/resources/tax/transaction.rb +0 -9
- data/lib/stripe/resources/tax_code.rb +0 -9
- data/lib/stripe/resources/tax_id.rb +0 -9
- data/lib/stripe/resources/tax_rate.rb +0 -9
- data/lib/stripe/resources/terminal/configuration.rb +214 -14
- data/lib/stripe/resources/terminal/location.rb +0 -9
- data/lib/stripe/resources/terminal/reader.rb +0 -408
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -9
- data/lib/stripe/resources/token.rb +1 -10
- data/lib/stripe/resources/topup.rb +0 -9
- data/lib/stripe/resources/transfer.rb +0 -9
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/financial_account.rb +4 -32
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -46
- data/lib/stripe/resources/treasury/received_credit.rb +1 -47
- data/lib/stripe/resources/treasury/received_debit.rb +1 -49
- data/lib/stripe/resources/treasury/transaction.rb +0 -9
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -9
- data/lib/stripe/resources/v2/event.rb +1 -0
- data/lib/stripe/resources/v2/event_destination.rb +1 -0
- data/lib/stripe/resources/webhook_endpoint.rb +0 -9
- data/lib/stripe/resources.rb +0 -25
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +68 -509
- data/lib/stripe/services/account_session_service.rb +1 -217
- data/lib/stripe/services/balance_transaction_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +1 -1335
- data/lib/stripe/services/checkout/session_service.rb +60 -168
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -4
- data/lib/stripe/services/credit_note_service.rb +0 -8
- data/lib/stripe/services/customer_service.rb +0 -16
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections/session_service.rb +1 -30
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_item_service.rb +34 -88
- data/lib/stripe/services/invoice_line_item_service.rb +25 -41
- data/lib/stripe/services/invoice_payment_service.rb +33 -5
- data/lib/stripe/services/invoice_service.rb +210 -3147
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +568 -4513
- data/lib/stripe/services/payment_link_service.rb +59 -6
- data/lib/stripe/services/payment_method_configuration_service.rb +62 -146
- data/lib/stripe/services/payment_method_domain_service.rb +6 -6
- data/lib/stripe/services/payment_method_service.rb +49 -119
- data/lib/stripe/services/plan_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +2 -25
- data/lib/stripe/services/product_service.rb +0 -38
- data/lib/stripe/services/quote_service.rb +9 -1716
- data/lib/stripe/services/setup_intent_service.rb +158 -492
- data/lib/stripe/services/subscription_item_service.rb +5 -111
- data/lib/stripe/services/subscription_schedule_service.rb +14 -1005
- data/lib/stripe/services/subscription_service.rb +13 -323
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +170 -4
- data/lib/stripe/services/terminal/reader_service.rb +0 -177
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +49 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +3 -17
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -8
- data/lib/stripe/services/v2/core/event_destination_service.rb +1 -4
- data/lib/stripe/services/v2/core/event_service.rb +1 -4
- data/lib/stripe/services.rb +0 -27
- data/lib/stripe/stripe_client.rb +1 -0
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/rbi/stripe/resources/account.rbi +1131 -1479
- data/rbi/stripe/resources/account_link.rbi +9 -9
- data/rbi/stripe/resources/account_session.rbi +118 -367
- data/rbi/stripe/resources/apple_pay_domain.rbi +8 -15
- data/rbi/stripe/resources/application_fee.rbi +15 -20
- data/rbi/stripe/resources/apps/secret.rbi +20 -20
- data/rbi/stripe/resources/balance.rbi +0 -7
- data/rbi/stripe/resources/balance_transaction.rbi +19 -24
- data/rbi/stripe/resources/bank_account.rbi +1 -1
- data/rbi/stripe/resources/billing/alert.rbi +23 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -53
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +6 -13
- data/rbi/stripe/resources/billing/credit_grant.rbi +30 -37
- data/rbi/stripe/resources/billing/meter.rbi +19 -26
- data/rbi/stripe/resources/billing/meter_event.rbi +4 -4
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +5 -5
- data/rbi/stripe/resources/billing_portal/configuration.rbi +86 -81
- data/rbi/stripe/resources/billing_portal/session.rbi +31 -27
- data/rbi/stripe/resources/card.rbi +2 -5
- data/rbi/stripe/resources/charge.rbi +136 -1576
- data/rbi/stripe/resources/checkout/session.rbi +631 -748
- data/rbi/stripe/resources/climate/order.rbi +20 -25
- data/rbi/stripe/resources/climate/product.rbi +5 -12
- data/rbi/stripe/resources/climate/supplier.rbi +5 -12
- data/rbi/stripe/resources/confirmation_token.rbi +274 -268
- data/rbi/stripe/resources/country_spec.rbi +5 -12
- data/rbi/stripe/resources/coupon.rbi +34 -39
- data/rbi/stripe/resources/credit_note.rbi +134 -146
- data/rbi/stripe/resources/credit_note_line_item.rbi +20 -18
- data/rbi/stripe/resources/customer.rbi +172 -164
- data/rbi/stripe/resources/customer_balance_transaction.rbi +4 -1
- data/rbi/stripe/resources/customer_session.rbi +19 -15
- data/rbi/stripe/resources/dispute.rbi +92 -95
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +5 -12
- data/rbi/stripe/resources/entitlements/feature.rbi +15 -22
- data/rbi/stripe/resources/ephemeral_key.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +16 -60
- data/rbi/stripe/resources/exchange_rate.rbi +5 -12
- data/rbi/stripe/resources/file.rbi +20 -25
- data/rbi/stripe/resources/file_link.rbi +23 -28
- data/rbi/stripe/resources/financial_connections/account.rbi +25 -44
- data/rbi/stripe/resources/financial_connections/session.rbi +12 -75
- data/rbi/stripe/resources/financial_connections/transaction.rbi +16 -19
- data/rbi/stripe/resources/forwarding/request.rbi +21 -24
- data/rbi/stripe/resources/identity/verification_report.rbi +18 -21
- data/rbi/stripe/resources/identity/verification_session.rbi +60 -61
- data/rbi/stripe/resources/invoice.rbi +723 -5918
- data/rbi/stripe/resources/invoice_item.rbi +138 -177
- data/rbi/stripe/resources/invoice_line_item.rbi +199 -264
- data/rbi/stripe/resources/invoice_payment.rbi +51 -7
- data/rbi/stripe/resources/invoice_rendering_template.rbi +10 -20
- data/rbi/stripe/resources/issuing/authorization.rbi +216 -199
- data/rbi/stripe/resources/issuing/card.rbi +104 -101
- data/rbi/stripe/resources/issuing/cardholder.rbi +120 -108
- data/rbi/stripe/resources/issuing/dispute.rbi +164 -151
- data/rbi/stripe/resources/issuing/personalization_design.rbi +61 -56
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +7 -14
- data/rbi/stripe/resources/issuing/token.rbi +16 -21
- data/rbi/stripe/resources/issuing/transaction.rbi +180 -176
- data/rbi/stripe/resources/line_item.rbi +0 -36
- data/rbi/stripe/resources/mandate.rbi +8 -40
- data/rbi/stripe/resources/payment_intent.rbi +2252 -6482
- data/rbi/stripe/resources/payment_link.rbi +346 -211
- data/rbi/stripe/resources/payment_method.rbi +226 -330
- data/rbi/stripe/resources/payment_method_configuration.rbi +602 -685
- data/rbi/stripe/resources/payment_method_domain.rbi +26 -31
- data/rbi/stripe/resources/payout.rbi +43 -42
- data/rbi/stripe/resources/person.rbi +9 -9
- data/rbi/stripe/resources/plan.rbi +51 -63
- data/rbi/stripe/resources/price.rbi +114 -151
- data/rbi/stripe/resources/product.rbi +90 -152
- data/rbi/stripe/resources/promotion_code.rbi +42 -47
- data/rbi/stripe/resources/quote.rbi +168 -2231
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +17 -20
- data/rbi/stripe/resources/radar/value_list.rbi +24 -29
- data/rbi/stripe/resources/radar/value_list_item.rbi +18 -21
- data/rbi/stripe/resources/refund.rbi +52 -51
- data/rbi/stripe/resources/reporting/report_run.rbi +27 -30
- data/rbi/stripe/resources/reporting/report_type.rbi +2 -9
- data/rbi/stripe/resources/review.rbi +17 -22
- data/rbi/stripe/resources/setup_attempt.rbi +25 -32
- data/rbi/stripe/resources/setup_intent.rbi +900 -1102
- data/rbi/stripe/resources/shipping_rate.rbi +41 -46
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +5 -12
- data/rbi/stripe/resources/source.rbi +132 -179
- data/rbi/stripe/resources/subscription.rbi +363 -707
- data/rbi/stripe/resources/subscription_item.rbi +69 -177
- data/rbi/stripe/resources/subscription_schedule.rbi +289 -1447
- data/rbi/stripe/resources/tax/calculation.rbi +43 -48
- data/rbi/stripe/resources/tax/registration.rbi +217 -170
- data/rbi/stripe/resources/tax/settings.rbi +14 -21
- data/rbi/stripe/resources/tax/transaction.rbi +20 -25
- data/rbi/stripe/resources/tax_code.rbi +5 -12
- data/rbi/stripe/resources/tax_id.rbi +15 -22
- data/rbi/stripe/resources/tax_rate.rbi +34 -39
- data/rbi/stripe/resources/terminal/configuration.rbi +457 -212
- data/rbi/stripe/resources/terminal/connection_token.rbi +3 -3
- data/rbi/stripe/resources/terminal/location.rbi +28 -35
- data/rbi/stripe/resources/terminal/reader.rbi +71 -441
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +12 -17
- data/rbi/stripe/resources/token.rbi +288 -263
- data/rbi/stripe/resources/topup.rbi +35 -38
- data/rbi/stripe/resources/transfer.rbi +27 -32
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +10 -17
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +11 -18
- data/rbi/stripe/resources/treasury/financial_account.rbi +125 -130
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -3
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +22 -29
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +82 -79
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +44 -86
- data/rbi/stripe/resources/treasury/received_credit.rbi +18 -64
- data/rbi/stripe/resources/treasury/received_debit.rbi +17 -66
- data/rbi/stripe/resources/treasury/transaction.rbi +27 -28
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +25 -26
- data/rbi/stripe/resources/v2/amount.rbi +1 -1
- data/rbi/stripe/resources/v2/event.rbi +1 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +1 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +18 -25
- data/rbi/stripe/services/account_capability_service.rbi +7 -7
- data/rbi/stripe/services/account_external_account_service.rbi +52 -52
- data/rbi/stripe/services/account_link_service.rbi +9 -9
- data/rbi/stripe/services/account_login_link_service.rbi +2 -2
- data/rbi/stripe/services/account_person_service.rbi +221 -201
- data/rbi/stripe/services/account_service.rbi +1221 -1345
- data/rbi/stripe/services/account_session_service.rbi +115 -346
- data/rbi/stripe/services/apple_pay_domain_service.rbi +10 -10
- data/rbi/stripe/services/application_fee_refund_service.rbi +16 -14
- data/rbi/stripe/services/application_fee_service.rbi +18 -14
- data/rbi/stripe/services/apps/secret_service.rbi +20 -20
- data/rbi/stripe/services/balance_service.rbi +2 -2
- data/rbi/stripe/services/balance_transaction_service.rbi +22 -18
- data/rbi/stripe/services/billing/alert_service.rbi +23 -23
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +10 -10
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +8 -8
- data/rbi/stripe/services/billing/credit_grant_service.rbi +32 -30
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +7 -5
- data/rbi/stripe/services/billing/meter_event_service.rbi +4 -4
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +6 -6
- data/rbi/stripe/services/billing/meter_service.rbi +21 -21
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +90 -76
- data/rbi/stripe/services/billing_portal/session_service.rbi +29 -27
- data/rbi/stripe/services/charge_service.rbi +96 -1464
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +5 -5
- data/rbi/stripe/services/checkout/session_service.rbi +555 -591
- data/rbi/stripe/services/climate/order_service.rbi +22 -20
- data/rbi/stripe/services/climate/product_service.rbi +7 -7
- data/rbi/stripe/services/climate/supplier_service.rbi +7 -7
- data/rbi/stripe/services/confirmation_token_service.rbi +2 -2
- data/rbi/stripe/services/country_spec_service.rbi +7 -7
- data/rbi/stripe/services/coupon_service.rbi +40 -34
- data/rbi/stripe/services/credit_note_line_item_service.rbi +5 -5
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +35 -35
- data/rbi/stripe/services/credit_note_service.rbi +81 -85
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +15 -15
- data/rbi/stripe/services/customer_cash_balance_service.rbi +7 -7
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +7 -7
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +5 -5
- data/rbi/stripe/services/customer_payment_method_service.rbi +9 -9
- data/rbi/stripe/services/customer_payment_source_service.rbi +48 -44
- data/rbi/stripe/services/customer_service.rbi +143 -139
- data/rbi/stripe/services/customer_session_service.rbi +21 -15
- data/rbi/stripe/services/customer_tax_id_service.rbi +9 -9
- data/rbi/stripe/services/dispute_service.rbi +92 -90
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +7 -7
- data/rbi/stripe/services/entitlements/feature_service.rbi +17 -17
- data/rbi/stripe/services/ephemeral_key_service.rbi +8 -8
- data/rbi/stripe/services/event_service.rbi +18 -16
- data/rbi/stripe/services/exchange_rate_service.rbi +7 -7
- data/rbi/stripe/services/file_link_service.rbi +25 -23
- data/rbi/stripe/services/file_service.rbi +22 -20
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +5 -5
- data/rbi/stripe/services/financial_connections/account_service.rbi +22 -21
- data/rbi/stripe/services/financial_connections/session_service.rbi +16 -39
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +16 -14
- data/rbi/stripe/services/financial_connections_service.rbi +0 -1
- data/rbi/stripe/services/forwarding/request_service.rbi +21 -19
- data/rbi/stripe/services/identity/verification_report_service.rbi +18 -16
- data/rbi/stripe/services/identity/verification_session_service.rbi +62 -56
- data/rbi/stripe/services/invoice_item_service.rbi +99 -155
- data/rbi/stripe/services/invoice_line_item_service.rbi +71 -82
- data/rbi/stripe/services/invoice_payment_service.rbi +39 -12
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +13 -13
- data/rbi/stripe/services/invoice_service.rbi +679 -3799
- data/rbi/stripe/services/issuing/authorization_service.rbi +32 -26
- data/rbi/stripe/services/issuing/card_service.rbi +102 -86
- data/rbi/stripe/services/issuing/cardholder_service.rbi +122 -103
- data/rbi/stripe/services/issuing/dispute_service.rbi +152 -146
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +52 -42
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +9 -9
- data/rbi/stripe/services/issuing/token_service.rbi +20 -16
- data/rbi/stripe/services/issuing/transaction_service.rbi +25 -23
- data/rbi/stripe/services/issuing_service.rbi +0 -3
- data/rbi/stripe/services/mandate_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +2312 -6081
- data/rbi/stripe/services/payment_link_line_item_service.rbi +5 -5
- data/rbi/stripe/services/payment_link_service.rbi +303 -201
- data/rbi/stripe/services/payment_method_configuration_service.rbi +616 -620
- data/rbi/stripe/services/payment_method_domain_service.rbi +25 -23
- data/rbi/stripe/services/payment_method_service.rbi +192 -249
- data/rbi/stripe/services/payout_service.rbi +45 -37
- data/rbi/stripe/services/plan_service.rbi +53 -55
- data/rbi/stripe/services/price_service.rbi +124 -129
- data/rbi/stripe/services/product_feature_service.rbi +9 -9
- data/rbi/stripe/services/product_service.rbi +94 -122
- data/rbi/stripe/services/promotion_code_service.rbi +46 -42
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +5 -5
- data/rbi/stripe/services/quote_line_item_service.rbi +5 -5
- data/rbi/stripe/services/quote_service.rbi +159 -1863
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +17 -15
- data/rbi/stripe/services/radar/value_list_item_service.rbi +20 -16
- data/rbi/stripe/services/radar/value_list_service.rbi +28 -24
- data/rbi/stripe/services/refund_service.rbi +37 -33
- data/rbi/stripe/services/reporting/report_run_service.rbi +29 -25
- data/rbi/stripe/services/reporting/report_type_service.rbi +4 -4
- data/rbi/stripe/services/review_service.rbi +17 -15
- data/rbi/stripe/services/setup_attempt_service.rbi +13 -11
- data/rbi/stripe/services/setup_intent_service.rbi +1028 -1062
- data/rbi/stripe/services/shipping_rate_service.rbi +47 -41
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +7 -7
- data/rbi/stripe/services/source_service.rbi +149 -133
- data/rbi/stripe/services/source_transaction_service.rbi +5 -5
- data/rbi/stripe/services/subscription_item_service.rbi +61 -159
- data/rbi/stripe/services/subscription_schedule_service.rbi +289 -1305
- data/rbi/stripe/services/subscription_service.rbi +366 -640
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/calculation_service.rbi +40 -38
- data/rbi/stripe/services/tax/registration_service.rbi +337 -165
- data/rbi/stripe/services/tax/settings_service.rbi +16 -16
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/transaction_service.rbi +19 -15
- data/rbi/stripe/services/tax_code_service.rbi +7 -7
- data/rbi/stripe/services/tax_id_service.rbi +17 -17
- data/rbi/stripe/services/tax_rate_service.rbi +36 -34
- data/rbi/stripe/services/tax_service.rbi +0 -2
- data/rbi/stripe/services/terminal/configuration_service.rbi +464 -204
- data/rbi/stripe/services/terminal/connection_token_service.rbi +3 -3
- data/rbi/stripe/services/terminal/location_service.rbi +30 -30
- data/rbi/stripe/services/terminal/reader_service.rbi +57 -226
- data/rbi/stripe/services/terminal_service.rbi +0 -1
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +157 -198
- data/rbi/stripe/services/test_helpers/customer_service.rbi +3 -3
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +180 -168
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +10 -10
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +11 -9
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +151 -145
- data/rbi/stripe/services/test_helpers/refund_service.rbi +2 -2
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +10 -39
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +14 -12
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +9 -9
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +11 -38
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +11 -38
- data/rbi/stripe/services/token_service.rbi +292 -258
- data/rbi/stripe/services/topup_service.rbi +37 -33
- data/rbi/stripe/services/transfer_reversal_service.rbi +18 -16
- data/rbi/stripe/services/transfer_service.rbi +29 -27
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +12 -12
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +13 -13
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +23 -26
- data/rbi/stripe/services/treasury/financial_account_service.rbi +92 -96
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +15 -15
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +60 -56
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +24 -49
- data/rbi/stripe/services/treasury/received_credit_service.rbi +11 -9
- data/rbi/stripe/services/treasury/received_debit_service.rbi +8 -8
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +25 -21
- data/rbi/stripe/services/treasury/transaction_service.rbi +31 -23
- data/rbi/stripe/services/v1_services.rbi +1 -7
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +3 -3
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +3 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +21 -24
- data/rbi/stripe/services/v2/core/event_service.rbi +3 -6
- data/rbi/stripe/services/webhook_endpoint_service.rbi +20 -20
- metadata +4 -109
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -132
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -188
- data/lib/stripe/resources/capital/financing_summary.rb +0 -64
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -123
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -99
- data/lib/stripe/resources/gift_cards/card.rb +0 -217
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -281
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -611
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -84
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -95
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -124
- data/lib/stripe/resources/order.rb +0 -2868
- data/lib/stripe/resources/payment_attempt_record.rb +0 -184
- data/lib/stripe/resources/payment_record.rb +0 -715
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -652
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -362
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -220
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -40
- data/lib/stripe/resources/usage_record.rb +0 -30
- data/lib/stripe/resources/usage_record_summary.rb +0 -33
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -1881
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_line_item_service.rb +0 -35
- data/lib/stripe/services/order_service.rb +0 -2268
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/quote_line_service.rb +0 -35
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -35
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -41
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -37
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/rbi/stripe/resources/account_notice.rbi +0 -139
- data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -71
- data/rbi/stripe/resources/capital/financing_offer.rbi +0 -190
- data/rbi/stripe/resources/capital/financing_summary.rbi +0 -74
- data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -130
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -27
- data/rbi/stripe/resources/financial_connections/institution.rbi +0 -99
- data/rbi/stripe/resources/gift_cards/card.rbi +0 -206
- data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -257
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -622
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -83
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -90
- data/rbi/stripe/resources/issuing/settlement.rbi +0 -62
- data/rbi/stripe/resources/margin.rbi +0 -127
- data/rbi/stripe/resources/order.rbi +0 -3036
- data/rbi/stripe/resources/payment_attempt_record.rbi +0 -215
- data/rbi/stripe/resources/payment_record.rbi +0 -722
- data/rbi/stripe/resources/quote_line.rbi +0 -350
- data/rbi/stripe/resources/quote_preview_invoice.rbi +0 -850
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -474
- data/rbi/stripe/resources/tax/association.rbi +0 -94
- data/rbi/stripe/resources/tax/form.rbi +0 -224
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -41
- data/rbi/stripe/resources/usage_record.rbi +0 -32
- data/rbi/stripe/resources/usage_record_summary.rbi +0 -38
- data/rbi/stripe/services/account_notice_service.rbi +0 -90
- data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -95
- data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -22
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -68
- data/rbi/stripe/services/capital_service.rbi +0 -11
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -33
- data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -46
- data/rbi/stripe/services/gift_cards/card_service.rbi +0 -142
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -174
- data/rbi/stripe/services/gift_cards_service.rbi +0 -10
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +0 -2023
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -498
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -55
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -73
- data/rbi/stripe/services/margin_service.rbi +0 -104
- data/rbi/stripe/services/order_line_item_service.rbi +0 -31
- data/rbi/stripe/services/order_service.rbi +0 -2320
- data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -36
- data/rbi/stripe/services/payment_record_service.rbi +0 -521
- data/rbi/stripe/services/quote_line_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -37
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -33
- data/rbi/stripe/services/tax/association_service.rbi +0 -25
- data/rbi/stripe/services/tax/form_service.rbi +0 -85
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -22
@@ -278,40 +278,6 @@ module Stripe
|
|
278
278
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
279
279
|
sig { returns(T.nilable(String)) }
|
280
280
|
attr_reader :billing_agreement_id
|
281
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
282
|
-
sig { returns(T.nilable(String)) }
|
283
|
-
attr_reader :currency
|
284
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
285
|
-
sig { returns(T::Array[String]) }
|
286
|
-
attr_reader :subsellers
|
287
|
-
end
|
288
|
-
class Payto < Stripe::StripeObject
|
289
|
-
class MandateOptions < Stripe::StripeObject
|
290
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
291
|
-
sig { returns(T.nilable(Integer)) }
|
292
|
-
attr_reader :amount
|
293
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
294
|
-
sig { returns(T.nilable(String)) }
|
295
|
-
attr_reader :amount_type
|
296
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
297
|
-
sig { returns(T.nilable(String)) }
|
298
|
-
attr_reader :end_date
|
299
|
-
# The periodicity at which payments will be collected.
|
300
|
-
sig { returns(T.nilable(String)) }
|
301
|
-
attr_reader :payment_schedule
|
302
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
303
|
-
sig { returns(T.nilable(Integer)) }
|
304
|
-
attr_reader :payments_per_period
|
305
|
-
# The purpose for which payments are made. Defaults to retail.
|
306
|
-
sig { returns(T.nilable(String)) }
|
307
|
-
attr_reader :purpose
|
308
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
309
|
-
sig { returns(T.nilable(String)) }
|
310
|
-
attr_reader :start_date
|
311
|
-
end
|
312
|
-
# Attribute for field mandate_options
|
313
|
-
sig { returns(MandateOptions) }
|
314
|
-
attr_reader :mandate_options
|
315
281
|
end
|
316
282
|
class SepaDebit < Stripe::StripeObject
|
317
283
|
class MandateOptions < Stripe::StripeObject
|
@@ -329,21 +295,10 @@ module Stripe
|
|
329
295
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
330
296
|
sig { returns(T::Array[String]) }
|
331
297
|
attr_reader :account_subcategories
|
332
|
-
# The institution to use to filter for possible accounts to link.
|
333
|
-
sig { returns(String) }
|
334
|
-
attr_reader :institution
|
335
|
-
end
|
336
|
-
class ManualEntry < Stripe::StripeObject
|
337
|
-
# Settings for configuring manual entry of account details.
|
338
|
-
sig { returns(String) }
|
339
|
-
attr_reader :mode
|
340
298
|
end
|
341
299
|
# Attribute for field filters
|
342
300
|
sig { returns(Filters) }
|
343
301
|
attr_reader :filters
|
344
|
-
# Attribute for field manual_entry
|
345
|
-
sig { returns(ManualEntry) }
|
346
|
-
attr_reader :manual_entry
|
347
302
|
# The list of permissions to request. The `payment_method` permission must be included.
|
348
303
|
sig { returns(T::Array[String]) }
|
349
304
|
attr_reader :permissions
|
@@ -390,9 +345,6 @@ module Stripe
|
|
390
345
|
# Attribute for field paypal
|
391
346
|
sig { returns(Paypal) }
|
392
347
|
attr_reader :paypal
|
393
|
-
# Attribute for field payto
|
394
|
-
sig { returns(Payto) }
|
395
|
-
attr_reader :payto
|
396
348
|
# Attribute for field sepa_debit
|
397
349
|
sig { returns(SepaDebit) }
|
398
350
|
attr_reader :sepa_debit
|
@@ -488,48 +440,50 @@ module Stripe
|
|
488
440
|
class ListParams < Stripe::RequestParams
|
489
441
|
class Created < Stripe::RequestParams
|
490
442
|
# Minimum value to filter by (exclusive)
|
491
|
-
sig { returns(Integer) }
|
443
|
+
sig { returns(T.nilable(Integer)) }
|
492
444
|
attr_accessor :gt
|
493
445
|
# Minimum value to filter by (inclusive)
|
494
|
-
sig { returns(Integer) }
|
446
|
+
sig { returns(T.nilable(Integer)) }
|
495
447
|
attr_accessor :gte
|
496
448
|
# Maximum value to filter by (exclusive)
|
497
|
-
sig { returns(Integer) }
|
449
|
+
sig { returns(T.nilable(Integer)) }
|
498
450
|
attr_accessor :lt
|
499
451
|
# Maximum value to filter by (inclusive)
|
500
|
-
sig { returns(Integer) }
|
452
|
+
sig { returns(T.nilable(Integer)) }
|
501
453
|
attr_accessor :lte
|
502
|
-
sig {
|
454
|
+
sig {
|
455
|
+
params(gt: T.nilable(Integer), gte: T.nilable(Integer), lt: T.nilable(Integer), lte: T.nilable(Integer)).void
|
456
|
+
}
|
503
457
|
def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
|
504
458
|
end
|
505
459
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
506
460
|
#
|
507
461
|
# It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
508
|
-
sig { returns(T::Boolean) }
|
462
|
+
sig { returns(T.nilable(T::Boolean)) }
|
509
463
|
attr_accessor :attach_to_self
|
510
464
|
# A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
|
511
|
-
sig { returns(T.any(::Stripe::SetupIntent::ListParams::Created, Integer)) }
|
465
|
+
sig { returns(T.nilable(T.any(::Stripe::SetupIntent::ListParams::Created, Integer))) }
|
512
466
|
attr_accessor :created
|
513
467
|
# Only return SetupIntents for the customer specified by this customer ID.
|
514
|
-
sig { returns(String) }
|
468
|
+
sig { returns(T.nilable(String)) }
|
515
469
|
attr_accessor :customer
|
516
470
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
517
|
-
sig { returns(String) }
|
471
|
+
sig { returns(T.nilable(String)) }
|
518
472
|
attr_accessor :ending_before
|
519
473
|
# Specifies which fields in the response should be expanded.
|
520
|
-
sig { returns(T::Array[String]) }
|
474
|
+
sig { returns(T.nilable(T::Array[String])) }
|
521
475
|
attr_accessor :expand
|
522
476
|
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
523
|
-
sig { returns(Integer) }
|
477
|
+
sig { returns(T.nilable(Integer)) }
|
524
478
|
attr_accessor :limit
|
525
479
|
# Only return SetupIntents that associate with the specified payment method.
|
526
|
-
sig { returns(String) }
|
480
|
+
sig { returns(T.nilable(String)) }
|
527
481
|
attr_accessor :payment_method
|
528
482
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
529
|
-
sig { returns(String) }
|
483
|
+
sig { returns(T.nilable(String)) }
|
530
484
|
attr_accessor :starting_after
|
531
485
|
sig {
|
532
|
-
params(attach_to_self: T::Boolean, created: T.any(::Stripe::SetupIntent::ListParams::Created, Integer), customer: String, ending_before: String, expand: T::Array[String], limit: Integer, payment_method: String, starting_after: String).void
|
486
|
+
params(attach_to_self: T.nilable(T::Boolean), created: T.nilable(T.any(::Stripe::SetupIntent::ListParams::Created, Integer)), customer: T.nilable(String), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_method: T.nilable(String), starting_after: T.nilable(String)).void
|
533
487
|
}
|
534
488
|
def initialize(
|
535
489
|
attach_to_self: nil,
|
@@ -547,12 +501,12 @@ module Stripe
|
|
547
501
|
# Controls whether this SetupIntent will accept redirect-based payment methods.
|
548
502
|
#
|
549
503
|
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup.
|
550
|
-
sig { returns(String) }
|
504
|
+
sig { returns(T.nilable(String)) }
|
551
505
|
attr_accessor :allow_redirects
|
552
506
|
# Whether this feature is enabled.
|
553
507
|
sig { returns(T::Boolean) }
|
554
508
|
attr_accessor :enabled
|
555
|
-
sig { params(allow_redirects: String, enabled: T::Boolean).void }
|
509
|
+
sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void }
|
556
510
|
def initialize(allow_redirects: nil, enabled: nil); end
|
557
511
|
end
|
558
512
|
class MandateData < Stripe::RequestParams
|
@@ -571,23 +525,23 @@ module Stripe
|
|
571
525
|
def initialize(ip_address: nil, user_agent: nil); end
|
572
526
|
end
|
573
527
|
# The time at which the customer accepted the Mandate.
|
574
|
-
sig { returns(Integer) }
|
528
|
+
sig { returns(T.nilable(Integer)) }
|
575
529
|
attr_accessor :accepted_at
|
576
530
|
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
577
531
|
sig {
|
578
|
-
returns(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Offline)
|
532
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Offline))
|
579
533
|
}
|
580
534
|
attr_accessor :offline
|
581
535
|
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
582
536
|
sig {
|
583
|
-
returns(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Online)
|
537
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Online))
|
584
538
|
}
|
585
539
|
attr_accessor :online
|
586
540
|
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
587
541
|
sig { returns(String) }
|
588
542
|
attr_accessor :type
|
589
543
|
sig {
|
590
|
-
params(accepted_at: Integer, offline: ::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Online, type: String).void
|
544
|
+
params(accepted_at: T.nilable(Integer), offline: T.nilable(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Offline), online: T.nilable(::Stripe::SetupIntent::CreateParams::MandateData::CustomerAcceptance::Online), type: String).void
|
591
545
|
}
|
592
546
|
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
|
593
547
|
end
|
@@ -642,39 +596,42 @@ module Stripe
|
|
642
596
|
end
|
643
597
|
class BacsDebit < Stripe::RequestParams
|
644
598
|
# Account number of the bank account that the funds will be debited from.
|
645
|
-
sig { returns(String) }
|
599
|
+
sig { returns(T.nilable(String)) }
|
646
600
|
attr_accessor :account_number
|
647
601
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
648
|
-
sig { returns(String) }
|
602
|
+
sig { returns(T.nilable(String)) }
|
649
603
|
attr_accessor :sort_code
|
650
|
-
sig { params(account_number: String, sort_code: String).void }
|
604
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
651
605
|
def initialize(account_number: nil, sort_code: nil); end
|
652
606
|
end
|
653
607
|
class Bancontact < Stripe::RequestParams
|
654
608
|
|
609
|
+
end
|
610
|
+
class Billie < Stripe::RequestParams
|
611
|
+
|
655
612
|
end
|
656
613
|
class BillingDetails < Stripe::RequestParams
|
657
614
|
class Address < Stripe::RequestParams
|
658
615
|
# City, district, suburb, town, or village.
|
659
|
-
sig { returns(String) }
|
616
|
+
sig { returns(T.nilable(String)) }
|
660
617
|
attr_accessor :city
|
661
618
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
662
|
-
sig { returns(String) }
|
619
|
+
sig { returns(T.nilable(String)) }
|
663
620
|
attr_accessor :country
|
664
621
|
# Address line 1 (e.g., street, PO Box, or company name).
|
665
|
-
sig { returns(String) }
|
622
|
+
sig { returns(T.nilable(String)) }
|
666
623
|
attr_accessor :line1
|
667
624
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
668
|
-
sig { returns(String) }
|
625
|
+
sig { returns(T.nilable(String)) }
|
669
626
|
attr_accessor :line2
|
670
627
|
# ZIP or postal code.
|
671
|
-
sig { returns(String) }
|
628
|
+
sig { returns(T.nilable(String)) }
|
672
629
|
attr_accessor :postal_code
|
673
630
|
# State, county, province, or region.
|
674
|
-
sig { returns(String) }
|
631
|
+
sig { returns(T.nilable(String)) }
|
675
632
|
attr_accessor :state
|
676
633
|
sig {
|
677
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
634
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
678
635
|
}
|
679
636
|
def initialize(
|
680
637
|
city: nil,
|
@@ -687,20 +644,20 @@ module Stripe
|
|
687
644
|
end
|
688
645
|
# Billing address.
|
689
646
|
sig {
|
690
|
-
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address))
|
647
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address))))
|
691
648
|
}
|
692
649
|
attr_accessor :address
|
693
650
|
# Email address.
|
694
|
-
sig { returns(T.nilable(String)) }
|
651
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
695
652
|
attr_accessor :email
|
696
653
|
# Full name.
|
697
|
-
sig { returns(T.nilable(String)) }
|
654
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
698
655
|
attr_accessor :name
|
699
656
|
# Billing phone number (including extension).
|
700
|
-
sig { returns(T.nilable(String)) }
|
657
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
701
658
|
attr_accessor :phone
|
702
659
|
sig {
|
703
|
-
params(address: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
660
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
704
661
|
}
|
705
662
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
706
663
|
end
|
@@ -722,42 +679,32 @@ module Stripe
|
|
722
679
|
end
|
723
680
|
class Eps < Stripe::RequestParams
|
724
681
|
# The customer's bank.
|
725
|
-
sig { returns(String) }
|
682
|
+
sig { returns(T.nilable(String)) }
|
726
683
|
attr_accessor :bank
|
727
|
-
sig { params(bank: String).void }
|
684
|
+
sig { params(bank: T.nilable(String)).void }
|
728
685
|
def initialize(bank: nil); end
|
729
686
|
end
|
730
687
|
class Fpx < Stripe::RequestParams
|
731
688
|
# Account holder type for FPX transaction
|
732
|
-
sig { returns(String) }
|
689
|
+
sig { returns(T.nilable(String)) }
|
733
690
|
attr_accessor :account_holder_type
|
734
691
|
# The customer's bank.
|
735
692
|
sig { returns(String) }
|
736
693
|
attr_accessor :bank
|
737
|
-
sig { params(account_holder_type: String, bank: String).void }
|
694
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
738
695
|
def initialize(account_holder_type: nil, bank: nil); end
|
739
696
|
end
|
740
697
|
class Giropay < Stripe::RequestParams
|
741
698
|
|
742
|
-
end
|
743
|
-
class Gopay < Stripe::RequestParams
|
744
|
-
|
745
699
|
end
|
746
700
|
class Grabpay < Stripe::RequestParams
|
747
701
|
|
748
|
-
end
|
749
|
-
class IdBankTransfer < Stripe::RequestParams
|
750
|
-
# Bank where the account is held.
|
751
|
-
sig { returns(String) }
|
752
|
-
attr_accessor :bank
|
753
|
-
sig { params(bank: String).void }
|
754
|
-
def initialize(bank: nil); end
|
755
702
|
end
|
756
703
|
class Ideal < Stripe::RequestParams
|
757
704
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
758
|
-
sig { returns(String) }
|
705
|
+
sig { returns(T.nilable(String)) }
|
759
706
|
attr_accessor :bank
|
760
|
-
sig { params(bank: String).void }
|
707
|
+
sig { params(bank: T.nilable(String)).void }
|
761
708
|
def initialize(bank: nil); end
|
762
709
|
end
|
763
710
|
class InteracPresent < Stripe::RequestParams
|
@@ -781,10 +728,12 @@ module Stripe
|
|
781
728
|
def initialize(day: nil, month: nil, year: nil); end
|
782
729
|
end
|
783
730
|
# Customer's date of birth
|
784
|
-
sig {
|
731
|
+
sig {
|
732
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna::Dob))
|
733
|
+
}
|
785
734
|
attr_accessor :dob
|
786
735
|
sig {
|
787
|
-
params(dob: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna::Dob).void
|
736
|
+
params(dob: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna::Dob)).void
|
788
737
|
}
|
789
738
|
def initialize(dob: nil); end
|
790
739
|
end
|
@@ -796,9 +745,6 @@ module Stripe
|
|
796
745
|
end
|
797
746
|
class Link < Stripe::RequestParams
|
798
747
|
|
799
|
-
end
|
800
|
-
class MbWay < Stripe::RequestParams
|
801
|
-
|
802
748
|
end
|
803
749
|
class Mobilepay < Stripe::RequestParams
|
804
750
|
|
@@ -808,19 +754,50 @@ module Stripe
|
|
808
754
|
end
|
809
755
|
class NaverPay < Stripe::RequestParams
|
810
756
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
811
|
-
sig { returns(String) }
|
757
|
+
sig { returns(T.nilable(String)) }
|
812
758
|
attr_accessor :funding
|
813
|
-
sig { params(funding: String).void }
|
759
|
+
sig { params(funding: T.nilable(String)).void }
|
814
760
|
def initialize(funding: nil); end
|
815
761
|
end
|
762
|
+
class NzBankAccount < Stripe::RequestParams
|
763
|
+
# The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
|
764
|
+
sig { returns(T.nilable(String)) }
|
765
|
+
attr_accessor :account_holder_name
|
766
|
+
# The account number for the bank account.
|
767
|
+
sig { returns(String) }
|
768
|
+
attr_accessor :account_number
|
769
|
+
# The numeric code for the bank account's bank.
|
770
|
+
sig { returns(String) }
|
771
|
+
attr_accessor :bank_code
|
772
|
+
# The numeric code for the bank account's bank branch.
|
773
|
+
sig { returns(String) }
|
774
|
+
attr_accessor :branch_code
|
775
|
+
# Attribute for param field reference
|
776
|
+
sig { returns(T.nilable(String)) }
|
777
|
+
attr_accessor :reference
|
778
|
+
# The suffix of the bank account number.
|
779
|
+
sig { returns(String) }
|
780
|
+
attr_accessor :suffix
|
781
|
+
sig {
|
782
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
783
|
+
}
|
784
|
+
def initialize(
|
785
|
+
account_holder_name: nil,
|
786
|
+
account_number: nil,
|
787
|
+
bank_code: nil,
|
788
|
+
branch_code: nil,
|
789
|
+
reference: nil,
|
790
|
+
suffix: nil
|
791
|
+
); end
|
792
|
+
end
|
816
793
|
class Oxxo < Stripe::RequestParams
|
817
794
|
|
818
795
|
end
|
819
796
|
class P24 < Stripe::RequestParams
|
820
797
|
# The customer's bank.
|
821
|
-
sig { returns(String) }
|
798
|
+
sig { returns(T.nilable(String)) }
|
822
799
|
attr_accessor :bank
|
823
|
-
sig { params(bank: String).void }
|
800
|
+
sig { params(bank: T.nilable(String)).void }
|
824
801
|
def initialize(bank: nil); end
|
825
802
|
end
|
826
803
|
class PayByBank < Stripe::RequestParams
|
@@ -834,63 +811,28 @@ module Stripe
|
|
834
811
|
end
|
835
812
|
class Paypal < Stripe::RequestParams
|
836
813
|
|
837
|
-
end
|
838
|
-
class Payto < Stripe::RequestParams
|
839
|
-
# The account number for the bank account.
|
840
|
-
sig { returns(String) }
|
841
|
-
attr_accessor :account_number
|
842
|
-
# Bank-State-Branch number of the bank account.
|
843
|
-
sig { returns(String) }
|
844
|
-
attr_accessor :bsb_number
|
845
|
-
# The PayID alias for the bank account.
|
846
|
-
sig { returns(String) }
|
847
|
-
attr_accessor :pay_id
|
848
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
849
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
850
814
|
end
|
851
815
|
class Pix < Stripe::RequestParams
|
852
816
|
|
853
817
|
end
|
854
818
|
class Promptpay < Stripe::RequestParams
|
855
819
|
|
856
|
-
end
|
857
|
-
class Qris < Stripe::RequestParams
|
858
|
-
|
859
820
|
end
|
860
821
|
class RadarOptions < Stripe::RequestParams
|
861
822
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
862
|
-
sig { returns(String) }
|
823
|
+
sig { returns(T.nilable(String)) }
|
863
824
|
attr_accessor :session
|
864
|
-
sig { params(session: String).void }
|
825
|
+
sig { params(session: T.nilable(String)).void }
|
865
826
|
def initialize(session: nil); end
|
866
827
|
end
|
867
|
-
class Rechnung < Stripe::RequestParams
|
868
|
-
class Dob < Stripe::RequestParams
|
869
|
-
# The day of birth, between 1 and 31.
|
870
|
-
sig { returns(Integer) }
|
871
|
-
attr_accessor :day
|
872
|
-
# The month of birth, between 1 and 12.
|
873
|
-
sig { returns(Integer) }
|
874
|
-
attr_accessor :month
|
875
|
-
# The four-digit year of birth.
|
876
|
-
sig { returns(Integer) }
|
877
|
-
attr_accessor :year
|
878
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
879
|
-
def initialize(day: nil, month: nil, year: nil); end
|
880
|
-
end
|
881
|
-
# Customer's date of birth
|
882
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung::Dob) }
|
883
|
-
attr_accessor :dob
|
884
|
-
sig {
|
885
|
-
params(dob: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung::Dob).void
|
886
|
-
}
|
887
|
-
def initialize(dob: nil); end
|
888
|
-
end
|
889
828
|
class RevolutPay < Stripe::RequestParams
|
890
829
|
|
891
830
|
end
|
892
831
|
class SamsungPay < Stripe::RequestParams
|
893
832
|
|
833
|
+
end
|
834
|
+
class Satispay < Stripe::RequestParams
|
835
|
+
|
894
836
|
end
|
895
837
|
class SepaDebit < Stripe::RequestParams
|
896
838
|
# IBAN of the bank account.
|
@@ -898,9 +840,6 @@ module Stripe
|
|
898
840
|
attr_accessor :iban
|
899
841
|
sig { params(iban: String).void }
|
900
842
|
def initialize(iban: nil); end
|
901
|
-
end
|
902
|
-
class Shopeepay < Stripe::RequestParams
|
903
|
-
|
904
843
|
end
|
905
844
|
class Sofort < Stripe::RequestParams
|
906
845
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -917,22 +856,22 @@ module Stripe
|
|
917
856
|
end
|
918
857
|
class UsBankAccount < Stripe::RequestParams
|
919
858
|
# Account holder type: individual or company.
|
920
|
-
sig { returns(String) }
|
859
|
+
sig { returns(T.nilable(String)) }
|
921
860
|
attr_accessor :account_holder_type
|
922
861
|
# Account number of the bank account.
|
923
|
-
sig { returns(String) }
|
862
|
+
sig { returns(T.nilable(String)) }
|
924
863
|
attr_accessor :account_number
|
925
864
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
926
|
-
sig { returns(String) }
|
865
|
+
sig { returns(T.nilable(String)) }
|
927
866
|
attr_accessor :account_type
|
928
867
|
# The ID of a Financial Connections Account to use as a payment method.
|
929
|
-
sig { returns(String) }
|
868
|
+
sig { returns(T.nilable(String)) }
|
930
869
|
attr_accessor :financial_connections_account
|
931
870
|
# Routing number of the bank account.
|
932
|
-
sig { returns(String) }
|
871
|
+
sig { returns(T.nilable(String)) }
|
933
872
|
attr_accessor :routing_number
|
934
873
|
sig {
|
935
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
874
|
+
params(account_holder_type: T.nilable(String), account_number: T.nilable(String), account_type: T.nilable(String), financial_connections_account: T.nilable(String), routing_number: T.nilable(String)).void
|
936
875
|
}
|
937
876
|
def initialize(
|
938
877
|
account_holder_type: nil,
|
@@ -949,175 +888,203 @@ module Stripe
|
|
949
888
|
|
950
889
|
end
|
951
890
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
952
|
-
sig {
|
891
|
+
sig {
|
892
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AcssDebit))
|
893
|
+
}
|
953
894
|
attr_accessor :acss_debit
|
954
895
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
955
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm) }
|
896
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm)) }
|
956
897
|
attr_accessor :affirm
|
957
898
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
958
|
-
sig {
|
899
|
+
sig {
|
900
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AfterpayClearpay))
|
901
|
+
}
|
959
902
|
attr_accessor :afterpay_clearpay
|
960
903
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
961
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay) }
|
904
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay)) }
|
962
905
|
attr_accessor :alipay
|
963
906
|
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
964
|
-
sig { returns(String) }
|
907
|
+
sig { returns(T.nilable(String)) }
|
965
908
|
attr_accessor :allow_redisplay
|
966
909
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
967
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma) }
|
910
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma)) }
|
968
911
|
attr_accessor :alma
|
969
912
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
970
|
-
sig {
|
913
|
+
sig {
|
914
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AmazonPay))
|
915
|
+
}
|
971
916
|
attr_accessor :amazon_pay
|
972
917
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
973
|
-
sig {
|
918
|
+
sig {
|
919
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AuBecsDebit))
|
920
|
+
}
|
974
921
|
attr_accessor :au_becs_debit
|
975
922
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
976
|
-
sig {
|
923
|
+
sig {
|
924
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BacsDebit))
|
925
|
+
}
|
977
926
|
attr_accessor :bacs_debit
|
978
927
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
979
|
-
sig {
|
928
|
+
sig {
|
929
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact))
|
930
|
+
}
|
980
931
|
attr_accessor :bancontact
|
932
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
933
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Billie)) }
|
934
|
+
attr_accessor :billie
|
981
935
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
982
|
-
sig {
|
936
|
+
sig {
|
937
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails))
|
938
|
+
}
|
983
939
|
attr_accessor :billing_details
|
984
940
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
985
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik) }
|
941
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik)) }
|
986
942
|
attr_accessor :blik
|
987
943
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
988
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto) }
|
944
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto)) }
|
989
945
|
attr_accessor :boleto
|
990
946
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
991
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp) }
|
947
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp)) }
|
992
948
|
attr_accessor :cashapp
|
993
949
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
994
|
-
sig {
|
950
|
+
sig {
|
951
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::CustomerBalance))
|
952
|
+
}
|
995
953
|
attr_accessor :customer_balance
|
996
954
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
997
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps) }
|
955
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps)) }
|
998
956
|
attr_accessor :eps
|
999
957
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
1000
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx) }
|
958
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx)) }
|
1001
959
|
attr_accessor :fpx
|
1002
960
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1003
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay) }
|
961
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay)) }
|
1004
962
|
attr_accessor :giropay
|
1005
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1006
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Gopay) }
|
1007
|
-
attr_accessor :gopay
|
1008
963
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1009
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Grabpay) }
|
964
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Grabpay)) }
|
1010
965
|
attr_accessor :grabpay
|
1011
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1012
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::IdBankTransfer) }
|
1013
|
-
attr_accessor :id_bank_transfer
|
1014
966
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1015
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Ideal) }
|
967
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Ideal)) }
|
1016
968
|
attr_accessor :ideal
|
1017
969
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
1018
|
-
sig {
|
970
|
+
sig {
|
971
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::InteracPresent))
|
972
|
+
}
|
1019
973
|
attr_accessor :interac_present
|
1020
974
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
1021
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KakaoPay) }
|
975
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KakaoPay)) }
|
1022
976
|
attr_accessor :kakao_pay
|
1023
977
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
1024
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna) }
|
978
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna)) }
|
1025
979
|
attr_accessor :klarna
|
1026
980
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
1027
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Konbini) }
|
981
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Konbini)) }
|
1028
982
|
attr_accessor :konbini
|
1029
983
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
1030
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KrCard) }
|
984
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KrCard)) }
|
1031
985
|
attr_accessor :kr_card
|
1032
986
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1033
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Link) }
|
987
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Link)) }
|
1034
988
|
attr_accessor :link
|
1035
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
1036
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::MbWay) }
|
1037
|
-
attr_accessor :mb_way
|
1038
989
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1039
|
-
sig { returns(T::Hash[String, String]) }
|
990
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
1040
991
|
attr_accessor :metadata
|
1041
992
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
1042
|
-
sig {
|
993
|
+
sig {
|
994
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Mobilepay))
|
995
|
+
}
|
1043
996
|
attr_accessor :mobilepay
|
1044
997
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
1045
|
-
sig {
|
998
|
+
sig {
|
999
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Multibanco))
|
1000
|
+
}
|
1046
1001
|
attr_accessor :multibanco
|
1047
1002
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
1048
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::NaverPay) }
|
1003
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::NaverPay)) }
|
1049
1004
|
attr_accessor :naver_pay
|
1005
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
1006
|
+
sig {
|
1007
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::NzBankAccount))
|
1008
|
+
}
|
1009
|
+
attr_accessor :nz_bank_account
|
1050
1010
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
1051
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Oxxo) }
|
1011
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Oxxo)) }
|
1052
1012
|
attr_accessor :oxxo
|
1053
1013
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
1054
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24) }
|
1014
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24)) }
|
1055
1015
|
attr_accessor :p24
|
1056
1016
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
1057
|
-
sig {
|
1017
|
+
sig {
|
1018
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::PayByBank))
|
1019
|
+
}
|
1058
1020
|
attr_accessor :pay_by_bank
|
1059
1021
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
1060
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco) }
|
1022
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco)) }
|
1061
1023
|
attr_accessor :payco
|
1062
1024
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
1063
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paynow) }
|
1025
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paynow)) }
|
1064
1026
|
attr_accessor :paynow
|
1065
1027
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1066
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paypal) }
|
1028
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paypal)) }
|
1067
1029
|
attr_accessor :paypal
|
1068
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1069
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payto) }
|
1070
|
-
attr_accessor :payto
|
1071
1030
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1072
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Pix) }
|
1031
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Pix)) }
|
1073
1032
|
attr_accessor :pix
|
1074
1033
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1075
|
-
sig {
|
1034
|
+
sig {
|
1035
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Promptpay))
|
1036
|
+
}
|
1076
1037
|
attr_accessor :promptpay
|
1077
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1078
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Qris) }
|
1079
|
-
attr_accessor :qris
|
1080
1038
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1081
|
-
sig {
|
1039
|
+
sig {
|
1040
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::RadarOptions))
|
1041
|
+
}
|
1082
1042
|
attr_accessor :radar_options
|
1083
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1084
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Rechnung) }
|
1085
|
-
attr_accessor :rechnung
|
1086
1043
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1087
|
-
sig {
|
1044
|
+
sig {
|
1045
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::RevolutPay))
|
1046
|
+
}
|
1088
1047
|
attr_accessor :revolut_pay
|
1089
1048
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1090
|
-
sig {
|
1049
|
+
sig {
|
1050
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::SamsungPay))
|
1051
|
+
}
|
1091
1052
|
attr_accessor :samsung_pay
|
1053
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
1054
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Satispay)) }
|
1055
|
+
attr_accessor :satispay
|
1092
1056
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1093
|
-
sig {
|
1057
|
+
sig {
|
1058
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::SepaDebit))
|
1059
|
+
}
|
1094
1060
|
attr_accessor :sepa_debit
|
1095
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1096
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Shopeepay) }
|
1097
|
-
attr_accessor :shopeepay
|
1098
1061
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1099
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Sofort) }
|
1062
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Sofort)) }
|
1100
1063
|
attr_accessor :sofort
|
1101
1064
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1102
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Swish) }
|
1065
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Swish)) }
|
1103
1066
|
attr_accessor :swish
|
1104
1067
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
1105
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Twint) }
|
1068
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Twint)) }
|
1106
1069
|
attr_accessor :twint
|
1107
1070
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
1108
1071
|
sig { returns(String) }
|
1109
1072
|
attr_accessor :type
|
1110
1073
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
1111
|
-
sig {
|
1074
|
+
sig {
|
1075
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::UsBankAccount))
|
1076
|
+
}
|
1112
1077
|
attr_accessor :us_bank_account
|
1113
1078
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
1114
|
-
sig {
|
1079
|
+
sig {
|
1080
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::WechatPay))
|
1081
|
+
}
|
1115
1082
|
attr_accessor :wechat_pay
|
1116
1083
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
1117
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip) }
|
1084
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip)) }
|
1118
1085
|
attr_accessor :zip
|
1119
1086
|
sig {
|
1120
|
-
params(acss_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay,
|
1087
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData::Zip)).void
|
1121
1088
|
}
|
1122
1089
|
def initialize(
|
1123
1090
|
acss_debit: nil,
|
@@ -1130,6 +1097,7 @@ module Stripe
|
|
1130
1097
|
au_becs_debit: nil,
|
1131
1098
|
bacs_debit: nil,
|
1132
1099
|
bancontact: nil,
|
1100
|
+
billie: nil,
|
1133
1101
|
billing_details: nil,
|
1134
1102
|
blik: nil,
|
1135
1103
|
boleto: nil,
|
@@ -1138,9 +1106,7 @@ module Stripe
|
|
1138
1106
|
eps: nil,
|
1139
1107
|
fpx: nil,
|
1140
1108
|
giropay: nil,
|
1141
|
-
gopay: nil,
|
1142
1109
|
grabpay: nil,
|
1143
|
-
id_bank_transfer: nil,
|
1144
1110
|
ideal: nil,
|
1145
1111
|
interac_present: nil,
|
1146
1112
|
kakao_pay: nil,
|
@@ -1148,27 +1114,24 @@ module Stripe
|
|
1148
1114
|
konbini: nil,
|
1149
1115
|
kr_card: nil,
|
1150
1116
|
link: nil,
|
1151
|
-
mb_way: nil,
|
1152
1117
|
metadata: nil,
|
1153
1118
|
mobilepay: nil,
|
1154
1119
|
multibanco: nil,
|
1155
1120
|
naver_pay: nil,
|
1121
|
+
nz_bank_account: nil,
|
1156
1122
|
oxxo: nil,
|
1157
1123
|
p24: nil,
|
1158
1124
|
pay_by_bank: nil,
|
1159
1125
|
payco: nil,
|
1160
1126
|
paynow: nil,
|
1161
1127
|
paypal: nil,
|
1162
|
-
payto: nil,
|
1163
1128
|
pix: nil,
|
1164
1129
|
promptpay: nil,
|
1165
|
-
qris: nil,
|
1166
1130
|
radar_options: nil,
|
1167
|
-
rechnung: nil,
|
1168
1131
|
revolut_pay: nil,
|
1169
1132
|
samsung_pay: nil,
|
1133
|
+
satispay: nil,
|
1170
1134
|
sepa_debit: nil,
|
1171
|
-
shopeepay: nil,
|
1172
1135
|
sofort: nil,
|
1173
1136
|
swish: nil,
|
1174
1137
|
twint: nil,
|
@@ -1184,22 +1147,22 @@ module Stripe
|
|
1184
1147
|
# A URL for custom mandate text to render during confirmation step.
|
1185
1148
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
1186
1149
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
1187
|
-
sig { returns(T.nilable(String)) }
|
1150
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1188
1151
|
attr_accessor :custom_mandate_url
|
1189
1152
|
# List of Stripe products where this mandate can be selected automatically.
|
1190
|
-
sig { returns(T::Array[String]) }
|
1153
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1191
1154
|
attr_accessor :default_for
|
1192
1155
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
1193
|
-
sig { returns(String) }
|
1156
|
+
sig { returns(T.nilable(String)) }
|
1194
1157
|
attr_accessor :interval_description
|
1195
1158
|
# Payment schedule for the mandate.
|
1196
|
-
sig { returns(String) }
|
1159
|
+
sig { returns(T.nilable(String)) }
|
1197
1160
|
attr_accessor :payment_schedule
|
1198
1161
|
# Transaction type of the mandate.
|
1199
|
-
sig { returns(String) }
|
1162
|
+
sig { returns(T.nilable(String)) }
|
1200
1163
|
attr_accessor :transaction_type
|
1201
1164
|
sig {
|
1202
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
1165
|
+
params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
|
1203
1166
|
}
|
1204
1167
|
def initialize(
|
1205
1168
|
custom_mandate_url: nil,
|
@@ -1210,18 +1173,18 @@ module Stripe
|
|
1210
1173
|
); end
|
1211
1174
|
end
|
1212
1175
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
1213
|
-
sig { returns(String) }
|
1176
|
+
sig { returns(T.nilable(String)) }
|
1214
1177
|
attr_accessor :currency
|
1215
1178
|
# Additional fields for Mandate creation
|
1216
1179
|
sig {
|
1217
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
1180
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
1218
1181
|
}
|
1219
1182
|
attr_accessor :mandate_options
|
1220
1183
|
# Bank account verification method.
|
1221
|
-
sig { returns(String) }
|
1184
|
+
sig { returns(T.nilable(String)) }
|
1222
1185
|
attr_accessor :verification_method
|
1223
1186
|
sig {
|
1224
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
1187
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
1225
1188
|
}
|
1226
1189
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
1227
1190
|
end
|
@@ -1231,18 +1194,18 @@ module Stripe
|
|
1231
1194
|
class BacsDebit < Stripe::RequestParams
|
1232
1195
|
class MandateOptions < Stripe::RequestParams
|
1233
1196
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
1234
|
-
sig { returns(T.nilable(String)) }
|
1197
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1235
1198
|
attr_accessor :reference_prefix
|
1236
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
1199
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
1237
1200
|
def initialize(reference_prefix: nil); end
|
1238
1201
|
end
|
1239
1202
|
# Additional fields for Mandate creation
|
1240
1203
|
sig {
|
1241
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
1204
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
1242
1205
|
}
|
1243
1206
|
attr_accessor :mandate_options
|
1244
1207
|
sig {
|
1245
|
-
params(mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
1208
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
1246
1209
|
}
|
1247
1210
|
def initialize(mandate_options: nil); end
|
1248
1211
|
end
|
@@ -1258,16 +1221,16 @@ module Stripe
|
|
1258
1221
|
sig { returns(String) }
|
1259
1222
|
attr_accessor :currency
|
1260
1223
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
1261
|
-
sig { returns(String) }
|
1224
|
+
sig { returns(T.nilable(String)) }
|
1262
1225
|
attr_accessor :description
|
1263
1226
|
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
1264
|
-
sig { returns(Integer) }
|
1227
|
+
sig { returns(T.nilable(Integer)) }
|
1265
1228
|
attr_accessor :end_date
|
1266
1229
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
1267
1230
|
sig { returns(String) }
|
1268
1231
|
attr_accessor :interval
|
1269
1232
|
# The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
1270
|
-
sig { returns(Integer) }
|
1233
|
+
sig { returns(T.nilable(Integer)) }
|
1271
1234
|
attr_accessor :interval_count
|
1272
1235
|
# Unique identifier for the mandate or subscription.
|
1273
1236
|
sig { returns(String) }
|
@@ -1276,10 +1239,10 @@ module Stripe
|
|
1276
1239
|
sig { returns(Integer) }
|
1277
1240
|
attr_accessor :start_date
|
1278
1241
|
# Specifies the type of mandates supported. Possible values are `india`.
|
1279
|
-
sig { returns(T::Array[String]) }
|
1242
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1280
1243
|
attr_accessor :supported_types
|
1281
1244
|
sig {
|
1282
|
-
params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
|
1245
|
+
params(amount: Integer, amount_type: String, currency: String, description: T.nilable(String), end_date: T.nilable(Integer), interval: String, interval_count: T.nilable(Integer), reference: String, start_date: Integer, supported_types: T.nilable(T::Array[String])).void
|
1283
1246
|
}
|
1284
1247
|
def initialize(
|
1285
1248
|
amount: nil,
|
@@ -1306,58 +1269,60 @@ module Stripe
|
|
1306
1269
|
# message extension: CB-EXEMPTION; string (4 characters)
|
1307
1270
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
1308
1271
|
# bit first) that has been Base64 encoded
|
1309
|
-
sig { returns(String) }
|
1272
|
+
sig { returns(T.nilable(String)) }
|
1310
1273
|
attr_accessor :cb_exemption
|
1311
1274
|
# The risk score returned from Cartes Bancaires in the ARes.
|
1312
1275
|
# message extension: CB-SCORE; numeric value 0-99
|
1313
|
-
sig { returns(Integer) }
|
1276
|
+
sig { returns(T.nilable(Integer)) }
|
1314
1277
|
attr_accessor :cb_score
|
1315
|
-
sig {
|
1278
|
+
sig {
|
1279
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
1280
|
+
}
|
1316
1281
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
1317
1282
|
end
|
1318
1283
|
# Cartes Bancaires-specific 3DS fields.
|
1319
1284
|
sig {
|
1320
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
1285
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
1321
1286
|
}
|
1322
1287
|
attr_accessor :cartes_bancaires
|
1323
1288
|
sig {
|
1324
|
-
params(cartes_bancaires: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
1289
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
1325
1290
|
}
|
1326
1291
|
def initialize(cartes_bancaires: nil); end
|
1327
1292
|
end
|
1328
1293
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
1329
|
-
sig { returns(String) }
|
1294
|
+
sig { returns(T.nilable(String)) }
|
1330
1295
|
attr_accessor :ares_trans_status
|
1331
1296
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
1332
1297
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
1333
1298
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
1334
1299
|
# is what you should specify here.)
|
1335
|
-
sig { returns(String) }
|
1300
|
+
sig { returns(T.nilable(String)) }
|
1336
1301
|
attr_accessor :cryptogram
|
1337
1302
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
1338
1303
|
# provider and indicates what degree of authentication was performed.
|
1339
|
-
sig { returns(String) }
|
1304
|
+
sig { returns(T.nilable(String)) }
|
1340
1305
|
attr_accessor :electronic_commerce_indicator
|
1341
1306
|
# Network specific 3DS fields. Network specific arguments require an
|
1342
1307
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
1343
1308
|
# must be populated accordingly
|
1344
1309
|
sig {
|
1345
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
1310
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
1346
1311
|
}
|
1347
1312
|
attr_accessor :network_options
|
1348
1313
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
1349
1314
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
1350
|
-
sig { returns(String) }
|
1315
|
+
sig { returns(T.nilable(String)) }
|
1351
1316
|
attr_accessor :requestor_challenge_indicator
|
1352
1317
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
1353
1318
|
# Transaction ID (dsTransID).
|
1354
|
-
sig { returns(String) }
|
1319
|
+
sig { returns(T.nilable(String)) }
|
1355
1320
|
attr_accessor :transaction_id
|
1356
1321
|
# The version of 3D Secure that was performed.
|
1357
|
-
sig { returns(String) }
|
1322
|
+
sig { returns(T.nilable(String)) }
|
1358
1323
|
attr_accessor :version
|
1359
1324
|
sig {
|
1360
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
1325
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
1361
1326
|
}
|
1362
1327
|
def initialize(
|
1363
1328
|
ares_trans_status: nil,
|
@@ -1371,28 +1336,28 @@ module Stripe
|
|
1371
1336
|
end
|
1372
1337
|
# Configuration options for setting up an eMandate for cards issued in India.
|
1373
1338
|
sig {
|
1374
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions)
|
1339
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions))
|
1375
1340
|
}
|
1376
1341
|
attr_accessor :mandate_options
|
1377
1342
|
# When specified, this parameter signals that a card has been collected
|
1378
1343
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
1379
1344
|
# parameter can only be provided during confirmation.
|
1380
|
-
sig { returns(T::Boolean) }
|
1345
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1381
1346
|
attr_accessor :moto
|
1382
1347
|
# Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
|
1383
|
-
sig { returns(String) }
|
1348
|
+
sig { returns(T.nilable(String)) }
|
1384
1349
|
attr_accessor :network
|
1385
1350
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
1386
|
-
sig { returns(String) }
|
1351
|
+
sig { returns(T.nilable(String)) }
|
1387
1352
|
attr_accessor :request_three_d_secure
|
1388
1353
|
# If 3D Secure authentication was performed with a third-party provider,
|
1389
1354
|
# the authentication details to use for this setup.
|
1390
1355
|
sig {
|
1391
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)
|
1356
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure))
|
1392
1357
|
}
|
1393
1358
|
attr_accessor :three_d_secure
|
1394
1359
|
sig {
|
1395
|
-
params(mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
1360
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_three_d_secure: T.nilable(String), three_d_secure: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
1396
1361
|
}
|
1397
1362
|
def initialize(
|
1398
1363
|
mandate_options: nil,
|
@@ -1407,87 +1372,33 @@ module Stripe
|
|
1407
1372
|
end
|
1408
1373
|
class Link < Stripe::RequestParams
|
1409
1374
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
1410
|
-
sig { returns(String) }
|
1375
|
+
sig { returns(T.nilable(String)) }
|
1411
1376
|
attr_accessor :persistent_token
|
1412
|
-
sig { params(persistent_token: String).void }
|
1377
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
1413
1378
|
def initialize(persistent_token: nil); end
|
1414
1379
|
end
|
1415
1380
|
class Paypal < Stripe::RequestParams
|
1416
1381
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
1417
|
-
sig { returns(String) }
|
1382
|
+
sig { returns(T.nilable(String)) }
|
1418
1383
|
attr_accessor :billing_agreement_id
|
1419
|
-
|
1420
|
-
|
1421
|
-
attr_accessor :currency
|
1422
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
1423
|
-
sig { returns(T::Array[String]) }
|
1424
|
-
attr_accessor :subsellers
|
1425
|
-
sig {
|
1426
|
-
params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
|
1427
|
-
}
|
1428
|
-
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
|
1384
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
1385
|
+
def initialize(billing_agreement_id: nil); end
|
1429
1386
|
end
|
1430
|
-
class
|
1387
|
+
class SepaDebit < Stripe::RequestParams
|
1431
1388
|
class MandateOptions < Stripe::RequestParams
|
1432
|
-
#
|
1433
|
-
sig { returns(
|
1434
|
-
attr_accessor :
|
1435
|
-
|
1436
|
-
|
1437
|
-
attr_accessor :amount_type
|
1438
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
1439
|
-
sig { returns(String) }
|
1440
|
-
attr_accessor :end_date
|
1441
|
-
# The periodicity at which payments will be collected.
|
1442
|
-
sig { returns(String) }
|
1443
|
-
attr_accessor :payment_schedule
|
1444
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
1445
|
-
sig { returns(Integer) }
|
1446
|
-
attr_accessor :payments_per_period
|
1447
|
-
# The purpose for which payments are made. Defaults to retail.
|
1448
|
-
sig { returns(String) }
|
1449
|
-
attr_accessor :purpose
|
1450
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
1451
|
-
sig { returns(String) }
|
1452
|
-
attr_accessor :start_date
|
1453
|
-
sig {
|
1454
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
1455
|
-
}
|
1456
|
-
def initialize(
|
1457
|
-
amount: nil,
|
1458
|
-
amount_type: nil,
|
1459
|
-
end_date: nil,
|
1460
|
-
payment_schedule: nil,
|
1461
|
-
payments_per_period: nil,
|
1462
|
-
purpose: nil,
|
1463
|
-
start_date: nil
|
1464
|
-
); end
|
1389
|
+
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
1390
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1391
|
+
attr_accessor :reference_prefix
|
1392
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
1393
|
+
def initialize(reference_prefix: nil); end
|
1465
1394
|
end
|
1466
|
-
# Additional fields for Mandate creation
|
1395
|
+
# Additional fields for Mandate creation
|
1467
1396
|
sig {
|
1468
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::
|
1397
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
1469
1398
|
}
|
1470
1399
|
attr_accessor :mandate_options
|
1471
1400
|
sig {
|
1472
|
-
params(mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::
|
1473
|
-
}
|
1474
|
-
def initialize(mandate_options: nil); end
|
1475
|
-
end
|
1476
|
-
class SepaDebit < Stripe::RequestParams
|
1477
|
-
class MandateOptions < Stripe::RequestParams
|
1478
|
-
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
1479
|
-
sig { returns(T.nilable(String)) }
|
1480
|
-
attr_accessor :reference_prefix
|
1481
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
1482
|
-
def initialize(reference_prefix: nil); end
|
1483
|
-
end
|
1484
|
-
# Additional fields for Mandate creation
|
1485
|
-
sig {
|
1486
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
1487
|
-
}
|
1488
|
-
attr_accessor :mandate_options
|
1489
|
-
sig {
|
1490
|
-
params(mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
1401
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
1491
1402
|
}
|
1492
1403
|
def initialize(mandate_options: nil); end
|
1493
1404
|
end
|
@@ -1495,85 +1406,64 @@ module Stripe
|
|
1495
1406
|
class FinancialConnections < Stripe::RequestParams
|
1496
1407
|
class Filters < Stripe::RequestParams
|
1497
1408
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1498
|
-
sig { returns(T::Array[String]) }
|
1409
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1499
1410
|
attr_accessor :account_subcategories
|
1500
|
-
|
1501
|
-
|
1502
|
-
attr_accessor :institution
|
1503
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
1504
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
1505
|
-
end
|
1506
|
-
class ManualEntry < Stripe::RequestParams
|
1507
|
-
# Settings for configuring manual entry of account details.
|
1508
|
-
sig { returns(String) }
|
1509
|
-
attr_accessor :mode
|
1510
|
-
sig { params(mode: String).void }
|
1511
|
-
def initialize(mode: nil); end
|
1411
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
1412
|
+
def initialize(account_subcategories: nil); end
|
1512
1413
|
end
|
1513
1414
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1514
1415
|
sig {
|
1515
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
1416
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
1516
1417
|
}
|
1517
1418
|
attr_accessor :filters
|
1518
|
-
# Customize manual entry behavior
|
1519
|
-
sig {
|
1520
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
1521
|
-
}
|
1522
|
-
attr_accessor :manual_entry
|
1523
1419
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
1524
|
-
sig { returns(T::Array[String]) }
|
1420
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1525
1421
|
attr_accessor :permissions
|
1526
1422
|
# List of data features that you would like to retrieve upon account creation.
|
1527
|
-
sig { returns(T::Array[String]) }
|
1423
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1528
1424
|
attr_accessor :prefetch
|
1529
1425
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
1530
|
-
sig { returns(String) }
|
1426
|
+
sig { returns(T.nilable(String)) }
|
1531
1427
|
attr_accessor :return_url
|
1532
1428
|
sig {
|
1533
|
-
params(filters: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
1429
|
+
params(filters: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
1534
1430
|
}
|
1535
|
-
def initialize(
|
1536
|
-
filters: nil,
|
1537
|
-
manual_entry: nil,
|
1538
|
-
permissions: nil,
|
1539
|
-
prefetch: nil,
|
1540
|
-
return_url: nil
|
1541
|
-
); end
|
1431
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
1542
1432
|
end
|
1543
1433
|
class MandateOptions < Stripe::RequestParams
|
1544
1434
|
# The method used to collect offline mandate customer acceptance.
|
1545
|
-
sig { returns(T.nilable(String)) }
|
1435
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1546
1436
|
attr_accessor :collection_method
|
1547
|
-
sig { params(collection_method: T.nilable(String)).void }
|
1437
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
1548
1438
|
def initialize(collection_method: nil); end
|
1549
1439
|
end
|
1550
1440
|
class Networks < Stripe::RequestParams
|
1551
1441
|
# Triggers validations to run across the selected networks
|
1552
|
-
sig { returns(T::Array[String]) }
|
1442
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1553
1443
|
attr_accessor :requested
|
1554
|
-
sig { params(requested: T::Array[String]).void }
|
1444
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
1555
1445
|
def initialize(requested: nil); end
|
1556
1446
|
end
|
1557
1447
|
# Additional fields for Financial Connections Session creation
|
1558
1448
|
sig {
|
1559
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
1449
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
1560
1450
|
}
|
1561
1451
|
attr_accessor :financial_connections
|
1562
1452
|
# Additional fields for Mandate creation
|
1563
1453
|
sig {
|
1564
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
1454
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
1565
1455
|
}
|
1566
1456
|
attr_accessor :mandate_options
|
1567
1457
|
# Additional fields for network related functions
|
1568
1458
|
sig {
|
1569
|
-
returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks)
|
1459
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks))
|
1570
1460
|
}
|
1571
1461
|
attr_accessor :networks
|
1572
1462
|
# Bank account verification method.
|
1573
|
-
sig { returns(String) }
|
1463
|
+
sig { returns(T.nilable(String)) }
|
1574
1464
|
attr_accessor :verification_method
|
1575
1465
|
sig {
|
1576
|
-
params(financial_connections: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
1466
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
1577
1467
|
}
|
1578
1468
|
def initialize(
|
1579
1469
|
financial_connections: nil,
|
@@ -1583,37 +1473,48 @@ module Stripe
|
|
1583
1473
|
); end
|
1584
1474
|
end
|
1585
1475
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
1586
|
-
sig {
|
1476
|
+
sig {
|
1477
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit))
|
1478
|
+
}
|
1587
1479
|
attr_accessor :acss_debit
|
1588
1480
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
1589
|
-
sig {
|
1481
|
+
sig {
|
1482
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AmazonPay))
|
1483
|
+
}
|
1590
1484
|
attr_accessor :amazon_pay
|
1591
1485
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
1592
|
-
sig {
|
1486
|
+
sig {
|
1487
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit))
|
1488
|
+
}
|
1593
1489
|
attr_accessor :bacs_debit
|
1594
1490
|
# Configuration for any card setup attempted on this SetupIntent.
|
1595
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card) }
|
1491
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card)) }
|
1596
1492
|
attr_accessor :card
|
1597
1493
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
1598
|
-
sig {
|
1494
|
+
sig {
|
1495
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::CardPresent))
|
1496
|
+
}
|
1599
1497
|
attr_accessor :card_present
|
1600
1498
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
1601
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Link) }
|
1499
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Link)) }
|
1602
1500
|
attr_accessor :link
|
1603
1501
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
1604
|
-
sig {
|
1502
|
+
sig {
|
1503
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Paypal))
|
1504
|
+
}
|
1605
1505
|
attr_accessor :paypal
|
1606
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1607
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Payto) }
|
1608
|
-
attr_accessor :payto
|
1609
1506
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1610
|
-
sig {
|
1507
|
+
sig {
|
1508
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit))
|
1509
|
+
}
|
1611
1510
|
attr_accessor :sepa_debit
|
1612
1511
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
1613
|
-
sig {
|
1512
|
+
sig {
|
1513
|
+
returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount))
|
1514
|
+
}
|
1614
1515
|
attr_accessor :us_bank_account
|
1615
1516
|
sig {
|
1616
|
-
params(acss_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Paypal,
|
1517
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions::UsBankAccount)).void
|
1617
1518
|
}
|
1618
1519
|
def initialize(
|
1619
1520
|
acss_debit: nil,
|
@@ -1623,7 +1524,6 @@ module Stripe
|
|
1623
1524
|
card_present: nil,
|
1624
1525
|
link: nil,
|
1625
1526
|
paypal: nil,
|
1626
|
-
payto: nil,
|
1627
1527
|
sepa_debit: nil,
|
1628
1528
|
us_bank_account: nil
|
1629
1529
|
); end
|
@@ -1641,74 +1541,78 @@ module Stripe
|
|
1641
1541
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
1642
1542
|
#
|
1643
1543
|
# It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
1644
|
-
sig { returns(T::Boolean) }
|
1544
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1645
1545
|
attr_accessor :attach_to_self
|
1646
1546
|
# When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.
|
1647
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods) }
|
1547
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods)) }
|
1648
1548
|
attr_accessor :automatic_payment_methods
|
1649
1549
|
# Set to `true` to attempt to confirm this SetupIntent immediately. This parameter defaults to `false`. If a card is the attached payment method, you can provide a `return_url` in case further authentication is necessary.
|
1650
|
-
sig { returns(T::Boolean) }
|
1550
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1651
1551
|
attr_accessor :confirm
|
1652
1552
|
# ID of the ConfirmationToken used to confirm this SetupIntent.
|
1653
1553
|
#
|
1654
1554
|
# If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
|
1655
|
-
sig { returns(String) }
|
1555
|
+
sig { returns(T.nilable(String)) }
|
1656
1556
|
attr_accessor :confirmation_token
|
1657
1557
|
# ID of the Customer this SetupIntent belongs to, if one exists.
|
1658
1558
|
#
|
1659
1559
|
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
1660
|
-
sig { returns(String) }
|
1560
|
+
sig { returns(T.nilable(String)) }
|
1661
1561
|
attr_accessor :customer
|
1662
1562
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1663
|
-
sig { returns(String) }
|
1563
|
+
sig { returns(T.nilable(String)) }
|
1664
1564
|
attr_accessor :description
|
1665
1565
|
# Specifies which fields in the response should be expanded.
|
1666
|
-
sig { returns(T::Array[String]) }
|
1566
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1667
1567
|
attr_accessor :expand
|
1668
1568
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
1669
1569
|
#
|
1670
1570
|
# Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
|
1671
|
-
sig { returns(T::Array[String]) }
|
1571
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1672
1572
|
attr_accessor :flow_directions
|
1673
1573
|
# This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
|
1674
|
-
sig {
|
1574
|
+
sig {
|
1575
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData))))
|
1576
|
+
}
|
1675
1577
|
attr_accessor :mandate_data
|
1676
1578
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1677
|
-
sig { returns(T::Hash[String, String]) }
|
1579
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
1678
1580
|
attr_accessor :metadata
|
1679
1581
|
# The Stripe account ID created for this SetupIntent.
|
1680
|
-
sig { returns(String) }
|
1582
|
+
sig { returns(T.nilable(String)) }
|
1681
1583
|
attr_accessor :on_behalf_of
|
1682
1584
|
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
|
1683
|
-
sig { returns(String) }
|
1585
|
+
sig { returns(T.nilable(String)) }
|
1684
1586
|
attr_accessor :payment_method
|
1685
1587
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
|
1686
|
-
sig { returns(String) }
|
1588
|
+
sig { returns(T.nilable(String)) }
|
1687
1589
|
attr_accessor :payment_method_configuration
|
1688
1590
|
# When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
|
1689
1591
|
# value in the SetupIntent.
|
1690
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodData) }
|
1592
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData)) }
|
1691
1593
|
attr_accessor :payment_method_data
|
1692
1594
|
# Payment method-specific configuration for this SetupIntent.
|
1693
|
-
sig { returns(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions) }
|
1595
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions)) }
|
1694
1596
|
attr_accessor :payment_method_options
|
1695
1597
|
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
1696
|
-
sig { returns(T::Array[String]) }
|
1598
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1697
1599
|
attr_accessor :payment_method_types
|
1698
1600
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
|
1699
|
-
sig { returns(String) }
|
1601
|
+
sig { returns(T.nilable(String)) }
|
1700
1602
|
attr_accessor :return_url
|
1701
1603
|
# If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
|
1702
|
-
|
1604
|
+
#
|
1605
|
+
# Single-use mandates are only valid for the following payment methods: `acss_debit`, `alipay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `boleto`, `ideal`, `link`, `sepa_debit`, and `us_bank_account`.
|
1606
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::CreateParams::SingleUse)) }
|
1703
1607
|
attr_accessor :single_use
|
1704
1608
|
# Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.
|
1705
|
-
sig { returns(String) }
|
1609
|
+
sig { returns(T.nilable(String)) }
|
1706
1610
|
attr_accessor :usage
|
1707
1611
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
1708
|
-
sig { returns(T::Boolean) }
|
1612
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1709
1613
|
attr_accessor :use_stripe_sdk
|
1710
1614
|
sig {
|
1711
|
-
params(attach_to_self: T::Boolean, automatic_payment_methods: ::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods, confirm: T::Boolean, confirmation_token: String, customer: String, description: String, expand: T::Array[String], flow_directions: T::Array[String], mandate_data: T.nilable(::Stripe::SetupIntent::CreateParams::MandateData), metadata: T::Hash[String, String], on_behalf_of: String, payment_method: String, payment_method_configuration: String, payment_method_data: ::Stripe::SetupIntent::CreateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntent::CreateParams::PaymentMethodOptions, payment_method_types: T::Array[String], return_url: String, single_use: ::Stripe::SetupIntent::CreateParams::SingleUse, usage: String, use_stripe_sdk: T::Boolean).void
|
1615
|
+
params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntent::CreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::CreateParams::MandateData))), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntent::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
1712
1616
|
}
|
1713
1617
|
def initialize(
|
1714
1618
|
attach_to_self: nil,
|
@@ -1733,16 +1637,6 @@ module Stripe
|
|
1733
1637
|
use_stripe_sdk: nil
|
1734
1638
|
); end
|
1735
1639
|
end
|
1736
|
-
class RetrieveParams < Stripe::RequestParams
|
1737
|
-
# The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.
|
1738
|
-
sig { returns(String) }
|
1739
|
-
attr_accessor :client_secret
|
1740
|
-
# Specifies which fields in the response should be expanded.
|
1741
|
-
sig { returns(T::Array[String]) }
|
1742
|
-
attr_accessor :expand
|
1743
|
-
sig { params(client_secret: String, expand: T::Array[String]).void }
|
1744
|
-
def initialize(client_secret: nil, expand: nil); end
|
1745
|
-
end
|
1746
1640
|
class UpdateParams < Stripe::RequestParams
|
1747
1641
|
class PaymentMethodData < Stripe::RequestParams
|
1748
1642
|
class AcssDebit < Stripe::RequestParams
|
@@ -1787,39 +1681,42 @@ module Stripe
|
|
1787
1681
|
end
|
1788
1682
|
class BacsDebit < Stripe::RequestParams
|
1789
1683
|
# Account number of the bank account that the funds will be debited from.
|
1790
|
-
sig { returns(String) }
|
1684
|
+
sig { returns(T.nilable(String)) }
|
1791
1685
|
attr_accessor :account_number
|
1792
1686
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
1793
|
-
sig { returns(String) }
|
1687
|
+
sig { returns(T.nilable(String)) }
|
1794
1688
|
attr_accessor :sort_code
|
1795
|
-
sig { params(account_number: String, sort_code: String).void }
|
1689
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
1796
1690
|
def initialize(account_number: nil, sort_code: nil); end
|
1797
1691
|
end
|
1798
1692
|
class Bancontact < Stripe::RequestParams
|
1799
1693
|
|
1694
|
+
end
|
1695
|
+
class Billie < Stripe::RequestParams
|
1696
|
+
|
1800
1697
|
end
|
1801
1698
|
class BillingDetails < Stripe::RequestParams
|
1802
1699
|
class Address < Stripe::RequestParams
|
1803
1700
|
# City, district, suburb, town, or village.
|
1804
|
-
sig { returns(String) }
|
1701
|
+
sig { returns(T.nilable(String)) }
|
1805
1702
|
attr_accessor :city
|
1806
1703
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1807
|
-
sig { returns(String) }
|
1704
|
+
sig { returns(T.nilable(String)) }
|
1808
1705
|
attr_accessor :country
|
1809
1706
|
# Address line 1 (e.g., street, PO Box, or company name).
|
1810
|
-
sig { returns(String) }
|
1707
|
+
sig { returns(T.nilable(String)) }
|
1811
1708
|
attr_accessor :line1
|
1812
1709
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1813
|
-
sig { returns(String) }
|
1710
|
+
sig { returns(T.nilable(String)) }
|
1814
1711
|
attr_accessor :line2
|
1815
1712
|
# ZIP or postal code.
|
1816
|
-
sig { returns(String) }
|
1713
|
+
sig { returns(T.nilable(String)) }
|
1817
1714
|
attr_accessor :postal_code
|
1818
1715
|
# State, county, province, or region.
|
1819
|
-
sig { returns(String) }
|
1716
|
+
sig { returns(T.nilable(String)) }
|
1820
1717
|
attr_accessor :state
|
1821
1718
|
sig {
|
1822
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
1719
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
1823
1720
|
}
|
1824
1721
|
def initialize(
|
1825
1722
|
city: nil,
|
@@ -1832,20 +1729,20 @@ module Stripe
|
|
1832
1729
|
end
|
1833
1730
|
# Billing address.
|
1834
1731
|
sig {
|
1835
|
-
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))
|
1732
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))))
|
1836
1733
|
}
|
1837
1734
|
attr_accessor :address
|
1838
1735
|
# Email address.
|
1839
|
-
sig { returns(T.nilable(String)) }
|
1736
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1840
1737
|
attr_accessor :email
|
1841
1738
|
# Full name.
|
1842
|
-
sig { returns(T.nilable(String)) }
|
1739
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1843
1740
|
attr_accessor :name
|
1844
1741
|
# Billing phone number (including extension).
|
1845
|
-
sig { returns(T.nilable(String)) }
|
1742
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1846
1743
|
attr_accessor :phone
|
1847
1744
|
sig {
|
1848
|
-
params(address: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
1745
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
1849
1746
|
}
|
1850
1747
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
1851
1748
|
end
|
@@ -1867,42 +1764,32 @@ module Stripe
|
|
1867
1764
|
end
|
1868
1765
|
class Eps < Stripe::RequestParams
|
1869
1766
|
# The customer's bank.
|
1870
|
-
sig { returns(String) }
|
1767
|
+
sig { returns(T.nilable(String)) }
|
1871
1768
|
attr_accessor :bank
|
1872
|
-
sig { params(bank: String).void }
|
1769
|
+
sig { params(bank: T.nilable(String)).void }
|
1873
1770
|
def initialize(bank: nil); end
|
1874
1771
|
end
|
1875
1772
|
class Fpx < Stripe::RequestParams
|
1876
1773
|
# Account holder type for FPX transaction
|
1877
|
-
sig { returns(String) }
|
1774
|
+
sig { returns(T.nilable(String)) }
|
1878
1775
|
attr_accessor :account_holder_type
|
1879
1776
|
# The customer's bank.
|
1880
1777
|
sig { returns(String) }
|
1881
1778
|
attr_accessor :bank
|
1882
|
-
sig { params(account_holder_type: String, bank: String).void }
|
1779
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
1883
1780
|
def initialize(account_holder_type: nil, bank: nil); end
|
1884
1781
|
end
|
1885
1782
|
class Giropay < Stripe::RequestParams
|
1886
1783
|
|
1887
|
-
end
|
1888
|
-
class Gopay < Stripe::RequestParams
|
1889
|
-
|
1890
1784
|
end
|
1891
1785
|
class Grabpay < Stripe::RequestParams
|
1892
1786
|
|
1893
|
-
end
|
1894
|
-
class IdBankTransfer < Stripe::RequestParams
|
1895
|
-
# Bank where the account is held.
|
1896
|
-
sig { returns(String) }
|
1897
|
-
attr_accessor :bank
|
1898
|
-
sig { params(bank: String).void }
|
1899
|
-
def initialize(bank: nil); end
|
1900
1787
|
end
|
1901
1788
|
class Ideal < Stripe::RequestParams
|
1902
1789
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1903
|
-
sig { returns(String) }
|
1790
|
+
sig { returns(T.nilable(String)) }
|
1904
1791
|
attr_accessor :bank
|
1905
|
-
sig { params(bank: String).void }
|
1792
|
+
sig { params(bank: T.nilable(String)).void }
|
1906
1793
|
def initialize(bank: nil); end
|
1907
1794
|
end
|
1908
1795
|
class InteracPresent < Stripe::RequestParams
|
@@ -1926,10 +1813,12 @@ module Stripe
|
|
1926
1813
|
def initialize(day: nil, month: nil, year: nil); end
|
1927
1814
|
end
|
1928
1815
|
# Customer's date of birth
|
1929
|
-
sig {
|
1816
|
+
sig {
|
1817
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna::Dob))
|
1818
|
+
}
|
1930
1819
|
attr_accessor :dob
|
1931
1820
|
sig {
|
1932
|
-
params(dob: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna::Dob).void
|
1821
|
+
params(dob: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna::Dob)).void
|
1933
1822
|
}
|
1934
1823
|
def initialize(dob: nil); end
|
1935
1824
|
end
|
@@ -1941,9 +1830,6 @@ module Stripe
|
|
1941
1830
|
end
|
1942
1831
|
class Link < Stripe::RequestParams
|
1943
1832
|
|
1944
|
-
end
|
1945
|
-
class MbWay < Stripe::RequestParams
|
1946
|
-
|
1947
1833
|
end
|
1948
1834
|
class Mobilepay < Stripe::RequestParams
|
1949
1835
|
|
@@ -1953,19 +1839,50 @@ module Stripe
|
|
1953
1839
|
end
|
1954
1840
|
class NaverPay < Stripe::RequestParams
|
1955
1841
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
1956
|
-
sig { returns(String) }
|
1842
|
+
sig { returns(T.nilable(String)) }
|
1957
1843
|
attr_accessor :funding
|
1958
|
-
sig { params(funding: String).void }
|
1844
|
+
sig { params(funding: T.nilable(String)).void }
|
1959
1845
|
def initialize(funding: nil); end
|
1960
1846
|
end
|
1847
|
+
class NzBankAccount < Stripe::RequestParams
|
1848
|
+
# The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
|
1849
|
+
sig { returns(T.nilable(String)) }
|
1850
|
+
attr_accessor :account_holder_name
|
1851
|
+
# The account number for the bank account.
|
1852
|
+
sig { returns(String) }
|
1853
|
+
attr_accessor :account_number
|
1854
|
+
# The numeric code for the bank account's bank.
|
1855
|
+
sig { returns(String) }
|
1856
|
+
attr_accessor :bank_code
|
1857
|
+
# The numeric code for the bank account's bank branch.
|
1858
|
+
sig { returns(String) }
|
1859
|
+
attr_accessor :branch_code
|
1860
|
+
# Attribute for param field reference
|
1861
|
+
sig { returns(T.nilable(String)) }
|
1862
|
+
attr_accessor :reference
|
1863
|
+
# The suffix of the bank account number.
|
1864
|
+
sig { returns(String) }
|
1865
|
+
attr_accessor :suffix
|
1866
|
+
sig {
|
1867
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
1868
|
+
}
|
1869
|
+
def initialize(
|
1870
|
+
account_holder_name: nil,
|
1871
|
+
account_number: nil,
|
1872
|
+
bank_code: nil,
|
1873
|
+
branch_code: nil,
|
1874
|
+
reference: nil,
|
1875
|
+
suffix: nil
|
1876
|
+
); end
|
1877
|
+
end
|
1961
1878
|
class Oxxo < Stripe::RequestParams
|
1962
1879
|
|
1963
1880
|
end
|
1964
1881
|
class P24 < Stripe::RequestParams
|
1965
1882
|
# The customer's bank.
|
1966
|
-
sig { returns(String) }
|
1883
|
+
sig { returns(T.nilable(String)) }
|
1967
1884
|
attr_accessor :bank
|
1968
|
-
sig { params(bank: String).void }
|
1885
|
+
sig { params(bank: T.nilable(String)).void }
|
1969
1886
|
def initialize(bank: nil); end
|
1970
1887
|
end
|
1971
1888
|
class PayByBank < Stripe::RequestParams
|
@@ -1979,63 +1896,28 @@ module Stripe
|
|
1979
1896
|
end
|
1980
1897
|
class Paypal < Stripe::RequestParams
|
1981
1898
|
|
1982
|
-
end
|
1983
|
-
class Payto < Stripe::RequestParams
|
1984
|
-
# The account number for the bank account.
|
1985
|
-
sig { returns(String) }
|
1986
|
-
attr_accessor :account_number
|
1987
|
-
# Bank-State-Branch number of the bank account.
|
1988
|
-
sig { returns(String) }
|
1989
|
-
attr_accessor :bsb_number
|
1990
|
-
# The PayID alias for the bank account.
|
1991
|
-
sig { returns(String) }
|
1992
|
-
attr_accessor :pay_id
|
1993
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
1994
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
1995
1899
|
end
|
1996
1900
|
class Pix < Stripe::RequestParams
|
1997
1901
|
|
1998
1902
|
end
|
1999
1903
|
class Promptpay < Stripe::RequestParams
|
2000
1904
|
|
2001
|
-
end
|
2002
|
-
class Qris < Stripe::RequestParams
|
2003
|
-
|
2004
1905
|
end
|
2005
1906
|
class RadarOptions < Stripe::RequestParams
|
2006
1907
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
2007
|
-
sig { returns(String) }
|
1908
|
+
sig { returns(T.nilable(String)) }
|
2008
1909
|
attr_accessor :session
|
2009
|
-
sig { params(session: String).void }
|
1910
|
+
sig { params(session: T.nilable(String)).void }
|
2010
1911
|
def initialize(session: nil); end
|
2011
1912
|
end
|
2012
|
-
class Rechnung < Stripe::RequestParams
|
2013
|
-
class Dob < Stripe::RequestParams
|
2014
|
-
# The day of birth, between 1 and 31.
|
2015
|
-
sig { returns(Integer) }
|
2016
|
-
attr_accessor :day
|
2017
|
-
# The month of birth, between 1 and 12.
|
2018
|
-
sig { returns(Integer) }
|
2019
|
-
attr_accessor :month
|
2020
|
-
# The four-digit year of birth.
|
2021
|
-
sig { returns(Integer) }
|
2022
|
-
attr_accessor :year
|
2023
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
2024
|
-
def initialize(day: nil, month: nil, year: nil); end
|
2025
|
-
end
|
2026
|
-
# Customer's date of birth
|
2027
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung::Dob) }
|
2028
|
-
attr_accessor :dob
|
2029
|
-
sig {
|
2030
|
-
params(dob: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung::Dob).void
|
2031
|
-
}
|
2032
|
-
def initialize(dob: nil); end
|
2033
|
-
end
|
2034
1913
|
class RevolutPay < Stripe::RequestParams
|
2035
1914
|
|
2036
1915
|
end
|
2037
1916
|
class SamsungPay < Stripe::RequestParams
|
2038
1917
|
|
1918
|
+
end
|
1919
|
+
class Satispay < Stripe::RequestParams
|
1920
|
+
|
2039
1921
|
end
|
2040
1922
|
class SepaDebit < Stripe::RequestParams
|
2041
1923
|
# IBAN of the bank account.
|
@@ -2043,9 +1925,6 @@ module Stripe
|
|
2043
1925
|
attr_accessor :iban
|
2044
1926
|
sig { params(iban: String).void }
|
2045
1927
|
def initialize(iban: nil); end
|
2046
|
-
end
|
2047
|
-
class Shopeepay < Stripe::RequestParams
|
2048
|
-
|
2049
1928
|
end
|
2050
1929
|
class Sofort < Stripe::RequestParams
|
2051
1930
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -2062,22 +1941,22 @@ module Stripe
|
|
2062
1941
|
end
|
2063
1942
|
class UsBankAccount < Stripe::RequestParams
|
2064
1943
|
# Account holder type: individual or company.
|
2065
|
-
sig { returns(String) }
|
1944
|
+
sig { returns(T.nilable(String)) }
|
2066
1945
|
attr_accessor :account_holder_type
|
2067
1946
|
# Account number of the bank account.
|
2068
|
-
sig { returns(String) }
|
1947
|
+
sig { returns(T.nilable(String)) }
|
2069
1948
|
attr_accessor :account_number
|
2070
1949
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
2071
|
-
sig { returns(String) }
|
1950
|
+
sig { returns(T.nilable(String)) }
|
2072
1951
|
attr_accessor :account_type
|
2073
1952
|
# The ID of a Financial Connections Account to use as a payment method.
|
2074
|
-
sig { returns(String) }
|
1953
|
+
sig { returns(T.nilable(String)) }
|
2075
1954
|
attr_accessor :financial_connections_account
|
2076
1955
|
# Routing number of the bank account.
|
2077
|
-
sig { returns(String) }
|
1956
|
+
sig { returns(T.nilable(String)) }
|
2078
1957
|
attr_accessor :routing_number
|
2079
1958
|
sig {
|
2080
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
1959
|
+
params(account_holder_type: T.nilable(String), account_number: T.nilable(String), account_type: T.nilable(String), financial_connections_account: T.nilable(String), routing_number: T.nilable(String)).void
|
2081
1960
|
}
|
2082
1961
|
def initialize(
|
2083
1962
|
account_holder_type: nil,
|
@@ -2094,175 +1973,203 @@ module Stripe
|
|
2094
1973
|
|
2095
1974
|
end
|
2096
1975
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
2097
|
-
sig {
|
1976
|
+
sig {
|
1977
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AcssDebit))
|
1978
|
+
}
|
2098
1979
|
attr_accessor :acss_debit
|
2099
1980
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
2100
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm) }
|
1981
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm)) }
|
2101
1982
|
attr_accessor :affirm
|
2102
1983
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
2103
|
-
sig {
|
1984
|
+
sig {
|
1985
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AfterpayClearpay))
|
1986
|
+
}
|
2104
1987
|
attr_accessor :afterpay_clearpay
|
2105
1988
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
2106
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay) }
|
1989
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay)) }
|
2107
1990
|
attr_accessor :alipay
|
2108
1991
|
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
2109
|
-
sig { returns(String) }
|
1992
|
+
sig { returns(T.nilable(String)) }
|
2110
1993
|
attr_accessor :allow_redisplay
|
2111
1994
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
2112
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma) }
|
1995
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma)) }
|
2113
1996
|
attr_accessor :alma
|
2114
1997
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
2115
|
-
sig {
|
1998
|
+
sig {
|
1999
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AmazonPay))
|
2000
|
+
}
|
2116
2001
|
attr_accessor :amazon_pay
|
2117
2002
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
2118
|
-
sig {
|
2003
|
+
sig {
|
2004
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AuBecsDebit))
|
2005
|
+
}
|
2119
2006
|
attr_accessor :au_becs_debit
|
2120
2007
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
2121
|
-
sig {
|
2008
|
+
sig {
|
2009
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BacsDebit))
|
2010
|
+
}
|
2122
2011
|
attr_accessor :bacs_debit
|
2123
2012
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
2124
|
-
sig {
|
2013
|
+
sig {
|
2014
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact))
|
2015
|
+
}
|
2125
2016
|
attr_accessor :bancontact
|
2017
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
2018
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Billie)) }
|
2019
|
+
attr_accessor :billie
|
2126
2020
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
2127
|
-
sig {
|
2021
|
+
sig {
|
2022
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails))
|
2023
|
+
}
|
2128
2024
|
attr_accessor :billing_details
|
2129
2025
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
2130
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik) }
|
2026
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik)) }
|
2131
2027
|
attr_accessor :blik
|
2132
2028
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
2133
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto) }
|
2029
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto)) }
|
2134
2030
|
attr_accessor :boleto
|
2135
2031
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
2136
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp) }
|
2032
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp)) }
|
2137
2033
|
attr_accessor :cashapp
|
2138
2034
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
2139
|
-
sig {
|
2035
|
+
sig {
|
2036
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::CustomerBalance))
|
2037
|
+
}
|
2140
2038
|
attr_accessor :customer_balance
|
2141
2039
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
2142
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps) }
|
2040
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps)) }
|
2143
2041
|
attr_accessor :eps
|
2144
2042
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
2145
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx) }
|
2043
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx)) }
|
2146
2044
|
attr_accessor :fpx
|
2147
2045
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
2148
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay) }
|
2046
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay)) }
|
2149
2047
|
attr_accessor :giropay
|
2150
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
2151
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Gopay) }
|
2152
|
-
attr_accessor :gopay
|
2153
2048
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
2154
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Grabpay) }
|
2049
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Grabpay)) }
|
2155
2050
|
attr_accessor :grabpay
|
2156
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
2157
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::IdBankTransfer) }
|
2158
|
-
attr_accessor :id_bank_transfer
|
2159
2051
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
2160
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Ideal) }
|
2052
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Ideal)) }
|
2161
2053
|
attr_accessor :ideal
|
2162
2054
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
2163
|
-
sig {
|
2055
|
+
sig {
|
2056
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::InteracPresent))
|
2057
|
+
}
|
2164
2058
|
attr_accessor :interac_present
|
2165
2059
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
2166
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KakaoPay) }
|
2060
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KakaoPay)) }
|
2167
2061
|
attr_accessor :kakao_pay
|
2168
2062
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
2169
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna) }
|
2063
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna)) }
|
2170
2064
|
attr_accessor :klarna
|
2171
2065
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
2172
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Konbini) }
|
2066
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Konbini)) }
|
2173
2067
|
attr_accessor :konbini
|
2174
2068
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
2175
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KrCard) }
|
2069
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KrCard)) }
|
2176
2070
|
attr_accessor :kr_card
|
2177
2071
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2178
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Link) }
|
2072
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Link)) }
|
2179
2073
|
attr_accessor :link
|
2180
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
2181
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::MbWay) }
|
2182
|
-
attr_accessor :mb_way
|
2183
2074
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2184
|
-
sig { returns(T::Hash[String, String]) }
|
2075
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
2185
2076
|
attr_accessor :metadata
|
2186
2077
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
2187
|
-
sig {
|
2078
|
+
sig {
|
2079
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Mobilepay))
|
2080
|
+
}
|
2188
2081
|
attr_accessor :mobilepay
|
2189
2082
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
2190
|
-
sig {
|
2083
|
+
sig {
|
2084
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Multibanco))
|
2085
|
+
}
|
2191
2086
|
attr_accessor :multibanco
|
2192
2087
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
2193
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NaverPay) }
|
2088
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NaverPay)) }
|
2194
2089
|
attr_accessor :naver_pay
|
2090
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
2091
|
+
sig {
|
2092
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NzBankAccount))
|
2093
|
+
}
|
2094
|
+
attr_accessor :nz_bank_account
|
2195
2095
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
2196
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Oxxo) }
|
2096
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Oxxo)) }
|
2197
2097
|
attr_accessor :oxxo
|
2198
2098
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
2199
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24) }
|
2099
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24)) }
|
2200
2100
|
attr_accessor :p24
|
2201
2101
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
2202
|
-
sig {
|
2102
|
+
sig {
|
2103
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::PayByBank))
|
2104
|
+
}
|
2203
2105
|
attr_accessor :pay_by_bank
|
2204
2106
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
2205
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco) }
|
2107
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco)) }
|
2206
2108
|
attr_accessor :payco
|
2207
2109
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
2208
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paynow) }
|
2110
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paynow)) }
|
2209
2111
|
attr_accessor :paynow
|
2210
2112
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
2211
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paypal) }
|
2113
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paypal)) }
|
2212
2114
|
attr_accessor :paypal
|
2213
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2214
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payto) }
|
2215
|
-
attr_accessor :payto
|
2216
2115
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
2217
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Pix) }
|
2116
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Pix)) }
|
2218
2117
|
attr_accessor :pix
|
2219
2118
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
2220
|
-
sig {
|
2119
|
+
sig {
|
2120
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Promptpay))
|
2121
|
+
}
|
2221
2122
|
attr_accessor :promptpay
|
2222
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
2223
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Qris) }
|
2224
|
-
attr_accessor :qris
|
2225
2123
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2226
|
-
sig {
|
2124
|
+
sig {
|
2125
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RadarOptions))
|
2126
|
+
}
|
2227
2127
|
attr_accessor :radar_options
|
2228
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
2229
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Rechnung) }
|
2230
|
-
attr_accessor :rechnung
|
2231
2128
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2232
|
-
sig {
|
2129
|
+
sig {
|
2130
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RevolutPay))
|
2131
|
+
}
|
2233
2132
|
attr_accessor :revolut_pay
|
2234
2133
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
2235
|
-
sig {
|
2134
|
+
sig {
|
2135
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SamsungPay))
|
2136
|
+
}
|
2236
2137
|
attr_accessor :samsung_pay
|
2138
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
2139
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Satispay)) }
|
2140
|
+
attr_accessor :satispay
|
2237
2141
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2238
|
-
sig {
|
2142
|
+
sig {
|
2143
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SepaDebit))
|
2144
|
+
}
|
2239
2145
|
attr_accessor :sepa_debit
|
2240
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
2241
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Shopeepay) }
|
2242
|
-
attr_accessor :shopeepay
|
2243
2146
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
2244
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Sofort) }
|
2147
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Sofort)) }
|
2245
2148
|
attr_accessor :sofort
|
2246
2149
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
2247
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Swish) }
|
2150
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Swish)) }
|
2248
2151
|
attr_accessor :swish
|
2249
2152
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
2250
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Twint) }
|
2153
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Twint)) }
|
2251
2154
|
attr_accessor :twint
|
2252
2155
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
2253
2156
|
sig { returns(String) }
|
2254
2157
|
attr_accessor :type
|
2255
2158
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
2256
|
-
sig {
|
2159
|
+
sig {
|
2160
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::UsBankAccount))
|
2161
|
+
}
|
2257
2162
|
attr_accessor :us_bank_account
|
2258
2163
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
2259
|
-
sig {
|
2164
|
+
sig {
|
2165
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::WechatPay))
|
2166
|
+
}
|
2260
2167
|
attr_accessor :wechat_pay
|
2261
2168
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
2262
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip) }
|
2169
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip)) }
|
2263
2170
|
attr_accessor :zip
|
2264
2171
|
sig {
|
2265
|
-
params(acss_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay,
|
2172
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData::Zip)).void
|
2266
2173
|
}
|
2267
2174
|
def initialize(
|
2268
2175
|
acss_debit: nil,
|
@@ -2275,6 +2182,7 @@ module Stripe
|
|
2275
2182
|
au_becs_debit: nil,
|
2276
2183
|
bacs_debit: nil,
|
2277
2184
|
bancontact: nil,
|
2185
|
+
billie: nil,
|
2278
2186
|
billing_details: nil,
|
2279
2187
|
blik: nil,
|
2280
2188
|
boleto: nil,
|
@@ -2283,9 +2191,7 @@ module Stripe
|
|
2283
2191
|
eps: nil,
|
2284
2192
|
fpx: nil,
|
2285
2193
|
giropay: nil,
|
2286
|
-
gopay: nil,
|
2287
2194
|
grabpay: nil,
|
2288
|
-
id_bank_transfer: nil,
|
2289
2195
|
ideal: nil,
|
2290
2196
|
interac_present: nil,
|
2291
2197
|
kakao_pay: nil,
|
@@ -2293,27 +2199,24 @@ module Stripe
|
|
2293
2199
|
konbini: nil,
|
2294
2200
|
kr_card: nil,
|
2295
2201
|
link: nil,
|
2296
|
-
mb_way: nil,
|
2297
2202
|
metadata: nil,
|
2298
2203
|
mobilepay: nil,
|
2299
2204
|
multibanco: nil,
|
2300
2205
|
naver_pay: nil,
|
2206
|
+
nz_bank_account: nil,
|
2301
2207
|
oxxo: nil,
|
2302
2208
|
p24: nil,
|
2303
2209
|
pay_by_bank: nil,
|
2304
2210
|
payco: nil,
|
2305
2211
|
paynow: nil,
|
2306
2212
|
paypal: nil,
|
2307
|
-
payto: nil,
|
2308
2213
|
pix: nil,
|
2309
2214
|
promptpay: nil,
|
2310
|
-
qris: nil,
|
2311
2215
|
radar_options: nil,
|
2312
|
-
rechnung: nil,
|
2313
2216
|
revolut_pay: nil,
|
2314
2217
|
samsung_pay: nil,
|
2218
|
+
satispay: nil,
|
2315
2219
|
sepa_debit: nil,
|
2316
|
-
shopeepay: nil,
|
2317
2220
|
sofort: nil,
|
2318
2221
|
swish: nil,
|
2319
2222
|
twint: nil,
|
@@ -2329,22 +2232,22 @@ module Stripe
|
|
2329
2232
|
# A URL for custom mandate text to render during confirmation step.
|
2330
2233
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
2331
2234
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
2332
|
-
sig { returns(T.nilable(String)) }
|
2235
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2333
2236
|
attr_accessor :custom_mandate_url
|
2334
2237
|
# List of Stripe products where this mandate can be selected automatically.
|
2335
|
-
sig { returns(T::Array[String]) }
|
2238
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2336
2239
|
attr_accessor :default_for
|
2337
2240
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
2338
|
-
sig { returns(String) }
|
2241
|
+
sig { returns(T.nilable(String)) }
|
2339
2242
|
attr_accessor :interval_description
|
2340
2243
|
# Payment schedule for the mandate.
|
2341
|
-
sig { returns(String) }
|
2244
|
+
sig { returns(T.nilable(String)) }
|
2342
2245
|
attr_accessor :payment_schedule
|
2343
2246
|
# Transaction type of the mandate.
|
2344
|
-
sig { returns(String) }
|
2247
|
+
sig { returns(T.nilable(String)) }
|
2345
2248
|
attr_accessor :transaction_type
|
2346
2249
|
sig {
|
2347
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
2250
|
+
params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
|
2348
2251
|
}
|
2349
2252
|
def initialize(
|
2350
2253
|
custom_mandate_url: nil,
|
@@ -2355,18 +2258,18 @@ module Stripe
|
|
2355
2258
|
); end
|
2356
2259
|
end
|
2357
2260
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
2358
|
-
sig { returns(String) }
|
2261
|
+
sig { returns(T.nilable(String)) }
|
2359
2262
|
attr_accessor :currency
|
2360
2263
|
# Additional fields for Mandate creation
|
2361
2264
|
sig {
|
2362
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
2265
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
2363
2266
|
}
|
2364
2267
|
attr_accessor :mandate_options
|
2365
2268
|
# Bank account verification method.
|
2366
|
-
sig { returns(String) }
|
2269
|
+
sig { returns(T.nilable(String)) }
|
2367
2270
|
attr_accessor :verification_method
|
2368
2271
|
sig {
|
2369
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
2272
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
2370
2273
|
}
|
2371
2274
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
2372
2275
|
end
|
@@ -2376,18 +2279,18 @@ module Stripe
|
|
2376
2279
|
class BacsDebit < Stripe::RequestParams
|
2377
2280
|
class MandateOptions < Stripe::RequestParams
|
2378
2281
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
2379
|
-
sig { returns(T.nilable(String)) }
|
2282
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2380
2283
|
attr_accessor :reference_prefix
|
2381
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
2284
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
2382
2285
|
def initialize(reference_prefix: nil); end
|
2383
2286
|
end
|
2384
2287
|
# Additional fields for Mandate creation
|
2385
2288
|
sig {
|
2386
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
2289
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
2387
2290
|
}
|
2388
2291
|
attr_accessor :mandate_options
|
2389
2292
|
sig {
|
2390
|
-
params(mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
2293
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
2391
2294
|
}
|
2392
2295
|
def initialize(mandate_options: nil); end
|
2393
2296
|
end
|
@@ -2403,16 +2306,16 @@ module Stripe
|
|
2403
2306
|
sig { returns(String) }
|
2404
2307
|
attr_accessor :currency
|
2405
2308
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
2406
|
-
sig { returns(String) }
|
2309
|
+
sig { returns(T.nilable(String)) }
|
2407
2310
|
attr_accessor :description
|
2408
2311
|
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
2409
|
-
sig { returns(Integer) }
|
2312
|
+
sig { returns(T.nilable(Integer)) }
|
2410
2313
|
attr_accessor :end_date
|
2411
2314
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
2412
2315
|
sig { returns(String) }
|
2413
2316
|
attr_accessor :interval
|
2414
2317
|
# The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
2415
|
-
sig { returns(Integer) }
|
2318
|
+
sig { returns(T.nilable(Integer)) }
|
2416
2319
|
attr_accessor :interval_count
|
2417
2320
|
# Unique identifier for the mandate or subscription.
|
2418
2321
|
sig { returns(String) }
|
@@ -2421,10 +2324,10 @@ module Stripe
|
|
2421
2324
|
sig { returns(Integer) }
|
2422
2325
|
attr_accessor :start_date
|
2423
2326
|
# Specifies the type of mandates supported. Possible values are `india`.
|
2424
|
-
sig { returns(T::Array[String]) }
|
2327
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2425
2328
|
attr_accessor :supported_types
|
2426
2329
|
sig {
|
2427
|
-
params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
|
2330
|
+
params(amount: Integer, amount_type: String, currency: String, description: T.nilable(String), end_date: T.nilable(Integer), interval: String, interval_count: T.nilable(Integer), reference: String, start_date: Integer, supported_types: T.nilable(T::Array[String])).void
|
2428
2331
|
}
|
2429
2332
|
def initialize(
|
2430
2333
|
amount: nil,
|
@@ -2451,58 +2354,60 @@ module Stripe
|
|
2451
2354
|
# message extension: CB-EXEMPTION; string (4 characters)
|
2452
2355
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
2453
2356
|
# bit first) that has been Base64 encoded
|
2454
|
-
sig { returns(String) }
|
2357
|
+
sig { returns(T.nilable(String)) }
|
2455
2358
|
attr_accessor :cb_exemption
|
2456
2359
|
# The risk score returned from Cartes Bancaires in the ARes.
|
2457
2360
|
# message extension: CB-SCORE; numeric value 0-99
|
2458
|
-
sig { returns(Integer) }
|
2361
|
+
sig { returns(T.nilable(Integer)) }
|
2459
2362
|
attr_accessor :cb_score
|
2460
|
-
sig {
|
2363
|
+
sig {
|
2364
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
2365
|
+
}
|
2461
2366
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
2462
2367
|
end
|
2463
2368
|
# Cartes Bancaires-specific 3DS fields.
|
2464
2369
|
sig {
|
2465
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
2370
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
2466
2371
|
}
|
2467
2372
|
attr_accessor :cartes_bancaires
|
2468
2373
|
sig {
|
2469
|
-
params(cartes_bancaires: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
2374
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
2470
2375
|
}
|
2471
2376
|
def initialize(cartes_bancaires: nil); end
|
2472
2377
|
end
|
2473
2378
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
2474
|
-
sig { returns(String) }
|
2379
|
+
sig { returns(T.nilable(String)) }
|
2475
2380
|
attr_accessor :ares_trans_status
|
2476
2381
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
2477
2382
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
2478
2383
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
2479
2384
|
# is what you should specify here.)
|
2480
|
-
sig { returns(String) }
|
2385
|
+
sig { returns(T.nilable(String)) }
|
2481
2386
|
attr_accessor :cryptogram
|
2482
2387
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
2483
2388
|
# provider and indicates what degree of authentication was performed.
|
2484
|
-
sig { returns(String) }
|
2389
|
+
sig { returns(T.nilable(String)) }
|
2485
2390
|
attr_accessor :electronic_commerce_indicator
|
2486
2391
|
# Network specific 3DS fields. Network specific arguments require an
|
2487
2392
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
2488
2393
|
# must be populated accordingly
|
2489
2394
|
sig {
|
2490
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
2395
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
2491
2396
|
}
|
2492
2397
|
attr_accessor :network_options
|
2493
2398
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
2494
2399
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
2495
|
-
sig { returns(String) }
|
2400
|
+
sig { returns(T.nilable(String)) }
|
2496
2401
|
attr_accessor :requestor_challenge_indicator
|
2497
2402
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
2498
2403
|
# Transaction ID (dsTransID).
|
2499
|
-
sig { returns(String) }
|
2404
|
+
sig { returns(T.nilable(String)) }
|
2500
2405
|
attr_accessor :transaction_id
|
2501
2406
|
# The version of 3D Secure that was performed.
|
2502
|
-
sig { returns(String) }
|
2407
|
+
sig { returns(T.nilable(String)) }
|
2503
2408
|
attr_accessor :version
|
2504
2409
|
sig {
|
2505
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
2410
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
2506
2411
|
}
|
2507
2412
|
def initialize(
|
2508
2413
|
ares_trans_status: nil,
|
@@ -2516,28 +2421,28 @@ module Stripe
|
|
2516
2421
|
end
|
2517
2422
|
# Configuration options for setting up an eMandate for cards issued in India.
|
2518
2423
|
sig {
|
2519
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions)
|
2424
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions))
|
2520
2425
|
}
|
2521
2426
|
attr_accessor :mandate_options
|
2522
2427
|
# When specified, this parameter signals that a card has been collected
|
2523
2428
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
2524
2429
|
# parameter can only be provided during confirmation.
|
2525
|
-
sig { returns(T::Boolean) }
|
2430
|
+
sig { returns(T.nilable(T::Boolean)) }
|
2526
2431
|
attr_accessor :moto
|
2527
2432
|
# Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
|
2528
|
-
sig { returns(String) }
|
2433
|
+
sig { returns(T.nilable(String)) }
|
2529
2434
|
attr_accessor :network
|
2530
2435
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
2531
|
-
sig { returns(String) }
|
2436
|
+
sig { returns(T.nilable(String)) }
|
2532
2437
|
attr_accessor :request_three_d_secure
|
2533
2438
|
# If 3D Secure authentication was performed with a third-party provider,
|
2534
2439
|
# the authentication details to use for this setup.
|
2535
2440
|
sig {
|
2536
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)
|
2441
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure))
|
2537
2442
|
}
|
2538
2443
|
attr_accessor :three_d_secure
|
2539
2444
|
sig {
|
2540
|
-
params(mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
2445
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_three_d_secure: T.nilable(String), three_d_secure: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
2541
2446
|
}
|
2542
2447
|
def initialize(
|
2543
2448
|
mandate_options: nil,
|
@@ -2552,87 +2457,33 @@ module Stripe
|
|
2552
2457
|
end
|
2553
2458
|
class Link < Stripe::RequestParams
|
2554
2459
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
2555
|
-
sig { returns(String) }
|
2460
|
+
sig { returns(T.nilable(String)) }
|
2556
2461
|
attr_accessor :persistent_token
|
2557
|
-
sig { params(persistent_token: String).void }
|
2462
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
2558
2463
|
def initialize(persistent_token: nil); end
|
2559
2464
|
end
|
2560
2465
|
class Paypal < Stripe::RequestParams
|
2561
2466
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
2562
|
-
sig { returns(String) }
|
2467
|
+
sig { returns(T.nilable(String)) }
|
2563
2468
|
attr_accessor :billing_agreement_id
|
2564
|
-
|
2565
|
-
|
2566
|
-
attr_accessor :currency
|
2567
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
2568
|
-
sig { returns(T::Array[String]) }
|
2569
|
-
attr_accessor :subsellers
|
2570
|
-
sig {
|
2571
|
-
params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
|
2572
|
-
}
|
2573
|
-
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
|
2469
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
2470
|
+
def initialize(billing_agreement_id: nil); end
|
2574
2471
|
end
|
2575
|
-
class
|
2576
|
-
class MandateOptions < Stripe::RequestParams
|
2577
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2578
|
-
sig { returns(Integer) }
|
2579
|
-
attr_accessor :amount
|
2580
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
2581
|
-
sig { returns(String) }
|
2582
|
-
attr_accessor :amount_type
|
2583
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2584
|
-
sig { returns(String) }
|
2585
|
-
attr_accessor :end_date
|
2586
|
-
# The periodicity at which payments will be collected.
|
2587
|
-
sig { returns(String) }
|
2588
|
-
attr_accessor :payment_schedule
|
2589
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
2590
|
-
sig { returns(Integer) }
|
2591
|
-
attr_accessor :payments_per_period
|
2592
|
-
# The purpose for which payments are made. Defaults to retail.
|
2593
|
-
sig { returns(String) }
|
2594
|
-
attr_accessor :purpose
|
2595
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
2596
|
-
sig { returns(String) }
|
2597
|
-
attr_accessor :start_date
|
2598
|
-
sig {
|
2599
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
2600
|
-
}
|
2601
|
-
def initialize(
|
2602
|
-
amount: nil,
|
2603
|
-
amount_type: nil,
|
2604
|
-
end_date: nil,
|
2605
|
-
payment_schedule: nil,
|
2606
|
-
payments_per_period: nil,
|
2607
|
-
purpose: nil,
|
2608
|
-
start_date: nil
|
2609
|
-
); end
|
2610
|
-
end
|
2611
|
-
# Additional fields for Mandate creation.
|
2612
|
-
sig {
|
2613
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Payto::MandateOptions)
|
2614
|
-
}
|
2615
|
-
attr_accessor :mandate_options
|
2616
|
-
sig {
|
2617
|
-
params(mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Payto::MandateOptions).void
|
2618
|
-
}
|
2619
|
-
def initialize(mandate_options: nil); end
|
2620
|
-
end
|
2621
|
-
class SepaDebit < Stripe::RequestParams
|
2472
|
+
class SepaDebit < Stripe::RequestParams
|
2622
2473
|
class MandateOptions < Stripe::RequestParams
|
2623
2474
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
2624
|
-
sig { returns(T.nilable(String)) }
|
2475
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2625
2476
|
attr_accessor :reference_prefix
|
2626
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
2477
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
2627
2478
|
def initialize(reference_prefix: nil); end
|
2628
2479
|
end
|
2629
2480
|
# Additional fields for Mandate creation
|
2630
2481
|
sig {
|
2631
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
2482
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
2632
2483
|
}
|
2633
2484
|
attr_accessor :mandate_options
|
2634
2485
|
sig {
|
2635
|
-
params(mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
2486
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
2636
2487
|
}
|
2637
2488
|
def initialize(mandate_options: nil); end
|
2638
2489
|
end
|
@@ -2640,85 +2491,64 @@ module Stripe
|
|
2640
2491
|
class FinancialConnections < Stripe::RequestParams
|
2641
2492
|
class Filters < Stripe::RequestParams
|
2642
2493
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
2643
|
-
sig { returns(T::Array[String]) }
|
2494
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2644
2495
|
attr_accessor :account_subcategories
|
2645
|
-
|
2646
|
-
|
2647
|
-
attr_accessor :institution
|
2648
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
2649
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
2650
|
-
end
|
2651
|
-
class ManualEntry < Stripe::RequestParams
|
2652
|
-
# Settings for configuring manual entry of account details.
|
2653
|
-
sig { returns(String) }
|
2654
|
-
attr_accessor :mode
|
2655
|
-
sig { params(mode: String).void }
|
2656
|
-
def initialize(mode: nil); end
|
2496
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
2497
|
+
def initialize(account_subcategories: nil); end
|
2657
2498
|
end
|
2658
2499
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
2659
2500
|
sig {
|
2660
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
2501
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
2661
2502
|
}
|
2662
2503
|
attr_accessor :filters
|
2663
|
-
# Customize manual entry behavior
|
2664
|
-
sig {
|
2665
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
2666
|
-
}
|
2667
|
-
attr_accessor :manual_entry
|
2668
2504
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
2669
|
-
sig { returns(T::Array[String]) }
|
2505
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2670
2506
|
attr_accessor :permissions
|
2671
2507
|
# List of data features that you would like to retrieve upon account creation.
|
2672
|
-
sig { returns(T::Array[String]) }
|
2508
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2673
2509
|
attr_accessor :prefetch
|
2674
2510
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
2675
|
-
sig { returns(String) }
|
2511
|
+
sig { returns(T.nilable(String)) }
|
2676
2512
|
attr_accessor :return_url
|
2677
2513
|
sig {
|
2678
|
-
params(filters: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
2514
|
+
params(filters: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
2679
2515
|
}
|
2680
|
-
def initialize(
|
2681
|
-
filters: nil,
|
2682
|
-
manual_entry: nil,
|
2683
|
-
permissions: nil,
|
2684
|
-
prefetch: nil,
|
2685
|
-
return_url: nil
|
2686
|
-
); end
|
2516
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
2687
2517
|
end
|
2688
2518
|
class MandateOptions < Stripe::RequestParams
|
2689
2519
|
# The method used to collect offline mandate customer acceptance.
|
2690
|
-
sig { returns(T.nilable(String)) }
|
2520
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2691
2521
|
attr_accessor :collection_method
|
2692
|
-
sig { params(collection_method: T.nilable(String)).void }
|
2522
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
2693
2523
|
def initialize(collection_method: nil); end
|
2694
2524
|
end
|
2695
2525
|
class Networks < Stripe::RequestParams
|
2696
2526
|
# Triggers validations to run across the selected networks
|
2697
|
-
sig { returns(T::Array[String]) }
|
2527
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2698
2528
|
attr_accessor :requested
|
2699
|
-
sig { params(requested: T::Array[String]).void }
|
2529
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
2700
2530
|
def initialize(requested: nil); end
|
2701
2531
|
end
|
2702
2532
|
# Additional fields for Financial Connections Session creation
|
2703
2533
|
sig {
|
2704
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
2534
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
2705
2535
|
}
|
2706
2536
|
attr_accessor :financial_connections
|
2707
2537
|
# Additional fields for Mandate creation
|
2708
2538
|
sig {
|
2709
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
2539
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
2710
2540
|
}
|
2711
2541
|
attr_accessor :mandate_options
|
2712
2542
|
# Additional fields for network related functions
|
2713
2543
|
sig {
|
2714
|
-
returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks)
|
2544
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks))
|
2715
2545
|
}
|
2716
2546
|
attr_accessor :networks
|
2717
2547
|
# Bank account verification method.
|
2718
|
-
sig { returns(String) }
|
2548
|
+
sig { returns(T.nilable(String)) }
|
2719
2549
|
attr_accessor :verification_method
|
2720
2550
|
sig {
|
2721
|
-
params(financial_connections: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
2551
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
2722
2552
|
}
|
2723
2553
|
def initialize(
|
2724
2554
|
financial_connections: nil,
|
@@ -2728,37 +2558,48 @@ module Stripe
|
|
2728
2558
|
); end
|
2729
2559
|
end
|
2730
2560
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
2731
|
-
sig {
|
2561
|
+
sig {
|
2562
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit))
|
2563
|
+
}
|
2732
2564
|
attr_accessor :acss_debit
|
2733
2565
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
2734
|
-
sig {
|
2566
|
+
sig {
|
2567
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AmazonPay))
|
2568
|
+
}
|
2735
2569
|
attr_accessor :amazon_pay
|
2736
2570
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
2737
|
-
sig {
|
2571
|
+
sig {
|
2572
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit))
|
2573
|
+
}
|
2738
2574
|
attr_accessor :bacs_debit
|
2739
2575
|
# Configuration for any card setup attempted on this SetupIntent.
|
2740
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card) }
|
2576
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card)) }
|
2741
2577
|
attr_accessor :card
|
2742
2578
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
2743
|
-
sig {
|
2579
|
+
sig {
|
2580
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::CardPresent))
|
2581
|
+
}
|
2744
2582
|
attr_accessor :card_present
|
2745
2583
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
2746
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Link) }
|
2584
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Link)) }
|
2747
2585
|
attr_accessor :link
|
2748
2586
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2749
|
-
sig {
|
2587
|
+
sig {
|
2588
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Paypal))
|
2589
|
+
}
|
2750
2590
|
attr_accessor :paypal
|
2751
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
2752
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Payto) }
|
2753
|
-
attr_accessor :payto
|
2754
2591
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2755
|
-
sig {
|
2592
|
+
sig {
|
2593
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit))
|
2594
|
+
}
|
2756
2595
|
attr_accessor :sepa_debit
|
2757
2596
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
2758
|
-
sig {
|
2597
|
+
sig {
|
2598
|
+
returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount))
|
2599
|
+
}
|
2759
2600
|
attr_accessor :us_bank_account
|
2760
2601
|
sig {
|
2761
|
-
params(acss_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Paypal,
|
2602
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::UsBankAccount)).void
|
2762
2603
|
}
|
2763
2604
|
def initialize(
|
2764
2605
|
acss_debit: nil,
|
@@ -2768,7 +2609,6 @@ module Stripe
|
|
2768
2609
|
card_present: nil,
|
2769
2610
|
link: nil,
|
2770
2611
|
paypal: nil,
|
2771
|
-
payto: nil,
|
2772
2612
|
sepa_debit: nil,
|
2773
2613
|
us_bank_account: nil
|
2774
2614
|
); end
|
@@ -2776,45 +2616,45 @@ module Stripe
|
|
2776
2616
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
2777
2617
|
#
|
2778
2618
|
# It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
2779
|
-
sig { returns(T::Boolean) }
|
2619
|
+
sig { returns(T.nilable(T::Boolean)) }
|
2780
2620
|
attr_accessor :attach_to_self
|
2781
2621
|
# ID of the Customer this SetupIntent belongs to, if one exists.
|
2782
2622
|
#
|
2783
2623
|
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
2784
|
-
sig { returns(String) }
|
2624
|
+
sig { returns(T.nilable(String)) }
|
2785
2625
|
attr_accessor :customer
|
2786
2626
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2787
|
-
sig { returns(String) }
|
2627
|
+
sig { returns(T.nilable(String)) }
|
2788
2628
|
attr_accessor :description
|
2789
2629
|
# Specifies which fields in the response should be expanded.
|
2790
|
-
sig { returns(T::Array[String]) }
|
2630
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2791
2631
|
attr_accessor :expand
|
2792
2632
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
2793
2633
|
#
|
2794
2634
|
# Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
|
2795
|
-
sig { returns(T::Array[String]) }
|
2635
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2796
2636
|
attr_accessor :flow_directions
|
2797
2637
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2798
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
2638
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
2799
2639
|
attr_accessor :metadata
|
2800
2640
|
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
|
2801
|
-
sig { returns(String) }
|
2641
|
+
sig { returns(T.nilable(String)) }
|
2802
2642
|
attr_accessor :payment_method
|
2803
2643
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
|
2804
|
-
sig { returns(String) }
|
2644
|
+
sig { returns(T.nilable(String)) }
|
2805
2645
|
attr_accessor :payment_method_configuration
|
2806
2646
|
# When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
|
2807
2647
|
# value in the SetupIntent.
|
2808
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodData) }
|
2648
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData)) }
|
2809
2649
|
attr_accessor :payment_method_data
|
2810
2650
|
# Payment method-specific configuration for this SetupIntent.
|
2811
|
-
sig { returns(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions) }
|
2651
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions)) }
|
2812
2652
|
attr_accessor :payment_method_options
|
2813
2653
|
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
2814
|
-
sig { returns(T::Array[String]) }
|
2654
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2815
2655
|
attr_accessor :payment_method_types
|
2816
2656
|
sig {
|
2817
|
-
params(attach_to_self: T::Boolean, customer: String, description: String, expand: T::Array[String], flow_directions: T::Array[String], metadata: T.nilable(T::Hash[String, String]), payment_method: String, payment_method_configuration: String, payment_method_data: ::Stripe::SetupIntent::UpdateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions, payment_method_types: T::Array[String]).void
|
2657
|
+
params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
|
2818
2658
|
}
|
2819
2659
|
def initialize(
|
2820
2660
|
attach_to_self: nil,
|
@@ -2832,12 +2672,14 @@ module Stripe
|
|
2832
2672
|
end
|
2833
2673
|
class CancelParams < Stripe::RequestParams
|
2834
2674
|
# Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`
|
2835
|
-
sig { returns(String) }
|
2675
|
+
sig { returns(T.nilable(String)) }
|
2836
2676
|
attr_accessor :cancellation_reason
|
2837
2677
|
# Specifies which fields in the response should be expanded.
|
2838
|
-
sig { returns(T::Array[String]) }
|
2678
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2839
2679
|
attr_accessor :expand
|
2840
|
-
sig {
|
2680
|
+
sig {
|
2681
|
+
params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String])).void
|
2682
|
+
}
|
2841
2683
|
def initialize(cancellation_reason: nil, expand: nil); end
|
2842
2684
|
end
|
2843
2685
|
class ConfirmParams < Stripe::RequestParams
|
@@ -2848,40 +2690,42 @@ module Stripe
|
|
2848
2690
|
end
|
2849
2691
|
class Online < Stripe::RequestParams
|
2850
2692
|
# The IP address from which the Mandate was accepted by the customer.
|
2851
|
-
sig { returns(String) }
|
2693
|
+
sig { returns(T.nilable(String)) }
|
2852
2694
|
attr_accessor :ip_address
|
2853
2695
|
# The user agent of the browser from which the Mandate was accepted by the customer.
|
2854
|
-
sig { returns(String) }
|
2696
|
+
sig { returns(T.nilable(String)) }
|
2855
2697
|
attr_accessor :user_agent
|
2856
|
-
sig { params(ip_address: String, user_agent: String).void }
|
2698
|
+
sig { params(ip_address: T.nilable(String), user_agent: T.nilable(String)).void }
|
2857
2699
|
def initialize(ip_address: nil, user_agent: nil); end
|
2858
2700
|
end
|
2859
2701
|
# The time at which the customer accepted the Mandate.
|
2860
|
-
sig { returns(Integer) }
|
2702
|
+
sig { returns(T.nilable(Integer)) }
|
2861
2703
|
attr_accessor :accepted_at
|
2862
2704
|
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
2863
2705
|
sig {
|
2864
|
-
returns(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Offline)
|
2706
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Offline))
|
2865
2707
|
}
|
2866
2708
|
attr_accessor :offline
|
2867
2709
|
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
2868
2710
|
sig {
|
2869
|
-
returns(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Online)
|
2711
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Online))
|
2870
2712
|
}
|
2871
2713
|
attr_accessor :online
|
2872
2714
|
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
2873
2715
|
sig { returns(String) }
|
2874
2716
|
attr_accessor :type
|
2875
2717
|
sig {
|
2876
|
-
params(accepted_at: Integer, offline: ::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Online, type: String).void
|
2718
|
+
params(accepted_at: T.nilable(Integer), offline: T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Offline), online: T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance::Online), type: String).void
|
2877
2719
|
}
|
2878
2720
|
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
|
2879
2721
|
end
|
2880
2722
|
# This hash contains details about the customer acceptance of the Mandate.
|
2881
|
-
sig {
|
2723
|
+
sig {
|
2724
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance))
|
2725
|
+
}
|
2882
2726
|
attr_accessor :customer_acceptance
|
2883
2727
|
sig {
|
2884
|
-
params(customer_acceptance: ::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance).void
|
2728
|
+
params(customer_acceptance: T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData::CustomerAcceptance)).void
|
2885
2729
|
}
|
2886
2730
|
def initialize(customer_acceptance: nil); end
|
2887
2731
|
end
|
@@ -2928,39 +2772,42 @@ module Stripe
|
|
2928
2772
|
end
|
2929
2773
|
class BacsDebit < Stripe::RequestParams
|
2930
2774
|
# Account number of the bank account that the funds will be debited from.
|
2931
|
-
sig { returns(String) }
|
2775
|
+
sig { returns(T.nilable(String)) }
|
2932
2776
|
attr_accessor :account_number
|
2933
2777
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
2934
|
-
sig { returns(String) }
|
2778
|
+
sig { returns(T.nilable(String)) }
|
2935
2779
|
attr_accessor :sort_code
|
2936
|
-
sig { params(account_number: String, sort_code: String).void }
|
2780
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
2937
2781
|
def initialize(account_number: nil, sort_code: nil); end
|
2938
2782
|
end
|
2939
2783
|
class Bancontact < Stripe::RequestParams
|
2940
2784
|
|
2785
|
+
end
|
2786
|
+
class Billie < Stripe::RequestParams
|
2787
|
+
|
2941
2788
|
end
|
2942
2789
|
class BillingDetails < Stripe::RequestParams
|
2943
2790
|
class Address < Stripe::RequestParams
|
2944
2791
|
# City, district, suburb, town, or village.
|
2945
|
-
sig { returns(String) }
|
2792
|
+
sig { returns(T.nilable(String)) }
|
2946
2793
|
attr_accessor :city
|
2947
2794
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2948
|
-
sig { returns(String) }
|
2795
|
+
sig { returns(T.nilable(String)) }
|
2949
2796
|
attr_accessor :country
|
2950
2797
|
# Address line 1 (e.g., street, PO Box, or company name).
|
2951
|
-
sig { returns(String) }
|
2798
|
+
sig { returns(T.nilable(String)) }
|
2952
2799
|
attr_accessor :line1
|
2953
2800
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2954
|
-
sig { returns(String) }
|
2801
|
+
sig { returns(T.nilable(String)) }
|
2955
2802
|
attr_accessor :line2
|
2956
2803
|
# ZIP or postal code.
|
2957
|
-
sig { returns(String) }
|
2804
|
+
sig { returns(T.nilable(String)) }
|
2958
2805
|
attr_accessor :postal_code
|
2959
2806
|
# State, county, province, or region.
|
2960
|
-
sig { returns(String) }
|
2807
|
+
sig { returns(T.nilable(String)) }
|
2961
2808
|
attr_accessor :state
|
2962
2809
|
sig {
|
2963
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
2810
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
2964
2811
|
}
|
2965
2812
|
def initialize(
|
2966
2813
|
city: nil,
|
@@ -2973,20 +2820,20 @@ module Stripe
|
|
2973
2820
|
end
|
2974
2821
|
# Billing address.
|
2975
2822
|
sig {
|
2976
|
-
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))
|
2823
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
|
2977
2824
|
}
|
2978
2825
|
attr_accessor :address
|
2979
2826
|
# Email address.
|
2980
|
-
sig { returns(T.nilable(String)) }
|
2827
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2981
2828
|
attr_accessor :email
|
2982
2829
|
# Full name.
|
2983
|
-
sig { returns(T.nilable(String)) }
|
2830
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2984
2831
|
attr_accessor :name
|
2985
2832
|
# Billing phone number (including extension).
|
2986
|
-
sig { returns(T.nilable(String)) }
|
2833
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2987
2834
|
attr_accessor :phone
|
2988
2835
|
sig {
|
2989
|
-
params(address: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
2836
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
2990
2837
|
}
|
2991
2838
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
2992
2839
|
end
|
@@ -3008,42 +2855,32 @@ module Stripe
|
|
3008
2855
|
end
|
3009
2856
|
class Eps < Stripe::RequestParams
|
3010
2857
|
# The customer's bank.
|
3011
|
-
sig { returns(String) }
|
2858
|
+
sig { returns(T.nilable(String)) }
|
3012
2859
|
attr_accessor :bank
|
3013
|
-
sig { params(bank: String).void }
|
2860
|
+
sig { params(bank: T.nilable(String)).void }
|
3014
2861
|
def initialize(bank: nil); end
|
3015
2862
|
end
|
3016
2863
|
class Fpx < Stripe::RequestParams
|
3017
2864
|
# Account holder type for FPX transaction
|
3018
|
-
sig { returns(String) }
|
2865
|
+
sig { returns(T.nilable(String)) }
|
3019
2866
|
attr_accessor :account_holder_type
|
3020
2867
|
# The customer's bank.
|
3021
2868
|
sig { returns(String) }
|
3022
2869
|
attr_accessor :bank
|
3023
|
-
sig { params(account_holder_type: String, bank: String).void }
|
2870
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
3024
2871
|
def initialize(account_holder_type: nil, bank: nil); end
|
3025
2872
|
end
|
3026
2873
|
class Giropay < Stripe::RequestParams
|
3027
2874
|
|
3028
|
-
end
|
3029
|
-
class Gopay < Stripe::RequestParams
|
3030
|
-
|
3031
2875
|
end
|
3032
2876
|
class Grabpay < Stripe::RequestParams
|
3033
2877
|
|
3034
|
-
end
|
3035
|
-
class IdBankTransfer < Stripe::RequestParams
|
3036
|
-
# Bank where the account is held.
|
3037
|
-
sig { returns(String) }
|
3038
|
-
attr_accessor :bank
|
3039
|
-
sig { params(bank: String).void }
|
3040
|
-
def initialize(bank: nil); end
|
3041
2878
|
end
|
3042
2879
|
class Ideal < Stripe::RequestParams
|
3043
2880
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
3044
|
-
sig { returns(String) }
|
2881
|
+
sig { returns(T.nilable(String)) }
|
3045
2882
|
attr_accessor :bank
|
3046
|
-
sig { params(bank: String).void }
|
2883
|
+
sig { params(bank: T.nilable(String)).void }
|
3047
2884
|
def initialize(bank: nil); end
|
3048
2885
|
end
|
3049
2886
|
class InteracPresent < Stripe::RequestParams
|
@@ -3067,10 +2904,12 @@ module Stripe
|
|
3067
2904
|
def initialize(day: nil, month: nil, year: nil); end
|
3068
2905
|
end
|
3069
2906
|
# Customer's date of birth
|
3070
|
-
sig {
|
2907
|
+
sig {
|
2908
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna::Dob))
|
2909
|
+
}
|
3071
2910
|
attr_accessor :dob
|
3072
2911
|
sig {
|
3073
|
-
params(dob: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna::Dob).void
|
2912
|
+
params(dob: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna::Dob)).void
|
3074
2913
|
}
|
3075
2914
|
def initialize(dob: nil); end
|
3076
2915
|
end
|
@@ -3082,9 +2921,6 @@ module Stripe
|
|
3082
2921
|
end
|
3083
2922
|
class Link < Stripe::RequestParams
|
3084
2923
|
|
3085
|
-
end
|
3086
|
-
class MbWay < Stripe::RequestParams
|
3087
|
-
|
3088
2924
|
end
|
3089
2925
|
class Mobilepay < Stripe::RequestParams
|
3090
2926
|
|
@@ -3094,19 +2930,50 @@ module Stripe
|
|
3094
2930
|
end
|
3095
2931
|
class NaverPay < Stripe::RequestParams
|
3096
2932
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
3097
|
-
sig { returns(String) }
|
2933
|
+
sig { returns(T.nilable(String)) }
|
3098
2934
|
attr_accessor :funding
|
3099
|
-
sig { params(funding: String).void }
|
2935
|
+
sig { params(funding: T.nilable(String)).void }
|
3100
2936
|
def initialize(funding: nil); end
|
3101
2937
|
end
|
2938
|
+
class NzBankAccount < Stripe::RequestParams
|
2939
|
+
# The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
|
2940
|
+
sig { returns(T.nilable(String)) }
|
2941
|
+
attr_accessor :account_holder_name
|
2942
|
+
# The account number for the bank account.
|
2943
|
+
sig { returns(String) }
|
2944
|
+
attr_accessor :account_number
|
2945
|
+
# The numeric code for the bank account's bank.
|
2946
|
+
sig { returns(String) }
|
2947
|
+
attr_accessor :bank_code
|
2948
|
+
# The numeric code for the bank account's bank branch.
|
2949
|
+
sig { returns(String) }
|
2950
|
+
attr_accessor :branch_code
|
2951
|
+
# Attribute for param field reference
|
2952
|
+
sig { returns(T.nilable(String)) }
|
2953
|
+
attr_accessor :reference
|
2954
|
+
# The suffix of the bank account number.
|
2955
|
+
sig { returns(String) }
|
2956
|
+
attr_accessor :suffix
|
2957
|
+
sig {
|
2958
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
2959
|
+
}
|
2960
|
+
def initialize(
|
2961
|
+
account_holder_name: nil,
|
2962
|
+
account_number: nil,
|
2963
|
+
bank_code: nil,
|
2964
|
+
branch_code: nil,
|
2965
|
+
reference: nil,
|
2966
|
+
suffix: nil
|
2967
|
+
); end
|
2968
|
+
end
|
3102
2969
|
class Oxxo < Stripe::RequestParams
|
3103
2970
|
|
3104
2971
|
end
|
3105
2972
|
class P24 < Stripe::RequestParams
|
3106
2973
|
# The customer's bank.
|
3107
|
-
sig { returns(String) }
|
2974
|
+
sig { returns(T.nilable(String)) }
|
3108
2975
|
attr_accessor :bank
|
3109
|
-
sig { params(bank: String).void }
|
2976
|
+
sig { params(bank: T.nilable(String)).void }
|
3110
2977
|
def initialize(bank: nil); end
|
3111
2978
|
end
|
3112
2979
|
class PayByBank < Stripe::RequestParams
|
@@ -3120,63 +2987,28 @@ module Stripe
|
|
3120
2987
|
end
|
3121
2988
|
class Paypal < Stripe::RequestParams
|
3122
2989
|
|
3123
|
-
end
|
3124
|
-
class Payto < Stripe::RequestParams
|
3125
|
-
# The account number for the bank account.
|
3126
|
-
sig { returns(String) }
|
3127
|
-
attr_accessor :account_number
|
3128
|
-
# Bank-State-Branch number of the bank account.
|
3129
|
-
sig { returns(String) }
|
3130
|
-
attr_accessor :bsb_number
|
3131
|
-
# The PayID alias for the bank account.
|
3132
|
-
sig { returns(String) }
|
3133
|
-
attr_accessor :pay_id
|
3134
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
3135
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
3136
2990
|
end
|
3137
2991
|
class Pix < Stripe::RequestParams
|
3138
2992
|
|
3139
2993
|
end
|
3140
2994
|
class Promptpay < Stripe::RequestParams
|
3141
2995
|
|
3142
|
-
end
|
3143
|
-
class Qris < Stripe::RequestParams
|
3144
|
-
|
3145
2996
|
end
|
3146
2997
|
class RadarOptions < Stripe::RequestParams
|
3147
2998
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
3148
|
-
sig { returns(String) }
|
2999
|
+
sig { returns(T.nilable(String)) }
|
3149
3000
|
attr_accessor :session
|
3150
|
-
sig { params(session: String).void }
|
3001
|
+
sig { params(session: T.nilable(String)).void }
|
3151
3002
|
def initialize(session: nil); end
|
3152
3003
|
end
|
3153
|
-
class Rechnung < Stripe::RequestParams
|
3154
|
-
class Dob < Stripe::RequestParams
|
3155
|
-
# The day of birth, between 1 and 31.
|
3156
|
-
sig { returns(Integer) }
|
3157
|
-
attr_accessor :day
|
3158
|
-
# The month of birth, between 1 and 12.
|
3159
|
-
sig { returns(Integer) }
|
3160
|
-
attr_accessor :month
|
3161
|
-
# The four-digit year of birth.
|
3162
|
-
sig { returns(Integer) }
|
3163
|
-
attr_accessor :year
|
3164
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
3165
|
-
def initialize(day: nil, month: nil, year: nil); end
|
3166
|
-
end
|
3167
|
-
# Customer's date of birth
|
3168
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung::Dob) }
|
3169
|
-
attr_accessor :dob
|
3170
|
-
sig {
|
3171
|
-
params(dob: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung::Dob).void
|
3172
|
-
}
|
3173
|
-
def initialize(dob: nil); end
|
3174
|
-
end
|
3175
3004
|
class RevolutPay < Stripe::RequestParams
|
3176
3005
|
|
3177
3006
|
end
|
3178
3007
|
class SamsungPay < Stripe::RequestParams
|
3179
3008
|
|
3009
|
+
end
|
3010
|
+
class Satispay < Stripe::RequestParams
|
3011
|
+
|
3180
3012
|
end
|
3181
3013
|
class SepaDebit < Stripe::RequestParams
|
3182
3014
|
# IBAN of the bank account.
|
@@ -3184,9 +3016,6 @@ module Stripe
|
|
3184
3016
|
attr_accessor :iban
|
3185
3017
|
sig { params(iban: String).void }
|
3186
3018
|
def initialize(iban: nil); end
|
3187
|
-
end
|
3188
|
-
class Shopeepay < Stripe::RequestParams
|
3189
|
-
|
3190
3019
|
end
|
3191
3020
|
class Sofort < Stripe::RequestParams
|
3192
3021
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -3203,22 +3032,22 @@ module Stripe
|
|
3203
3032
|
end
|
3204
3033
|
class UsBankAccount < Stripe::RequestParams
|
3205
3034
|
# Account holder type: individual or company.
|
3206
|
-
sig { returns(String) }
|
3035
|
+
sig { returns(T.nilable(String)) }
|
3207
3036
|
attr_accessor :account_holder_type
|
3208
3037
|
# Account number of the bank account.
|
3209
|
-
sig { returns(String) }
|
3038
|
+
sig { returns(T.nilable(String)) }
|
3210
3039
|
attr_accessor :account_number
|
3211
3040
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
3212
|
-
sig { returns(String) }
|
3041
|
+
sig { returns(T.nilable(String)) }
|
3213
3042
|
attr_accessor :account_type
|
3214
3043
|
# The ID of a Financial Connections Account to use as a payment method.
|
3215
|
-
sig { returns(String) }
|
3044
|
+
sig { returns(T.nilable(String)) }
|
3216
3045
|
attr_accessor :financial_connections_account
|
3217
3046
|
# Routing number of the bank account.
|
3218
|
-
sig { returns(String) }
|
3047
|
+
sig { returns(T.nilable(String)) }
|
3219
3048
|
attr_accessor :routing_number
|
3220
3049
|
sig {
|
3221
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
3050
|
+
params(account_holder_type: T.nilable(String), account_number: T.nilable(String), account_type: T.nilable(String), financial_connections_account: T.nilable(String), routing_number: T.nilable(String)).void
|
3222
3051
|
}
|
3223
3052
|
def initialize(
|
3224
3053
|
account_holder_type: nil,
|
@@ -3235,175 +3064,209 @@ module Stripe
|
|
3235
3064
|
|
3236
3065
|
end
|
3237
3066
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
3238
|
-
sig {
|
3067
|
+
sig {
|
3068
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AcssDebit))
|
3069
|
+
}
|
3239
3070
|
attr_accessor :acss_debit
|
3240
3071
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
3241
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm) }
|
3072
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm)) }
|
3242
3073
|
attr_accessor :affirm
|
3243
3074
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
3244
|
-
sig {
|
3075
|
+
sig {
|
3076
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay))
|
3077
|
+
}
|
3245
3078
|
attr_accessor :afterpay_clearpay
|
3246
3079
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
3247
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay) }
|
3080
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay)) }
|
3248
3081
|
attr_accessor :alipay
|
3249
3082
|
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
3250
|
-
sig { returns(String) }
|
3083
|
+
sig { returns(T.nilable(String)) }
|
3251
3084
|
attr_accessor :allow_redisplay
|
3252
3085
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
3253
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma) }
|
3086
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma)) }
|
3254
3087
|
attr_accessor :alma
|
3255
3088
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
3256
|
-
sig {
|
3089
|
+
sig {
|
3090
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AmazonPay))
|
3091
|
+
}
|
3257
3092
|
attr_accessor :amazon_pay
|
3258
3093
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
3259
|
-
sig {
|
3094
|
+
sig {
|
3095
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AuBecsDebit))
|
3096
|
+
}
|
3260
3097
|
attr_accessor :au_becs_debit
|
3261
3098
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
3262
|
-
sig {
|
3099
|
+
sig {
|
3100
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BacsDebit))
|
3101
|
+
}
|
3263
3102
|
attr_accessor :bacs_debit
|
3264
3103
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
3265
|
-
sig {
|
3104
|
+
sig {
|
3105
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact))
|
3106
|
+
}
|
3266
3107
|
attr_accessor :bancontact
|
3108
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
3109
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Billie)) }
|
3110
|
+
attr_accessor :billie
|
3267
3111
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
3268
|
-
sig {
|
3112
|
+
sig {
|
3113
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails))
|
3114
|
+
}
|
3269
3115
|
attr_accessor :billing_details
|
3270
3116
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
3271
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik) }
|
3117
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik)) }
|
3272
3118
|
attr_accessor :blik
|
3273
3119
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
3274
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto) }
|
3120
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto)) }
|
3275
3121
|
attr_accessor :boleto
|
3276
3122
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
3277
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp) }
|
3123
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp)) }
|
3278
3124
|
attr_accessor :cashapp
|
3279
3125
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
3280
|
-
sig {
|
3126
|
+
sig {
|
3127
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::CustomerBalance))
|
3128
|
+
}
|
3281
3129
|
attr_accessor :customer_balance
|
3282
3130
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
3283
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps) }
|
3131
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps)) }
|
3284
3132
|
attr_accessor :eps
|
3285
3133
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
3286
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx) }
|
3134
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx)) }
|
3287
3135
|
attr_accessor :fpx
|
3288
3136
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
3289
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay) }
|
3137
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay)) }
|
3290
3138
|
attr_accessor :giropay
|
3291
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
3292
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Gopay) }
|
3293
|
-
attr_accessor :gopay
|
3294
3139
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
3295
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Grabpay) }
|
3140
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Grabpay)) }
|
3296
3141
|
attr_accessor :grabpay
|
3297
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
3298
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::IdBankTransfer) }
|
3299
|
-
attr_accessor :id_bank_transfer
|
3300
3142
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
3301
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Ideal) }
|
3143
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Ideal)) }
|
3302
3144
|
attr_accessor :ideal
|
3303
3145
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
3304
|
-
sig {
|
3146
|
+
sig {
|
3147
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::InteracPresent))
|
3148
|
+
}
|
3305
3149
|
attr_accessor :interac_present
|
3306
3150
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
3307
|
-
sig {
|
3151
|
+
sig {
|
3152
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KakaoPay))
|
3153
|
+
}
|
3308
3154
|
attr_accessor :kakao_pay
|
3309
3155
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
3310
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna) }
|
3156
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna)) }
|
3311
3157
|
attr_accessor :klarna
|
3312
3158
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
3313
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Konbini) }
|
3159
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Konbini)) }
|
3314
3160
|
attr_accessor :konbini
|
3315
3161
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
3316
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KrCard) }
|
3162
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KrCard)) }
|
3317
3163
|
attr_accessor :kr_card
|
3318
3164
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
3319
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Link) }
|
3165
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Link)) }
|
3320
3166
|
attr_accessor :link
|
3321
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
3322
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::MbWay) }
|
3323
|
-
attr_accessor :mb_way
|
3324
3167
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3325
|
-
sig { returns(T::Hash[String, String]) }
|
3168
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
3326
3169
|
attr_accessor :metadata
|
3327
3170
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
3328
|
-
sig {
|
3171
|
+
sig {
|
3172
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Mobilepay))
|
3173
|
+
}
|
3329
3174
|
attr_accessor :mobilepay
|
3330
3175
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
3331
|
-
sig {
|
3176
|
+
sig {
|
3177
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Multibanco))
|
3178
|
+
}
|
3332
3179
|
attr_accessor :multibanco
|
3333
3180
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
3334
|
-
sig {
|
3181
|
+
sig {
|
3182
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NaverPay))
|
3183
|
+
}
|
3335
3184
|
attr_accessor :naver_pay
|
3185
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
3186
|
+
sig {
|
3187
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NzBankAccount))
|
3188
|
+
}
|
3189
|
+
attr_accessor :nz_bank_account
|
3336
3190
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
3337
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Oxxo) }
|
3191
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Oxxo)) }
|
3338
3192
|
attr_accessor :oxxo
|
3339
3193
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
3340
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24) }
|
3194
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24)) }
|
3341
3195
|
attr_accessor :p24
|
3342
3196
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
3343
|
-
sig {
|
3197
|
+
sig {
|
3198
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::PayByBank))
|
3199
|
+
}
|
3344
3200
|
attr_accessor :pay_by_bank
|
3345
3201
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
3346
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco) }
|
3202
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco)) }
|
3347
3203
|
attr_accessor :payco
|
3348
3204
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
3349
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paynow) }
|
3205
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paynow)) }
|
3350
3206
|
attr_accessor :paynow
|
3351
3207
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
3352
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paypal) }
|
3208
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paypal)) }
|
3353
3209
|
attr_accessor :paypal
|
3354
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
3355
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payto) }
|
3356
|
-
attr_accessor :payto
|
3357
3210
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
3358
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Pix) }
|
3211
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Pix)) }
|
3359
3212
|
attr_accessor :pix
|
3360
3213
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
3361
|
-
sig {
|
3214
|
+
sig {
|
3215
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Promptpay))
|
3216
|
+
}
|
3362
3217
|
attr_accessor :promptpay
|
3363
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
3364
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Qris) }
|
3365
|
-
attr_accessor :qris
|
3366
3218
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
3367
|
-
sig {
|
3219
|
+
sig {
|
3220
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RadarOptions))
|
3221
|
+
}
|
3368
3222
|
attr_accessor :radar_options
|
3369
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
3370
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Rechnung) }
|
3371
|
-
attr_accessor :rechnung
|
3372
3223
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
3373
|
-
sig {
|
3224
|
+
sig {
|
3225
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RevolutPay))
|
3226
|
+
}
|
3374
3227
|
attr_accessor :revolut_pay
|
3375
3228
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
3376
|
-
sig {
|
3229
|
+
sig {
|
3230
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SamsungPay))
|
3231
|
+
}
|
3377
3232
|
attr_accessor :samsung_pay
|
3233
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
3234
|
+
sig {
|
3235
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Satispay))
|
3236
|
+
}
|
3237
|
+
attr_accessor :satispay
|
3378
3238
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
3379
|
-
sig {
|
3239
|
+
sig {
|
3240
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SepaDebit))
|
3241
|
+
}
|
3380
3242
|
attr_accessor :sepa_debit
|
3381
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
3382
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Shopeepay) }
|
3383
|
-
attr_accessor :shopeepay
|
3384
3243
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
3385
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Sofort) }
|
3244
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Sofort)) }
|
3386
3245
|
attr_accessor :sofort
|
3387
3246
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
3388
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Swish) }
|
3247
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Swish)) }
|
3389
3248
|
attr_accessor :swish
|
3390
3249
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
3391
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Twint) }
|
3250
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Twint)) }
|
3392
3251
|
attr_accessor :twint
|
3393
3252
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
3394
3253
|
sig { returns(String) }
|
3395
3254
|
attr_accessor :type
|
3396
3255
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
3397
|
-
sig {
|
3256
|
+
sig {
|
3257
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::UsBankAccount))
|
3258
|
+
}
|
3398
3259
|
attr_accessor :us_bank_account
|
3399
3260
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
3400
|
-
sig {
|
3261
|
+
sig {
|
3262
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::WechatPay))
|
3263
|
+
}
|
3401
3264
|
attr_accessor :wechat_pay
|
3402
3265
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
3403
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip) }
|
3266
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip)) }
|
3404
3267
|
attr_accessor :zip
|
3405
3268
|
sig {
|
3406
|
-
params(acss_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay,
|
3269
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData::Zip)).void
|
3407
3270
|
}
|
3408
3271
|
def initialize(
|
3409
3272
|
acss_debit: nil,
|
@@ -3416,6 +3279,7 @@ module Stripe
|
|
3416
3279
|
au_becs_debit: nil,
|
3417
3280
|
bacs_debit: nil,
|
3418
3281
|
bancontact: nil,
|
3282
|
+
billie: nil,
|
3419
3283
|
billing_details: nil,
|
3420
3284
|
blik: nil,
|
3421
3285
|
boleto: nil,
|
@@ -3424,9 +3288,7 @@ module Stripe
|
|
3424
3288
|
eps: nil,
|
3425
3289
|
fpx: nil,
|
3426
3290
|
giropay: nil,
|
3427
|
-
gopay: nil,
|
3428
3291
|
grabpay: nil,
|
3429
|
-
id_bank_transfer: nil,
|
3430
3292
|
ideal: nil,
|
3431
3293
|
interac_present: nil,
|
3432
3294
|
kakao_pay: nil,
|
@@ -3434,27 +3296,24 @@ module Stripe
|
|
3434
3296
|
konbini: nil,
|
3435
3297
|
kr_card: nil,
|
3436
3298
|
link: nil,
|
3437
|
-
mb_way: nil,
|
3438
3299
|
metadata: nil,
|
3439
3300
|
mobilepay: nil,
|
3440
3301
|
multibanco: nil,
|
3441
3302
|
naver_pay: nil,
|
3303
|
+
nz_bank_account: nil,
|
3442
3304
|
oxxo: nil,
|
3443
3305
|
p24: nil,
|
3444
3306
|
pay_by_bank: nil,
|
3445
3307
|
payco: nil,
|
3446
3308
|
paynow: nil,
|
3447
3309
|
paypal: nil,
|
3448
|
-
payto: nil,
|
3449
3310
|
pix: nil,
|
3450
3311
|
promptpay: nil,
|
3451
|
-
qris: nil,
|
3452
3312
|
radar_options: nil,
|
3453
|
-
rechnung: nil,
|
3454
3313
|
revolut_pay: nil,
|
3455
3314
|
samsung_pay: nil,
|
3315
|
+
satispay: nil,
|
3456
3316
|
sepa_debit: nil,
|
3457
|
-
shopeepay: nil,
|
3458
3317
|
sofort: nil,
|
3459
3318
|
swish: nil,
|
3460
3319
|
twint: nil,
|
@@ -3470,22 +3329,22 @@ module Stripe
|
|
3470
3329
|
# A URL for custom mandate text to render during confirmation step.
|
3471
3330
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
3472
3331
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
3473
|
-
sig { returns(T.nilable(String)) }
|
3332
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3474
3333
|
attr_accessor :custom_mandate_url
|
3475
3334
|
# List of Stripe products where this mandate can be selected automatically.
|
3476
|
-
sig { returns(T::Array[String]) }
|
3335
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3477
3336
|
attr_accessor :default_for
|
3478
3337
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
3479
|
-
sig { returns(String) }
|
3338
|
+
sig { returns(T.nilable(String)) }
|
3480
3339
|
attr_accessor :interval_description
|
3481
3340
|
# Payment schedule for the mandate.
|
3482
|
-
sig { returns(String) }
|
3341
|
+
sig { returns(T.nilable(String)) }
|
3483
3342
|
attr_accessor :payment_schedule
|
3484
3343
|
# Transaction type of the mandate.
|
3485
|
-
sig { returns(String) }
|
3344
|
+
sig { returns(T.nilable(String)) }
|
3486
3345
|
attr_accessor :transaction_type
|
3487
3346
|
sig {
|
3488
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
3347
|
+
params(custom_mandate_url: T.nilable(T.nilable(String)), default_for: T.nilable(T::Array[String]), interval_description: T.nilable(String), payment_schedule: T.nilable(String), transaction_type: T.nilable(String)).void
|
3489
3348
|
}
|
3490
3349
|
def initialize(
|
3491
3350
|
custom_mandate_url: nil,
|
@@ -3496,18 +3355,18 @@ module Stripe
|
|
3496
3355
|
); end
|
3497
3356
|
end
|
3498
3357
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
3499
|
-
sig { returns(String) }
|
3358
|
+
sig { returns(T.nilable(String)) }
|
3500
3359
|
attr_accessor :currency
|
3501
3360
|
# Additional fields for Mandate creation
|
3502
3361
|
sig {
|
3503
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
3362
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
3504
3363
|
}
|
3505
3364
|
attr_accessor :mandate_options
|
3506
3365
|
# Bank account verification method.
|
3507
|
-
sig { returns(String) }
|
3366
|
+
sig { returns(T.nilable(String)) }
|
3508
3367
|
attr_accessor :verification_method
|
3509
3368
|
sig {
|
3510
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
3369
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
3511
3370
|
}
|
3512
3371
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
3513
3372
|
end
|
@@ -3517,18 +3376,18 @@ module Stripe
|
|
3517
3376
|
class BacsDebit < Stripe::RequestParams
|
3518
3377
|
class MandateOptions < Stripe::RequestParams
|
3519
3378
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
3520
|
-
sig { returns(T.nilable(String)) }
|
3379
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3521
3380
|
attr_accessor :reference_prefix
|
3522
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
3381
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
3523
3382
|
def initialize(reference_prefix: nil); end
|
3524
3383
|
end
|
3525
3384
|
# Additional fields for Mandate creation
|
3526
3385
|
sig {
|
3527
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
3386
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
3528
3387
|
}
|
3529
3388
|
attr_accessor :mandate_options
|
3530
3389
|
sig {
|
3531
|
-
params(mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
3390
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
3532
3391
|
}
|
3533
3392
|
def initialize(mandate_options: nil); end
|
3534
3393
|
end
|
@@ -3544,16 +3403,16 @@ module Stripe
|
|
3544
3403
|
sig { returns(String) }
|
3545
3404
|
attr_accessor :currency
|
3546
3405
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
3547
|
-
sig { returns(String) }
|
3406
|
+
sig { returns(T.nilable(String)) }
|
3548
3407
|
attr_accessor :description
|
3549
3408
|
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
3550
|
-
sig { returns(Integer) }
|
3409
|
+
sig { returns(T.nilable(Integer)) }
|
3551
3410
|
attr_accessor :end_date
|
3552
3411
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
3553
3412
|
sig { returns(String) }
|
3554
3413
|
attr_accessor :interval
|
3555
3414
|
# The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
3556
|
-
sig { returns(Integer) }
|
3415
|
+
sig { returns(T.nilable(Integer)) }
|
3557
3416
|
attr_accessor :interval_count
|
3558
3417
|
# Unique identifier for the mandate or subscription.
|
3559
3418
|
sig { returns(String) }
|
@@ -3562,10 +3421,10 @@ module Stripe
|
|
3562
3421
|
sig { returns(Integer) }
|
3563
3422
|
attr_accessor :start_date
|
3564
3423
|
# Specifies the type of mandates supported. Possible values are `india`.
|
3565
|
-
sig { returns(T::Array[String]) }
|
3424
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3566
3425
|
attr_accessor :supported_types
|
3567
3426
|
sig {
|
3568
|
-
params(amount: Integer, amount_type: String, currency: String, description: String, end_date: Integer, interval: String, interval_count: Integer, reference: String, start_date: Integer, supported_types: T::Array[String]).void
|
3427
|
+
params(amount: Integer, amount_type: String, currency: String, description: T.nilable(String), end_date: T.nilable(Integer), interval: String, interval_count: T.nilable(Integer), reference: String, start_date: Integer, supported_types: T.nilable(T::Array[String])).void
|
3569
3428
|
}
|
3570
3429
|
def initialize(
|
3571
3430
|
amount: nil,
|
@@ -3592,58 +3451,60 @@ module Stripe
|
|
3592
3451
|
# message extension: CB-EXEMPTION; string (4 characters)
|
3593
3452
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
3594
3453
|
# bit first) that has been Base64 encoded
|
3595
|
-
sig { returns(String) }
|
3454
|
+
sig { returns(T.nilable(String)) }
|
3596
3455
|
attr_accessor :cb_exemption
|
3597
3456
|
# The risk score returned from Cartes Bancaires in the ARes.
|
3598
3457
|
# message extension: CB-SCORE; numeric value 0-99
|
3599
|
-
sig { returns(Integer) }
|
3458
|
+
sig { returns(T.nilable(Integer)) }
|
3600
3459
|
attr_accessor :cb_score
|
3601
|
-
sig {
|
3460
|
+
sig {
|
3461
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
3462
|
+
}
|
3602
3463
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
3603
3464
|
end
|
3604
3465
|
# Cartes Bancaires-specific 3DS fields.
|
3605
3466
|
sig {
|
3606
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
3467
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
3607
3468
|
}
|
3608
3469
|
attr_accessor :cartes_bancaires
|
3609
3470
|
sig {
|
3610
|
-
params(cartes_bancaires: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
3471
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
3611
3472
|
}
|
3612
3473
|
def initialize(cartes_bancaires: nil); end
|
3613
3474
|
end
|
3614
3475
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
3615
|
-
sig { returns(String) }
|
3476
|
+
sig { returns(T.nilable(String)) }
|
3616
3477
|
attr_accessor :ares_trans_status
|
3617
3478
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
3618
3479
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
3619
3480
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
3620
3481
|
# is what you should specify here.)
|
3621
|
-
sig { returns(String) }
|
3482
|
+
sig { returns(T.nilable(String)) }
|
3622
3483
|
attr_accessor :cryptogram
|
3623
3484
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
3624
3485
|
# provider and indicates what degree of authentication was performed.
|
3625
|
-
sig { returns(String) }
|
3486
|
+
sig { returns(T.nilable(String)) }
|
3626
3487
|
attr_accessor :electronic_commerce_indicator
|
3627
3488
|
# Network specific 3DS fields. Network specific arguments require an
|
3628
3489
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
3629
3490
|
# must be populated accordingly
|
3630
3491
|
sig {
|
3631
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
3492
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
3632
3493
|
}
|
3633
3494
|
attr_accessor :network_options
|
3634
3495
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
3635
3496
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
3636
|
-
sig { returns(String) }
|
3497
|
+
sig { returns(T.nilable(String)) }
|
3637
3498
|
attr_accessor :requestor_challenge_indicator
|
3638
3499
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
3639
3500
|
# Transaction ID (dsTransID).
|
3640
|
-
sig { returns(String) }
|
3501
|
+
sig { returns(T.nilable(String)) }
|
3641
3502
|
attr_accessor :transaction_id
|
3642
3503
|
# The version of 3D Secure that was performed.
|
3643
|
-
sig { returns(String) }
|
3504
|
+
sig { returns(T.nilable(String)) }
|
3644
3505
|
attr_accessor :version
|
3645
3506
|
sig {
|
3646
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
3507
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
3647
3508
|
}
|
3648
3509
|
def initialize(
|
3649
3510
|
ares_trans_status: nil,
|
@@ -3657,28 +3518,28 @@ module Stripe
|
|
3657
3518
|
end
|
3658
3519
|
# Configuration options for setting up an eMandate for cards issued in India.
|
3659
3520
|
sig {
|
3660
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions)
|
3521
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions))
|
3661
3522
|
}
|
3662
3523
|
attr_accessor :mandate_options
|
3663
3524
|
# When specified, this parameter signals that a card has been collected
|
3664
3525
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
3665
3526
|
# parameter can only be provided during confirmation.
|
3666
|
-
sig { returns(T::Boolean) }
|
3527
|
+
sig { returns(T.nilable(T::Boolean)) }
|
3667
3528
|
attr_accessor :moto
|
3668
3529
|
# Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
|
3669
|
-
sig { returns(String) }
|
3530
|
+
sig { returns(T.nilable(String)) }
|
3670
3531
|
attr_accessor :network
|
3671
3532
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
3672
|
-
sig { returns(String) }
|
3533
|
+
sig { returns(T.nilable(String)) }
|
3673
3534
|
attr_accessor :request_three_d_secure
|
3674
3535
|
# If 3D Secure authentication was performed with a third-party provider,
|
3675
3536
|
# the authentication details to use for this setup.
|
3676
3537
|
sig {
|
3677
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)
|
3538
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure))
|
3678
3539
|
}
|
3679
3540
|
attr_accessor :three_d_secure
|
3680
3541
|
sig {
|
3681
|
-
params(mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
3542
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::MandateOptions), moto: T.nilable(T::Boolean), network: T.nilable(String), request_three_d_secure: T.nilable(String), three_d_secure: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
3682
3543
|
}
|
3683
3544
|
def initialize(
|
3684
3545
|
mandate_options: nil,
|
@@ -3693,87 +3554,33 @@ module Stripe
|
|
3693
3554
|
end
|
3694
3555
|
class Link < Stripe::RequestParams
|
3695
3556
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
3696
|
-
sig { returns(String) }
|
3557
|
+
sig { returns(T.nilable(String)) }
|
3697
3558
|
attr_accessor :persistent_token
|
3698
|
-
sig { params(persistent_token: String).void }
|
3559
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
3699
3560
|
def initialize(persistent_token: nil); end
|
3700
3561
|
end
|
3701
3562
|
class Paypal < Stripe::RequestParams
|
3702
3563
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
3703
|
-
sig { returns(String) }
|
3564
|
+
sig { returns(T.nilable(String)) }
|
3704
3565
|
attr_accessor :billing_agreement_id
|
3705
|
-
|
3706
|
-
|
3707
|
-
attr_accessor :currency
|
3708
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
3709
|
-
sig { returns(T::Array[String]) }
|
3710
|
-
attr_accessor :subsellers
|
3711
|
-
sig {
|
3712
|
-
params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
|
3713
|
-
}
|
3714
|
-
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
|
3715
|
-
end
|
3716
|
-
class Payto < Stripe::RequestParams
|
3717
|
-
class MandateOptions < Stripe::RequestParams
|
3718
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
3719
|
-
sig { returns(Integer) }
|
3720
|
-
attr_accessor :amount
|
3721
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
3722
|
-
sig { returns(String) }
|
3723
|
-
attr_accessor :amount_type
|
3724
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
3725
|
-
sig { returns(String) }
|
3726
|
-
attr_accessor :end_date
|
3727
|
-
# The periodicity at which payments will be collected.
|
3728
|
-
sig { returns(String) }
|
3729
|
-
attr_accessor :payment_schedule
|
3730
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
3731
|
-
sig { returns(Integer) }
|
3732
|
-
attr_accessor :payments_per_period
|
3733
|
-
# The purpose for which payments are made. Defaults to retail.
|
3734
|
-
sig { returns(String) }
|
3735
|
-
attr_accessor :purpose
|
3736
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
3737
|
-
sig { returns(String) }
|
3738
|
-
attr_accessor :start_date
|
3739
|
-
sig {
|
3740
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
3741
|
-
}
|
3742
|
-
def initialize(
|
3743
|
-
amount: nil,
|
3744
|
-
amount_type: nil,
|
3745
|
-
end_date: nil,
|
3746
|
-
payment_schedule: nil,
|
3747
|
-
payments_per_period: nil,
|
3748
|
-
purpose: nil,
|
3749
|
-
start_date: nil
|
3750
|
-
); end
|
3751
|
-
end
|
3752
|
-
# Additional fields for Mandate creation.
|
3753
|
-
sig {
|
3754
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions)
|
3755
|
-
}
|
3756
|
-
attr_accessor :mandate_options
|
3757
|
-
sig {
|
3758
|
-
params(mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions).void
|
3759
|
-
}
|
3760
|
-
def initialize(mandate_options: nil); end
|
3566
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
3567
|
+
def initialize(billing_agreement_id: nil); end
|
3761
3568
|
end
|
3762
3569
|
class SepaDebit < Stripe::RequestParams
|
3763
3570
|
class MandateOptions < Stripe::RequestParams
|
3764
3571
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
3765
|
-
sig { returns(T.nilable(String)) }
|
3572
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3766
3573
|
attr_accessor :reference_prefix
|
3767
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
3574
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
3768
3575
|
def initialize(reference_prefix: nil); end
|
3769
3576
|
end
|
3770
3577
|
# Additional fields for Mandate creation
|
3771
3578
|
sig {
|
3772
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
3579
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
3773
3580
|
}
|
3774
3581
|
attr_accessor :mandate_options
|
3775
3582
|
sig {
|
3776
|
-
params(mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
3583
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
3777
3584
|
}
|
3778
3585
|
def initialize(mandate_options: nil); end
|
3779
3586
|
end
|
@@ -3781,85 +3588,64 @@ module Stripe
|
|
3781
3588
|
class FinancialConnections < Stripe::RequestParams
|
3782
3589
|
class Filters < Stripe::RequestParams
|
3783
3590
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
3784
|
-
sig { returns(T::Array[String]) }
|
3591
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3785
3592
|
attr_accessor :account_subcategories
|
3786
|
-
|
3787
|
-
|
3788
|
-
attr_accessor :institution
|
3789
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
3790
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
3791
|
-
end
|
3792
|
-
class ManualEntry < Stripe::RequestParams
|
3793
|
-
# Settings for configuring manual entry of account details.
|
3794
|
-
sig { returns(String) }
|
3795
|
-
attr_accessor :mode
|
3796
|
-
sig { params(mode: String).void }
|
3797
|
-
def initialize(mode: nil); end
|
3593
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
3594
|
+
def initialize(account_subcategories: nil); end
|
3798
3595
|
end
|
3799
3596
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
3800
3597
|
sig {
|
3801
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
3598
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
3802
3599
|
}
|
3803
3600
|
attr_accessor :filters
|
3804
|
-
# Customize manual entry behavior
|
3805
|
-
sig {
|
3806
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
3807
|
-
}
|
3808
|
-
attr_accessor :manual_entry
|
3809
3601
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
3810
|
-
sig { returns(T::Array[String]) }
|
3602
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3811
3603
|
attr_accessor :permissions
|
3812
3604
|
# List of data features that you would like to retrieve upon account creation.
|
3813
|
-
sig { returns(T::Array[String]) }
|
3605
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3814
3606
|
attr_accessor :prefetch
|
3815
3607
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
3816
|
-
sig { returns(String) }
|
3608
|
+
sig { returns(T.nilable(String)) }
|
3817
3609
|
attr_accessor :return_url
|
3818
3610
|
sig {
|
3819
|
-
params(filters: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
3611
|
+
params(filters: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
3820
3612
|
}
|
3821
|
-
def initialize(
|
3822
|
-
filters: nil,
|
3823
|
-
manual_entry: nil,
|
3824
|
-
permissions: nil,
|
3825
|
-
prefetch: nil,
|
3826
|
-
return_url: nil
|
3827
|
-
); end
|
3613
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
3828
3614
|
end
|
3829
3615
|
class MandateOptions < Stripe::RequestParams
|
3830
3616
|
# The method used to collect offline mandate customer acceptance.
|
3831
|
-
sig { returns(T.nilable(String)) }
|
3617
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3832
3618
|
attr_accessor :collection_method
|
3833
|
-
sig { params(collection_method: T.nilable(String)).void }
|
3619
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
3834
3620
|
def initialize(collection_method: nil); end
|
3835
3621
|
end
|
3836
3622
|
class Networks < Stripe::RequestParams
|
3837
3623
|
# Triggers validations to run across the selected networks
|
3838
|
-
sig { returns(T::Array[String]) }
|
3624
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3839
3625
|
attr_accessor :requested
|
3840
|
-
sig { params(requested: T::Array[String]).void }
|
3626
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
3841
3627
|
def initialize(requested: nil); end
|
3842
3628
|
end
|
3843
3629
|
# Additional fields for Financial Connections Session creation
|
3844
3630
|
sig {
|
3845
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
3631
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
3846
3632
|
}
|
3847
3633
|
attr_accessor :financial_connections
|
3848
3634
|
# Additional fields for Mandate creation
|
3849
3635
|
sig {
|
3850
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
3636
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
3851
3637
|
}
|
3852
3638
|
attr_accessor :mandate_options
|
3853
3639
|
# Additional fields for network related functions
|
3854
3640
|
sig {
|
3855
|
-
returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks)
|
3641
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks))
|
3856
3642
|
}
|
3857
3643
|
attr_accessor :networks
|
3858
3644
|
# Bank account verification method.
|
3859
|
-
sig { returns(String) }
|
3645
|
+
sig { returns(T.nilable(String)) }
|
3860
3646
|
attr_accessor :verification_method
|
3861
3647
|
sig {
|
3862
|
-
params(financial_connections: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
3648
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
3863
3649
|
}
|
3864
3650
|
def initialize(
|
3865
3651
|
financial_connections: nil,
|
@@ -3869,37 +3655,48 @@ module Stripe
|
|
3869
3655
|
); end
|
3870
3656
|
end
|
3871
3657
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
3872
|
-
sig {
|
3658
|
+
sig {
|
3659
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit))
|
3660
|
+
}
|
3873
3661
|
attr_accessor :acss_debit
|
3874
3662
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
3875
|
-
sig {
|
3663
|
+
sig {
|
3664
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AmazonPay))
|
3665
|
+
}
|
3876
3666
|
attr_accessor :amazon_pay
|
3877
3667
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
3878
|
-
sig {
|
3668
|
+
sig {
|
3669
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit))
|
3670
|
+
}
|
3879
3671
|
attr_accessor :bacs_debit
|
3880
3672
|
# Configuration for any card setup attempted on this SetupIntent.
|
3881
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card) }
|
3673
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card)) }
|
3882
3674
|
attr_accessor :card
|
3883
3675
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
3884
|
-
sig {
|
3676
|
+
sig {
|
3677
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::CardPresent))
|
3678
|
+
}
|
3885
3679
|
attr_accessor :card_present
|
3886
3680
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
3887
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Link) }
|
3681
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Link)) }
|
3888
3682
|
attr_accessor :link
|
3889
3683
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
3890
|
-
sig {
|
3684
|
+
sig {
|
3685
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Paypal))
|
3686
|
+
}
|
3891
3687
|
attr_accessor :paypal
|
3892
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
3893
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Payto) }
|
3894
|
-
attr_accessor :payto
|
3895
3688
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3896
|
-
sig {
|
3689
|
+
sig {
|
3690
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit))
|
3691
|
+
}
|
3897
3692
|
attr_accessor :sepa_debit
|
3898
3693
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
3899
|
-
sig {
|
3694
|
+
sig {
|
3695
|
+
returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount))
|
3696
|
+
}
|
3900
3697
|
attr_accessor :us_bank_account
|
3901
3698
|
sig {
|
3902
|
-
params(acss_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Paypal,
|
3699
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions::UsBankAccount)).void
|
3903
3700
|
}
|
3904
3701
|
def initialize(
|
3905
3702
|
acss_debit: nil,
|
@@ -3909,7 +3706,6 @@ module Stripe
|
|
3909
3706
|
card_present: nil,
|
3910
3707
|
link: nil,
|
3911
3708
|
paypal: nil,
|
3912
|
-
payto: nil,
|
3913
3709
|
sepa_debit: nil,
|
3914
3710
|
us_bank_account: nil
|
3915
3711
|
); end
|
@@ -3917,34 +3713,36 @@ module Stripe
|
|
3917
3713
|
# ID of the ConfirmationToken used to confirm this SetupIntent.
|
3918
3714
|
#
|
3919
3715
|
# If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
|
3920
|
-
sig { returns(String) }
|
3716
|
+
sig { returns(T.nilable(String)) }
|
3921
3717
|
attr_accessor :confirmation_token
|
3922
3718
|
# Specifies which fields in the response should be expanded.
|
3923
|
-
sig { returns(T::Array[String]) }
|
3719
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3924
3720
|
attr_accessor :expand
|
3925
3721
|
# Attribute for param field mandate_data
|
3926
|
-
sig {
|
3722
|
+
sig {
|
3723
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData))))
|
3724
|
+
}
|
3927
3725
|
attr_accessor :mandate_data
|
3928
3726
|
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
|
3929
|
-
sig { returns(String) }
|
3727
|
+
sig { returns(T.nilable(String)) }
|
3930
3728
|
attr_accessor :payment_method
|
3931
3729
|
# When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method)
|
3932
3730
|
# value in the SetupIntent.
|
3933
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData) }
|
3731
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData)) }
|
3934
3732
|
attr_accessor :payment_method_data
|
3935
3733
|
# Payment method-specific configuration for this SetupIntent.
|
3936
|
-
sig { returns(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions) }
|
3734
|
+
sig { returns(T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions)) }
|
3937
3735
|
attr_accessor :payment_method_options
|
3938
3736
|
# The URL to redirect your customer back to after they authenticate on the payment method's app or site.
|
3939
3737
|
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
3940
3738
|
# This parameter is only used for cards and other redirect-based payment methods.
|
3941
|
-
sig { returns(String) }
|
3739
|
+
sig { returns(T.nilable(String)) }
|
3942
3740
|
attr_accessor :return_url
|
3943
3741
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
3944
|
-
sig { returns(T::Boolean) }
|
3742
|
+
sig { returns(T.nilable(T::Boolean)) }
|
3945
3743
|
attr_accessor :use_stripe_sdk
|
3946
3744
|
sig {
|
3947
|
-
params(confirmation_token: String, expand: T::Array[String], mandate_data: T.nilable(::Stripe::SetupIntent::ConfirmParams::MandateData), payment_method: String, payment_method_data: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions, return_url: String, use_stripe_sdk: T::Boolean).void
|
3745
|
+
params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntent::ConfirmParams::MandateData))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntent::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
3948
3746
|
}
|
3949
3747
|
def initialize(
|
3950
3748
|
confirmation_token: nil,
|
@@ -3959,16 +3757,16 @@ module Stripe
|
|
3959
3757
|
end
|
3960
3758
|
class VerifyMicrodepositsParams < Stripe::RequestParams
|
3961
3759
|
# Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.
|
3962
|
-
sig { returns(T::Array[Integer]) }
|
3760
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
3963
3761
|
attr_accessor :amounts
|
3964
3762
|
# A six-character code starting with SM present in the microdeposit sent to the bank account.
|
3965
|
-
sig { returns(String) }
|
3763
|
+
sig { returns(T.nilable(String)) }
|
3966
3764
|
attr_accessor :descriptor_code
|
3967
3765
|
# Specifies which fields in the response should be expanded.
|
3968
|
-
sig { returns(T::Array[String]) }
|
3766
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3969
3767
|
attr_accessor :expand
|
3970
3768
|
sig {
|
3971
|
-
params(amounts: T::Array[Integer], descriptor_code: String, expand: T::Array[String]).void
|
3769
|
+
params(amounts: T.nilable(T::Array[Integer]), descriptor_code: T.nilable(String), expand: T.nilable(T::Array[String])).void
|
3972
3770
|
}
|
3973
3771
|
def initialize(amounts: nil, descriptor_code: nil, expand: nil); end
|
3974
3772
|
end
|