stripe 15.0.0 → 15.3.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/API_VERSION +1 -0
- data/CHANGELOG.md +129 -44
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +28 -55
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/event_types.rb +1 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/resources/account.rb +198 -28
- data/lib/stripe/resources/account_session.rb +176 -72
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +3 -3
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +43 -20
- data/lib/stripe/resources/checkout/session.rb +120 -19
- data/lib/stripe/resources/confirmation_token.rb +119 -100
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -3
- data/lib/stripe/resources/credit_note.rb +21 -18
- data/lib/stripe/resources/customer.rb +4 -6
- data/lib/stripe/resources/customer_session.rb +5 -5
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +3 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +51 -11
- data/lib/stripe/resources/invoice.rb +146 -32
- data/lib/stripe/resources/invoice_item.rb +3 -7
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +602 -325
- data/lib/stripe/resources/payment_method.rb +76 -117
- data/lib/stripe/resources/payment_method_configuration.rb +356 -2
- data/lib/stripe/resources/payment_method_domain.rb +15 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +27 -3
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/quote.rb +28 -3
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +8 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +414 -293
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +149 -27
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +141 -4
- data/lib/stripe/resources/tax/calculation.rb +6 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +261 -1
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -4
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +2 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +426 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +63 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_external_account_service.rb +3 -4
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +85 -2
- data/lib/stripe/services/account_service.rb +169 -20
- data/lib/stripe/services/account_session_service.rb +115 -47
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +94 -15
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +14 -15
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +5 -7
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +2 -3
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +21 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +122 -28
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +563 -313
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +59 -105
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +3 -4
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +21 -4
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +403 -291
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +106 -3
- data/lib/stripe/services/subscription_service.rb +121 -26
- data/lib/stripe/services/tax/calculation_service.rb +6 -2
- data/lib/stripe/services/tax/registration_service.rb +170 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +2 -3
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +196 -2
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +62 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +3 -3
- data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe/resources/account.rbi +190 -35
- data/rbi/stripe/resources/account_session.rbi +196 -77
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +52 -20
- data/rbi/stripe/resources/checkout/session.rbi +133 -24
- data/rbi/stripe/resources/confirmation_token.rbi +140 -115
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +2 -4
- data/rbi/stripe/resources/credit_note.rbi +23 -18
- data/rbi/stripe/resources/customer.rbi +4 -8
- data/rbi/stripe/resources/customer_session.rbi +5 -5
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +4 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
- data/rbi/stripe/resources/invoice.rbi +149 -40
- data/rbi/stripe/resources/invoice_item.rbi +3 -8
- data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/login_link.rbi +2 -1
- data/rbi/stripe/resources/mandate.rbi +4 -0
- data/rbi/stripe/resources/payment_intent.rbi +637 -381
- data/rbi/stripe/resources/payment_method.rbi +81 -133
- data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +33 -3
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/quote.rbi +25 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +8 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +464 -346
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +150 -34
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
- data/rbi/stripe/resources/tax/calculation.rbi +7 -3
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
- data/rbi/stripe/resources/tax/registration.rbi +249 -2
- data/rbi/stripe/resources/tax/transaction.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +3 -5
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
- data/rbi/stripe/resources/terminal/location.rbi +4 -6
- data/rbi/stripe/resources/terminal/reader.rbi +415 -8
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +70 -4
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
- data/rbi/stripe/resources/v2/event.rbi +3 -3
- data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +3 -5
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +93 -5
- data/rbi/stripe/services/account_service.rbi +166 -28
- data/rbi/stripe/services/account_session_service.rbi +126 -52
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +104 -19
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
- data/rbi/stripe/services/credit_note_service.rbi +13 -14
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +4 -8
- data/rbi/stripe/services/customer_session_service.rbi +1 -1
- data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +126 -35
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +599 -369
- data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +62 -121
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/quote_service.rbi +16 -3
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +457 -344
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
- data/rbi/stripe/services/subscription_service.rbi +121 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
- data/rbi/stripe/services/tax/registration_service.rbi +171 -2
- data/rbi/stripe/services/tax_id_service.rbi +2 -4
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +4 -6
- data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +71 -3
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/billing_service.rbi +1 -1
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +5 -2
@@ -60,6 +60,9 @@ module Stripe
|
|
60
60
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
61
61
|
sig { returns(T.nilable(Liability)) }
|
62
62
|
attr_reader :liability
|
63
|
+
# The tax provider powering automatic tax.
|
64
|
+
sig { returns(T.nilable(String)) }
|
65
|
+
attr_reader :provider
|
63
66
|
# The status of the most recent automated tax calculation for this session.
|
64
67
|
sig { returns(T.nilable(String)) }
|
65
68
|
attr_reader :status
|
@@ -274,7 +277,7 @@ module Stripe
|
|
274
277
|
attr_reader :state
|
275
278
|
end
|
276
279
|
class TaxId < Stripe::StripeObject
|
277
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
280
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
278
281
|
sig { returns(String) }
|
279
282
|
attr_reader :type
|
280
283
|
# The value of the tax ID.
|
@@ -776,6 +779,15 @@ module Stripe
|
|
776
779
|
# Controls when the funds will be captured from the customer's account.
|
777
780
|
sig { returns(String) }
|
778
781
|
attr_reader :capture_method
|
782
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
783
|
+
#
|
784
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
785
|
+
#
|
786
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
787
|
+
#
|
788
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
789
|
+
sig { returns(String) }
|
790
|
+
attr_reader :setup_future_usage
|
779
791
|
end
|
780
792
|
class Oxxo < Stripe::StripeObject
|
781
793
|
# The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
@@ -1185,6 +1197,16 @@ module Stripe
|
|
1185
1197
|
sig { returns(Breakdown) }
|
1186
1198
|
attr_reader :breakdown
|
1187
1199
|
end
|
1200
|
+
class WalletOptions < Stripe::StripeObject
|
1201
|
+
class Link < Stripe::StripeObject
|
1202
|
+
# Describes whether Checkout should display Link. Defaults to `auto`.
|
1203
|
+
sig { returns(String) }
|
1204
|
+
attr_reader :display
|
1205
|
+
end
|
1206
|
+
# Attribute for field link
|
1207
|
+
sig { returns(Link) }
|
1208
|
+
attr_reader :link
|
1209
|
+
end
|
1188
1210
|
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
1189
1211
|
sig { returns(T.nilable(AdaptivePricing)) }
|
1190
1212
|
attr_reader :adaptive_pricing
|
@@ -1214,7 +1236,8 @@ module Stripe
|
|
1214
1236
|
# Session with your internal systems.
|
1215
1237
|
sig { returns(T.nilable(String)) }
|
1216
1238
|
attr_reader :client_reference_id
|
1217
|
-
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded`.
|
1239
|
+
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
|
1240
|
+
# For `ui_mode: custom`, use the client secret with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
|
1218
1241
|
sig { returns(T.nilable(String)) }
|
1219
1242
|
attr_reader :client_secret
|
1220
1243
|
# Information about the customer collected within the Checkout Session.
|
@@ -1322,7 +1345,7 @@ module Stripe
|
|
1322
1345
|
attr_reader :payment_status
|
1323
1346
|
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
1324
1347
|
#
|
1325
|
-
# For specific permissions, please refer to their dedicated subsections, such as `permissions.
|
1348
|
+
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
1326
1349
|
sig { returns(T.nilable(Permissions)) }
|
1327
1350
|
attr_reader :permissions
|
1328
1351
|
# Attribute for field phone_number_collection
|
@@ -1337,7 +1360,7 @@ module Stripe
|
|
1337
1360
|
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
1338
1361
|
sig { returns(String) }
|
1339
1362
|
attr_reader :redirect_on_completion
|
1340
|
-
# Applies to Checkout Sessions with `ui_mode: embedded`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
1363
|
+
# Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
1341
1364
|
sig { returns(String) }
|
1342
1365
|
attr_reader :return_url
|
1343
1366
|
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
@@ -1363,7 +1386,7 @@ module Stripe
|
|
1363
1386
|
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
1364
1387
|
sig { returns(T.nilable(String)) }
|
1365
1388
|
attr_reader :submit_type
|
1366
|
-
# The ID of the
|
1389
|
+
# The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
1367
1390
|
sig { returns(T.nilable(T.any(String, Stripe::Subscription))) }
|
1368
1391
|
attr_reader :subscription
|
1369
1392
|
# The URL the customer will be directed to after the payment or
|
@@ -1383,6 +1406,9 @@ module Stripe
|
|
1383
1406
|
# This value is only present when the session is active.
|
1384
1407
|
sig { returns(T.nilable(String)) }
|
1385
1408
|
attr_reader :url
|
1409
|
+
# Wallet-specific configuration for this Checkout Session.
|
1410
|
+
sig { returns(T.nilable(WalletOptions)) }
|
1411
|
+
attr_reader :wallet_options
|
1386
1412
|
class ListParams < Stripe::RequestParams
|
1387
1413
|
class Created < Stripe::RequestParams
|
1388
1414
|
# Minimum value to filter by (exclusive)
|
@@ -2552,6 +2578,45 @@ module Stripe
|
|
2552
2578
|
def initialize(capture_method: nil, setup_future_usage: nil); end
|
2553
2579
|
end
|
2554
2580
|
class Klarna < Stripe::RequestParams
|
2581
|
+
class Subscription < Stripe::RequestParams
|
2582
|
+
class NextBilling < Stripe::RequestParams
|
2583
|
+
# The amount of the next charge for the subscription.
|
2584
|
+
sig { returns(Integer) }
|
2585
|
+
attr_accessor :amount
|
2586
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
2587
|
+
sig { returns(String) }
|
2588
|
+
attr_accessor :date
|
2589
|
+
sig { params(amount: Integer, date: String).void }
|
2590
|
+
def initialize(amount: nil, date: nil); end
|
2591
|
+
end
|
2592
|
+
# Unit of time between subscription charges.
|
2593
|
+
sig { returns(String) }
|
2594
|
+
attr_accessor :interval
|
2595
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
2596
|
+
sig { returns(T.nilable(Integer)) }
|
2597
|
+
attr_accessor :interval_count
|
2598
|
+
# Name for subscription.
|
2599
|
+
sig { returns(T.nilable(String)) }
|
2600
|
+
attr_accessor :name
|
2601
|
+
# Describes the upcoming charge for this subscription.
|
2602
|
+
sig {
|
2603
|
+
returns(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling)
|
2604
|
+
}
|
2605
|
+
attr_accessor :next_billing
|
2606
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
2607
|
+
sig { returns(String) }
|
2608
|
+
attr_accessor :reference
|
2609
|
+
sig {
|
2610
|
+
params(interval: String, interval_count: T.nilable(Integer), name: T.nilable(String), next_billing: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription::NextBilling, reference: String).void
|
2611
|
+
}
|
2612
|
+
def initialize(
|
2613
|
+
interval: nil,
|
2614
|
+
interval_count: nil,
|
2615
|
+
name: nil,
|
2616
|
+
next_billing: nil,
|
2617
|
+
reference: nil
|
2618
|
+
); end
|
2619
|
+
end
|
2555
2620
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2556
2621
|
#
|
2557
2622
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
@@ -2561,8 +2626,15 @@ module Stripe
|
|
2561
2626
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
2562
2627
|
sig { returns(T.nilable(String)) }
|
2563
2628
|
attr_accessor :setup_future_usage
|
2564
|
-
|
2565
|
-
|
2629
|
+
# Subscription details if the Checkout Session sets up a future subscription.
|
2630
|
+
sig {
|
2631
|
+
returns(T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription]))))
|
2632
|
+
}
|
2633
|
+
attr_accessor :subscriptions
|
2634
|
+
sig {
|
2635
|
+
params(setup_future_usage: T.nilable(String), subscriptions: T.nilable(T.nilable(T.any(String, T::Array[::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::Klarna::Subscription])))).void
|
2636
|
+
}
|
2637
|
+
def initialize(setup_future_usage: nil, subscriptions: nil); end
|
2566
2638
|
end
|
2567
2639
|
class Konbini < Stripe::RequestParams
|
2568
2640
|
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
|
@@ -2693,9 +2765,7 @@ module Stripe
|
|
2693
2765
|
}
|
2694
2766
|
def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
|
2695
2767
|
end
|
2696
|
-
class PayByBank < Stripe::RequestParams
|
2697
|
-
|
2698
|
-
end
|
2768
|
+
class PayByBank < Stripe::RequestParams; end
|
2699
2769
|
class Payco < Stripe::RequestParams
|
2700
2770
|
# Controls when the funds will be captured from the customer's account.
|
2701
2771
|
sig { returns(T.nilable(String)) }
|
@@ -3156,13 +3226,20 @@ module Stripe
|
|
3156
3226
|
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
3157
3227
|
sig { returns(T.nilable(T::Array[String])) }
|
3158
3228
|
attr_accessor :allow_redisplay_filters
|
3229
|
+
# Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
|
3230
|
+
sig { returns(T.nilable(String)) }
|
3231
|
+
attr_accessor :payment_method_remove
|
3159
3232
|
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
3160
3233
|
sig { returns(T.nilable(String)) }
|
3161
3234
|
attr_accessor :payment_method_save
|
3162
3235
|
sig {
|
3163
|
-
params(allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_save: T.nilable(String)).void
|
3236
|
+
params(allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_remove: T.nilable(String), payment_method_save: T.nilable(String)).void
|
3164
3237
|
}
|
3165
|
-
def initialize(
|
3238
|
+
def initialize(
|
3239
|
+
allow_redisplay_filters: nil,
|
3240
|
+
payment_method_remove: nil,
|
3241
|
+
payment_method_save: nil
|
3242
|
+
); end
|
3166
3243
|
end
|
3167
3244
|
class SetupIntentData < Stripe::RequestParams
|
3168
3245
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
@@ -3304,6 +3381,13 @@ module Stripe
|
|
3304
3381
|
def initialize(shipping_rate: nil, shipping_rate_data: nil); end
|
3305
3382
|
end
|
3306
3383
|
class SubscriptionData < Stripe::RequestParams
|
3384
|
+
class BillingMode < Stripe::RequestParams
|
3385
|
+
# Attribute for param field type
|
3386
|
+
sig { returns(String) }
|
3387
|
+
attr_accessor :type
|
3388
|
+
sig { params(type: String).void }
|
3389
|
+
def initialize(type: nil); end
|
3390
|
+
end
|
3307
3391
|
class InvoiceSettings < Stripe::RequestParams
|
3308
3392
|
class Issuer < Stripe::RequestParams
|
3309
3393
|
# The connected account being referenced when `type` is `account`.
|
@@ -3359,6 +3443,11 @@ module Stripe
|
|
3359
3443
|
# A future timestamp to anchor the subscription's billing cycle for new subscriptions.
|
3360
3444
|
sig { returns(T.nilable(Integer)) }
|
3361
3445
|
attr_accessor :billing_cycle_anchor
|
3446
|
+
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
3447
|
+
sig {
|
3448
|
+
returns(T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::BillingMode))
|
3449
|
+
}
|
3450
|
+
attr_accessor :billing_mode
|
3362
3451
|
# The tax rates that will apply to any subscription item that does not have
|
3363
3452
|
# `tax_rates` set. Invoices created will have their `default_tax_rates` populated
|
3364
3453
|
# from the subscription.
|
@@ -3388,13 +3477,10 @@ module Stripe
|
|
3388
3477
|
returns(T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::TransferData))
|
3389
3478
|
}
|
3390
3479
|
attr_accessor :transfer_data
|
3391
|
-
# Unix timestamp representing the end of the trial period the customer
|
3392
|
-
# will get before being charged for the first time. Has to be at least
|
3393
|
-
# 48 hours in the future.
|
3480
|
+
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
|
3394
3481
|
sig { returns(T.nilable(Integer)) }
|
3395
3482
|
attr_accessor :trial_end
|
3396
|
-
# Integer representing the number of trial period days before the
|
3397
|
-
# customer is charged for the first time. Has to be at least 1.
|
3483
|
+
# Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
|
3398
3484
|
sig { returns(T.nilable(Integer)) }
|
3399
3485
|
attr_accessor :trial_period_days
|
3400
3486
|
# Settings related to subscription trials.
|
@@ -3403,11 +3489,12 @@ module Stripe
|
|
3403
3489
|
}
|
3404
3490
|
attr_accessor :trial_settings
|
3405
3491
|
sig {
|
3406
|
-
params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::TrialSettings)).void
|
3492
|
+
params(application_fee_percent: T.nilable(Float), billing_cycle_anchor: T.nilable(Integer), billing_mode: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::BillingMode), default_tax_rates: T.nilable(T::Array[String]), description: T.nilable(String), invoice_settings: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::InvoiceSettings), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), proration_behavior: T.nilable(String), transfer_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::TransferData), trial_end: T.nilable(Integer), trial_period_days: T.nilable(Integer), trial_settings: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData::TrialSettings)).void
|
3407
3493
|
}
|
3408
3494
|
def initialize(
|
3409
3495
|
application_fee_percent: nil,
|
3410
3496
|
billing_cycle_anchor: nil,
|
3497
|
+
billing_mode: nil,
|
3411
3498
|
default_tax_rates: nil,
|
3412
3499
|
description: nil,
|
3413
3500
|
invoice_settings: nil,
|
@@ -3430,6 +3517,22 @@ module Stripe
|
|
3430
3517
|
sig { params(enabled: T::Boolean, required: T.nilable(String)).void }
|
3431
3518
|
def initialize(enabled: nil, required: nil); end
|
3432
3519
|
end
|
3520
|
+
class WalletOptions < Stripe::RequestParams
|
3521
|
+
class Link < Stripe::RequestParams
|
3522
|
+
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
|
3523
|
+
sig { returns(T.nilable(String)) }
|
3524
|
+
attr_accessor :display
|
3525
|
+
sig { params(display: T.nilable(String)).void }
|
3526
|
+
def initialize(display: nil); end
|
3527
|
+
end
|
3528
|
+
# contains details about the Link wallet options.
|
3529
|
+
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions::Link)) }
|
3530
|
+
attr_accessor :link
|
3531
|
+
sig {
|
3532
|
+
params(link: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions::Link)).void
|
3533
|
+
}
|
3534
|
+
def initialize(link: nil); end
|
3535
|
+
end
|
3433
3536
|
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
3434
3537
|
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing)) }
|
3435
3538
|
attr_accessor :adaptive_pricing
|
@@ -3511,7 +3614,7 @@ module Stripe
|
|
3511
3614
|
# Generate a post-purchase Invoice for one-time payments.
|
3512
3615
|
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation)) }
|
3513
3616
|
attr_accessor :invoice_creation
|
3514
|
-
# A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
|
3617
|
+
# A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
|
3515
3618
|
#
|
3516
3619
|
# For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
|
3517
3620
|
#
|
@@ -3571,9 +3674,9 @@ module Stripe
|
|
3571
3674
|
# other characteristics.
|
3572
3675
|
sig { returns(T.nilable(T::Array[String])) }
|
3573
3676
|
attr_accessor :payment_method_types
|
3574
|
-
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
3677
|
+
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
|
3575
3678
|
#
|
3576
|
-
# For specific permissions, please refer to their dedicated subsections, such as `permissions.
|
3679
|
+
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
3577
3680
|
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions)) }
|
3578
3681
|
attr_accessor :permissions
|
3579
3682
|
# Controls phone number collection settings for the session.
|
@@ -3630,8 +3733,11 @@ module Stripe
|
|
3630
3733
|
# The UI mode of the Session. Defaults to `hosted`.
|
3631
3734
|
sig { returns(T.nilable(String)) }
|
3632
3735
|
attr_accessor :ui_mode
|
3736
|
+
# Wallet-specific configuration.
|
3737
|
+
sig { returns(T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)) }
|
3738
|
+
attr_accessor :wallet_options
|
3633
3739
|
sig {
|
3634
|
-
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String)).void
|
3740
|
+
params(adaptive_pricing: T.nilable(::Stripe::Checkout::Session::CreateParams::AdaptivePricing), after_expiration: T.nilable(::Stripe::Checkout::Session::CreateParams::AfterExpiration), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(::Stripe::Checkout::Session::CreateParams::AutomaticTax), billing_address_collection: T.nilable(String), cancel_url: T.nilable(String), client_reference_id: T.nilable(String), consent_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::CustomField]), custom_text: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomText), customer: T.nilable(String), customer_creation: T.nilable(String), customer_email: T.nilable(String), customer_update: T.nilable(::Stripe::Checkout::Session::CreateParams::CustomerUpdate), discounts: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::Discount]), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), invoice_creation: T.nilable(::Stripe::Checkout::Session::CreateParams::InvoiceCreation), line_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::LineItem]), locale: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), mode: T.nilable(String), optional_items: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::OptionalItem]), payment_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodData), payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), permissions: T.nilable(::Stripe::Checkout::Session::CreateParams::Permissions), phone_number_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::PhoneNumberCollection), redirect_on_completion: T.nilable(String), return_url: T.nilable(String), saved_payment_method_options: T.nilable(::Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions), setup_intent_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SetupIntentData), shipping_address_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[::Stripe::Checkout::Session::CreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(::Stripe::Checkout::Session::CreateParams::SubscriptionData), success_url: T.nilable(String), tax_id_collection: T.nilable(::Stripe::Checkout::Session::CreateParams::TaxIdCollection), ui_mode: T.nilable(String), wallet_options: T.nilable(::Stripe::Checkout::Session::CreateParams::WalletOptions)).void
|
3635
3741
|
}
|
3636
3742
|
def initialize(
|
3637
3743
|
adaptive_pricing: nil,
|
@@ -3676,7 +3782,8 @@ module Stripe
|
|
3676
3782
|
subscription_data: nil,
|
3677
3783
|
success_url: nil,
|
3678
3784
|
tax_id_collection: nil,
|
3679
|
-
ui_mode: nil
|
3785
|
+
ui_mode: nil,
|
3786
|
+
wallet_options: nil
|
3680
3787
|
); end
|
3681
3788
|
end
|
3682
3789
|
class UpdateParams < Stripe::RequestParams
|
@@ -3852,7 +3959,7 @@ module Stripe
|
|
3852
3959
|
}
|
3853
3960
|
def initialize(shipping_rate: nil, shipping_rate_data: nil); end
|
3854
3961
|
end
|
3855
|
-
# Information about the customer collected within the Checkout Session.
|
3962
|
+
# Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
3856
3963
|
sig { returns(T.nilable(::Stripe::Checkout::Session::UpdateParams::CollectedInformation)) }
|
3857
3964
|
attr_accessor :collected_information
|
3858
3965
|
# Specifies which fields in the response should be expanded.
|
@@ -3942,6 +4049,8 @@ module Stripe
|
|
3942
4049
|
def self.list_line_items(session, params = {}, opts = {}); end
|
3943
4050
|
|
3944
4051
|
# Updates a Checkout Session object.
|
4052
|
+
#
|
4053
|
+
# Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
|
3945
4054
|
sig {
|
3946
4055
|
params(session: String, params: T.any(::Stripe::Checkout::Session::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session)
|
3947
4056
|
}
|