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
@@ -7,48 +7,50 @@ module Stripe
|
|
7
7
|
class ListParams < Stripe::RequestParams
|
8
8
|
class Created < Stripe::RequestParams
|
9
9
|
# Minimum value to filter by (exclusive)
|
10
|
-
sig { returns(Integer) }
|
10
|
+
sig { returns(T.nilable(Integer)) }
|
11
11
|
attr_accessor :gt
|
12
12
|
# Minimum value to filter by (inclusive)
|
13
|
-
sig { returns(Integer) }
|
13
|
+
sig { returns(T.nilable(Integer)) }
|
14
14
|
attr_accessor :gte
|
15
15
|
# Maximum value to filter by (exclusive)
|
16
|
-
sig { returns(Integer) }
|
16
|
+
sig { returns(T.nilable(Integer)) }
|
17
17
|
attr_accessor :lt
|
18
18
|
# Maximum value to filter by (inclusive)
|
19
|
-
sig { returns(Integer) }
|
19
|
+
sig { returns(T.nilable(Integer)) }
|
20
20
|
attr_accessor :lte
|
21
|
-
sig {
|
21
|
+
sig {
|
22
|
+
params(gt: T.nilable(Integer), gte: T.nilable(Integer), lt: T.nilable(Integer), lte: T.nilable(Integer)).void
|
23
|
+
}
|
22
24
|
def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
|
23
25
|
end
|
24
26
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
25
27
|
#
|
26
28
|
# 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.
|
27
|
-
sig { returns(T::Boolean) }
|
29
|
+
sig { returns(T.nilable(T::Boolean)) }
|
28
30
|
attr_accessor :attach_to_self
|
29
31
|
# 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.
|
30
|
-
sig { returns(T.any(::Stripe::SetupIntentService::ListParams::Created, Integer)) }
|
32
|
+
sig { returns(T.nilable(T.any(::Stripe::SetupIntentService::ListParams::Created, Integer))) }
|
31
33
|
attr_accessor :created
|
32
34
|
# Only return SetupIntents for the customer specified by this customer ID.
|
33
|
-
sig { returns(String) }
|
35
|
+
sig { returns(T.nilable(String)) }
|
34
36
|
attr_accessor :customer
|
35
37
|
# 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.
|
36
|
-
sig { returns(String) }
|
38
|
+
sig { returns(T.nilable(String)) }
|
37
39
|
attr_accessor :ending_before
|
38
40
|
# Specifies which fields in the response should be expanded.
|
39
|
-
sig { returns(T::Array[String]) }
|
41
|
+
sig { returns(T.nilable(T::Array[String])) }
|
40
42
|
attr_accessor :expand
|
41
43
|
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
42
|
-
sig { returns(Integer) }
|
44
|
+
sig { returns(T.nilable(Integer)) }
|
43
45
|
attr_accessor :limit
|
44
46
|
# Only return SetupIntents that associate with the specified payment method.
|
45
|
-
sig { returns(String) }
|
47
|
+
sig { returns(T.nilable(String)) }
|
46
48
|
attr_accessor :payment_method
|
47
49
|
# 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.
|
48
|
-
sig { returns(String) }
|
50
|
+
sig { returns(T.nilable(String)) }
|
49
51
|
attr_accessor :starting_after
|
50
52
|
sig {
|
51
|
-
params(attach_to_self: T::Boolean, created: T.any(::Stripe::SetupIntentService::ListParams::Created, Integer), customer: String, ending_before: String, expand: T::Array[String], limit: Integer, payment_method: String, starting_after: String).void
|
53
|
+
params(attach_to_self: T.nilable(T::Boolean), created: T.nilable(T.any(::Stripe::SetupIntentService::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
|
52
54
|
}
|
53
55
|
def initialize(
|
54
56
|
attach_to_self: nil,
|
@@ -66,12 +68,12 @@ module Stripe
|
|
66
68
|
# Controls whether this SetupIntent will accept redirect-based payment methods.
|
67
69
|
#
|
68
70
|
# 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.
|
69
|
-
sig { returns(String) }
|
71
|
+
sig { returns(T.nilable(String)) }
|
70
72
|
attr_accessor :allow_redirects
|
71
73
|
# Whether this feature is enabled.
|
72
74
|
sig { returns(T::Boolean) }
|
73
75
|
attr_accessor :enabled
|
74
|
-
sig { params(allow_redirects: String, enabled: T::Boolean).void }
|
76
|
+
sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void }
|
75
77
|
def initialize(allow_redirects: nil, enabled: nil); end
|
76
78
|
end
|
77
79
|
class MandateData < Stripe::RequestParams
|
@@ -90,23 +92,23 @@ module Stripe
|
|
90
92
|
def initialize(ip_address: nil, user_agent: nil); end
|
91
93
|
end
|
92
94
|
# The time at which the customer accepted the Mandate.
|
93
|
-
sig { returns(Integer) }
|
95
|
+
sig { returns(T.nilable(Integer)) }
|
94
96
|
attr_accessor :accepted_at
|
95
97
|
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
96
98
|
sig {
|
97
|
-
returns(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline)
|
99
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline))
|
98
100
|
}
|
99
101
|
attr_accessor :offline
|
100
102
|
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
101
103
|
sig {
|
102
|
-
returns(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online)
|
104
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online))
|
103
105
|
}
|
104
106
|
attr_accessor :online
|
105
107
|
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
106
108
|
sig { returns(String) }
|
107
109
|
attr_accessor :type
|
108
110
|
sig {
|
109
|
-
params(accepted_at: Integer, offline: ::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online, type: String).void
|
111
|
+
params(accepted_at: T.nilable(Integer), offline: T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Offline), online: T.nilable(::Stripe::SetupIntentService::CreateParams::MandateData::CustomerAcceptance::Online), type: String).void
|
110
112
|
}
|
111
113
|
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
|
112
114
|
end
|
@@ -161,39 +163,42 @@ module Stripe
|
|
161
163
|
end
|
162
164
|
class BacsDebit < Stripe::RequestParams
|
163
165
|
# Account number of the bank account that the funds will be debited from.
|
164
|
-
sig { returns(String) }
|
166
|
+
sig { returns(T.nilable(String)) }
|
165
167
|
attr_accessor :account_number
|
166
168
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
167
|
-
sig { returns(String) }
|
169
|
+
sig { returns(T.nilable(String)) }
|
168
170
|
attr_accessor :sort_code
|
169
|
-
sig { params(account_number: String, sort_code: String).void }
|
171
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
170
172
|
def initialize(account_number: nil, sort_code: nil); end
|
171
173
|
end
|
172
174
|
class Bancontact < Stripe::RequestParams
|
173
175
|
|
176
|
+
end
|
177
|
+
class Billie < Stripe::RequestParams
|
178
|
+
|
174
179
|
end
|
175
180
|
class BillingDetails < Stripe::RequestParams
|
176
181
|
class Address < Stripe::RequestParams
|
177
182
|
# City, district, suburb, town, or village.
|
178
|
-
sig { returns(String) }
|
183
|
+
sig { returns(T.nilable(String)) }
|
179
184
|
attr_accessor :city
|
180
185
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
181
|
-
sig { returns(String) }
|
186
|
+
sig { returns(T.nilable(String)) }
|
182
187
|
attr_accessor :country
|
183
188
|
# Address line 1 (e.g., street, PO Box, or company name).
|
184
|
-
sig { returns(String) }
|
189
|
+
sig { returns(T.nilable(String)) }
|
185
190
|
attr_accessor :line1
|
186
191
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
187
|
-
sig { returns(String) }
|
192
|
+
sig { returns(T.nilable(String)) }
|
188
193
|
attr_accessor :line2
|
189
194
|
# ZIP or postal code.
|
190
|
-
sig { returns(String) }
|
195
|
+
sig { returns(T.nilable(String)) }
|
191
196
|
attr_accessor :postal_code
|
192
197
|
# State, county, province, or region.
|
193
|
-
sig { returns(String) }
|
198
|
+
sig { returns(T.nilable(String)) }
|
194
199
|
attr_accessor :state
|
195
200
|
sig {
|
196
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
201
|
+
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
|
197
202
|
}
|
198
203
|
def initialize(
|
199
204
|
city: nil,
|
@@ -206,20 +211,20 @@ module Stripe
|
|
206
211
|
end
|
207
212
|
# Billing address.
|
208
213
|
sig {
|
209
|
-
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))
|
214
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))))
|
210
215
|
}
|
211
216
|
attr_accessor :address
|
212
217
|
# Email address.
|
213
|
-
sig { returns(T.nilable(String)) }
|
218
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
214
219
|
attr_accessor :email
|
215
220
|
# Full name.
|
216
|
-
sig { returns(T.nilable(String)) }
|
221
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
217
222
|
attr_accessor :name
|
218
223
|
# Billing phone number (including extension).
|
219
|
-
sig { returns(T.nilable(String)) }
|
224
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
220
225
|
attr_accessor :phone
|
221
226
|
sig {
|
222
|
-
params(address: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
227
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
223
228
|
}
|
224
229
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
225
230
|
end
|
@@ -241,42 +246,32 @@ module Stripe
|
|
241
246
|
end
|
242
247
|
class Eps < Stripe::RequestParams
|
243
248
|
# The customer's bank.
|
244
|
-
sig { returns(String) }
|
249
|
+
sig { returns(T.nilable(String)) }
|
245
250
|
attr_accessor :bank
|
246
|
-
sig { params(bank: String).void }
|
251
|
+
sig { params(bank: T.nilable(String)).void }
|
247
252
|
def initialize(bank: nil); end
|
248
253
|
end
|
249
254
|
class Fpx < Stripe::RequestParams
|
250
255
|
# Account holder type for FPX transaction
|
251
|
-
sig { returns(String) }
|
256
|
+
sig { returns(T.nilable(String)) }
|
252
257
|
attr_accessor :account_holder_type
|
253
258
|
# The customer's bank.
|
254
259
|
sig { returns(String) }
|
255
260
|
attr_accessor :bank
|
256
|
-
sig { params(account_holder_type: String, bank: String).void }
|
261
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
257
262
|
def initialize(account_holder_type: nil, bank: nil); end
|
258
263
|
end
|
259
264
|
class Giropay < Stripe::RequestParams
|
260
265
|
|
261
|
-
end
|
262
|
-
class Gopay < Stripe::RequestParams
|
263
|
-
|
264
266
|
end
|
265
267
|
class Grabpay < Stripe::RequestParams
|
266
268
|
|
267
|
-
end
|
268
|
-
class IdBankTransfer < Stripe::RequestParams
|
269
|
-
# Bank where the account is held.
|
270
|
-
sig { returns(String) }
|
271
|
-
attr_accessor :bank
|
272
|
-
sig { params(bank: String).void }
|
273
|
-
def initialize(bank: nil); end
|
274
269
|
end
|
275
270
|
class Ideal < Stripe::RequestParams
|
276
271
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
277
|
-
sig { returns(String) }
|
272
|
+
sig { returns(T.nilable(String)) }
|
278
273
|
attr_accessor :bank
|
279
|
-
sig { params(bank: String).void }
|
274
|
+
sig { params(bank: T.nilable(String)).void }
|
280
275
|
def initialize(bank: nil); end
|
281
276
|
end
|
282
277
|
class InteracPresent < Stripe::RequestParams
|
@@ -301,11 +296,11 @@ module Stripe
|
|
301
296
|
end
|
302
297
|
# Customer's date of birth
|
303
298
|
sig {
|
304
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob)
|
299
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob))
|
305
300
|
}
|
306
301
|
attr_accessor :dob
|
307
302
|
sig {
|
308
|
-
params(dob: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob).void
|
303
|
+
params(dob: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna::Dob)).void
|
309
304
|
}
|
310
305
|
def initialize(dob: nil); end
|
311
306
|
end
|
@@ -317,9 +312,6 @@ module Stripe
|
|
317
312
|
end
|
318
313
|
class Link < Stripe::RequestParams
|
319
314
|
|
320
|
-
end
|
321
|
-
class MbWay < Stripe::RequestParams
|
322
|
-
|
323
315
|
end
|
324
316
|
class Mobilepay < Stripe::RequestParams
|
325
317
|
|
@@ -329,19 +321,50 @@ module Stripe
|
|
329
321
|
end
|
330
322
|
class NaverPay < Stripe::RequestParams
|
331
323
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
332
|
-
sig { returns(String) }
|
324
|
+
sig { returns(T.nilable(String)) }
|
333
325
|
attr_accessor :funding
|
334
|
-
sig { params(funding: String).void }
|
326
|
+
sig { params(funding: T.nilable(String)).void }
|
335
327
|
def initialize(funding: nil); end
|
336
328
|
end
|
329
|
+
class NzBankAccount < Stripe::RequestParams
|
330
|
+
# 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.
|
331
|
+
sig { returns(T.nilable(String)) }
|
332
|
+
attr_accessor :account_holder_name
|
333
|
+
# The account number for the bank account.
|
334
|
+
sig { returns(String) }
|
335
|
+
attr_accessor :account_number
|
336
|
+
# The numeric code for the bank account's bank.
|
337
|
+
sig { returns(String) }
|
338
|
+
attr_accessor :bank_code
|
339
|
+
# The numeric code for the bank account's bank branch.
|
340
|
+
sig { returns(String) }
|
341
|
+
attr_accessor :branch_code
|
342
|
+
# Attribute for param field reference
|
343
|
+
sig { returns(T.nilable(String)) }
|
344
|
+
attr_accessor :reference
|
345
|
+
# The suffix of the bank account number.
|
346
|
+
sig { returns(String) }
|
347
|
+
attr_accessor :suffix
|
348
|
+
sig {
|
349
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
350
|
+
}
|
351
|
+
def initialize(
|
352
|
+
account_holder_name: nil,
|
353
|
+
account_number: nil,
|
354
|
+
bank_code: nil,
|
355
|
+
branch_code: nil,
|
356
|
+
reference: nil,
|
357
|
+
suffix: nil
|
358
|
+
); end
|
359
|
+
end
|
337
360
|
class Oxxo < Stripe::RequestParams
|
338
361
|
|
339
362
|
end
|
340
363
|
class P24 < Stripe::RequestParams
|
341
364
|
# The customer's bank.
|
342
|
-
sig { returns(String) }
|
365
|
+
sig { returns(T.nilable(String)) }
|
343
366
|
attr_accessor :bank
|
344
|
-
sig { params(bank: String).void }
|
367
|
+
sig { params(bank: T.nilable(String)).void }
|
345
368
|
def initialize(bank: nil); end
|
346
369
|
end
|
347
370
|
class PayByBank < Stripe::RequestParams
|
@@ -355,65 +378,28 @@ module Stripe
|
|
355
378
|
end
|
356
379
|
class Paypal < Stripe::RequestParams
|
357
380
|
|
358
|
-
end
|
359
|
-
class Payto < Stripe::RequestParams
|
360
|
-
# The account number for the bank account.
|
361
|
-
sig { returns(String) }
|
362
|
-
attr_accessor :account_number
|
363
|
-
# Bank-State-Branch number of the bank account.
|
364
|
-
sig { returns(String) }
|
365
|
-
attr_accessor :bsb_number
|
366
|
-
# The PayID alias for the bank account.
|
367
|
-
sig { returns(String) }
|
368
|
-
attr_accessor :pay_id
|
369
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
370
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
371
381
|
end
|
372
382
|
class Pix < Stripe::RequestParams
|
373
383
|
|
374
384
|
end
|
375
385
|
class Promptpay < Stripe::RequestParams
|
376
386
|
|
377
|
-
end
|
378
|
-
class Qris < Stripe::RequestParams
|
379
|
-
|
380
387
|
end
|
381
388
|
class RadarOptions < Stripe::RequestParams
|
382
389
|
# 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.
|
383
|
-
sig { returns(String) }
|
390
|
+
sig { returns(T.nilable(String)) }
|
384
391
|
attr_accessor :session
|
385
|
-
sig { params(session: String).void }
|
392
|
+
sig { params(session: T.nilable(String)).void }
|
386
393
|
def initialize(session: nil); end
|
387
394
|
end
|
388
|
-
class Rechnung < Stripe::RequestParams
|
389
|
-
class Dob < Stripe::RequestParams
|
390
|
-
# The day of birth, between 1 and 31.
|
391
|
-
sig { returns(Integer) }
|
392
|
-
attr_accessor :day
|
393
|
-
# The month of birth, between 1 and 12.
|
394
|
-
sig { returns(Integer) }
|
395
|
-
attr_accessor :month
|
396
|
-
# The four-digit year of birth.
|
397
|
-
sig { returns(Integer) }
|
398
|
-
attr_accessor :year
|
399
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
400
|
-
def initialize(day: nil, month: nil, year: nil); end
|
401
|
-
end
|
402
|
-
# Customer's date of birth
|
403
|
-
sig {
|
404
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung::Dob)
|
405
|
-
}
|
406
|
-
attr_accessor :dob
|
407
|
-
sig {
|
408
|
-
params(dob: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung::Dob).void
|
409
|
-
}
|
410
|
-
def initialize(dob: nil); end
|
411
|
-
end
|
412
395
|
class RevolutPay < Stripe::RequestParams
|
413
396
|
|
414
397
|
end
|
415
398
|
class SamsungPay < Stripe::RequestParams
|
416
399
|
|
400
|
+
end
|
401
|
+
class Satispay < Stripe::RequestParams
|
402
|
+
|
417
403
|
end
|
418
404
|
class SepaDebit < Stripe::RequestParams
|
419
405
|
# IBAN of the bank account.
|
@@ -421,9 +407,6 @@ module Stripe
|
|
421
407
|
attr_accessor :iban
|
422
408
|
sig { params(iban: String).void }
|
423
409
|
def initialize(iban: nil); end
|
424
|
-
end
|
425
|
-
class Shopeepay < Stripe::RequestParams
|
426
|
-
|
427
410
|
end
|
428
411
|
class Sofort < Stripe::RequestParams
|
429
412
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -440,22 +423,22 @@ module Stripe
|
|
440
423
|
end
|
441
424
|
class UsBankAccount < Stripe::RequestParams
|
442
425
|
# Account holder type: individual or company.
|
443
|
-
sig { returns(String) }
|
426
|
+
sig { returns(T.nilable(String)) }
|
444
427
|
attr_accessor :account_holder_type
|
445
428
|
# Account number of the bank account.
|
446
|
-
sig { returns(String) }
|
429
|
+
sig { returns(T.nilable(String)) }
|
447
430
|
attr_accessor :account_number
|
448
431
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
449
|
-
sig { returns(String) }
|
432
|
+
sig { returns(T.nilable(String)) }
|
450
433
|
attr_accessor :account_type
|
451
434
|
# The ID of a Financial Connections Account to use as a payment method.
|
452
|
-
sig { returns(String) }
|
435
|
+
sig { returns(T.nilable(String)) }
|
453
436
|
attr_accessor :financial_connections_account
|
454
437
|
# Routing number of the bank account.
|
455
|
-
sig { returns(String) }
|
438
|
+
sig { returns(T.nilable(String)) }
|
456
439
|
attr_accessor :routing_number
|
457
440
|
sig {
|
458
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
441
|
+
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
|
459
442
|
}
|
460
443
|
def initialize(
|
461
444
|
account_holder_type: nil,
|
@@ -472,187 +455,261 @@ module Stripe
|
|
472
455
|
|
473
456
|
end
|
474
457
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
475
|
-
sig {
|
458
|
+
sig {
|
459
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit))
|
460
|
+
}
|
476
461
|
attr_accessor :acss_debit
|
477
462
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
478
|
-
sig {
|
463
|
+
sig {
|
464
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm))
|
465
|
+
}
|
479
466
|
attr_accessor :affirm
|
480
467
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
481
468
|
sig {
|
482
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay)
|
469
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay))
|
483
470
|
}
|
484
471
|
attr_accessor :afterpay_clearpay
|
485
472
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
486
|
-
sig {
|
473
|
+
sig {
|
474
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay))
|
475
|
+
}
|
487
476
|
attr_accessor :alipay
|
488
477
|
# 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`.
|
489
|
-
sig { returns(String) }
|
478
|
+
sig { returns(T.nilable(String)) }
|
490
479
|
attr_accessor :allow_redisplay
|
491
480
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
492
|
-
sig {
|
481
|
+
sig {
|
482
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma))
|
483
|
+
}
|
493
484
|
attr_accessor :alma
|
494
485
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
495
|
-
sig {
|
486
|
+
sig {
|
487
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay))
|
488
|
+
}
|
496
489
|
attr_accessor :amazon_pay
|
497
490
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
498
|
-
sig {
|
491
|
+
sig {
|
492
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit))
|
493
|
+
}
|
499
494
|
attr_accessor :au_becs_debit
|
500
495
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
501
|
-
sig {
|
496
|
+
sig {
|
497
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit))
|
498
|
+
}
|
502
499
|
attr_accessor :bacs_debit
|
503
500
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
504
|
-
sig {
|
501
|
+
sig {
|
502
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact))
|
503
|
+
}
|
505
504
|
attr_accessor :bancontact
|
505
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
506
|
+
sig {
|
507
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Billie))
|
508
|
+
}
|
509
|
+
attr_accessor :billie
|
506
510
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
507
511
|
sig {
|
508
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails)
|
512
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails))
|
509
513
|
}
|
510
514
|
attr_accessor :billing_details
|
511
515
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
512
|
-
sig {
|
516
|
+
sig {
|
517
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik))
|
518
|
+
}
|
513
519
|
attr_accessor :blik
|
514
520
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
515
|
-
sig {
|
521
|
+
sig {
|
522
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto))
|
523
|
+
}
|
516
524
|
attr_accessor :boleto
|
517
525
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
518
|
-
sig {
|
526
|
+
sig {
|
527
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp))
|
528
|
+
}
|
519
529
|
attr_accessor :cashapp
|
520
530
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
521
531
|
sig {
|
522
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance)
|
532
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance))
|
523
533
|
}
|
524
534
|
attr_accessor :customer_balance
|
525
535
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
526
|
-
sig {
|
536
|
+
sig {
|
537
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps))
|
538
|
+
}
|
527
539
|
attr_accessor :eps
|
528
540
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
529
|
-
sig {
|
541
|
+
sig {
|
542
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx))
|
543
|
+
}
|
530
544
|
attr_accessor :fpx
|
531
545
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
532
|
-
sig {
|
546
|
+
sig {
|
547
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay))
|
548
|
+
}
|
533
549
|
attr_accessor :giropay
|
534
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
535
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Gopay) }
|
536
|
-
attr_accessor :gopay
|
537
550
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
538
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay) }
|
539
|
-
attr_accessor :grabpay
|
540
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
541
551
|
sig {
|
542
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::
|
552
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay))
|
543
553
|
}
|
544
|
-
attr_accessor :
|
554
|
+
attr_accessor :grabpay
|
545
555
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
546
|
-
sig {
|
556
|
+
sig {
|
557
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal))
|
558
|
+
}
|
547
559
|
attr_accessor :ideal
|
548
560
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
549
561
|
sig {
|
550
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent)
|
562
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent))
|
551
563
|
}
|
552
564
|
attr_accessor :interac_present
|
553
565
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
554
|
-
sig {
|
566
|
+
sig {
|
567
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay))
|
568
|
+
}
|
555
569
|
attr_accessor :kakao_pay
|
556
570
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
557
|
-
sig {
|
571
|
+
sig {
|
572
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna))
|
573
|
+
}
|
558
574
|
attr_accessor :klarna
|
559
575
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
560
|
-
sig {
|
576
|
+
sig {
|
577
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini))
|
578
|
+
}
|
561
579
|
attr_accessor :konbini
|
562
580
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
563
|
-
sig {
|
581
|
+
sig {
|
582
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard))
|
583
|
+
}
|
564
584
|
attr_accessor :kr_card
|
565
585
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
566
|
-
sig {
|
586
|
+
sig {
|
587
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link))
|
588
|
+
}
|
567
589
|
attr_accessor :link
|
568
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
569
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::MbWay) }
|
570
|
-
attr_accessor :mb_way
|
571
590
|
# 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`.
|
572
|
-
sig { returns(T::Hash[String, String]) }
|
591
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
573
592
|
attr_accessor :metadata
|
574
593
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
575
|
-
sig {
|
594
|
+
sig {
|
595
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay))
|
596
|
+
}
|
576
597
|
attr_accessor :mobilepay
|
577
598
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
578
|
-
sig {
|
599
|
+
sig {
|
600
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco))
|
601
|
+
}
|
579
602
|
attr_accessor :multibanco
|
580
603
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
581
|
-
sig {
|
604
|
+
sig {
|
605
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay))
|
606
|
+
}
|
582
607
|
attr_accessor :naver_pay
|
608
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
609
|
+
sig {
|
610
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NzBankAccount))
|
611
|
+
}
|
612
|
+
attr_accessor :nz_bank_account
|
583
613
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
584
|
-
sig {
|
614
|
+
sig {
|
615
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo))
|
616
|
+
}
|
585
617
|
attr_accessor :oxxo
|
586
618
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
587
|
-
sig {
|
619
|
+
sig {
|
620
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24))
|
621
|
+
}
|
588
622
|
attr_accessor :p24
|
589
623
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
590
|
-
sig {
|
624
|
+
sig {
|
625
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::PayByBank))
|
626
|
+
}
|
591
627
|
attr_accessor :pay_by_bank
|
592
628
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
593
|
-
sig {
|
629
|
+
sig {
|
630
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco))
|
631
|
+
}
|
594
632
|
attr_accessor :payco
|
595
633
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
596
|
-
sig {
|
634
|
+
sig {
|
635
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow))
|
636
|
+
}
|
597
637
|
attr_accessor :paynow
|
598
638
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
599
|
-
sig {
|
639
|
+
sig {
|
640
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal))
|
641
|
+
}
|
600
642
|
attr_accessor :paypal
|
601
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
602
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payto) }
|
603
|
-
attr_accessor :payto
|
604
643
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
605
|
-
sig {
|
644
|
+
sig {
|
645
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix))
|
646
|
+
}
|
606
647
|
attr_accessor :pix
|
607
648
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
608
|
-
sig {
|
649
|
+
sig {
|
650
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay))
|
651
|
+
}
|
609
652
|
attr_accessor :promptpay
|
610
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
611
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Qris) }
|
612
|
-
attr_accessor :qris
|
613
653
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
614
|
-
sig {
|
654
|
+
sig {
|
655
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions))
|
656
|
+
}
|
615
657
|
attr_accessor :radar_options
|
616
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
617
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Rechnung) }
|
618
|
-
attr_accessor :rechnung
|
619
658
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
620
|
-
sig {
|
659
|
+
sig {
|
660
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay))
|
661
|
+
}
|
621
662
|
attr_accessor :revolut_pay
|
622
663
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
623
|
-
sig {
|
664
|
+
sig {
|
665
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay))
|
666
|
+
}
|
624
667
|
attr_accessor :samsung_pay
|
668
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
669
|
+
sig {
|
670
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Satispay))
|
671
|
+
}
|
672
|
+
attr_accessor :satispay
|
625
673
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
626
|
-
sig {
|
674
|
+
sig {
|
675
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit))
|
676
|
+
}
|
627
677
|
attr_accessor :sepa_debit
|
628
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
629
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Shopeepay) }
|
630
|
-
attr_accessor :shopeepay
|
631
678
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
632
|
-
sig {
|
679
|
+
sig {
|
680
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort))
|
681
|
+
}
|
633
682
|
attr_accessor :sofort
|
634
683
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
635
|
-
sig {
|
684
|
+
sig {
|
685
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish))
|
686
|
+
}
|
636
687
|
attr_accessor :swish
|
637
688
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
638
|
-
sig {
|
689
|
+
sig {
|
690
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint))
|
691
|
+
}
|
639
692
|
attr_accessor :twint
|
640
693
|
# 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.
|
641
694
|
sig { returns(String) }
|
642
695
|
attr_accessor :type
|
643
696
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
644
697
|
sig {
|
645
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount)
|
698
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount))
|
646
699
|
}
|
647
700
|
attr_accessor :us_bank_account
|
648
701
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
649
|
-
sig {
|
702
|
+
sig {
|
703
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay))
|
704
|
+
}
|
650
705
|
attr_accessor :wechat_pay
|
651
706
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
652
|
-
sig {
|
707
|
+
sig {
|
708
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip))
|
709
|
+
}
|
653
710
|
attr_accessor :zip
|
654
711
|
sig {
|
655
|
-
params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay,
|
712
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData::Zip)).void
|
656
713
|
}
|
657
714
|
def initialize(
|
658
715
|
acss_debit: nil,
|
@@ -665,6 +722,7 @@ module Stripe
|
|
665
722
|
au_becs_debit: nil,
|
666
723
|
bacs_debit: nil,
|
667
724
|
bancontact: nil,
|
725
|
+
billie: nil,
|
668
726
|
billing_details: nil,
|
669
727
|
blik: nil,
|
670
728
|
boleto: nil,
|
@@ -673,9 +731,7 @@ module Stripe
|
|
673
731
|
eps: nil,
|
674
732
|
fpx: nil,
|
675
733
|
giropay: nil,
|
676
|
-
gopay: nil,
|
677
734
|
grabpay: nil,
|
678
|
-
id_bank_transfer: nil,
|
679
735
|
ideal: nil,
|
680
736
|
interac_present: nil,
|
681
737
|
kakao_pay: nil,
|
@@ -683,27 +739,24 @@ module Stripe
|
|
683
739
|
konbini: nil,
|
684
740
|
kr_card: nil,
|
685
741
|
link: nil,
|
686
|
-
mb_way: nil,
|
687
742
|
metadata: nil,
|
688
743
|
mobilepay: nil,
|
689
744
|
multibanco: nil,
|
690
745
|
naver_pay: nil,
|
746
|
+
nz_bank_account: nil,
|
691
747
|
oxxo: nil,
|
692
748
|
p24: nil,
|
693
749
|
pay_by_bank: nil,
|
694
750
|
payco: nil,
|
695
751
|
paynow: nil,
|
696
752
|
paypal: nil,
|
697
|
-
payto: nil,
|
698
753
|
pix: nil,
|
699
754
|
promptpay: nil,
|
700
|
-
qris: nil,
|
701
755
|
radar_options: nil,
|
702
|
-
rechnung: nil,
|
703
756
|
revolut_pay: nil,
|
704
757
|
samsung_pay: nil,
|
758
|
+
satispay: nil,
|
705
759
|
sepa_debit: nil,
|
706
|
-
shopeepay: nil,
|
707
760
|
sofort: nil,
|
708
761
|
swish: nil,
|
709
762
|
twint: nil,
|
@@ -719,22 +772,22 @@ module Stripe
|
|
719
772
|
# A URL for custom mandate text to render during confirmation step.
|
720
773
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
721
774
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
722
|
-
sig { returns(T.nilable(String)) }
|
775
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
723
776
|
attr_accessor :custom_mandate_url
|
724
777
|
# List of Stripe products where this mandate can be selected automatically.
|
725
|
-
sig { returns(T::Array[String]) }
|
778
|
+
sig { returns(T.nilable(T::Array[String])) }
|
726
779
|
attr_accessor :default_for
|
727
780
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
728
|
-
sig { returns(String) }
|
781
|
+
sig { returns(T.nilable(String)) }
|
729
782
|
attr_accessor :interval_description
|
730
783
|
# Payment schedule for the mandate.
|
731
|
-
sig { returns(String) }
|
784
|
+
sig { returns(T.nilable(String)) }
|
732
785
|
attr_accessor :payment_schedule
|
733
786
|
# Transaction type of the mandate.
|
734
|
-
sig { returns(String) }
|
787
|
+
sig { returns(T.nilable(String)) }
|
735
788
|
attr_accessor :transaction_type
|
736
789
|
sig {
|
737
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
790
|
+
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
|
738
791
|
}
|
739
792
|
def initialize(
|
740
793
|
custom_mandate_url: nil,
|
@@ -745,18 +798,18 @@ module Stripe
|
|
745
798
|
); end
|
746
799
|
end
|
747
800
|
# 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).
|
748
|
-
sig { returns(String) }
|
801
|
+
sig { returns(T.nilable(String)) }
|
749
802
|
attr_accessor :currency
|
750
803
|
# Additional fields for Mandate creation
|
751
804
|
sig {
|
752
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
805
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
753
806
|
}
|
754
807
|
attr_accessor :mandate_options
|
755
808
|
# Bank account verification method.
|
756
|
-
sig { returns(String) }
|
809
|
+
sig { returns(T.nilable(String)) }
|
757
810
|
attr_accessor :verification_method
|
758
811
|
sig {
|
759
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
812
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
760
813
|
}
|
761
814
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
762
815
|
end
|
@@ -766,18 +819,18 @@ module Stripe
|
|
766
819
|
class BacsDebit < Stripe::RequestParams
|
767
820
|
class MandateOptions < Stripe::RequestParams
|
768
821
|
# 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'.
|
769
|
-
sig { returns(T.nilable(String)) }
|
822
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
770
823
|
attr_accessor :reference_prefix
|
771
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
824
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
772
825
|
def initialize(reference_prefix: nil); end
|
773
826
|
end
|
774
827
|
# Additional fields for Mandate creation
|
775
828
|
sig {
|
776
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
829
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
777
830
|
}
|
778
831
|
attr_accessor :mandate_options
|
779
832
|
sig {
|
780
|
-
params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
833
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
781
834
|
}
|
782
835
|
def initialize(mandate_options: nil); end
|
783
836
|
end
|
@@ -793,16 +846,16 @@ module Stripe
|
|
793
846
|
sig { returns(String) }
|
794
847
|
attr_accessor :currency
|
795
848
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
796
|
-
sig { returns(String) }
|
849
|
+
sig { returns(T.nilable(String)) }
|
797
850
|
attr_accessor :description
|
798
851
|
# 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.
|
799
|
-
sig { returns(Integer) }
|
852
|
+
sig { returns(T.nilable(Integer)) }
|
800
853
|
attr_accessor :end_date
|
801
854
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
802
855
|
sig { returns(String) }
|
803
856
|
attr_accessor :interval
|
804
857
|
# 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`.
|
805
|
-
sig { returns(Integer) }
|
858
|
+
sig { returns(T.nilable(Integer)) }
|
806
859
|
attr_accessor :interval_count
|
807
860
|
# Unique identifier for the mandate or subscription.
|
808
861
|
sig { returns(String) }
|
@@ -811,10 +864,10 @@ module Stripe
|
|
811
864
|
sig { returns(Integer) }
|
812
865
|
attr_accessor :start_date
|
813
866
|
# Specifies the type of mandates supported. Possible values are `india`.
|
814
|
-
sig { returns(T::Array[String]) }
|
867
|
+
sig { returns(T.nilable(T::Array[String])) }
|
815
868
|
attr_accessor :supported_types
|
816
869
|
sig {
|
817
|
-
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
|
870
|
+
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
|
818
871
|
}
|
819
872
|
def initialize(
|
820
873
|
amount: nil,
|
@@ -841,58 +894,60 @@ module Stripe
|
|
841
894
|
# message extension: CB-EXEMPTION; string (4 characters)
|
842
895
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
843
896
|
# bit first) that has been Base64 encoded
|
844
|
-
sig { returns(String) }
|
897
|
+
sig { returns(T.nilable(String)) }
|
845
898
|
attr_accessor :cb_exemption
|
846
899
|
# The risk score returned from Cartes Bancaires in the ARes.
|
847
900
|
# message extension: CB-SCORE; numeric value 0-99
|
848
|
-
sig { returns(Integer) }
|
901
|
+
sig { returns(T.nilable(Integer)) }
|
849
902
|
attr_accessor :cb_score
|
850
|
-
sig {
|
903
|
+
sig {
|
904
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
905
|
+
}
|
851
906
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
852
907
|
end
|
853
908
|
# Cartes Bancaires-specific 3DS fields.
|
854
909
|
sig {
|
855
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
910
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
856
911
|
}
|
857
912
|
attr_accessor :cartes_bancaires
|
858
913
|
sig {
|
859
|
-
params(cartes_bancaires: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
914
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
860
915
|
}
|
861
916
|
def initialize(cartes_bancaires: nil); end
|
862
917
|
end
|
863
918
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
864
|
-
sig { returns(String) }
|
919
|
+
sig { returns(T.nilable(String)) }
|
865
920
|
attr_accessor :ares_trans_status
|
866
921
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
867
922
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
868
923
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
869
924
|
# is what you should specify here.)
|
870
|
-
sig { returns(String) }
|
925
|
+
sig { returns(T.nilable(String)) }
|
871
926
|
attr_accessor :cryptogram
|
872
927
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
873
928
|
# provider and indicates what degree of authentication was performed.
|
874
|
-
sig { returns(String) }
|
929
|
+
sig { returns(T.nilable(String)) }
|
875
930
|
attr_accessor :electronic_commerce_indicator
|
876
931
|
# Network specific 3DS fields. Network specific arguments require an
|
877
932
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
878
933
|
# must be populated accordingly
|
879
934
|
sig {
|
880
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
935
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
881
936
|
}
|
882
937
|
attr_accessor :network_options
|
883
938
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
884
939
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
885
|
-
sig { returns(String) }
|
940
|
+
sig { returns(T.nilable(String)) }
|
886
941
|
attr_accessor :requestor_challenge_indicator
|
887
942
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
888
943
|
# Transaction ID (dsTransID).
|
889
|
-
sig { returns(String) }
|
944
|
+
sig { returns(T.nilable(String)) }
|
890
945
|
attr_accessor :transaction_id
|
891
946
|
# The version of 3D Secure that was performed.
|
892
|
-
sig { returns(String) }
|
947
|
+
sig { returns(T.nilable(String)) }
|
893
948
|
attr_accessor :version
|
894
949
|
sig {
|
895
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
950
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
896
951
|
}
|
897
952
|
def initialize(
|
898
953
|
ares_trans_status: nil,
|
@@ -906,28 +961,28 @@ module Stripe
|
|
906
961
|
end
|
907
962
|
# Configuration options for setting up an eMandate for cards issued in India.
|
908
963
|
sig {
|
909
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions)
|
964
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions))
|
910
965
|
}
|
911
966
|
attr_accessor :mandate_options
|
912
967
|
# When specified, this parameter signals that a card has been collected
|
913
968
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
914
969
|
# parameter can only be provided during confirmation.
|
915
|
-
sig { returns(T::Boolean) }
|
970
|
+
sig { returns(T.nilable(T::Boolean)) }
|
916
971
|
attr_accessor :moto
|
917
972
|
# 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.
|
918
|
-
sig { returns(String) }
|
973
|
+
sig { returns(T.nilable(String)) }
|
919
974
|
attr_accessor :network
|
920
975
|
# 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.
|
921
|
-
sig { returns(String) }
|
976
|
+
sig { returns(T.nilable(String)) }
|
922
977
|
attr_accessor :request_three_d_secure
|
923
978
|
# If 3D Secure authentication was performed with a third-party provider,
|
924
979
|
# the authentication details to use for this setup.
|
925
980
|
sig {
|
926
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)
|
981
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure))
|
927
982
|
}
|
928
983
|
attr_accessor :three_d_secure
|
929
984
|
sig {
|
930
|
-
params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
985
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::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::SetupIntentService::CreateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
931
986
|
}
|
932
987
|
def initialize(
|
933
988
|
mandate_options: nil,
|
@@ -942,173 +997,98 @@ module Stripe
|
|
942
997
|
end
|
943
998
|
class Link < Stripe::RequestParams
|
944
999
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
945
|
-
sig { returns(String) }
|
1000
|
+
sig { returns(T.nilable(String)) }
|
946
1001
|
attr_accessor :persistent_token
|
947
|
-
sig { params(persistent_token: String).void }
|
1002
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
948
1003
|
def initialize(persistent_token: nil); end
|
949
1004
|
end
|
950
1005
|
class Paypal < Stripe::RequestParams
|
951
1006
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
952
|
-
sig { returns(String) }
|
1007
|
+
sig { returns(T.nilable(String)) }
|
953
1008
|
attr_accessor :billing_agreement_id
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
1009
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
1010
|
+
def initialize(billing_agreement_id: nil); end
|
1011
|
+
end
|
1012
|
+
class SepaDebit < Stripe::RequestParams
|
1013
|
+
class MandateOptions < Stripe::RequestParams
|
1014
|
+
# 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'.
|
1015
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1016
|
+
attr_accessor :reference_prefix
|
1017
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
1018
|
+
def initialize(reference_prefix: nil); end
|
1019
|
+
end
|
1020
|
+
# Additional fields for Mandate creation
|
1021
|
+
sig {
|
1022
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
1023
|
+
}
|
1024
|
+
attr_accessor :mandate_options
|
960
1025
|
sig {
|
961
|
-
params(
|
1026
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
962
1027
|
}
|
963
|
-
def initialize(
|
964
|
-
end
|
965
|
-
class Payto < Stripe::RequestParams
|
966
|
-
class MandateOptions < Stripe::RequestParams
|
967
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
968
|
-
sig { returns(Integer) }
|
969
|
-
attr_accessor :amount
|
970
|
-
# 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.
|
971
|
-
sig { returns(String) }
|
972
|
-
attr_accessor :amount_type
|
973
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
974
|
-
sig { returns(String) }
|
975
|
-
attr_accessor :end_date
|
976
|
-
# The periodicity at which payments will be collected.
|
977
|
-
sig { returns(String) }
|
978
|
-
attr_accessor :payment_schedule
|
979
|
-
# 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.
|
980
|
-
sig { returns(Integer) }
|
981
|
-
attr_accessor :payments_per_period
|
982
|
-
# The purpose for which payments are made. Defaults to retail.
|
983
|
-
sig { returns(String) }
|
984
|
-
attr_accessor :purpose
|
985
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
986
|
-
sig { returns(String) }
|
987
|
-
attr_accessor :start_date
|
988
|
-
sig {
|
989
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
990
|
-
}
|
991
|
-
def initialize(
|
992
|
-
amount: nil,
|
993
|
-
amount_type: nil,
|
994
|
-
end_date: nil,
|
995
|
-
payment_schedule: nil,
|
996
|
-
payments_per_period: nil,
|
997
|
-
purpose: nil,
|
998
|
-
start_date: nil
|
999
|
-
); end
|
1000
|
-
end
|
1001
|
-
# Additional fields for Mandate creation.
|
1002
|
-
sig {
|
1003
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto::MandateOptions)
|
1004
|
-
}
|
1005
|
-
attr_accessor :mandate_options
|
1006
|
-
sig {
|
1007
|
-
params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto::MandateOptions).void
|
1008
|
-
}
|
1009
|
-
def initialize(mandate_options: nil); end
|
1010
|
-
end
|
1011
|
-
class SepaDebit < Stripe::RequestParams
|
1012
|
-
class MandateOptions < Stripe::RequestParams
|
1013
|
-
# 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'.
|
1014
|
-
sig { returns(T.nilable(String)) }
|
1015
|
-
attr_accessor :reference_prefix
|
1016
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
1017
|
-
def initialize(reference_prefix: nil); end
|
1018
|
-
end
|
1019
|
-
# Additional fields for Mandate creation
|
1020
|
-
sig {
|
1021
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
1022
|
-
}
|
1023
|
-
attr_accessor :mandate_options
|
1024
|
-
sig {
|
1025
|
-
params(mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
1026
|
-
}
|
1027
|
-
def initialize(mandate_options: nil); end
|
1028
|
+
def initialize(mandate_options: nil); end
|
1028
1029
|
end
|
1029
1030
|
class UsBankAccount < Stripe::RequestParams
|
1030
1031
|
class FinancialConnections < Stripe::RequestParams
|
1031
1032
|
class Filters < Stripe::RequestParams
|
1032
1033
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1033
|
-
sig { returns(T::Array[String]) }
|
1034
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1034
1035
|
attr_accessor :account_subcategories
|
1035
|
-
|
1036
|
-
|
1037
|
-
attr_accessor :institution
|
1038
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
1039
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
1040
|
-
end
|
1041
|
-
class ManualEntry < Stripe::RequestParams
|
1042
|
-
# Settings for configuring manual entry of account details.
|
1043
|
-
sig { returns(String) }
|
1044
|
-
attr_accessor :mode
|
1045
|
-
sig { params(mode: String).void }
|
1046
|
-
def initialize(mode: nil); end
|
1036
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
1037
|
+
def initialize(account_subcategories: nil); end
|
1047
1038
|
end
|
1048
1039
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1049
1040
|
sig {
|
1050
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
1041
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
1051
1042
|
}
|
1052
1043
|
attr_accessor :filters
|
1053
|
-
# Customize manual entry behavior
|
1054
|
-
sig {
|
1055
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
1056
|
-
}
|
1057
|
-
attr_accessor :manual_entry
|
1058
1044
|
# 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`.
|
1059
|
-
sig { returns(T::Array[String]) }
|
1045
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1060
1046
|
attr_accessor :permissions
|
1061
1047
|
# List of data features that you would like to retrieve upon account creation.
|
1062
|
-
sig { returns(T::Array[String]) }
|
1048
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1063
1049
|
attr_accessor :prefetch
|
1064
1050
|
# 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.
|
1065
|
-
sig { returns(String) }
|
1051
|
+
sig { returns(T.nilable(String)) }
|
1066
1052
|
attr_accessor :return_url
|
1067
1053
|
sig {
|
1068
|
-
params(filters: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
1054
|
+
params(filters: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
1069
1055
|
}
|
1070
|
-
def initialize(
|
1071
|
-
filters: nil,
|
1072
|
-
manual_entry: nil,
|
1073
|
-
permissions: nil,
|
1074
|
-
prefetch: nil,
|
1075
|
-
return_url: nil
|
1076
|
-
); end
|
1056
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
1077
1057
|
end
|
1078
1058
|
class MandateOptions < Stripe::RequestParams
|
1079
1059
|
# The method used to collect offline mandate customer acceptance.
|
1080
|
-
sig { returns(T.nilable(String)) }
|
1060
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1081
1061
|
attr_accessor :collection_method
|
1082
|
-
sig { params(collection_method: T.nilable(String)).void }
|
1062
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
1083
1063
|
def initialize(collection_method: nil); end
|
1084
1064
|
end
|
1085
1065
|
class Networks < Stripe::RequestParams
|
1086
1066
|
# Triggers validations to run across the selected networks
|
1087
|
-
sig { returns(T::Array[String]) }
|
1067
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1088
1068
|
attr_accessor :requested
|
1089
|
-
sig { params(requested: T::Array[String]).void }
|
1069
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
1090
1070
|
def initialize(requested: nil); end
|
1091
1071
|
end
|
1092
1072
|
# Additional fields for Financial Connections Session creation
|
1093
1073
|
sig {
|
1094
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
1074
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
1095
1075
|
}
|
1096
1076
|
attr_accessor :financial_connections
|
1097
1077
|
# Additional fields for Mandate creation
|
1098
1078
|
sig {
|
1099
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
1079
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
1100
1080
|
}
|
1101
1081
|
attr_accessor :mandate_options
|
1102
1082
|
# Additional fields for network related functions
|
1103
1083
|
sig {
|
1104
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks)
|
1084
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks))
|
1105
1085
|
}
|
1106
1086
|
attr_accessor :networks
|
1107
1087
|
# Bank account verification method.
|
1108
|
-
sig { returns(String) }
|
1088
|
+
sig { returns(T.nilable(String)) }
|
1109
1089
|
attr_accessor :verification_method
|
1110
1090
|
sig {
|
1111
|
-
params(financial_connections: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
1091
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
1112
1092
|
}
|
1113
1093
|
def initialize(
|
1114
1094
|
financial_connections: nil,
|
@@ -1118,41 +1098,52 @@ module Stripe
|
|
1118
1098
|
); end
|
1119
1099
|
end
|
1120
1100
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
1121
|
-
sig {
|
1101
|
+
sig {
|
1102
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit))
|
1103
|
+
}
|
1122
1104
|
attr_accessor :acss_debit
|
1123
1105
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
1124
|
-
sig {
|
1106
|
+
sig {
|
1107
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AmazonPay))
|
1108
|
+
}
|
1125
1109
|
attr_accessor :amazon_pay
|
1126
1110
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
1127
|
-
sig {
|
1111
|
+
sig {
|
1112
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit))
|
1113
|
+
}
|
1128
1114
|
attr_accessor :bacs_debit
|
1129
1115
|
# Configuration for any card setup attempted on this SetupIntent.
|
1130
|
-
sig {
|
1116
|
+
sig {
|
1117
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card))
|
1118
|
+
}
|
1131
1119
|
attr_accessor :card
|
1132
1120
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
1133
1121
|
sig {
|
1134
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent)
|
1122
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent))
|
1135
1123
|
}
|
1136
1124
|
attr_accessor :card_present
|
1137
1125
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
1138
|
-
sig {
|
1126
|
+
sig {
|
1127
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Link))
|
1128
|
+
}
|
1139
1129
|
attr_accessor :link
|
1140
1130
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
1141
|
-
sig {
|
1131
|
+
sig {
|
1132
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Paypal))
|
1133
|
+
}
|
1142
1134
|
attr_accessor :paypal
|
1143
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1144
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Payto) }
|
1145
|
-
attr_accessor :payto
|
1146
1135
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1147
|
-
sig {
|
1136
|
+
sig {
|
1137
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit))
|
1138
|
+
}
|
1148
1139
|
attr_accessor :sepa_debit
|
1149
1140
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
1150
1141
|
sig {
|
1151
|
-
returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount)
|
1142
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount))
|
1152
1143
|
}
|
1153
1144
|
attr_accessor :us_bank_account
|
1154
1145
|
sig {
|
1155
|
-
params(acss_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Paypal,
|
1146
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions::UsBankAccount)).void
|
1156
1147
|
}
|
1157
1148
|
def initialize(
|
1158
1149
|
acss_debit: nil,
|
@@ -1162,7 +1153,6 @@ module Stripe
|
|
1162
1153
|
card_present: nil,
|
1163
1154
|
link: nil,
|
1164
1155
|
paypal: nil,
|
1165
|
-
payto: nil,
|
1166
1156
|
sepa_debit: nil,
|
1167
1157
|
us_bank_account: nil
|
1168
1158
|
); end
|
@@ -1180,74 +1170,80 @@ module Stripe
|
|
1180
1170
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
1181
1171
|
#
|
1182
1172
|
# 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.
|
1183
|
-
sig { returns(T::Boolean) }
|
1173
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1184
1174
|
attr_accessor :attach_to_self
|
1185
1175
|
# When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.
|
1186
|
-
sig {
|
1176
|
+
sig {
|
1177
|
+
returns(T.nilable(::Stripe::SetupIntentService::CreateParams::AutomaticPaymentMethods))
|
1178
|
+
}
|
1187
1179
|
attr_accessor :automatic_payment_methods
|
1188
1180
|
# 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.
|
1189
|
-
sig { returns(T::Boolean) }
|
1181
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1190
1182
|
attr_accessor :confirm
|
1191
1183
|
# ID of the ConfirmationToken used to confirm this SetupIntent.
|
1192
1184
|
#
|
1193
1185
|
# 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.
|
1194
|
-
sig { returns(String) }
|
1186
|
+
sig { returns(T.nilable(String)) }
|
1195
1187
|
attr_accessor :confirmation_token
|
1196
1188
|
# ID of the Customer this SetupIntent belongs to, if one exists.
|
1197
1189
|
#
|
1198
1190
|
# 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.
|
1199
|
-
sig { returns(String) }
|
1191
|
+
sig { returns(T.nilable(String)) }
|
1200
1192
|
attr_accessor :customer
|
1201
1193
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1202
|
-
sig { returns(String) }
|
1194
|
+
sig { returns(T.nilable(String)) }
|
1203
1195
|
attr_accessor :description
|
1204
1196
|
# Specifies which fields in the response should be expanded.
|
1205
|
-
sig { returns(T::Array[String]) }
|
1197
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1206
1198
|
attr_accessor :expand
|
1207
1199
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
1208
1200
|
#
|
1209
1201
|
# 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.
|
1210
|
-
sig { returns(T::Array[String]) }
|
1202
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1211
1203
|
attr_accessor :flow_directions
|
1212
1204
|
# 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).
|
1213
|
-
sig {
|
1205
|
+
sig {
|
1206
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::CreateParams::MandateData))))
|
1207
|
+
}
|
1214
1208
|
attr_accessor :mandate_data
|
1215
1209
|
# 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`.
|
1216
|
-
sig { returns(T::Hash[String, String]) }
|
1210
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
1217
1211
|
attr_accessor :metadata
|
1218
1212
|
# The Stripe account ID created for this SetupIntent.
|
1219
|
-
sig { returns(String) }
|
1213
|
+
sig { returns(T.nilable(String)) }
|
1220
1214
|
attr_accessor :on_behalf_of
|
1221
1215
|
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
|
1222
|
-
sig { returns(String) }
|
1216
|
+
sig { returns(T.nilable(String)) }
|
1223
1217
|
attr_accessor :payment_method
|
1224
1218
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
|
1225
|
-
sig { returns(String) }
|
1219
|
+
sig { returns(T.nilable(String)) }
|
1226
1220
|
attr_accessor :payment_method_configuration
|
1227
1221
|
# 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)
|
1228
1222
|
# value in the SetupIntent.
|
1229
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodData) }
|
1223
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodData)) }
|
1230
1224
|
attr_accessor :payment_method_data
|
1231
1225
|
# Payment method-specific configuration for this SetupIntent.
|
1232
|
-
sig { returns(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions) }
|
1226
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions)) }
|
1233
1227
|
attr_accessor :payment_method_options
|
1234
1228
|
# 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).
|
1235
|
-
sig { returns(T::Array[String]) }
|
1229
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1236
1230
|
attr_accessor :payment_method_types
|
1237
1231
|
# 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).
|
1238
|
-
sig { returns(String) }
|
1232
|
+
sig { returns(T.nilable(String)) }
|
1239
1233
|
attr_accessor :return_url
|
1240
1234
|
# If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
|
1241
|
-
|
1235
|
+
#
|
1236
|
+
# 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`.
|
1237
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::CreateParams::SingleUse)) }
|
1242
1238
|
attr_accessor :single_use
|
1243
1239
|
# Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.
|
1244
|
-
sig { returns(String) }
|
1240
|
+
sig { returns(T.nilable(String)) }
|
1245
1241
|
attr_accessor :usage
|
1246
1242
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
1247
|
-
sig { returns(T::Boolean) }
|
1243
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1248
1244
|
attr_accessor :use_stripe_sdk
|
1249
1245
|
sig {
|
1250
|
-
params(attach_to_self: T::Boolean, automatic_payment_methods: ::Stripe::SetupIntentService::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::SetupIntentService::CreateParams::MandateData), metadata: T::Hash[String, String], on_behalf_of: String, payment_method: String, payment_method_configuration: String, payment_method_data: ::Stripe::SetupIntentService::CreateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions, payment_method_types: T::Array[String], return_url: String, single_use: ::Stripe::SetupIntentService::CreateParams::SingleUse, usage: String, use_stripe_sdk: T::Boolean).void
|
1246
|
+
params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(::Stripe::SetupIntentService::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::SetupIntentService::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::SetupIntentService::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(::Stripe::SetupIntentService::CreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
1251
1247
|
}
|
1252
1248
|
def initialize(
|
1253
1249
|
attach_to_self: nil,
|
@@ -1274,12 +1270,12 @@ module Stripe
|
|
1274
1270
|
end
|
1275
1271
|
class RetrieveParams < Stripe::RequestParams
|
1276
1272
|
# The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.
|
1277
|
-
sig { returns(String) }
|
1273
|
+
sig { returns(T.nilable(String)) }
|
1278
1274
|
attr_accessor :client_secret
|
1279
1275
|
# Specifies which fields in the response should be expanded.
|
1280
|
-
sig { returns(T::Array[String]) }
|
1276
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1281
1277
|
attr_accessor :expand
|
1282
|
-
sig { params(client_secret: String, expand: T::Array[String]).void }
|
1278
|
+
sig { params(client_secret: T.nilable(String), expand: T.nilable(T::Array[String])).void }
|
1283
1279
|
def initialize(client_secret: nil, expand: nil); end
|
1284
1280
|
end
|
1285
1281
|
class UpdateParams < Stripe::RequestParams
|
@@ -1326,39 +1322,42 @@ module Stripe
|
|
1326
1322
|
end
|
1327
1323
|
class BacsDebit < Stripe::RequestParams
|
1328
1324
|
# Account number of the bank account that the funds will be debited from.
|
1329
|
-
sig { returns(String) }
|
1325
|
+
sig { returns(T.nilable(String)) }
|
1330
1326
|
attr_accessor :account_number
|
1331
1327
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
1332
|
-
sig { returns(String) }
|
1328
|
+
sig { returns(T.nilable(String)) }
|
1333
1329
|
attr_accessor :sort_code
|
1334
|
-
sig { params(account_number: String, sort_code: String).void }
|
1330
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
1335
1331
|
def initialize(account_number: nil, sort_code: nil); end
|
1336
1332
|
end
|
1337
1333
|
class Bancontact < Stripe::RequestParams
|
1338
1334
|
|
1335
|
+
end
|
1336
|
+
class Billie < Stripe::RequestParams
|
1337
|
+
|
1339
1338
|
end
|
1340
1339
|
class BillingDetails < Stripe::RequestParams
|
1341
1340
|
class Address < Stripe::RequestParams
|
1342
1341
|
# City, district, suburb, town, or village.
|
1343
|
-
sig { returns(String) }
|
1342
|
+
sig { returns(T.nilable(String)) }
|
1344
1343
|
attr_accessor :city
|
1345
1344
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1346
|
-
sig { returns(String) }
|
1345
|
+
sig { returns(T.nilable(String)) }
|
1347
1346
|
attr_accessor :country
|
1348
1347
|
# Address line 1 (e.g., street, PO Box, or company name).
|
1349
|
-
sig { returns(String) }
|
1348
|
+
sig { returns(T.nilable(String)) }
|
1350
1349
|
attr_accessor :line1
|
1351
1350
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1352
|
-
sig { returns(String) }
|
1351
|
+
sig { returns(T.nilable(String)) }
|
1353
1352
|
attr_accessor :line2
|
1354
1353
|
# ZIP or postal code.
|
1355
|
-
sig { returns(String) }
|
1354
|
+
sig { returns(T.nilable(String)) }
|
1356
1355
|
attr_accessor :postal_code
|
1357
1356
|
# State, county, province, or region.
|
1358
|
-
sig { returns(String) }
|
1357
|
+
sig { returns(T.nilable(String)) }
|
1359
1358
|
attr_accessor :state
|
1360
1359
|
sig {
|
1361
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
1360
|
+
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
|
1362
1361
|
}
|
1363
1362
|
def initialize(
|
1364
1363
|
city: nil,
|
@@ -1371,20 +1370,20 @@ module Stripe
|
|
1371
1370
|
end
|
1372
1371
|
# Billing address.
|
1373
1372
|
sig {
|
1374
|
-
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))
|
1373
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))))
|
1375
1374
|
}
|
1376
1375
|
attr_accessor :address
|
1377
1376
|
# Email address.
|
1378
|
-
sig { returns(T.nilable(String)) }
|
1377
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1379
1378
|
attr_accessor :email
|
1380
1379
|
# Full name.
|
1381
|
-
sig { returns(T.nilable(String)) }
|
1380
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1382
1381
|
attr_accessor :name
|
1383
1382
|
# Billing phone number (including extension).
|
1384
|
-
sig { returns(T.nilable(String)) }
|
1383
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1385
1384
|
attr_accessor :phone
|
1386
1385
|
sig {
|
1387
|
-
params(address: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
1386
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
1388
1387
|
}
|
1389
1388
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
1390
1389
|
end
|
@@ -1406,42 +1405,32 @@ module Stripe
|
|
1406
1405
|
end
|
1407
1406
|
class Eps < Stripe::RequestParams
|
1408
1407
|
# The customer's bank.
|
1409
|
-
sig { returns(String) }
|
1408
|
+
sig { returns(T.nilable(String)) }
|
1410
1409
|
attr_accessor :bank
|
1411
|
-
sig { params(bank: String).void }
|
1410
|
+
sig { params(bank: T.nilable(String)).void }
|
1412
1411
|
def initialize(bank: nil); end
|
1413
1412
|
end
|
1414
1413
|
class Fpx < Stripe::RequestParams
|
1415
1414
|
# Account holder type for FPX transaction
|
1416
|
-
sig { returns(String) }
|
1415
|
+
sig { returns(T.nilable(String)) }
|
1417
1416
|
attr_accessor :account_holder_type
|
1418
1417
|
# The customer's bank.
|
1419
1418
|
sig { returns(String) }
|
1420
1419
|
attr_accessor :bank
|
1421
|
-
sig { params(account_holder_type: String, bank: String).void }
|
1420
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
1422
1421
|
def initialize(account_holder_type: nil, bank: nil); end
|
1423
1422
|
end
|
1424
1423
|
class Giropay < Stripe::RequestParams
|
1425
1424
|
|
1426
|
-
end
|
1427
|
-
class Gopay < Stripe::RequestParams
|
1428
|
-
|
1429
1425
|
end
|
1430
1426
|
class Grabpay < Stripe::RequestParams
|
1431
1427
|
|
1432
|
-
end
|
1433
|
-
class IdBankTransfer < Stripe::RequestParams
|
1434
|
-
# Bank where the account is held.
|
1435
|
-
sig { returns(String) }
|
1436
|
-
attr_accessor :bank
|
1437
|
-
sig { params(bank: String).void }
|
1438
|
-
def initialize(bank: nil); end
|
1439
1428
|
end
|
1440
1429
|
class Ideal < Stripe::RequestParams
|
1441
1430
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1442
|
-
sig { returns(String) }
|
1431
|
+
sig { returns(T.nilable(String)) }
|
1443
1432
|
attr_accessor :bank
|
1444
|
-
sig { params(bank: String).void }
|
1433
|
+
sig { params(bank: T.nilable(String)).void }
|
1445
1434
|
def initialize(bank: nil); end
|
1446
1435
|
end
|
1447
1436
|
class InteracPresent < Stripe::RequestParams
|
@@ -1466,11 +1455,11 @@ module Stripe
|
|
1466
1455
|
end
|
1467
1456
|
# Customer's date of birth
|
1468
1457
|
sig {
|
1469
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob)
|
1458
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob))
|
1470
1459
|
}
|
1471
1460
|
attr_accessor :dob
|
1472
1461
|
sig {
|
1473
|
-
params(dob: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob).void
|
1462
|
+
params(dob: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna::Dob)).void
|
1474
1463
|
}
|
1475
1464
|
def initialize(dob: nil); end
|
1476
1465
|
end
|
@@ -1482,9 +1471,6 @@ module Stripe
|
|
1482
1471
|
end
|
1483
1472
|
class Link < Stripe::RequestParams
|
1484
1473
|
|
1485
|
-
end
|
1486
|
-
class MbWay < Stripe::RequestParams
|
1487
|
-
|
1488
1474
|
end
|
1489
1475
|
class Mobilepay < Stripe::RequestParams
|
1490
1476
|
|
@@ -1494,19 +1480,50 @@ module Stripe
|
|
1494
1480
|
end
|
1495
1481
|
class NaverPay < Stripe::RequestParams
|
1496
1482
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
1497
|
-
sig { returns(String) }
|
1483
|
+
sig { returns(T.nilable(String)) }
|
1498
1484
|
attr_accessor :funding
|
1499
|
-
sig { params(funding: String).void }
|
1485
|
+
sig { params(funding: T.nilable(String)).void }
|
1500
1486
|
def initialize(funding: nil); end
|
1501
1487
|
end
|
1488
|
+
class NzBankAccount < Stripe::RequestParams
|
1489
|
+
# 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.
|
1490
|
+
sig { returns(T.nilable(String)) }
|
1491
|
+
attr_accessor :account_holder_name
|
1492
|
+
# The account number for the bank account.
|
1493
|
+
sig { returns(String) }
|
1494
|
+
attr_accessor :account_number
|
1495
|
+
# The numeric code for the bank account's bank.
|
1496
|
+
sig { returns(String) }
|
1497
|
+
attr_accessor :bank_code
|
1498
|
+
# The numeric code for the bank account's bank branch.
|
1499
|
+
sig { returns(String) }
|
1500
|
+
attr_accessor :branch_code
|
1501
|
+
# Attribute for param field reference
|
1502
|
+
sig { returns(T.nilable(String)) }
|
1503
|
+
attr_accessor :reference
|
1504
|
+
# The suffix of the bank account number.
|
1505
|
+
sig { returns(String) }
|
1506
|
+
attr_accessor :suffix
|
1507
|
+
sig {
|
1508
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
1509
|
+
}
|
1510
|
+
def initialize(
|
1511
|
+
account_holder_name: nil,
|
1512
|
+
account_number: nil,
|
1513
|
+
bank_code: nil,
|
1514
|
+
branch_code: nil,
|
1515
|
+
reference: nil,
|
1516
|
+
suffix: nil
|
1517
|
+
); end
|
1518
|
+
end
|
1502
1519
|
class Oxxo < Stripe::RequestParams
|
1503
1520
|
|
1504
1521
|
end
|
1505
1522
|
class P24 < Stripe::RequestParams
|
1506
1523
|
# The customer's bank.
|
1507
|
-
sig { returns(String) }
|
1524
|
+
sig { returns(T.nilable(String)) }
|
1508
1525
|
attr_accessor :bank
|
1509
|
-
sig { params(bank: String).void }
|
1526
|
+
sig { params(bank: T.nilable(String)).void }
|
1510
1527
|
def initialize(bank: nil); end
|
1511
1528
|
end
|
1512
1529
|
class PayByBank < Stripe::RequestParams
|
@@ -1520,65 +1537,28 @@ module Stripe
|
|
1520
1537
|
end
|
1521
1538
|
class Paypal < Stripe::RequestParams
|
1522
1539
|
|
1523
|
-
end
|
1524
|
-
class Payto < Stripe::RequestParams
|
1525
|
-
# The account number for the bank account.
|
1526
|
-
sig { returns(String) }
|
1527
|
-
attr_accessor :account_number
|
1528
|
-
# Bank-State-Branch number of the bank account.
|
1529
|
-
sig { returns(String) }
|
1530
|
-
attr_accessor :bsb_number
|
1531
|
-
# The PayID alias for the bank account.
|
1532
|
-
sig { returns(String) }
|
1533
|
-
attr_accessor :pay_id
|
1534
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
1535
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
1536
1540
|
end
|
1537
1541
|
class Pix < Stripe::RequestParams
|
1538
1542
|
|
1539
1543
|
end
|
1540
1544
|
class Promptpay < Stripe::RequestParams
|
1541
1545
|
|
1542
|
-
end
|
1543
|
-
class Qris < Stripe::RequestParams
|
1544
|
-
|
1545
1546
|
end
|
1546
1547
|
class RadarOptions < Stripe::RequestParams
|
1547
1548
|
# 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.
|
1548
|
-
sig { returns(String) }
|
1549
|
+
sig { returns(T.nilable(String)) }
|
1549
1550
|
attr_accessor :session
|
1550
|
-
sig { params(session: String).void }
|
1551
|
+
sig { params(session: T.nilable(String)).void }
|
1551
1552
|
def initialize(session: nil); end
|
1552
1553
|
end
|
1553
|
-
class Rechnung < Stripe::RequestParams
|
1554
|
-
class Dob < Stripe::RequestParams
|
1555
|
-
# The day of birth, between 1 and 31.
|
1556
|
-
sig { returns(Integer) }
|
1557
|
-
attr_accessor :day
|
1558
|
-
# The month of birth, between 1 and 12.
|
1559
|
-
sig { returns(Integer) }
|
1560
|
-
attr_accessor :month
|
1561
|
-
# The four-digit year of birth.
|
1562
|
-
sig { returns(Integer) }
|
1563
|
-
attr_accessor :year
|
1564
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
1565
|
-
def initialize(day: nil, month: nil, year: nil); end
|
1566
|
-
end
|
1567
|
-
# Customer's date of birth
|
1568
|
-
sig {
|
1569
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung::Dob)
|
1570
|
-
}
|
1571
|
-
attr_accessor :dob
|
1572
|
-
sig {
|
1573
|
-
params(dob: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung::Dob).void
|
1574
|
-
}
|
1575
|
-
def initialize(dob: nil); end
|
1576
|
-
end
|
1577
1554
|
class RevolutPay < Stripe::RequestParams
|
1578
1555
|
|
1579
1556
|
end
|
1580
1557
|
class SamsungPay < Stripe::RequestParams
|
1581
1558
|
|
1559
|
+
end
|
1560
|
+
class Satispay < Stripe::RequestParams
|
1561
|
+
|
1582
1562
|
end
|
1583
1563
|
class SepaDebit < Stripe::RequestParams
|
1584
1564
|
# IBAN of the bank account.
|
@@ -1586,9 +1566,6 @@ module Stripe
|
|
1586
1566
|
attr_accessor :iban
|
1587
1567
|
sig { params(iban: String).void }
|
1588
1568
|
def initialize(iban: nil); end
|
1589
|
-
end
|
1590
|
-
class Shopeepay < Stripe::RequestParams
|
1591
|
-
|
1592
1569
|
end
|
1593
1570
|
class Sofort < Stripe::RequestParams
|
1594
1571
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -1605,22 +1582,22 @@ module Stripe
|
|
1605
1582
|
end
|
1606
1583
|
class UsBankAccount < Stripe::RequestParams
|
1607
1584
|
# Account holder type: individual or company.
|
1608
|
-
sig { returns(String) }
|
1585
|
+
sig { returns(T.nilable(String)) }
|
1609
1586
|
attr_accessor :account_holder_type
|
1610
1587
|
# Account number of the bank account.
|
1611
|
-
sig { returns(String) }
|
1588
|
+
sig { returns(T.nilable(String)) }
|
1612
1589
|
attr_accessor :account_number
|
1613
1590
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
1614
|
-
sig { returns(String) }
|
1591
|
+
sig { returns(T.nilable(String)) }
|
1615
1592
|
attr_accessor :account_type
|
1616
1593
|
# The ID of a Financial Connections Account to use as a payment method.
|
1617
|
-
sig { returns(String) }
|
1594
|
+
sig { returns(T.nilable(String)) }
|
1618
1595
|
attr_accessor :financial_connections_account
|
1619
1596
|
# Routing number of the bank account.
|
1620
|
-
sig { returns(String) }
|
1597
|
+
sig { returns(T.nilable(String)) }
|
1621
1598
|
attr_accessor :routing_number
|
1622
1599
|
sig {
|
1623
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
1600
|
+
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
|
1624
1601
|
}
|
1625
1602
|
def initialize(
|
1626
1603
|
account_holder_type: nil,
|
@@ -1637,187 +1614,261 @@ module Stripe
|
|
1637
1614
|
|
1638
1615
|
end
|
1639
1616
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1640
|
-
sig {
|
1617
|
+
sig {
|
1618
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit))
|
1619
|
+
}
|
1641
1620
|
attr_accessor :acss_debit
|
1642
1621
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
1643
|
-
sig {
|
1622
|
+
sig {
|
1623
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm))
|
1624
|
+
}
|
1644
1625
|
attr_accessor :affirm
|
1645
1626
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
1646
1627
|
sig {
|
1647
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay)
|
1628
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay))
|
1648
1629
|
}
|
1649
1630
|
attr_accessor :afterpay_clearpay
|
1650
1631
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
1651
|
-
sig {
|
1632
|
+
sig {
|
1633
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay))
|
1634
|
+
}
|
1652
1635
|
attr_accessor :alipay
|
1653
1636
|
# 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`.
|
1654
|
-
sig { returns(String) }
|
1637
|
+
sig { returns(T.nilable(String)) }
|
1655
1638
|
attr_accessor :allow_redisplay
|
1656
1639
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
1657
|
-
sig {
|
1640
|
+
sig {
|
1641
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma))
|
1642
|
+
}
|
1658
1643
|
attr_accessor :alma
|
1659
1644
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
1660
|
-
sig {
|
1645
|
+
sig {
|
1646
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay))
|
1647
|
+
}
|
1661
1648
|
attr_accessor :amazon_pay
|
1662
1649
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
1663
|
-
sig {
|
1650
|
+
sig {
|
1651
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit))
|
1652
|
+
}
|
1664
1653
|
attr_accessor :au_becs_debit
|
1665
1654
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
1666
|
-
sig {
|
1655
|
+
sig {
|
1656
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit))
|
1657
|
+
}
|
1667
1658
|
attr_accessor :bacs_debit
|
1668
1659
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
1669
|
-
sig {
|
1660
|
+
sig {
|
1661
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact))
|
1662
|
+
}
|
1670
1663
|
attr_accessor :bancontact
|
1664
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
1665
|
+
sig {
|
1666
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Billie))
|
1667
|
+
}
|
1668
|
+
attr_accessor :billie
|
1671
1669
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
1672
1670
|
sig {
|
1673
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails)
|
1671
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails))
|
1674
1672
|
}
|
1675
1673
|
attr_accessor :billing_details
|
1676
1674
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
1677
|
-
sig {
|
1675
|
+
sig {
|
1676
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik))
|
1677
|
+
}
|
1678
1678
|
attr_accessor :blik
|
1679
1679
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
1680
|
-
sig {
|
1680
|
+
sig {
|
1681
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto))
|
1682
|
+
}
|
1681
1683
|
attr_accessor :boleto
|
1682
1684
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1683
|
-
sig {
|
1685
|
+
sig {
|
1686
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp))
|
1687
|
+
}
|
1684
1688
|
attr_accessor :cashapp
|
1685
1689
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
1686
1690
|
sig {
|
1687
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance)
|
1691
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance))
|
1688
1692
|
}
|
1689
1693
|
attr_accessor :customer_balance
|
1690
1694
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
1691
|
-
sig {
|
1695
|
+
sig {
|
1696
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps))
|
1697
|
+
}
|
1692
1698
|
attr_accessor :eps
|
1693
1699
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
1694
|
-
sig {
|
1700
|
+
sig {
|
1701
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx))
|
1702
|
+
}
|
1695
1703
|
attr_accessor :fpx
|
1696
1704
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1697
|
-
sig {
|
1705
|
+
sig {
|
1706
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay))
|
1707
|
+
}
|
1698
1708
|
attr_accessor :giropay
|
1699
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1700
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Gopay) }
|
1701
|
-
attr_accessor :gopay
|
1702
1709
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1703
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay) }
|
1704
|
-
attr_accessor :grabpay
|
1705
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1706
1710
|
sig {
|
1707
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::
|
1711
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay))
|
1708
1712
|
}
|
1709
|
-
attr_accessor :
|
1713
|
+
attr_accessor :grabpay
|
1710
1714
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1711
|
-
sig {
|
1715
|
+
sig {
|
1716
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal))
|
1717
|
+
}
|
1712
1718
|
attr_accessor :ideal
|
1713
1719
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
1714
1720
|
sig {
|
1715
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent)
|
1721
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent))
|
1716
1722
|
}
|
1717
1723
|
attr_accessor :interac_present
|
1718
1724
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
1719
|
-
sig {
|
1725
|
+
sig {
|
1726
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay))
|
1727
|
+
}
|
1720
1728
|
attr_accessor :kakao_pay
|
1721
1729
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
1722
|
-
sig {
|
1730
|
+
sig {
|
1731
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna))
|
1732
|
+
}
|
1723
1733
|
attr_accessor :klarna
|
1724
1734
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
1725
|
-
sig {
|
1735
|
+
sig {
|
1736
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini))
|
1737
|
+
}
|
1726
1738
|
attr_accessor :konbini
|
1727
1739
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
1728
|
-
sig {
|
1740
|
+
sig {
|
1741
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard))
|
1742
|
+
}
|
1729
1743
|
attr_accessor :kr_card
|
1730
1744
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1731
|
-
sig {
|
1745
|
+
sig {
|
1746
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link))
|
1747
|
+
}
|
1732
1748
|
attr_accessor :link
|
1733
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
1734
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::MbWay) }
|
1735
|
-
attr_accessor :mb_way
|
1736
1749
|
# 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`.
|
1737
|
-
sig { returns(T::Hash[String, String]) }
|
1750
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
1738
1751
|
attr_accessor :metadata
|
1739
1752
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
1740
|
-
sig {
|
1753
|
+
sig {
|
1754
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay))
|
1755
|
+
}
|
1741
1756
|
attr_accessor :mobilepay
|
1742
1757
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
1743
|
-
sig {
|
1758
|
+
sig {
|
1759
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco))
|
1760
|
+
}
|
1744
1761
|
attr_accessor :multibanco
|
1745
1762
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
1746
|
-
sig {
|
1763
|
+
sig {
|
1764
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay))
|
1765
|
+
}
|
1747
1766
|
attr_accessor :naver_pay
|
1767
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
1768
|
+
sig {
|
1769
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NzBankAccount))
|
1770
|
+
}
|
1771
|
+
attr_accessor :nz_bank_account
|
1748
1772
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
1749
|
-
sig {
|
1773
|
+
sig {
|
1774
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo))
|
1775
|
+
}
|
1750
1776
|
attr_accessor :oxxo
|
1751
1777
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
1752
|
-
sig {
|
1778
|
+
sig {
|
1779
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24))
|
1780
|
+
}
|
1753
1781
|
attr_accessor :p24
|
1754
1782
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
1755
|
-
sig {
|
1783
|
+
sig {
|
1784
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::PayByBank))
|
1785
|
+
}
|
1756
1786
|
attr_accessor :pay_by_bank
|
1757
1787
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
1758
|
-
sig {
|
1788
|
+
sig {
|
1789
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco))
|
1790
|
+
}
|
1759
1791
|
attr_accessor :payco
|
1760
1792
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
1761
|
-
sig {
|
1793
|
+
sig {
|
1794
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow))
|
1795
|
+
}
|
1762
1796
|
attr_accessor :paynow
|
1763
1797
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1764
|
-
sig {
|
1798
|
+
sig {
|
1799
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal))
|
1800
|
+
}
|
1765
1801
|
attr_accessor :paypal
|
1766
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1767
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payto) }
|
1768
|
-
attr_accessor :payto
|
1769
1802
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1770
|
-
sig {
|
1803
|
+
sig {
|
1804
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix))
|
1805
|
+
}
|
1771
1806
|
attr_accessor :pix
|
1772
1807
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1773
|
-
sig {
|
1808
|
+
sig {
|
1809
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay))
|
1810
|
+
}
|
1774
1811
|
attr_accessor :promptpay
|
1775
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1776
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Qris) }
|
1777
|
-
attr_accessor :qris
|
1778
1812
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1779
|
-
sig {
|
1813
|
+
sig {
|
1814
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions))
|
1815
|
+
}
|
1780
1816
|
attr_accessor :radar_options
|
1781
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1782
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Rechnung) }
|
1783
|
-
attr_accessor :rechnung
|
1784
1817
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1785
|
-
sig {
|
1818
|
+
sig {
|
1819
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay))
|
1820
|
+
}
|
1786
1821
|
attr_accessor :revolut_pay
|
1787
1822
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1788
|
-
sig {
|
1823
|
+
sig {
|
1824
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay))
|
1825
|
+
}
|
1789
1826
|
attr_accessor :samsung_pay
|
1827
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
1828
|
+
sig {
|
1829
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Satispay))
|
1830
|
+
}
|
1831
|
+
attr_accessor :satispay
|
1790
1832
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1791
|
-
sig {
|
1833
|
+
sig {
|
1834
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit))
|
1835
|
+
}
|
1792
1836
|
attr_accessor :sepa_debit
|
1793
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1794
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Shopeepay) }
|
1795
|
-
attr_accessor :shopeepay
|
1796
1837
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1797
|
-
sig {
|
1838
|
+
sig {
|
1839
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort))
|
1840
|
+
}
|
1798
1841
|
attr_accessor :sofort
|
1799
1842
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1800
|
-
sig {
|
1843
|
+
sig {
|
1844
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish))
|
1845
|
+
}
|
1801
1846
|
attr_accessor :swish
|
1802
1847
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
1803
|
-
sig {
|
1848
|
+
sig {
|
1849
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint))
|
1850
|
+
}
|
1804
1851
|
attr_accessor :twint
|
1805
1852
|
# 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.
|
1806
1853
|
sig { returns(String) }
|
1807
1854
|
attr_accessor :type
|
1808
1855
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
1809
1856
|
sig {
|
1810
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount)
|
1857
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount))
|
1811
1858
|
}
|
1812
1859
|
attr_accessor :us_bank_account
|
1813
1860
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
1814
|
-
sig {
|
1861
|
+
sig {
|
1862
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay))
|
1863
|
+
}
|
1815
1864
|
attr_accessor :wechat_pay
|
1816
1865
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
1817
|
-
sig {
|
1866
|
+
sig {
|
1867
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip))
|
1868
|
+
}
|
1818
1869
|
attr_accessor :zip
|
1819
1870
|
sig {
|
1820
|
-
params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay,
|
1871
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData::Zip)).void
|
1821
1872
|
}
|
1822
1873
|
def initialize(
|
1823
1874
|
acss_debit: nil,
|
@@ -1830,6 +1881,7 @@ module Stripe
|
|
1830
1881
|
au_becs_debit: nil,
|
1831
1882
|
bacs_debit: nil,
|
1832
1883
|
bancontact: nil,
|
1884
|
+
billie: nil,
|
1833
1885
|
billing_details: nil,
|
1834
1886
|
blik: nil,
|
1835
1887
|
boleto: nil,
|
@@ -1838,9 +1890,7 @@ module Stripe
|
|
1838
1890
|
eps: nil,
|
1839
1891
|
fpx: nil,
|
1840
1892
|
giropay: nil,
|
1841
|
-
gopay: nil,
|
1842
1893
|
grabpay: nil,
|
1843
|
-
id_bank_transfer: nil,
|
1844
1894
|
ideal: nil,
|
1845
1895
|
interac_present: nil,
|
1846
1896
|
kakao_pay: nil,
|
@@ -1848,27 +1898,24 @@ module Stripe
|
|
1848
1898
|
konbini: nil,
|
1849
1899
|
kr_card: nil,
|
1850
1900
|
link: nil,
|
1851
|
-
mb_way: nil,
|
1852
1901
|
metadata: nil,
|
1853
1902
|
mobilepay: nil,
|
1854
1903
|
multibanco: nil,
|
1855
1904
|
naver_pay: nil,
|
1905
|
+
nz_bank_account: nil,
|
1856
1906
|
oxxo: nil,
|
1857
1907
|
p24: nil,
|
1858
1908
|
pay_by_bank: nil,
|
1859
1909
|
payco: nil,
|
1860
1910
|
paynow: nil,
|
1861
1911
|
paypal: nil,
|
1862
|
-
payto: nil,
|
1863
1912
|
pix: nil,
|
1864
1913
|
promptpay: nil,
|
1865
|
-
qris: nil,
|
1866
1914
|
radar_options: nil,
|
1867
|
-
rechnung: nil,
|
1868
1915
|
revolut_pay: nil,
|
1869
1916
|
samsung_pay: nil,
|
1917
|
+
satispay: nil,
|
1870
1918
|
sepa_debit: nil,
|
1871
|
-
shopeepay: nil,
|
1872
1919
|
sofort: nil,
|
1873
1920
|
swish: nil,
|
1874
1921
|
twint: nil,
|
@@ -1884,22 +1931,22 @@ module Stripe
|
|
1884
1931
|
# A URL for custom mandate text to render during confirmation step.
|
1885
1932
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
1886
1933
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
1887
|
-
sig { returns(T.nilable(String)) }
|
1934
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1888
1935
|
attr_accessor :custom_mandate_url
|
1889
1936
|
# List of Stripe products where this mandate can be selected automatically.
|
1890
|
-
sig { returns(T::Array[String]) }
|
1937
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1891
1938
|
attr_accessor :default_for
|
1892
1939
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
1893
|
-
sig { returns(String) }
|
1940
|
+
sig { returns(T.nilable(String)) }
|
1894
1941
|
attr_accessor :interval_description
|
1895
1942
|
# Payment schedule for the mandate.
|
1896
|
-
sig { returns(String) }
|
1943
|
+
sig { returns(T.nilable(String)) }
|
1897
1944
|
attr_accessor :payment_schedule
|
1898
1945
|
# Transaction type of the mandate.
|
1899
|
-
sig { returns(String) }
|
1946
|
+
sig { returns(T.nilable(String)) }
|
1900
1947
|
attr_accessor :transaction_type
|
1901
1948
|
sig {
|
1902
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
1949
|
+
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
|
1903
1950
|
}
|
1904
1951
|
def initialize(
|
1905
1952
|
custom_mandate_url: nil,
|
@@ -1910,18 +1957,18 @@ module Stripe
|
|
1910
1957
|
); end
|
1911
1958
|
end
|
1912
1959
|
# 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).
|
1913
|
-
sig { returns(String) }
|
1960
|
+
sig { returns(T.nilable(String)) }
|
1914
1961
|
attr_accessor :currency
|
1915
1962
|
# Additional fields for Mandate creation
|
1916
1963
|
sig {
|
1917
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
1964
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
1918
1965
|
}
|
1919
1966
|
attr_accessor :mandate_options
|
1920
1967
|
# Bank account verification method.
|
1921
|
-
sig { returns(String) }
|
1968
|
+
sig { returns(T.nilable(String)) }
|
1922
1969
|
attr_accessor :verification_method
|
1923
1970
|
sig {
|
1924
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
1971
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
1925
1972
|
}
|
1926
1973
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
1927
1974
|
end
|
@@ -1931,18 +1978,18 @@ module Stripe
|
|
1931
1978
|
class BacsDebit < Stripe::RequestParams
|
1932
1979
|
class MandateOptions < Stripe::RequestParams
|
1933
1980
|
# 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'.
|
1934
|
-
sig { returns(T.nilable(String)) }
|
1981
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
1935
1982
|
attr_accessor :reference_prefix
|
1936
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
1983
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
1937
1984
|
def initialize(reference_prefix: nil); end
|
1938
1985
|
end
|
1939
1986
|
# Additional fields for Mandate creation
|
1940
1987
|
sig {
|
1941
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
1988
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
1942
1989
|
}
|
1943
1990
|
attr_accessor :mandate_options
|
1944
1991
|
sig {
|
1945
|
-
params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
1992
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
1946
1993
|
}
|
1947
1994
|
def initialize(mandate_options: nil); end
|
1948
1995
|
end
|
@@ -1958,16 +2005,16 @@ module Stripe
|
|
1958
2005
|
sig { returns(String) }
|
1959
2006
|
attr_accessor :currency
|
1960
2007
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
1961
|
-
sig { returns(String) }
|
2008
|
+
sig { returns(T.nilable(String)) }
|
1962
2009
|
attr_accessor :description
|
1963
2010
|
# 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.
|
1964
|
-
sig { returns(Integer) }
|
2011
|
+
sig { returns(T.nilable(Integer)) }
|
1965
2012
|
attr_accessor :end_date
|
1966
2013
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
1967
2014
|
sig { returns(String) }
|
1968
2015
|
attr_accessor :interval
|
1969
2016
|
# 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`.
|
1970
|
-
sig { returns(Integer) }
|
2017
|
+
sig { returns(T.nilable(Integer)) }
|
1971
2018
|
attr_accessor :interval_count
|
1972
2019
|
# Unique identifier for the mandate or subscription.
|
1973
2020
|
sig { returns(String) }
|
@@ -1976,10 +2023,10 @@ module Stripe
|
|
1976
2023
|
sig { returns(Integer) }
|
1977
2024
|
attr_accessor :start_date
|
1978
2025
|
# Specifies the type of mandates supported. Possible values are `india`.
|
1979
|
-
sig { returns(T::Array[String]) }
|
2026
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1980
2027
|
attr_accessor :supported_types
|
1981
2028
|
sig {
|
1982
|
-
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
|
2029
|
+
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
|
1983
2030
|
}
|
1984
2031
|
def initialize(
|
1985
2032
|
amount: nil,
|
@@ -2006,58 +2053,60 @@ module Stripe
|
|
2006
2053
|
# message extension: CB-EXEMPTION; string (4 characters)
|
2007
2054
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
2008
2055
|
# bit first) that has been Base64 encoded
|
2009
|
-
sig { returns(String) }
|
2056
|
+
sig { returns(T.nilable(String)) }
|
2010
2057
|
attr_accessor :cb_exemption
|
2011
2058
|
# The risk score returned from Cartes Bancaires in the ARes.
|
2012
2059
|
# message extension: CB-SCORE; numeric value 0-99
|
2013
|
-
sig { returns(Integer) }
|
2060
|
+
sig { returns(T.nilable(Integer)) }
|
2014
2061
|
attr_accessor :cb_score
|
2015
|
-
sig {
|
2062
|
+
sig {
|
2063
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
2064
|
+
}
|
2016
2065
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
2017
2066
|
end
|
2018
2067
|
# Cartes Bancaires-specific 3DS fields.
|
2019
2068
|
sig {
|
2020
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
2069
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
2021
2070
|
}
|
2022
2071
|
attr_accessor :cartes_bancaires
|
2023
2072
|
sig {
|
2024
|
-
params(cartes_bancaires: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
2073
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
2025
2074
|
}
|
2026
2075
|
def initialize(cartes_bancaires: nil); end
|
2027
2076
|
end
|
2028
2077
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
2029
|
-
sig { returns(String) }
|
2078
|
+
sig { returns(T.nilable(String)) }
|
2030
2079
|
attr_accessor :ares_trans_status
|
2031
2080
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
2032
2081
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
2033
2082
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
2034
2083
|
# is what you should specify here.)
|
2035
|
-
sig { returns(String) }
|
2084
|
+
sig { returns(T.nilable(String)) }
|
2036
2085
|
attr_accessor :cryptogram
|
2037
2086
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
2038
2087
|
# provider and indicates what degree of authentication was performed.
|
2039
|
-
sig { returns(String) }
|
2088
|
+
sig { returns(T.nilable(String)) }
|
2040
2089
|
attr_accessor :electronic_commerce_indicator
|
2041
2090
|
# Network specific 3DS fields. Network specific arguments require an
|
2042
2091
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
2043
2092
|
# must be populated accordingly
|
2044
2093
|
sig {
|
2045
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
2094
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
2046
2095
|
}
|
2047
2096
|
attr_accessor :network_options
|
2048
2097
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
2049
2098
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
2050
|
-
sig { returns(String) }
|
2099
|
+
sig { returns(T.nilable(String)) }
|
2051
2100
|
attr_accessor :requestor_challenge_indicator
|
2052
2101
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
2053
2102
|
# Transaction ID (dsTransID).
|
2054
|
-
sig { returns(String) }
|
2103
|
+
sig { returns(T.nilable(String)) }
|
2055
2104
|
attr_accessor :transaction_id
|
2056
2105
|
# The version of 3D Secure that was performed.
|
2057
|
-
sig { returns(String) }
|
2106
|
+
sig { returns(T.nilable(String)) }
|
2058
2107
|
attr_accessor :version
|
2059
2108
|
sig {
|
2060
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
2109
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
2061
2110
|
}
|
2062
2111
|
def initialize(
|
2063
2112
|
ares_trans_status: nil,
|
@@ -2071,28 +2120,28 @@ module Stripe
|
|
2071
2120
|
end
|
2072
2121
|
# Configuration options for setting up an eMandate for cards issued in India.
|
2073
2122
|
sig {
|
2074
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions)
|
2123
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions))
|
2075
2124
|
}
|
2076
2125
|
attr_accessor :mandate_options
|
2077
2126
|
# When specified, this parameter signals that a card has been collected
|
2078
2127
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
2079
2128
|
# parameter can only be provided during confirmation.
|
2080
|
-
sig { returns(T::Boolean) }
|
2129
|
+
sig { returns(T.nilable(T::Boolean)) }
|
2081
2130
|
attr_accessor :moto
|
2082
2131
|
# 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.
|
2083
|
-
sig { returns(String) }
|
2132
|
+
sig { returns(T.nilable(String)) }
|
2084
2133
|
attr_accessor :network
|
2085
2134
|
# 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.
|
2086
|
-
sig { returns(String) }
|
2135
|
+
sig { returns(T.nilable(String)) }
|
2087
2136
|
attr_accessor :request_three_d_secure
|
2088
2137
|
# If 3D Secure authentication was performed with a third-party provider,
|
2089
2138
|
# the authentication details to use for this setup.
|
2090
2139
|
sig {
|
2091
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)
|
2140
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure))
|
2092
2141
|
}
|
2093
2142
|
attr_accessor :three_d_secure
|
2094
2143
|
sig {
|
2095
|
-
params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
2144
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::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::SetupIntentService::UpdateParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
2096
2145
|
}
|
2097
2146
|
def initialize(
|
2098
2147
|
mandate_options: nil,
|
@@ -2107,87 +2156,33 @@ module Stripe
|
|
2107
2156
|
end
|
2108
2157
|
class Link < Stripe::RequestParams
|
2109
2158
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
2110
|
-
sig { returns(String) }
|
2159
|
+
sig { returns(T.nilable(String)) }
|
2111
2160
|
attr_accessor :persistent_token
|
2112
|
-
sig { params(persistent_token: String).void }
|
2161
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
2113
2162
|
def initialize(persistent_token: nil); end
|
2114
2163
|
end
|
2115
2164
|
class Paypal < Stripe::RequestParams
|
2116
2165
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
2117
|
-
sig { returns(String) }
|
2166
|
+
sig { returns(T.nilable(String)) }
|
2118
2167
|
attr_accessor :billing_agreement_id
|
2119
|
-
|
2120
|
-
|
2121
|
-
attr_accessor :currency
|
2122
|
-
# 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.
|
2123
|
-
sig { returns(T::Array[String]) }
|
2124
|
-
attr_accessor :subsellers
|
2125
|
-
sig {
|
2126
|
-
params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
|
2127
|
-
}
|
2128
|
-
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
|
2129
|
-
end
|
2130
|
-
class Payto < Stripe::RequestParams
|
2131
|
-
class MandateOptions < Stripe::RequestParams
|
2132
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2133
|
-
sig { returns(Integer) }
|
2134
|
-
attr_accessor :amount
|
2135
|
-
# 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.
|
2136
|
-
sig { returns(String) }
|
2137
|
-
attr_accessor :amount_type
|
2138
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2139
|
-
sig { returns(String) }
|
2140
|
-
attr_accessor :end_date
|
2141
|
-
# The periodicity at which payments will be collected.
|
2142
|
-
sig { returns(String) }
|
2143
|
-
attr_accessor :payment_schedule
|
2144
|
-
# 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.
|
2145
|
-
sig { returns(Integer) }
|
2146
|
-
attr_accessor :payments_per_period
|
2147
|
-
# The purpose for which payments are made. Defaults to retail.
|
2148
|
-
sig { returns(String) }
|
2149
|
-
attr_accessor :purpose
|
2150
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
2151
|
-
sig { returns(String) }
|
2152
|
-
attr_accessor :start_date
|
2153
|
-
sig {
|
2154
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
2155
|
-
}
|
2156
|
-
def initialize(
|
2157
|
-
amount: nil,
|
2158
|
-
amount_type: nil,
|
2159
|
-
end_date: nil,
|
2160
|
-
payment_schedule: nil,
|
2161
|
-
payments_per_period: nil,
|
2162
|
-
purpose: nil,
|
2163
|
-
start_date: nil
|
2164
|
-
); end
|
2165
|
-
end
|
2166
|
-
# Additional fields for Mandate creation.
|
2167
|
-
sig {
|
2168
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto::MandateOptions)
|
2169
|
-
}
|
2170
|
-
attr_accessor :mandate_options
|
2171
|
-
sig {
|
2172
|
-
params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto::MandateOptions).void
|
2173
|
-
}
|
2174
|
-
def initialize(mandate_options: nil); end
|
2168
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
2169
|
+
def initialize(billing_agreement_id: nil); end
|
2175
2170
|
end
|
2176
2171
|
class SepaDebit < Stripe::RequestParams
|
2177
2172
|
class MandateOptions < Stripe::RequestParams
|
2178
2173
|
# 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'.
|
2179
|
-
sig { returns(T.nilable(String)) }
|
2174
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2180
2175
|
attr_accessor :reference_prefix
|
2181
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
2176
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
2182
2177
|
def initialize(reference_prefix: nil); end
|
2183
2178
|
end
|
2184
2179
|
# Additional fields for Mandate creation
|
2185
2180
|
sig {
|
2186
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
2181
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
2187
2182
|
}
|
2188
2183
|
attr_accessor :mandate_options
|
2189
2184
|
sig {
|
2190
|
-
params(mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
2185
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
2191
2186
|
}
|
2192
2187
|
def initialize(mandate_options: nil); end
|
2193
2188
|
end
|
@@ -2195,85 +2190,64 @@ module Stripe
|
|
2195
2190
|
class FinancialConnections < Stripe::RequestParams
|
2196
2191
|
class Filters < Stripe::RequestParams
|
2197
2192
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
2198
|
-
sig { returns(T::Array[String]) }
|
2193
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2199
2194
|
attr_accessor :account_subcategories
|
2200
|
-
|
2201
|
-
|
2202
|
-
attr_accessor :institution
|
2203
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
2204
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
2205
|
-
end
|
2206
|
-
class ManualEntry < Stripe::RequestParams
|
2207
|
-
# Settings for configuring manual entry of account details.
|
2208
|
-
sig { returns(String) }
|
2209
|
-
attr_accessor :mode
|
2210
|
-
sig { params(mode: String).void }
|
2211
|
-
def initialize(mode: nil); end
|
2195
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
2196
|
+
def initialize(account_subcategories: nil); end
|
2212
2197
|
end
|
2213
2198
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
2214
2199
|
sig {
|
2215
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
2200
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
2216
2201
|
}
|
2217
2202
|
attr_accessor :filters
|
2218
|
-
# Customize manual entry behavior
|
2219
|
-
sig {
|
2220
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
2221
|
-
}
|
2222
|
-
attr_accessor :manual_entry
|
2223
2203
|
# 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`.
|
2224
|
-
sig { returns(T::Array[String]) }
|
2204
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2225
2205
|
attr_accessor :permissions
|
2226
2206
|
# List of data features that you would like to retrieve upon account creation.
|
2227
|
-
sig { returns(T::Array[String]) }
|
2207
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2228
2208
|
attr_accessor :prefetch
|
2229
2209
|
# 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.
|
2230
|
-
sig { returns(String) }
|
2210
|
+
sig { returns(T.nilable(String)) }
|
2231
2211
|
attr_accessor :return_url
|
2232
2212
|
sig {
|
2233
|
-
params(filters: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
2213
|
+
params(filters: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
2234
2214
|
}
|
2235
|
-
def initialize(
|
2236
|
-
filters: nil,
|
2237
|
-
manual_entry: nil,
|
2238
|
-
permissions: nil,
|
2239
|
-
prefetch: nil,
|
2240
|
-
return_url: nil
|
2241
|
-
); end
|
2215
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
2242
2216
|
end
|
2243
2217
|
class MandateOptions < Stripe::RequestParams
|
2244
2218
|
# The method used to collect offline mandate customer acceptance.
|
2245
|
-
sig { returns(T.nilable(String)) }
|
2219
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2246
2220
|
attr_accessor :collection_method
|
2247
|
-
sig { params(collection_method: T.nilable(String)).void }
|
2221
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
2248
2222
|
def initialize(collection_method: nil); end
|
2249
2223
|
end
|
2250
2224
|
class Networks < Stripe::RequestParams
|
2251
2225
|
# Triggers validations to run across the selected networks
|
2252
|
-
sig { returns(T::Array[String]) }
|
2226
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2253
2227
|
attr_accessor :requested
|
2254
|
-
sig { params(requested: T::Array[String]).void }
|
2228
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
2255
2229
|
def initialize(requested: nil); end
|
2256
2230
|
end
|
2257
2231
|
# Additional fields for Financial Connections Session creation
|
2258
2232
|
sig {
|
2259
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
2233
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
2260
2234
|
}
|
2261
2235
|
attr_accessor :financial_connections
|
2262
2236
|
# Additional fields for Mandate creation
|
2263
2237
|
sig {
|
2264
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
2238
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
2265
2239
|
}
|
2266
2240
|
attr_accessor :mandate_options
|
2267
2241
|
# Additional fields for network related functions
|
2268
2242
|
sig {
|
2269
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks)
|
2243
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks))
|
2270
2244
|
}
|
2271
2245
|
attr_accessor :networks
|
2272
2246
|
# Bank account verification method.
|
2273
|
-
sig { returns(String) }
|
2247
|
+
sig { returns(T.nilable(String)) }
|
2274
2248
|
attr_accessor :verification_method
|
2275
2249
|
sig {
|
2276
|
-
params(financial_connections: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
2250
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
2277
2251
|
}
|
2278
2252
|
def initialize(
|
2279
2253
|
financial_connections: nil,
|
@@ -2283,41 +2257,52 @@ module Stripe
|
|
2283
2257
|
); end
|
2284
2258
|
end
|
2285
2259
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
2286
|
-
sig {
|
2260
|
+
sig {
|
2261
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit))
|
2262
|
+
}
|
2287
2263
|
attr_accessor :acss_debit
|
2288
2264
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
2289
|
-
sig {
|
2265
|
+
sig {
|
2266
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AmazonPay))
|
2267
|
+
}
|
2290
2268
|
attr_accessor :amazon_pay
|
2291
2269
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
2292
|
-
sig {
|
2270
|
+
sig {
|
2271
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit))
|
2272
|
+
}
|
2293
2273
|
attr_accessor :bacs_debit
|
2294
2274
|
# Configuration for any card setup attempted on this SetupIntent.
|
2295
|
-
sig {
|
2275
|
+
sig {
|
2276
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card))
|
2277
|
+
}
|
2296
2278
|
attr_accessor :card
|
2297
2279
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
2298
2280
|
sig {
|
2299
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent)
|
2281
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent))
|
2300
2282
|
}
|
2301
2283
|
attr_accessor :card_present
|
2302
2284
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
2303
|
-
sig {
|
2285
|
+
sig {
|
2286
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Link))
|
2287
|
+
}
|
2304
2288
|
attr_accessor :link
|
2305
2289
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2306
|
-
sig {
|
2290
|
+
sig {
|
2291
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Paypal))
|
2292
|
+
}
|
2307
2293
|
attr_accessor :paypal
|
2308
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
2309
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Payto) }
|
2310
|
-
attr_accessor :payto
|
2311
2294
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2312
|
-
sig {
|
2295
|
+
sig {
|
2296
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit))
|
2297
|
+
}
|
2313
2298
|
attr_accessor :sepa_debit
|
2314
2299
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
2315
2300
|
sig {
|
2316
|
-
returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount)
|
2301
|
+
returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount))
|
2317
2302
|
}
|
2318
2303
|
attr_accessor :us_bank_account
|
2319
2304
|
sig {
|
2320
|
-
params(acss_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Paypal,
|
2305
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount)).void
|
2321
2306
|
}
|
2322
2307
|
def initialize(
|
2323
2308
|
acss_debit: nil,
|
@@ -2327,7 +2312,6 @@ module Stripe
|
|
2327
2312
|
card_present: nil,
|
2328
2313
|
link: nil,
|
2329
2314
|
paypal: nil,
|
2330
|
-
payto: nil,
|
2331
2315
|
sepa_debit: nil,
|
2332
2316
|
us_bank_account: nil
|
2333
2317
|
); end
|
@@ -2335,45 +2319,45 @@ module Stripe
|
|
2335
2319
|
# If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
2336
2320
|
#
|
2337
2321
|
# 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.
|
2338
|
-
sig { returns(T::Boolean) }
|
2322
|
+
sig { returns(T.nilable(T::Boolean)) }
|
2339
2323
|
attr_accessor :attach_to_self
|
2340
2324
|
# ID of the Customer this SetupIntent belongs to, if one exists.
|
2341
2325
|
#
|
2342
2326
|
# 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.
|
2343
|
-
sig { returns(String) }
|
2327
|
+
sig { returns(T.nilable(String)) }
|
2344
2328
|
attr_accessor :customer
|
2345
2329
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2346
|
-
sig { returns(String) }
|
2330
|
+
sig { returns(T.nilable(String)) }
|
2347
2331
|
attr_accessor :description
|
2348
2332
|
# Specifies which fields in the response should be expanded.
|
2349
|
-
sig { returns(T::Array[String]) }
|
2333
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2350
2334
|
attr_accessor :expand
|
2351
2335
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
2352
2336
|
#
|
2353
2337
|
# 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.
|
2354
|
-
sig { returns(T::Array[String]) }
|
2338
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2355
2339
|
attr_accessor :flow_directions
|
2356
2340
|
# 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`.
|
2357
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
2341
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
2358
2342
|
attr_accessor :metadata
|
2359
2343
|
# 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.
|
2360
|
-
sig { returns(String) }
|
2344
|
+
sig { returns(T.nilable(String)) }
|
2361
2345
|
attr_accessor :payment_method
|
2362
2346
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
|
2363
|
-
sig { returns(String) }
|
2347
|
+
sig { returns(T.nilable(String)) }
|
2364
2348
|
attr_accessor :payment_method_configuration
|
2365
2349
|
# 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)
|
2366
2350
|
# value in the SetupIntent.
|
2367
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData) }
|
2351
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodData)) }
|
2368
2352
|
attr_accessor :payment_method_data
|
2369
2353
|
# Payment method-specific configuration for this SetupIntent.
|
2370
|
-
sig { returns(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions) }
|
2354
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions)) }
|
2371
2355
|
attr_accessor :payment_method_options
|
2372
2356
|
# 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).
|
2373
|
-
sig { returns(T::Array[String]) }
|
2357
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2374
2358
|
attr_accessor :payment_method_types
|
2375
2359
|
sig {
|
2376
|
-
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::SetupIntentService::UpdateParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions, payment_method_types: T::Array[String]).void
|
2360
|
+
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::SetupIntentService::UpdateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::UpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void
|
2377
2361
|
}
|
2378
2362
|
def initialize(
|
2379
2363
|
attach_to_self: nil,
|
@@ -2391,12 +2375,14 @@ module Stripe
|
|
2391
2375
|
end
|
2392
2376
|
class CancelParams < Stripe::RequestParams
|
2393
2377
|
# Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`
|
2394
|
-
sig { returns(String) }
|
2378
|
+
sig { returns(T.nilable(String)) }
|
2395
2379
|
attr_accessor :cancellation_reason
|
2396
2380
|
# Specifies which fields in the response should be expanded.
|
2397
|
-
sig { returns(T::Array[String]) }
|
2381
|
+
sig { returns(T.nilable(T::Array[String])) }
|
2398
2382
|
attr_accessor :expand
|
2399
|
-
sig {
|
2383
|
+
sig {
|
2384
|
+
params(cancellation_reason: T.nilable(String), expand: T.nilable(T::Array[String])).void
|
2385
|
+
}
|
2400
2386
|
def initialize(cancellation_reason: nil, expand: nil); end
|
2401
2387
|
end
|
2402
2388
|
class ConfirmParams < Stripe::RequestParams
|
@@ -2407,42 +2393,42 @@ module Stripe
|
|
2407
2393
|
end
|
2408
2394
|
class Online < Stripe::RequestParams
|
2409
2395
|
# The IP address from which the Mandate was accepted by the customer.
|
2410
|
-
sig { returns(String) }
|
2396
|
+
sig { returns(T.nilable(String)) }
|
2411
2397
|
attr_accessor :ip_address
|
2412
2398
|
# The user agent of the browser from which the Mandate was accepted by the customer.
|
2413
|
-
sig { returns(String) }
|
2399
|
+
sig { returns(T.nilable(String)) }
|
2414
2400
|
attr_accessor :user_agent
|
2415
|
-
sig { params(ip_address: String, user_agent: String).void }
|
2401
|
+
sig { params(ip_address: T.nilable(String), user_agent: T.nilable(String)).void }
|
2416
2402
|
def initialize(ip_address: nil, user_agent: nil); end
|
2417
2403
|
end
|
2418
2404
|
# The time at which the customer accepted the Mandate.
|
2419
|
-
sig { returns(Integer) }
|
2405
|
+
sig { returns(T.nilable(Integer)) }
|
2420
2406
|
attr_accessor :accepted_at
|
2421
2407
|
# If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
|
2422
2408
|
sig {
|
2423
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline)
|
2409
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline))
|
2424
2410
|
}
|
2425
2411
|
attr_accessor :offline
|
2426
2412
|
# If this is a Mandate accepted online, this hash contains details about the online acceptance.
|
2427
2413
|
sig {
|
2428
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online)
|
2414
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online))
|
2429
2415
|
}
|
2430
2416
|
attr_accessor :online
|
2431
2417
|
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
2432
2418
|
sig { returns(String) }
|
2433
2419
|
attr_accessor :type
|
2434
2420
|
sig {
|
2435
|
-
params(accepted_at: Integer, offline: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline, online: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online, type: String).void
|
2421
|
+
params(accepted_at: T.nilable(Integer), offline: T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Offline), online: T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance::Online), type: String).void
|
2436
2422
|
}
|
2437
2423
|
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil); end
|
2438
2424
|
end
|
2439
2425
|
# This hash contains details about the customer acceptance of the Mandate.
|
2440
2426
|
sig {
|
2441
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance)
|
2427
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance))
|
2442
2428
|
}
|
2443
2429
|
attr_accessor :customer_acceptance
|
2444
2430
|
sig {
|
2445
|
-
params(customer_acceptance: ::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance).void
|
2431
|
+
params(customer_acceptance: T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData::CustomerAcceptance)).void
|
2446
2432
|
}
|
2447
2433
|
def initialize(customer_acceptance: nil); end
|
2448
2434
|
end
|
@@ -2489,39 +2475,42 @@ module Stripe
|
|
2489
2475
|
end
|
2490
2476
|
class BacsDebit < Stripe::RequestParams
|
2491
2477
|
# Account number of the bank account that the funds will be debited from.
|
2492
|
-
sig { returns(String) }
|
2478
|
+
sig { returns(T.nilable(String)) }
|
2493
2479
|
attr_accessor :account_number
|
2494
2480
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
2495
|
-
sig { returns(String) }
|
2481
|
+
sig { returns(T.nilable(String)) }
|
2496
2482
|
attr_accessor :sort_code
|
2497
|
-
sig { params(account_number: String, sort_code: String).void }
|
2483
|
+
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
2498
2484
|
def initialize(account_number: nil, sort_code: nil); end
|
2499
2485
|
end
|
2500
2486
|
class Bancontact < Stripe::RequestParams
|
2501
2487
|
|
2488
|
+
end
|
2489
|
+
class Billie < Stripe::RequestParams
|
2490
|
+
|
2502
2491
|
end
|
2503
2492
|
class BillingDetails < Stripe::RequestParams
|
2504
2493
|
class Address < Stripe::RequestParams
|
2505
2494
|
# City, district, suburb, town, or village.
|
2506
|
-
sig { returns(String) }
|
2495
|
+
sig { returns(T.nilable(String)) }
|
2507
2496
|
attr_accessor :city
|
2508
2497
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2509
|
-
sig { returns(String) }
|
2498
|
+
sig { returns(T.nilable(String)) }
|
2510
2499
|
attr_accessor :country
|
2511
2500
|
# Address line 1 (e.g., street, PO Box, or company name).
|
2512
|
-
sig { returns(String) }
|
2501
|
+
sig { returns(T.nilable(String)) }
|
2513
2502
|
attr_accessor :line1
|
2514
2503
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2515
|
-
sig { returns(String) }
|
2504
|
+
sig { returns(T.nilable(String)) }
|
2516
2505
|
attr_accessor :line2
|
2517
2506
|
# ZIP or postal code.
|
2518
|
-
sig { returns(String) }
|
2507
|
+
sig { returns(T.nilable(String)) }
|
2519
2508
|
attr_accessor :postal_code
|
2520
2509
|
# State, county, province, or region.
|
2521
|
-
sig { returns(String) }
|
2510
|
+
sig { returns(T.nilable(String)) }
|
2522
2511
|
attr_accessor :state
|
2523
2512
|
sig {
|
2524
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
2513
|
+
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
|
2525
2514
|
}
|
2526
2515
|
def initialize(
|
2527
2516
|
city: nil,
|
@@ -2534,20 +2523,20 @@ module Stripe
|
|
2534
2523
|
end
|
2535
2524
|
# Billing address.
|
2536
2525
|
sig {
|
2537
|
-
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))
|
2526
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))))
|
2538
2527
|
}
|
2539
2528
|
attr_accessor :address
|
2540
2529
|
# Email address.
|
2541
|
-
sig { returns(T.nilable(String)) }
|
2530
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2542
2531
|
attr_accessor :email
|
2543
2532
|
# Full name.
|
2544
|
-
sig { returns(T.nilable(String)) }
|
2533
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2545
2534
|
attr_accessor :name
|
2546
2535
|
# Billing phone number (including extension).
|
2547
|
-
sig { returns(T.nilable(String)) }
|
2536
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
2548
2537
|
attr_accessor :phone
|
2549
2538
|
sig {
|
2550
|
-
params(address: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
2539
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
2551
2540
|
}
|
2552
2541
|
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
2553
2542
|
end
|
@@ -2569,42 +2558,32 @@ module Stripe
|
|
2569
2558
|
end
|
2570
2559
|
class Eps < Stripe::RequestParams
|
2571
2560
|
# The customer's bank.
|
2572
|
-
sig { returns(String) }
|
2561
|
+
sig { returns(T.nilable(String)) }
|
2573
2562
|
attr_accessor :bank
|
2574
|
-
sig { params(bank: String).void }
|
2563
|
+
sig { params(bank: T.nilable(String)).void }
|
2575
2564
|
def initialize(bank: nil); end
|
2576
2565
|
end
|
2577
2566
|
class Fpx < Stripe::RequestParams
|
2578
2567
|
# Account holder type for FPX transaction
|
2579
|
-
sig { returns(String) }
|
2568
|
+
sig { returns(T.nilable(String)) }
|
2580
2569
|
attr_accessor :account_holder_type
|
2581
2570
|
# The customer's bank.
|
2582
2571
|
sig { returns(String) }
|
2583
2572
|
attr_accessor :bank
|
2584
|
-
sig { params(account_holder_type: String, bank: String).void }
|
2573
|
+
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
2585
2574
|
def initialize(account_holder_type: nil, bank: nil); end
|
2586
2575
|
end
|
2587
2576
|
class Giropay < Stripe::RequestParams
|
2588
2577
|
|
2589
|
-
end
|
2590
|
-
class Gopay < Stripe::RequestParams
|
2591
|
-
|
2592
2578
|
end
|
2593
2579
|
class Grabpay < Stripe::RequestParams
|
2594
2580
|
|
2595
|
-
end
|
2596
|
-
class IdBankTransfer < Stripe::RequestParams
|
2597
|
-
# Bank where the account is held.
|
2598
|
-
sig { returns(String) }
|
2599
|
-
attr_accessor :bank
|
2600
|
-
sig { params(bank: String).void }
|
2601
|
-
def initialize(bank: nil); end
|
2602
2581
|
end
|
2603
2582
|
class Ideal < Stripe::RequestParams
|
2604
2583
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
2605
|
-
sig { returns(String) }
|
2584
|
+
sig { returns(T.nilable(String)) }
|
2606
2585
|
attr_accessor :bank
|
2607
|
-
sig { params(bank: String).void }
|
2586
|
+
sig { params(bank: T.nilable(String)).void }
|
2608
2587
|
def initialize(bank: nil); end
|
2609
2588
|
end
|
2610
2589
|
class InteracPresent < Stripe::RequestParams
|
@@ -2629,11 +2608,11 @@ module Stripe
|
|
2629
2608
|
end
|
2630
2609
|
# Customer's date of birth
|
2631
2610
|
sig {
|
2632
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob)
|
2611
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob))
|
2633
2612
|
}
|
2634
2613
|
attr_accessor :dob
|
2635
2614
|
sig {
|
2636
|
-
params(dob: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob).void
|
2615
|
+
params(dob: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna::Dob)).void
|
2637
2616
|
}
|
2638
2617
|
def initialize(dob: nil); end
|
2639
2618
|
end
|
@@ -2645,9 +2624,6 @@ module Stripe
|
|
2645
2624
|
end
|
2646
2625
|
class Link < Stripe::RequestParams
|
2647
2626
|
|
2648
|
-
end
|
2649
|
-
class MbWay < Stripe::RequestParams
|
2650
|
-
|
2651
2627
|
end
|
2652
2628
|
class Mobilepay < Stripe::RequestParams
|
2653
2629
|
|
@@ -2657,19 +2633,50 @@ module Stripe
|
|
2657
2633
|
end
|
2658
2634
|
class NaverPay < Stripe::RequestParams
|
2659
2635
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
2660
|
-
sig { returns(String) }
|
2636
|
+
sig { returns(T.nilable(String)) }
|
2661
2637
|
attr_accessor :funding
|
2662
|
-
sig { params(funding: String).void }
|
2638
|
+
sig { params(funding: T.nilable(String)).void }
|
2663
2639
|
def initialize(funding: nil); end
|
2664
2640
|
end
|
2641
|
+
class NzBankAccount < Stripe::RequestParams
|
2642
|
+
# 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.
|
2643
|
+
sig { returns(T.nilable(String)) }
|
2644
|
+
attr_accessor :account_holder_name
|
2645
|
+
# The account number for the bank account.
|
2646
|
+
sig { returns(String) }
|
2647
|
+
attr_accessor :account_number
|
2648
|
+
# The numeric code for the bank account's bank.
|
2649
|
+
sig { returns(String) }
|
2650
|
+
attr_accessor :bank_code
|
2651
|
+
# The numeric code for the bank account's bank branch.
|
2652
|
+
sig { returns(String) }
|
2653
|
+
attr_accessor :branch_code
|
2654
|
+
# Attribute for param field reference
|
2655
|
+
sig { returns(T.nilable(String)) }
|
2656
|
+
attr_accessor :reference
|
2657
|
+
# The suffix of the bank account number.
|
2658
|
+
sig { returns(String) }
|
2659
|
+
attr_accessor :suffix
|
2660
|
+
sig {
|
2661
|
+
params(account_holder_name: T.nilable(String), account_number: String, bank_code: String, branch_code: String, reference: T.nilable(String), suffix: String).void
|
2662
|
+
}
|
2663
|
+
def initialize(
|
2664
|
+
account_holder_name: nil,
|
2665
|
+
account_number: nil,
|
2666
|
+
bank_code: nil,
|
2667
|
+
branch_code: nil,
|
2668
|
+
reference: nil,
|
2669
|
+
suffix: nil
|
2670
|
+
); end
|
2671
|
+
end
|
2665
2672
|
class Oxxo < Stripe::RequestParams
|
2666
2673
|
|
2667
2674
|
end
|
2668
2675
|
class P24 < Stripe::RequestParams
|
2669
2676
|
# The customer's bank.
|
2670
|
-
sig { returns(String) }
|
2677
|
+
sig { returns(T.nilable(String)) }
|
2671
2678
|
attr_accessor :bank
|
2672
|
-
sig { params(bank: String).void }
|
2679
|
+
sig { params(bank: T.nilable(String)).void }
|
2673
2680
|
def initialize(bank: nil); end
|
2674
2681
|
end
|
2675
2682
|
class PayByBank < Stripe::RequestParams
|
@@ -2683,65 +2690,28 @@ module Stripe
|
|
2683
2690
|
end
|
2684
2691
|
class Paypal < Stripe::RequestParams
|
2685
2692
|
|
2686
|
-
end
|
2687
|
-
class Payto < Stripe::RequestParams
|
2688
|
-
# The account number for the bank account.
|
2689
|
-
sig { returns(String) }
|
2690
|
-
attr_accessor :account_number
|
2691
|
-
# Bank-State-Branch number of the bank account.
|
2692
|
-
sig { returns(String) }
|
2693
|
-
attr_accessor :bsb_number
|
2694
|
-
# The PayID alias for the bank account.
|
2695
|
-
sig { returns(String) }
|
2696
|
-
attr_accessor :pay_id
|
2697
|
-
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
2698
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
2699
2693
|
end
|
2700
2694
|
class Pix < Stripe::RequestParams
|
2701
2695
|
|
2702
2696
|
end
|
2703
2697
|
class Promptpay < Stripe::RequestParams
|
2704
2698
|
|
2705
|
-
end
|
2706
|
-
class Qris < Stripe::RequestParams
|
2707
|
-
|
2708
2699
|
end
|
2709
2700
|
class RadarOptions < Stripe::RequestParams
|
2710
2701
|
# 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.
|
2711
|
-
sig { returns(String) }
|
2702
|
+
sig { returns(T.nilable(String)) }
|
2712
2703
|
attr_accessor :session
|
2713
|
-
sig { params(session: String).void }
|
2704
|
+
sig { params(session: T.nilable(String)).void }
|
2714
2705
|
def initialize(session: nil); end
|
2715
2706
|
end
|
2716
|
-
class Rechnung < Stripe::RequestParams
|
2717
|
-
class Dob < Stripe::RequestParams
|
2718
|
-
# The day of birth, between 1 and 31.
|
2719
|
-
sig { returns(Integer) }
|
2720
|
-
attr_accessor :day
|
2721
|
-
# The month of birth, between 1 and 12.
|
2722
|
-
sig { returns(Integer) }
|
2723
|
-
attr_accessor :month
|
2724
|
-
# The four-digit year of birth.
|
2725
|
-
sig { returns(Integer) }
|
2726
|
-
attr_accessor :year
|
2727
|
-
sig { params(day: Integer, month: Integer, year: Integer).void }
|
2728
|
-
def initialize(day: nil, month: nil, year: nil); end
|
2729
|
-
end
|
2730
|
-
# Customer's date of birth
|
2731
|
-
sig {
|
2732
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung::Dob)
|
2733
|
-
}
|
2734
|
-
attr_accessor :dob
|
2735
|
-
sig {
|
2736
|
-
params(dob: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung::Dob).void
|
2737
|
-
}
|
2738
|
-
def initialize(dob: nil); end
|
2739
|
-
end
|
2740
2707
|
class RevolutPay < Stripe::RequestParams
|
2741
2708
|
|
2742
2709
|
end
|
2743
2710
|
class SamsungPay < Stripe::RequestParams
|
2744
2711
|
|
2712
|
+
end
|
2713
|
+
class Satispay < Stripe::RequestParams
|
2714
|
+
|
2745
2715
|
end
|
2746
2716
|
class SepaDebit < Stripe::RequestParams
|
2747
2717
|
# IBAN of the bank account.
|
@@ -2749,9 +2719,6 @@ module Stripe
|
|
2749
2719
|
attr_accessor :iban
|
2750
2720
|
sig { params(iban: String).void }
|
2751
2721
|
def initialize(iban: nil); end
|
2752
|
-
end
|
2753
|
-
class Shopeepay < Stripe::RequestParams
|
2754
|
-
|
2755
2722
|
end
|
2756
2723
|
class Sofort < Stripe::RequestParams
|
2757
2724
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -2768,22 +2735,22 @@ module Stripe
|
|
2768
2735
|
end
|
2769
2736
|
class UsBankAccount < Stripe::RequestParams
|
2770
2737
|
# Account holder type: individual or company.
|
2771
|
-
sig { returns(String) }
|
2738
|
+
sig { returns(T.nilable(String)) }
|
2772
2739
|
attr_accessor :account_holder_type
|
2773
2740
|
# Account number of the bank account.
|
2774
|
-
sig { returns(String) }
|
2741
|
+
sig { returns(T.nilable(String)) }
|
2775
2742
|
attr_accessor :account_number
|
2776
2743
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
2777
|
-
sig { returns(String) }
|
2744
|
+
sig { returns(T.nilable(String)) }
|
2778
2745
|
attr_accessor :account_type
|
2779
2746
|
# The ID of a Financial Connections Account to use as a payment method.
|
2780
|
-
sig { returns(String) }
|
2747
|
+
sig { returns(T.nilable(String)) }
|
2781
2748
|
attr_accessor :financial_connections_account
|
2782
2749
|
# Routing number of the bank account.
|
2783
|
-
sig { returns(String) }
|
2750
|
+
sig { returns(T.nilable(String)) }
|
2784
2751
|
attr_accessor :routing_number
|
2785
2752
|
sig {
|
2786
|
-
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
2753
|
+
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
|
2787
2754
|
}
|
2788
2755
|
def initialize(
|
2789
2756
|
account_holder_type: nil,
|
@@ -2800,189 +2767,261 @@ module Stripe
|
|
2800
2767
|
|
2801
2768
|
end
|
2802
2769
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
2803
|
-
sig {
|
2770
|
+
sig {
|
2771
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit))
|
2772
|
+
}
|
2804
2773
|
attr_accessor :acss_debit
|
2805
2774
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
2806
|
-
sig {
|
2775
|
+
sig {
|
2776
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm))
|
2777
|
+
}
|
2807
2778
|
attr_accessor :affirm
|
2808
2779
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
2809
2780
|
sig {
|
2810
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay)
|
2781
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay))
|
2811
2782
|
}
|
2812
2783
|
attr_accessor :afterpay_clearpay
|
2813
2784
|
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
2814
|
-
sig {
|
2785
|
+
sig {
|
2786
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay))
|
2787
|
+
}
|
2815
2788
|
attr_accessor :alipay
|
2816
2789
|
# 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`.
|
2817
|
-
sig { returns(String) }
|
2790
|
+
sig { returns(T.nilable(String)) }
|
2818
2791
|
attr_accessor :allow_redisplay
|
2819
2792
|
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
2820
|
-
sig {
|
2793
|
+
sig {
|
2794
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma))
|
2795
|
+
}
|
2821
2796
|
attr_accessor :alma
|
2822
2797
|
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
2823
|
-
sig {
|
2798
|
+
sig {
|
2799
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay))
|
2800
|
+
}
|
2824
2801
|
attr_accessor :amazon_pay
|
2825
2802
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
2826
|
-
sig {
|
2803
|
+
sig {
|
2804
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit))
|
2805
|
+
}
|
2827
2806
|
attr_accessor :au_becs_debit
|
2828
2807
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
2829
|
-
sig {
|
2808
|
+
sig {
|
2809
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit))
|
2810
|
+
}
|
2830
2811
|
attr_accessor :bacs_debit
|
2831
2812
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
2832
|
-
sig {
|
2813
|
+
sig {
|
2814
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact))
|
2815
|
+
}
|
2833
2816
|
attr_accessor :bancontact
|
2817
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
|
2818
|
+
sig {
|
2819
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Billie))
|
2820
|
+
}
|
2821
|
+
attr_accessor :billie
|
2834
2822
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
2835
2823
|
sig {
|
2836
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails)
|
2824
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails))
|
2837
2825
|
}
|
2838
2826
|
attr_accessor :billing_details
|
2839
2827
|
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
2840
|
-
sig {
|
2828
|
+
sig {
|
2829
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik))
|
2830
|
+
}
|
2841
2831
|
attr_accessor :blik
|
2842
2832
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
2843
|
-
sig {
|
2833
|
+
sig {
|
2834
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto))
|
2835
|
+
}
|
2844
2836
|
attr_accessor :boleto
|
2845
2837
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
2846
|
-
sig {
|
2838
|
+
sig {
|
2839
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp))
|
2840
|
+
}
|
2847
2841
|
attr_accessor :cashapp
|
2848
2842
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
2849
2843
|
sig {
|
2850
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance)
|
2844
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance))
|
2851
2845
|
}
|
2852
2846
|
attr_accessor :customer_balance
|
2853
2847
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
2854
|
-
sig {
|
2848
|
+
sig {
|
2849
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps))
|
2850
|
+
}
|
2855
2851
|
attr_accessor :eps
|
2856
2852
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
2857
|
-
sig {
|
2853
|
+
sig {
|
2854
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx))
|
2855
|
+
}
|
2858
2856
|
attr_accessor :fpx
|
2859
2857
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
2860
|
-
sig {
|
2858
|
+
sig {
|
2859
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay))
|
2860
|
+
}
|
2861
2861
|
attr_accessor :giropay
|
2862
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
2863
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Gopay) }
|
2864
|
-
attr_accessor :gopay
|
2865
2862
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
2866
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay) }
|
2867
|
-
attr_accessor :grabpay
|
2868
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
2869
2863
|
sig {
|
2870
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::
|
2864
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay))
|
2871
2865
|
}
|
2872
|
-
attr_accessor :
|
2866
|
+
attr_accessor :grabpay
|
2873
2867
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
2874
|
-
sig {
|
2868
|
+
sig {
|
2869
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal))
|
2870
|
+
}
|
2875
2871
|
attr_accessor :ideal
|
2876
2872
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
2877
2873
|
sig {
|
2878
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent)
|
2874
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent))
|
2879
2875
|
}
|
2880
2876
|
attr_accessor :interac_present
|
2881
2877
|
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
2882
|
-
sig {
|
2878
|
+
sig {
|
2879
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay))
|
2880
|
+
}
|
2883
2881
|
attr_accessor :kakao_pay
|
2884
2882
|
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
2885
|
-
sig {
|
2883
|
+
sig {
|
2884
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna))
|
2885
|
+
}
|
2886
2886
|
attr_accessor :klarna
|
2887
2887
|
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
2888
|
-
sig {
|
2888
|
+
sig {
|
2889
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini))
|
2890
|
+
}
|
2889
2891
|
attr_accessor :konbini
|
2890
2892
|
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
2891
|
-
sig {
|
2893
|
+
sig {
|
2894
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard))
|
2895
|
+
}
|
2892
2896
|
attr_accessor :kr_card
|
2893
2897
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2894
|
-
sig {
|
2898
|
+
sig {
|
2899
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link))
|
2900
|
+
}
|
2895
2901
|
attr_accessor :link
|
2896
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
2897
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::MbWay) }
|
2898
|
-
attr_accessor :mb_way
|
2899
2902
|
# 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`.
|
2900
|
-
sig { returns(T::Hash[String, String]) }
|
2903
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
2901
2904
|
attr_accessor :metadata
|
2902
2905
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
2903
|
-
sig {
|
2906
|
+
sig {
|
2907
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay))
|
2908
|
+
}
|
2904
2909
|
attr_accessor :mobilepay
|
2905
2910
|
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
2906
|
-
sig {
|
2911
|
+
sig {
|
2912
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco))
|
2913
|
+
}
|
2907
2914
|
attr_accessor :multibanco
|
2908
2915
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
2909
|
-
sig {
|
2916
|
+
sig {
|
2917
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay))
|
2918
|
+
}
|
2910
2919
|
attr_accessor :naver_pay
|
2920
|
+
# If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
|
2921
|
+
sig {
|
2922
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NzBankAccount))
|
2923
|
+
}
|
2924
|
+
attr_accessor :nz_bank_account
|
2911
2925
|
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
2912
|
-
sig {
|
2926
|
+
sig {
|
2927
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo))
|
2928
|
+
}
|
2913
2929
|
attr_accessor :oxxo
|
2914
2930
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
2915
|
-
sig {
|
2931
|
+
sig {
|
2932
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24))
|
2933
|
+
}
|
2916
2934
|
attr_accessor :p24
|
2917
2935
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
2918
|
-
sig {
|
2936
|
+
sig {
|
2937
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::PayByBank))
|
2938
|
+
}
|
2919
2939
|
attr_accessor :pay_by_bank
|
2920
2940
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
2921
|
-
sig {
|
2941
|
+
sig {
|
2942
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco))
|
2943
|
+
}
|
2922
2944
|
attr_accessor :payco
|
2923
2945
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
2924
|
-
sig {
|
2946
|
+
sig {
|
2947
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow))
|
2948
|
+
}
|
2925
2949
|
attr_accessor :paynow
|
2926
2950
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
2927
|
-
sig {
|
2951
|
+
sig {
|
2952
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal))
|
2953
|
+
}
|
2928
2954
|
attr_accessor :paypal
|
2929
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2930
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payto) }
|
2931
|
-
attr_accessor :payto
|
2932
2955
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
2933
|
-
sig {
|
2956
|
+
sig {
|
2957
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix))
|
2958
|
+
}
|
2934
2959
|
attr_accessor :pix
|
2935
2960
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
2936
|
-
sig {
|
2961
|
+
sig {
|
2962
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay))
|
2963
|
+
}
|
2937
2964
|
attr_accessor :promptpay
|
2938
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
2939
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Qris) }
|
2940
|
-
attr_accessor :qris
|
2941
2965
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2942
2966
|
sig {
|
2943
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions)
|
2967
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions))
|
2944
2968
|
}
|
2945
2969
|
attr_accessor :radar_options
|
2946
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
2947
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Rechnung) }
|
2948
|
-
attr_accessor :rechnung
|
2949
2970
|
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2950
|
-
sig {
|
2971
|
+
sig {
|
2972
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay))
|
2973
|
+
}
|
2951
2974
|
attr_accessor :revolut_pay
|
2952
2975
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
2953
|
-
sig {
|
2976
|
+
sig {
|
2977
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay))
|
2978
|
+
}
|
2954
2979
|
attr_accessor :samsung_pay
|
2980
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
|
2981
|
+
sig {
|
2982
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Satispay))
|
2983
|
+
}
|
2984
|
+
attr_accessor :satispay
|
2955
2985
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2956
|
-
sig {
|
2986
|
+
sig {
|
2987
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit))
|
2988
|
+
}
|
2957
2989
|
attr_accessor :sepa_debit
|
2958
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
2959
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Shopeepay) }
|
2960
|
-
attr_accessor :shopeepay
|
2961
2990
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
2962
|
-
sig {
|
2991
|
+
sig {
|
2992
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort))
|
2993
|
+
}
|
2963
2994
|
attr_accessor :sofort
|
2964
2995
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
2965
|
-
sig {
|
2996
|
+
sig {
|
2997
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish))
|
2998
|
+
}
|
2966
2999
|
attr_accessor :swish
|
2967
3000
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
2968
|
-
sig {
|
3001
|
+
sig {
|
3002
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint))
|
3003
|
+
}
|
2969
3004
|
attr_accessor :twint
|
2970
3005
|
# 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.
|
2971
3006
|
sig { returns(String) }
|
2972
3007
|
attr_accessor :type
|
2973
3008
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
2974
3009
|
sig {
|
2975
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount)
|
3010
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount))
|
2976
3011
|
}
|
2977
3012
|
attr_accessor :us_bank_account
|
2978
3013
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
2979
|
-
sig {
|
3014
|
+
sig {
|
3015
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay))
|
3016
|
+
}
|
2980
3017
|
attr_accessor :wechat_pay
|
2981
3018
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
2982
|
-
sig {
|
3019
|
+
sig {
|
3020
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip))
|
3021
|
+
}
|
2983
3022
|
attr_accessor :zip
|
2984
3023
|
sig {
|
2985
|
-
params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit, affirm: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm, afterpay_clearpay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay, alipay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay, allow_redisplay: String, alma: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay, au_becs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit, bancontact: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact, billing_details: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails, blik: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik, boleto: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto, cashapp: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp, customer_balance: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance, eps: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps, fpx: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx, giropay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay,
|
3024
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AcssDebit), affirm: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Affirm), afterpay_clearpay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AfterpayClearpay), alipay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Alma), amazon_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AmazonPay), au_becs_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::AuBecsDebit), bacs_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BacsDebit), bancontact: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Bancontact), billie: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Billie), billing_details: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::BillingDetails), blik: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Blik), boleto: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Boleto), cashapp: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Cashapp), customer_balance: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::CustomerBalance), eps: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Eps), fpx: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Fpx), giropay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Giropay), grabpay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Grabpay), ideal: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Ideal), interac_present: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::InteracPresent), kakao_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KakaoPay), klarna: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Klarna), konbini: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Konbini), kr_card: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::KrCard), link: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Mobilepay), multibanco: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Multibanco), naver_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NaverPay), nz_bank_account: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::NzBankAccount), oxxo: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Oxxo), p24: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::P24), pay_by_bank: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::PayByBank), payco: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Payco), paynow: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paynow), paypal: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Paypal), pix: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Pix), promptpay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Promptpay), radar_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RadarOptions), revolut_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::RevolutPay), samsung_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SamsungPay), satispay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Satispay), sepa_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::SepaDebit), sofort: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Sofort), swish: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Swish), twint: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Twint), type: String, us_bank_account: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::UsBankAccount), wechat_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::WechatPay), zip: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData::Zip)).void
|
2986
3025
|
}
|
2987
3026
|
def initialize(
|
2988
3027
|
acss_debit: nil,
|
@@ -2995,6 +3034,7 @@ module Stripe
|
|
2995
3034
|
au_becs_debit: nil,
|
2996
3035
|
bacs_debit: nil,
|
2997
3036
|
bancontact: nil,
|
3037
|
+
billie: nil,
|
2998
3038
|
billing_details: nil,
|
2999
3039
|
blik: nil,
|
3000
3040
|
boleto: nil,
|
@@ -3003,9 +3043,7 @@ module Stripe
|
|
3003
3043
|
eps: nil,
|
3004
3044
|
fpx: nil,
|
3005
3045
|
giropay: nil,
|
3006
|
-
gopay: nil,
|
3007
3046
|
grabpay: nil,
|
3008
|
-
id_bank_transfer: nil,
|
3009
3047
|
ideal: nil,
|
3010
3048
|
interac_present: nil,
|
3011
3049
|
kakao_pay: nil,
|
@@ -3013,27 +3051,24 @@ module Stripe
|
|
3013
3051
|
konbini: nil,
|
3014
3052
|
kr_card: nil,
|
3015
3053
|
link: nil,
|
3016
|
-
mb_way: nil,
|
3017
3054
|
metadata: nil,
|
3018
3055
|
mobilepay: nil,
|
3019
3056
|
multibanco: nil,
|
3020
3057
|
naver_pay: nil,
|
3058
|
+
nz_bank_account: nil,
|
3021
3059
|
oxxo: nil,
|
3022
3060
|
p24: nil,
|
3023
3061
|
pay_by_bank: nil,
|
3024
3062
|
payco: nil,
|
3025
3063
|
paynow: nil,
|
3026
3064
|
paypal: nil,
|
3027
|
-
payto: nil,
|
3028
3065
|
pix: nil,
|
3029
3066
|
promptpay: nil,
|
3030
|
-
qris: nil,
|
3031
3067
|
radar_options: nil,
|
3032
|
-
rechnung: nil,
|
3033
3068
|
revolut_pay: nil,
|
3034
3069
|
samsung_pay: nil,
|
3070
|
+
satispay: nil,
|
3035
3071
|
sepa_debit: nil,
|
3036
|
-
shopeepay: nil,
|
3037
3072
|
sofort: nil,
|
3038
3073
|
swish: nil,
|
3039
3074
|
twint: nil,
|
@@ -3049,22 +3084,22 @@ module Stripe
|
|
3049
3084
|
# A URL for custom mandate text to render during confirmation step.
|
3050
3085
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
3051
3086
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
3052
|
-
sig { returns(T.nilable(String)) }
|
3087
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3053
3088
|
attr_accessor :custom_mandate_url
|
3054
3089
|
# List of Stripe products where this mandate can be selected automatically.
|
3055
|
-
sig { returns(T::Array[String]) }
|
3090
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3056
3091
|
attr_accessor :default_for
|
3057
3092
|
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
3058
|
-
sig { returns(String) }
|
3093
|
+
sig { returns(T.nilable(String)) }
|
3059
3094
|
attr_accessor :interval_description
|
3060
3095
|
# Payment schedule for the mandate.
|
3061
|
-
sig { returns(String) }
|
3096
|
+
sig { returns(T.nilable(String)) }
|
3062
3097
|
attr_accessor :payment_schedule
|
3063
3098
|
# Transaction type of the mandate.
|
3064
|
-
sig { returns(String) }
|
3099
|
+
sig { returns(T.nilable(String)) }
|
3065
3100
|
attr_accessor :transaction_type
|
3066
3101
|
sig {
|
3067
|
-
params(custom_mandate_url: T.nilable(String), default_for: T::Array[String], interval_description: String, payment_schedule: String, transaction_type: String).void
|
3102
|
+
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
|
3068
3103
|
}
|
3069
3104
|
def initialize(
|
3070
3105
|
custom_mandate_url: nil,
|
@@ -3075,18 +3110,18 @@ module Stripe
|
|
3075
3110
|
); end
|
3076
3111
|
end
|
3077
3112
|
# 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).
|
3078
|
-
sig { returns(String) }
|
3113
|
+
sig { returns(T.nilable(String)) }
|
3079
3114
|
attr_accessor :currency
|
3080
3115
|
# Additional fields for Mandate creation
|
3081
3116
|
sig {
|
3082
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions)
|
3117
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions))
|
3083
3118
|
}
|
3084
3119
|
attr_accessor :mandate_options
|
3085
3120
|
# Bank account verification method.
|
3086
|
-
sig { returns(String) }
|
3121
|
+
sig { returns(T.nilable(String)) }
|
3087
3122
|
attr_accessor :verification_method
|
3088
3123
|
sig {
|
3089
|
-
params(currency: String, mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions, verification_method: String).void
|
3124
|
+
params(currency: T.nilable(String), mandate_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions), verification_method: T.nilable(String)).void
|
3090
3125
|
}
|
3091
3126
|
def initialize(currency: nil, mandate_options: nil, verification_method: nil); end
|
3092
3127
|
end
|
@@ -3096,18 +3131,18 @@ module Stripe
|
|
3096
3131
|
class BacsDebit < Stripe::RequestParams
|
3097
3132
|
class MandateOptions < Stripe::RequestParams
|
3098
3133
|
# 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'.
|
3099
|
-
sig { returns(T.nilable(String)) }
|
3134
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3100
3135
|
attr_accessor :reference_prefix
|
3101
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
3136
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
3102
3137
|
def initialize(reference_prefix: nil); end
|
3103
3138
|
end
|
3104
3139
|
# Additional fields for Mandate creation
|
3105
3140
|
sig {
|
3106
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions)
|
3141
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions))
|
3107
3142
|
}
|
3108
3143
|
attr_accessor :mandate_options
|
3109
3144
|
sig {
|
3110
|
-
params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions).void
|
3145
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions)).void
|
3111
3146
|
}
|
3112
3147
|
def initialize(mandate_options: nil); end
|
3113
3148
|
end
|
@@ -3123,16 +3158,16 @@ module Stripe
|
|
3123
3158
|
sig { returns(String) }
|
3124
3159
|
attr_accessor :currency
|
3125
3160
|
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
3126
|
-
sig { returns(String) }
|
3161
|
+
sig { returns(T.nilable(String)) }
|
3127
3162
|
attr_accessor :description
|
3128
3163
|
# 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.
|
3129
|
-
sig { returns(Integer) }
|
3164
|
+
sig { returns(T.nilable(Integer)) }
|
3130
3165
|
attr_accessor :end_date
|
3131
3166
|
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
3132
3167
|
sig { returns(String) }
|
3133
3168
|
attr_accessor :interval
|
3134
3169
|
# 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`.
|
3135
|
-
sig { returns(Integer) }
|
3170
|
+
sig { returns(T.nilable(Integer)) }
|
3136
3171
|
attr_accessor :interval_count
|
3137
3172
|
# Unique identifier for the mandate or subscription.
|
3138
3173
|
sig { returns(String) }
|
@@ -3141,10 +3176,10 @@ module Stripe
|
|
3141
3176
|
sig { returns(Integer) }
|
3142
3177
|
attr_accessor :start_date
|
3143
3178
|
# Specifies the type of mandates supported. Possible values are `india`.
|
3144
|
-
sig { returns(T::Array[String]) }
|
3179
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3145
3180
|
attr_accessor :supported_types
|
3146
3181
|
sig {
|
3147
|
-
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
|
3182
|
+
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
|
3148
3183
|
}
|
3149
3184
|
def initialize(
|
3150
3185
|
amount: nil,
|
@@ -3171,58 +3206,60 @@ module Stripe
|
|
3171
3206
|
# message extension: CB-EXEMPTION; string (4 characters)
|
3172
3207
|
# This is a 3 byte bitmap (low significant byte first and most significant
|
3173
3208
|
# bit first) that has been Base64 encoded
|
3174
|
-
sig { returns(String) }
|
3209
|
+
sig { returns(T.nilable(String)) }
|
3175
3210
|
attr_accessor :cb_exemption
|
3176
3211
|
# The risk score returned from Cartes Bancaires in the ARes.
|
3177
3212
|
# message extension: CB-SCORE; numeric value 0-99
|
3178
|
-
sig { returns(Integer) }
|
3213
|
+
sig { returns(T.nilable(Integer)) }
|
3179
3214
|
attr_accessor :cb_score
|
3180
|
-
sig {
|
3215
|
+
sig {
|
3216
|
+
params(cb_avalgo: String, cb_exemption: T.nilable(String), cb_score: T.nilable(Integer)).void
|
3217
|
+
}
|
3181
3218
|
def initialize(cb_avalgo: nil, cb_exemption: nil, cb_score: nil); end
|
3182
3219
|
end
|
3183
3220
|
# Cartes Bancaires-specific 3DS fields.
|
3184
3221
|
sig {
|
3185
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)
|
3222
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires))
|
3186
3223
|
}
|
3187
3224
|
attr_accessor :cartes_bancaires
|
3188
3225
|
sig {
|
3189
|
-
params(cartes_bancaires: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires).void
|
3226
|
+
params(cartes_bancaires: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions::CartesBancaires)).void
|
3190
3227
|
}
|
3191
3228
|
def initialize(cartes_bancaires: nil); end
|
3192
3229
|
end
|
3193
3230
|
# The `transStatus` returned from the card Issuer’s ACS in the ARes.
|
3194
|
-
sig { returns(String) }
|
3231
|
+
sig { returns(T.nilable(String)) }
|
3195
3232
|
attr_accessor :ares_trans_status
|
3196
3233
|
# The cryptogram, also known as the "authentication value" (AAV, CAVV or
|
3197
3234
|
# AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
|
3198
3235
|
# (Most 3D Secure providers will return the base64-encoded version, which
|
3199
3236
|
# is what you should specify here.)
|
3200
|
-
sig { returns(String) }
|
3237
|
+
sig { returns(T.nilable(String)) }
|
3201
3238
|
attr_accessor :cryptogram
|
3202
3239
|
# The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
|
3203
3240
|
# provider and indicates what degree of authentication was performed.
|
3204
|
-
sig { returns(String) }
|
3241
|
+
sig { returns(T.nilable(String)) }
|
3205
3242
|
attr_accessor :electronic_commerce_indicator
|
3206
3243
|
# Network specific 3DS fields. Network specific arguments require an
|
3207
3244
|
# explicit card brand choice. The parameter `payment_method_options.card.network``
|
3208
3245
|
# must be populated accordingly
|
3209
3246
|
sig {
|
3210
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions)
|
3247
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions))
|
3211
3248
|
}
|
3212
3249
|
attr_accessor :network_options
|
3213
3250
|
# The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
|
3214
3251
|
# AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
|
3215
|
-
sig { returns(String) }
|
3252
|
+
sig { returns(T.nilable(String)) }
|
3216
3253
|
attr_accessor :requestor_challenge_indicator
|
3217
3254
|
# For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
|
3218
3255
|
# Transaction ID (dsTransID).
|
3219
|
-
sig { returns(String) }
|
3256
|
+
sig { returns(T.nilable(String)) }
|
3220
3257
|
attr_accessor :transaction_id
|
3221
3258
|
# The version of 3D Secure that was performed.
|
3222
|
-
sig { returns(String) }
|
3259
|
+
sig { returns(T.nilable(String)) }
|
3223
3260
|
attr_accessor :version
|
3224
3261
|
sig {
|
3225
|
-
params(ares_trans_status: String, cryptogram: String, electronic_commerce_indicator: String, network_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions, requestor_challenge_indicator: String, transaction_id: String, version: String).void
|
3262
|
+
params(ares_trans_status: T.nilable(String), cryptogram: T.nilable(String), electronic_commerce_indicator: T.nilable(String), network_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure::NetworkOptions), requestor_challenge_indicator: T.nilable(String), transaction_id: T.nilable(String), version: T.nilable(String)).void
|
3226
3263
|
}
|
3227
3264
|
def initialize(
|
3228
3265
|
ares_trans_status: nil,
|
@@ -3236,28 +3273,28 @@ module Stripe
|
|
3236
3273
|
end
|
3237
3274
|
# Configuration options for setting up an eMandate for cards issued in India.
|
3238
3275
|
sig {
|
3239
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions)
|
3276
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions))
|
3240
3277
|
}
|
3241
3278
|
attr_accessor :mandate_options
|
3242
3279
|
# When specified, this parameter signals that a card has been collected
|
3243
3280
|
# as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
3244
3281
|
# parameter can only be provided during confirmation.
|
3245
|
-
sig { returns(T::Boolean) }
|
3282
|
+
sig { returns(T.nilable(T::Boolean)) }
|
3246
3283
|
attr_accessor :moto
|
3247
3284
|
# 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.
|
3248
|
-
sig { returns(String) }
|
3285
|
+
sig { returns(T.nilable(String)) }
|
3249
3286
|
attr_accessor :network
|
3250
3287
|
# 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.
|
3251
|
-
sig { returns(String) }
|
3288
|
+
sig { returns(T.nilable(String)) }
|
3252
3289
|
attr_accessor :request_three_d_secure
|
3253
3290
|
# If 3D Secure authentication was performed with a third-party provider,
|
3254
3291
|
# the authentication details to use for this setup.
|
3255
3292
|
sig {
|
3256
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)
|
3293
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure))
|
3257
3294
|
}
|
3258
3295
|
attr_accessor :three_d_secure
|
3259
3296
|
sig {
|
3260
|
-
params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::MandateOptions, moto: T::Boolean, network: String, request_three_d_secure: String, three_d_secure: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure).void
|
3297
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::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::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card::ThreeDSecure)).void
|
3261
3298
|
}
|
3262
3299
|
def initialize(
|
3263
3300
|
mandate_options: nil,
|
@@ -3272,87 +3309,33 @@ module Stripe
|
|
3272
3309
|
end
|
3273
3310
|
class Link < Stripe::RequestParams
|
3274
3311
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
3275
|
-
sig { returns(String) }
|
3312
|
+
sig { returns(T.nilable(String)) }
|
3276
3313
|
attr_accessor :persistent_token
|
3277
|
-
sig { params(persistent_token: String).void }
|
3314
|
+
sig { params(persistent_token: T.nilable(String)).void }
|
3278
3315
|
def initialize(persistent_token: nil); end
|
3279
3316
|
end
|
3280
3317
|
class Paypal < Stripe::RequestParams
|
3281
3318
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
3282
|
-
sig { returns(String) }
|
3319
|
+
sig { returns(T.nilable(String)) }
|
3283
3320
|
attr_accessor :billing_agreement_id
|
3284
|
-
|
3285
|
-
|
3286
|
-
attr_accessor :currency
|
3287
|
-
# 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.
|
3288
|
-
sig { returns(T::Array[String]) }
|
3289
|
-
attr_accessor :subsellers
|
3290
|
-
sig {
|
3291
|
-
params(billing_agreement_id: String, currency: String, subsellers: T::Array[String]).void
|
3292
|
-
}
|
3293
|
-
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil); end
|
3294
|
-
end
|
3295
|
-
class Payto < Stripe::RequestParams
|
3296
|
-
class MandateOptions < Stripe::RequestParams
|
3297
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
3298
|
-
sig { returns(Integer) }
|
3299
|
-
attr_accessor :amount
|
3300
|
-
# 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.
|
3301
|
-
sig { returns(String) }
|
3302
|
-
attr_accessor :amount_type
|
3303
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
3304
|
-
sig { returns(String) }
|
3305
|
-
attr_accessor :end_date
|
3306
|
-
# The periodicity at which payments will be collected.
|
3307
|
-
sig { returns(String) }
|
3308
|
-
attr_accessor :payment_schedule
|
3309
|
-
# 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.
|
3310
|
-
sig { returns(Integer) }
|
3311
|
-
attr_accessor :payments_per_period
|
3312
|
-
# The purpose for which payments are made. Defaults to retail.
|
3313
|
-
sig { returns(String) }
|
3314
|
-
attr_accessor :purpose
|
3315
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
3316
|
-
sig { returns(String) }
|
3317
|
-
attr_accessor :start_date
|
3318
|
-
sig {
|
3319
|
-
params(amount: Integer, amount_type: String, end_date: String, payment_schedule: String, payments_per_period: Integer, purpose: String, start_date: String).void
|
3320
|
-
}
|
3321
|
-
def initialize(
|
3322
|
-
amount: nil,
|
3323
|
-
amount_type: nil,
|
3324
|
-
end_date: nil,
|
3325
|
-
payment_schedule: nil,
|
3326
|
-
payments_per_period: nil,
|
3327
|
-
purpose: nil,
|
3328
|
-
start_date: nil
|
3329
|
-
); end
|
3330
|
-
end
|
3331
|
-
# Additional fields for Mandate creation.
|
3332
|
-
sig {
|
3333
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions)
|
3334
|
-
}
|
3335
|
-
attr_accessor :mandate_options
|
3336
|
-
sig {
|
3337
|
-
params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto::MandateOptions).void
|
3338
|
-
}
|
3339
|
-
def initialize(mandate_options: nil); end
|
3321
|
+
sig { params(billing_agreement_id: T.nilable(String)).void }
|
3322
|
+
def initialize(billing_agreement_id: nil); end
|
3340
3323
|
end
|
3341
3324
|
class SepaDebit < Stripe::RequestParams
|
3342
3325
|
class MandateOptions < Stripe::RequestParams
|
3343
3326
|
# 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'.
|
3344
|
-
sig { returns(T.nilable(String)) }
|
3327
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3345
3328
|
attr_accessor :reference_prefix
|
3346
|
-
sig { params(reference_prefix: T.nilable(String)).void }
|
3329
|
+
sig { params(reference_prefix: T.nilable(T.nilable(String))).void }
|
3347
3330
|
def initialize(reference_prefix: nil); end
|
3348
3331
|
end
|
3349
3332
|
# Additional fields for Mandate creation
|
3350
3333
|
sig {
|
3351
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions)
|
3334
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions))
|
3352
3335
|
}
|
3353
3336
|
attr_accessor :mandate_options
|
3354
3337
|
sig {
|
3355
|
-
params(mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions).void
|
3338
|
+
params(mandate_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions)).void
|
3356
3339
|
}
|
3357
3340
|
def initialize(mandate_options: nil); end
|
3358
3341
|
end
|
@@ -3360,85 +3343,64 @@ module Stripe
|
|
3360
3343
|
class FinancialConnections < Stripe::RequestParams
|
3361
3344
|
class Filters < Stripe::RequestParams
|
3362
3345
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
3363
|
-
sig { returns(T::Array[String]) }
|
3346
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3364
3347
|
attr_accessor :account_subcategories
|
3365
|
-
|
3366
|
-
|
3367
|
-
attr_accessor :institution
|
3368
|
-
sig { params(account_subcategories: T::Array[String], institution: String).void }
|
3369
|
-
def initialize(account_subcategories: nil, institution: nil); end
|
3370
|
-
end
|
3371
|
-
class ManualEntry < Stripe::RequestParams
|
3372
|
-
# Settings for configuring manual entry of account details.
|
3373
|
-
sig { returns(String) }
|
3374
|
-
attr_accessor :mode
|
3375
|
-
sig { params(mode: String).void }
|
3376
|
-
def initialize(mode: nil); end
|
3348
|
+
sig { params(account_subcategories: T.nilable(T::Array[String])).void }
|
3349
|
+
def initialize(account_subcategories: nil); end
|
3377
3350
|
end
|
3378
3351
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
3379
3352
|
sig {
|
3380
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters)
|
3353
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters))
|
3381
3354
|
}
|
3382
3355
|
attr_accessor :filters
|
3383
|
-
# Customize manual entry behavior
|
3384
|
-
sig {
|
3385
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::ManualEntry)
|
3386
|
-
}
|
3387
|
-
attr_accessor :manual_entry
|
3388
3356
|
# 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`.
|
3389
|
-
sig { returns(T::Array[String]) }
|
3357
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3390
3358
|
attr_accessor :permissions
|
3391
3359
|
# List of data features that you would like to retrieve upon account creation.
|
3392
|
-
sig { returns(T::Array[String]) }
|
3360
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3393
3361
|
attr_accessor :prefetch
|
3394
3362
|
# 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.
|
3395
|
-
sig { returns(String) }
|
3363
|
+
sig { returns(T.nilable(String)) }
|
3396
3364
|
attr_accessor :return_url
|
3397
3365
|
sig {
|
3398
|
-
params(filters: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters,
|
3366
|
+
params(filters: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections::Filters), permissions: T.nilable(T::Array[String]), prefetch: T.nilable(T::Array[String]), return_url: T.nilable(String)).void
|
3399
3367
|
}
|
3400
|
-
def initialize(
|
3401
|
-
filters: nil,
|
3402
|
-
manual_entry: nil,
|
3403
|
-
permissions: nil,
|
3404
|
-
prefetch: nil,
|
3405
|
-
return_url: nil
|
3406
|
-
); end
|
3368
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end
|
3407
3369
|
end
|
3408
3370
|
class MandateOptions < Stripe::RequestParams
|
3409
3371
|
# The method used to collect offline mandate customer acceptance.
|
3410
|
-
sig { returns(T.nilable(String)) }
|
3372
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
3411
3373
|
attr_accessor :collection_method
|
3412
|
-
sig { params(collection_method: T.nilable(String)).void }
|
3374
|
+
sig { params(collection_method: T.nilable(T.nilable(String))).void }
|
3413
3375
|
def initialize(collection_method: nil); end
|
3414
3376
|
end
|
3415
3377
|
class Networks < Stripe::RequestParams
|
3416
3378
|
# Triggers validations to run across the selected networks
|
3417
|
-
sig { returns(T::Array[String]) }
|
3379
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3418
3380
|
attr_accessor :requested
|
3419
|
-
sig { params(requested: T::Array[String]).void }
|
3381
|
+
sig { params(requested: T.nilable(T::Array[String])).void }
|
3420
3382
|
def initialize(requested: nil); end
|
3421
3383
|
end
|
3422
3384
|
# Additional fields for Financial Connections Session creation
|
3423
3385
|
sig {
|
3424
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections)
|
3386
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections))
|
3425
3387
|
}
|
3426
3388
|
attr_accessor :financial_connections
|
3427
3389
|
# Additional fields for Mandate creation
|
3428
3390
|
sig {
|
3429
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions)
|
3391
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions))
|
3430
3392
|
}
|
3431
3393
|
attr_accessor :mandate_options
|
3432
3394
|
# Additional fields for network related functions
|
3433
3395
|
sig {
|
3434
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks)
|
3396
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks))
|
3435
3397
|
}
|
3436
3398
|
attr_accessor :networks
|
3437
3399
|
# Bank account verification method.
|
3438
|
-
sig { returns(String) }
|
3400
|
+
sig { returns(T.nilable(String)) }
|
3439
3401
|
attr_accessor :verification_method
|
3440
3402
|
sig {
|
3441
|
-
params(financial_connections: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks, verification_method: String).void
|
3403
|
+
params(financial_connections: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections), mandate_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions), networks: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks), verification_method: T.nilable(String)).void
|
3442
3404
|
}
|
3443
3405
|
def initialize(
|
3444
3406
|
financial_connections: nil,
|
@@ -3449,48 +3411,51 @@ module Stripe
|
|
3449
3411
|
end
|
3450
3412
|
# If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
|
3451
3413
|
sig {
|
3452
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit)
|
3414
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit))
|
3453
3415
|
}
|
3454
3416
|
attr_accessor :acss_debit
|
3455
3417
|
# If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
|
3456
3418
|
sig {
|
3457
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay)
|
3419
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay))
|
3458
3420
|
}
|
3459
3421
|
attr_accessor :amazon_pay
|
3460
3422
|
# If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
|
3461
3423
|
sig {
|
3462
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit)
|
3424
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit))
|
3463
3425
|
}
|
3464
3426
|
attr_accessor :bacs_debit
|
3465
3427
|
# Configuration for any card setup attempted on this SetupIntent.
|
3466
|
-
sig {
|
3428
|
+
sig {
|
3429
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card))
|
3430
|
+
}
|
3467
3431
|
attr_accessor :card
|
3468
3432
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
3469
3433
|
sig {
|
3470
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent)
|
3434
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent))
|
3471
3435
|
}
|
3472
3436
|
attr_accessor :card_present
|
3473
3437
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
3474
|
-
sig {
|
3438
|
+
sig {
|
3439
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Link))
|
3440
|
+
}
|
3475
3441
|
attr_accessor :link
|
3476
3442
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
3477
|
-
sig {
|
3443
|
+
sig {
|
3444
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Paypal))
|
3445
|
+
}
|
3478
3446
|
attr_accessor :paypal
|
3479
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
3480
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Payto) }
|
3481
|
-
attr_accessor :payto
|
3482
3447
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3483
3448
|
sig {
|
3484
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit)
|
3449
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit))
|
3485
3450
|
}
|
3486
3451
|
attr_accessor :sepa_debit
|
3487
3452
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
3488
3453
|
sig {
|
3489
|
-
returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount)
|
3454
|
+
returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount))
|
3490
3455
|
}
|
3491
3456
|
attr_accessor :us_bank_account
|
3492
3457
|
sig {
|
3493
|
-
params(acss_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit, amazon_pay: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay, bacs_debit: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit, card: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card, card_present: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent, link: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Link, paypal: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Paypal,
|
3458
|
+
params(acss_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit), amazon_pay: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::AmazonPay), bacs_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit), card: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Card), card_present: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::CardPresent), link: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Link), paypal: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::Paypal), sepa_debit: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit), us_bank_account: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount)).void
|
3494
3459
|
}
|
3495
3460
|
def initialize(
|
3496
3461
|
acss_debit: nil,
|
@@ -3500,7 +3465,6 @@ module Stripe
|
|
3500
3465
|
card_present: nil,
|
3501
3466
|
link: nil,
|
3502
3467
|
paypal: nil,
|
3503
|
-
payto: nil,
|
3504
3468
|
sepa_debit: nil,
|
3505
3469
|
us_bank_account: nil
|
3506
3470
|
); end
|
@@ -3508,34 +3472,36 @@ module Stripe
|
|
3508
3472
|
# ID of the ConfirmationToken used to confirm this SetupIntent.
|
3509
3473
|
#
|
3510
3474
|
# 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.
|
3511
|
-
sig { returns(String) }
|
3475
|
+
sig { returns(T.nilable(String)) }
|
3512
3476
|
attr_accessor :confirmation_token
|
3513
3477
|
# Specifies which fields in the response should be expanded.
|
3514
|
-
sig { returns(T::Array[String]) }
|
3478
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3515
3479
|
attr_accessor :expand
|
3516
3480
|
# Attribute for param field mandate_data
|
3517
|
-
sig {
|
3481
|
+
sig {
|
3482
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData))))
|
3483
|
+
}
|
3518
3484
|
attr_accessor :mandate_data
|
3519
3485
|
# ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
|
3520
|
-
sig { returns(String) }
|
3486
|
+
sig { returns(T.nilable(String)) }
|
3521
3487
|
attr_accessor :payment_method
|
3522
3488
|
# 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)
|
3523
3489
|
# value in the SetupIntent.
|
3524
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData) }
|
3490
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData)) }
|
3525
3491
|
attr_accessor :payment_method_data
|
3526
3492
|
# Payment method-specific configuration for this SetupIntent.
|
3527
|
-
sig { returns(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions) }
|
3493
|
+
sig { returns(T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions)) }
|
3528
3494
|
attr_accessor :payment_method_options
|
3529
3495
|
# The URL to redirect your customer back to after they authenticate on the payment method's app or site.
|
3530
3496
|
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
3531
3497
|
# This parameter is only used for cards and other redirect-based payment methods.
|
3532
|
-
sig { returns(String) }
|
3498
|
+
sig { returns(T.nilable(String)) }
|
3533
3499
|
attr_accessor :return_url
|
3534
3500
|
# Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
3535
|
-
sig { returns(T::Boolean) }
|
3501
|
+
sig { returns(T.nilable(T::Boolean)) }
|
3536
3502
|
attr_accessor :use_stripe_sdk
|
3537
3503
|
sig {
|
3538
|
-
params(confirmation_token: String, expand: T::Array[String], mandate_data: T.nilable(::Stripe::SetupIntentService::ConfirmParams::MandateData), payment_method: String, payment_method_data: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData, payment_method_options: ::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions, return_url: String, use_stripe_sdk: T::Boolean).void
|
3504
|
+
params(confirmation_token: T.nilable(String), expand: T.nilable(T::Array[String]), mandate_data: T.nilable(T.nilable(T.any(String, ::Stripe::SetupIntentService::ConfirmParams::MandateData))), payment_method: T.nilable(String), payment_method_data: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::SetupIntentService::ConfirmParams::PaymentMethodOptions), return_url: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void
|
3539
3505
|
}
|
3540
3506
|
def initialize(
|
3541
3507
|
confirmation_token: nil,
|
@@ -3550,16 +3516,16 @@ module Stripe
|
|
3550
3516
|
end
|
3551
3517
|
class VerifyMicrodepositsParams < Stripe::RequestParams
|
3552
3518
|
# Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account.
|
3553
|
-
sig { returns(T::Array[Integer]) }
|
3519
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
3554
3520
|
attr_accessor :amounts
|
3555
3521
|
# A six-character code starting with SM present in the microdeposit sent to the bank account.
|
3556
|
-
sig { returns(String) }
|
3522
|
+
sig { returns(T.nilable(String)) }
|
3557
3523
|
attr_accessor :descriptor_code
|
3558
3524
|
# Specifies which fields in the response should be expanded.
|
3559
|
-
sig { returns(T::Array[String]) }
|
3525
|
+
sig { returns(T.nilable(T::Array[String])) }
|
3560
3526
|
attr_accessor :expand
|
3561
3527
|
sig {
|
3562
|
-
params(amounts: T::Array[Integer], descriptor_code: String, expand: T::Array[String]).void
|
3528
|
+
params(amounts: T.nilable(T::Array[Integer]), descriptor_code: T.nilable(String), expand: T.nilable(T::Array[String])).void
|
3563
3529
|
}
|
3564
3530
|
def initialize(amounts: nil, descriptor_code: nil, expand: nil); end
|
3565
3531
|
end
|