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
@@ -88,6 +88,9 @@ module Stripe
|
|
88
88
|
# Billing phone number (including extension).
|
89
89
|
sig { returns(T.nilable(String)) }
|
90
90
|
attr_reader :phone
|
91
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
92
|
+
sig { returns(T.nilable(String)) }
|
93
|
+
attr_reader :tax_id
|
91
94
|
end
|
92
95
|
class Blik < Stripe::StripeObject; end
|
93
96
|
class Boleto < Stripe::StripeObject
|
@@ -122,10 +125,10 @@ module Stripe
|
|
122
125
|
# The type of account being debited or credited
|
123
126
|
sig { returns(String) }
|
124
127
|
attr_reader :account_type
|
125
|
-
#
|
128
|
+
# The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
|
126
129
|
sig { returns(T.nilable(String)) }
|
127
130
|
attr_reader :application_cryptogram
|
128
|
-
#
|
131
|
+
# The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
|
129
132
|
sig { returns(T.nilable(String)) }
|
130
133
|
attr_reader :application_preferred_name
|
131
134
|
# Identifier for this transaction.
|
@@ -137,13 +140,13 @@ module Stripe
|
|
137
140
|
# Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
138
141
|
sig { returns(T.nilable(String)) }
|
139
142
|
attr_reader :cardholder_verification_method
|
140
|
-
#
|
143
|
+
# Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
|
141
144
|
sig { returns(T.nilable(String)) }
|
142
145
|
attr_reader :dedicated_file_name
|
143
|
-
#
|
146
|
+
# A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
|
144
147
|
sig { returns(T.nilable(String)) }
|
145
148
|
attr_reader :terminal_verification_results
|
146
|
-
# An indication of
|
149
|
+
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
147
150
|
sig { returns(T.nilable(String)) }
|
148
151
|
attr_reader :transaction_status_information
|
149
152
|
end
|
@@ -217,7 +220,7 @@ module Stripe
|
|
217
220
|
# Defines whether the authorized amount can be over-captured or not
|
218
221
|
sig { returns(T::Boolean) }
|
219
222
|
attr_reader :overcapture_supported
|
220
|
-
# EMV tag 5F2D
|
223
|
+
# The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
|
221
224
|
sig { returns(T.nilable(T::Array[String])) }
|
222
225
|
attr_reader :preferred_locales
|
223
226
|
# How card details were read in this transaction.
|
@@ -522,7 +525,7 @@ module Stripe
|
|
522
525
|
# Details about payment methods collected offline.
|
523
526
|
sig { returns(T.nilable(Offline)) }
|
524
527
|
attr_reader :offline
|
525
|
-
# EMV tag 5F2D
|
528
|
+
# The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
|
526
529
|
sig { returns(T.nilable(T::Array[String])) }
|
527
530
|
attr_reader :preferred_locales
|
528
531
|
# How card details were read in this transaction.
|
@@ -540,6 +543,7 @@ module Stripe
|
|
540
543
|
sig { returns(T.nilable(String)) }
|
541
544
|
attr_reader :cashtag
|
542
545
|
end
|
546
|
+
class Crypto < Stripe::StripeObject; end
|
543
547
|
class CustomerBalance < Stripe::StripeObject; end
|
544
548
|
class Eps < Stripe::StripeObject
|
545
549
|
# The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
@@ -557,7 +561,7 @@ module Stripe
|
|
557
561
|
class Giropay < Stripe::StripeObject; end
|
558
562
|
class Grabpay < Stripe::StripeObject; end
|
559
563
|
class Ideal < Stripe::StripeObject
|
560
|
-
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
564
|
+
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
561
565
|
sig { returns(T.nilable(String)) }
|
562
566
|
attr_reader :bank
|
563
567
|
# The Bank Identifier Code of the customer's bank, if the bank was provided.
|
@@ -611,7 +615,7 @@ module Stripe
|
|
611
615
|
# Contains information about card networks that can be used to process the payment.
|
612
616
|
sig { returns(T.nilable(Networks)) }
|
613
617
|
attr_reader :networks
|
614
|
-
# EMV tag 5F2D
|
618
|
+
# The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
|
615
619
|
sig { returns(T.nilable(T::Array[String])) }
|
616
620
|
attr_reader :preferred_locales
|
617
621
|
# How card details were read in this transaction.
|
@@ -854,6 +858,9 @@ module Stripe
|
|
854
858
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
855
859
|
sig { returns(Integer) }
|
856
860
|
attr_reader :created
|
861
|
+
# Attribute for field crypto
|
862
|
+
sig { returns(Crypto) }
|
863
|
+
attr_reader :crypto
|
857
864
|
# The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
858
865
|
sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
|
859
866
|
attr_reader :customer
|
@@ -1024,21 +1031,11 @@ module Stripe
|
|
1024
1031
|
}
|
1025
1032
|
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
1026
1033
|
end
|
1027
|
-
class Affirm < Stripe::RequestParams
|
1028
|
-
|
1029
|
-
end
|
1030
|
-
class
|
1031
|
-
|
1032
|
-
end
|
1033
|
-
class Alipay < Stripe::RequestParams
|
1034
|
-
|
1035
|
-
end
|
1036
|
-
class Alma < Stripe::RequestParams
|
1037
|
-
|
1038
|
-
end
|
1039
|
-
class AmazonPay < Stripe::RequestParams
|
1040
|
-
|
1041
|
-
end
|
1034
|
+
class Affirm < Stripe::RequestParams; end
|
1035
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
1036
|
+
class Alipay < Stripe::RequestParams; end
|
1037
|
+
class Alma < Stripe::RequestParams; end
|
1038
|
+
class AmazonPay < Stripe::RequestParams; end
|
1042
1039
|
class AuBecsDebit < Stripe::RequestParams
|
1043
1040
|
# The account number for the bank account.
|
1044
1041
|
sig { returns(String) }
|
@@ -1059,12 +1056,8 @@ module Stripe
|
|
1059
1056
|
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
1060
1057
|
def initialize(account_number: nil, sort_code: nil); end
|
1061
1058
|
end
|
1062
|
-
class Bancontact < Stripe::RequestParams
|
1063
|
-
|
1064
|
-
end
|
1065
|
-
class Billie < Stripe::RequestParams
|
1066
|
-
|
1067
|
-
end
|
1059
|
+
class Bancontact < Stripe::RequestParams; end
|
1060
|
+
class Billie < Stripe::RequestParams; end
|
1068
1061
|
class BillingDetails < Stripe::RequestParams
|
1069
1062
|
class Address < Stripe::RequestParams
|
1070
1063
|
# City, district, suburb, town, or village.
|
@@ -1111,14 +1104,15 @@ module Stripe
|
|
1111
1104
|
# Billing phone number (including extension).
|
1112
1105
|
sig { returns(T.nilable(T.nilable(String))) }
|
1113
1106
|
attr_accessor :phone
|
1107
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
1108
|
+
sig { returns(T.nilable(String)) }
|
1109
|
+
attr_accessor :tax_id
|
1114
1110
|
sig {
|
1115
|
-
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
1111
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::CreateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
|
1116
1112
|
}
|
1117
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
1118
|
-
end
|
1119
|
-
class Blik < Stripe::RequestParams
|
1120
|
-
|
1113
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
1121
1114
|
end
|
1115
|
+
class Blik < Stripe::RequestParams; end
|
1122
1116
|
class Boleto < Stripe::RequestParams
|
1123
1117
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
1124
1118
|
sig { returns(String) }
|
@@ -1164,12 +1158,9 @@ module Stripe
|
|
1164
1158
|
token: nil
|
1165
1159
|
); end
|
1166
1160
|
end
|
1167
|
-
class Cashapp < Stripe::RequestParams
|
1168
|
-
|
1169
|
-
end
|
1170
|
-
class CustomerBalance < Stripe::RequestParams
|
1171
|
-
|
1172
|
-
end
|
1161
|
+
class Cashapp < Stripe::RequestParams; end
|
1162
|
+
class Crypto < Stripe::RequestParams; end
|
1163
|
+
class CustomerBalance < Stripe::RequestParams; end
|
1173
1164
|
class Eps < Stripe::RequestParams
|
1174
1165
|
# The customer's bank.
|
1175
1166
|
sig { returns(T.nilable(String)) }
|
@@ -1187,12 +1178,8 @@ module Stripe
|
|
1187
1178
|
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
1188
1179
|
def initialize(account_holder_type: nil, bank: nil); end
|
1189
1180
|
end
|
1190
|
-
class Giropay < Stripe::RequestParams
|
1191
|
-
|
1192
|
-
end
|
1193
|
-
class Grabpay < Stripe::RequestParams
|
1194
|
-
|
1195
|
-
end
|
1181
|
+
class Giropay < Stripe::RequestParams; end
|
1182
|
+
class Grabpay < Stripe::RequestParams; end
|
1196
1183
|
class Ideal < Stripe::RequestParams
|
1197
1184
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1198
1185
|
sig { returns(T.nilable(String)) }
|
@@ -1200,12 +1187,8 @@ module Stripe
|
|
1200
1187
|
sig { params(bank: T.nilable(String)).void }
|
1201
1188
|
def initialize(bank: nil); end
|
1202
1189
|
end
|
1203
|
-
class InteracPresent < Stripe::RequestParams
|
1204
|
-
|
1205
|
-
end
|
1206
|
-
class KakaoPay < Stripe::RequestParams
|
1207
|
-
|
1208
|
-
end
|
1190
|
+
class InteracPresent < Stripe::RequestParams; end
|
1191
|
+
class KakaoPay < Stripe::RequestParams; end
|
1209
1192
|
class Klarna < Stripe::RequestParams
|
1210
1193
|
class Dob < Stripe::RequestParams
|
1211
1194
|
# The day of birth, between 1 and 31.
|
@@ -1226,21 +1209,11 @@ module Stripe
|
|
1226
1209
|
sig { params(dob: T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna::Dob)).void }
|
1227
1210
|
def initialize(dob: nil); end
|
1228
1211
|
end
|
1229
|
-
class Konbini < Stripe::RequestParams
|
1230
|
-
|
1231
|
-
end
|
1232
|
-
class
|
1233
|
-
|
1234
|
-
end
|
1235
|
-
class Link < Stripe::RequestParams
|
1236
|
-
|
1237
|
-
end
|
1238
|
-
class Mobilepay < Stripe::RequestParams
|
1239
|
-
|
1240
|
-
end
|
1241
|
-
class Multibanco < Stripe::RequestParams
|
1242
|
-
|
1243
|
-
end
|
1212
|
+
class Konbini < Stripe::RequestParams; end
|
1213
|
+
class KrCard < Stripe::RequestParams; end
|
1214
|
+
class Link < Stripe::RequestParams; end
|
1215
|
+
class Mobilepay < Stripe::RequestParams; end
|
1216
|
+
class Multibanco < Stripe::RequestParams; end
|
1244
1217
|
class NaverPay < Stripe::RequestParams
|
1245
1218
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
1246
1219
|
sig { returns(T.nilable(String)) }
|
@@ -1279,9 +1252,7 @@ module Stripe
|
|
1279
1252
|
suffix: nil
|
1280
1253
|
); end
|
1281
1254
|
end
|
1282
|
-
class Oxxo < Stripe::RequestParams
|
1283
|
-
|
1284
|
-
end
|
1255
|
+
class Oxxo < Stripe::RequestParams; end
|
1285
1256
|
class P24 < Stripe::RequestParams
|
1286
1257
|
# The customer's bank.
|
1287
1258
|
sig { returns(T.nilable(String)) }
|
@@ -1289,24 +1260,12 @@ module Stripe
|
|
1289
1260
|
sig { params(bank: T.nilable(String)).void }
|
1290
1261
|
def initialize(bank: nil); end
|
1291
1262
|
end
|
1292
|
-
class PayByBank < Stripe::RequestParams
|
1293
|
-
|
1294
|
-
end
|
1295
|
-
class
|
1296
|
-
|
1297
|
-
end
|
1298
|
-
class Paynow < Stripe::RequestParams
|
1299
|
-
|
1300
|
-
end
|
1301
|
-
class Paypal < Stripe::RequestParams
|
1302
|
-
|
1303
|
-
end
|
1304
|
-
class Pix < Stripe::RequestParams
|
1305
|
-
|
1306
|
-
end
|
1307
|
-
class Promptpay < Stripe::RequestParams
|
1308
|
-
|
1309
|
-
end
|
1263
|
+
class PayByBank < Stripe::RequestParams; end
|
1264
|
+
class Payco < Stripe::RequestParams; end
|
1265
|
+
class Paynow < Stripe::RequestParams; end
|
1266
|
+
class Paypal < Stripe::RequestParams; end
|
1267
|
+
class Pix < Stripe::RequestParams; end
|
1268
|
+
class Promptpay < Stripe::RequestParams; end
|
1310
1269
|
class RadarOptions < Stripe::RequestParams
|
1311
1270
|
# 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.
|
1312
1271
|
sig { returns(T.nilable(String)) }
|
@@ -1314,15 +1273,9 @@ module Stripe
|
|
1314
1273
|
sig { params(session: T.nilable(String)).void }
|
1315
1274
|
def initialize(session: nil); end
|
1316
1275
|
end
|
1317
|
-
class RevolutPay < Stripe::RequestParams
|
1318
|
-
|
1319
|
-
end
|
1320
|
-
class SamsungPay < Stripe::RequestParams
|
1321
|
-
|
1322
|
-
end
|
1323
|
-
class Satispay < Stripe::RequestParams
|
1324
|
-
|
1325
|
-
end
|
1276
|
+
class RevolutPay < Stripe::RequestParams; end
|
1277
|
+
class SamsungPay < Stripe::RequestParams; end
|
1278
|
+
class Satispay < Stripe::RequestParams; end
|
1326
1279
|
class SepaDebit < Stripe::RequestParams
|
1327
1280
|
# IBAN of the bank account.
|
1328
1281
|
sig { returns(String) }
|
@@ -1337,12 +1290,8 @@ module Stripe
|
|
1337
1290
|
sig { params(country: String).void }
|
1338
1291
|
def initialize(country: nil); end
|
1339
1292
|
end
|
1340
|
-
class Swish < Stripe::RequestParams
|
1341
|
-
|
1342
|
-
end
|
1343
|
-
class Twint < Stripe::RequestParams
|
1344
|
-
|
1345
|
-
end
|
1293
|
+
class Swish < Stripe::RequestParams; end
|
1294
|
+
class Twint < Stripe::RequestParams; end
|
1346
1295
|
class UsBankAccount < Stripe::RequestParams
|
1347
1296
|
# Account holder type: individual or company.
|
1348
1297
|
sig { returns(T.nilable(String)) }
|
@@ -1370,12 +1319,8 @@ module Stripe
|
|
1370
1319
|
routing_number: nil
|
1371
1320
|
); end
|
1372
1321
|
end
|
1373
|
-
class WechatPay < Stripe::RequestParams
|
1374
|
-
|
1375
|
-
end
|
1376
|
-
class Zip < Stripe::RequestParams
|
1377
|
-
|
1378
|
-
end
|
1322
|
+
class WechatPay < Stripe::RequestParams; end
|
1323
|
+
class Zip < Stripe::RequestParams; end
|
1379
1324
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1380
1325
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::AcssDebit)) }
|
1381
1326
|
attr_accessor :acss_debit
|
@@ -1406,7 +1351,7 @@ module Stripe
|
|
1406
1351
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
1407
1352
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact)) }
|
1408
1353
|
attr_accessor :bancontact
|
1409
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
1354
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
1410
1355
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Billie)) }
|
1411
1356
|
attr_accessor :billie
|
1412
1357
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
@@ -1424,6 +1369,9 @@ module Stripe
|
|
1424
1369
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1425
1370
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Cashapp)) }
|
1426
1371
|
attr_accessor :cashapp
|
1372
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
1373
|
+
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Crypto)) }
|
1374
|
+
attr_accessor :crypto
|
1427
1375
|
# The `Customer` to whom the original PaymentMethod is attached.
|
1428
1376
|
sig { returns(T.nilable(String)) }
|
1429
1377
|
attr_accessor :customer
|
@@ -1511,13 +1459,13 @@ module Stripe
|
|
1511
1459
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1512
1460
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::RadarOptions)) }
|
1513
1461
|
attr_accessor :radar_options
|
1514
|
-
# If this is a `
|
1462
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1515
1463
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay)) }
|
1516
1464
|
attr_accessor :revolut_pay
|
1517
1465
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1518
1466
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay)) }
|
1519
1467
|
attr_accessor :samsung_pay
|
1520
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
1468
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
1521
1469
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay)) }
|
1522
1470
|
attr_accessor :satispay
|
1523
1471
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
@@ -1545,7 +1493,7 @@ module Stripe
|
|
1545
1493
|
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::Zip)) }
|
1546
1494
|
attr_accessor :zip
|
1547
1495
|
sig {
|
1548
|
-
params(acss_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethod::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethod::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethod::CreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethod::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethod::CreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethod::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethod::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethod::CreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethod::CreateParams::Cashapp), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethod::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethod::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethod::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethod::CreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethod::CreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethod::CreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethod::CreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethod::CreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethod::CreateParams::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethod::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethod::CreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethod::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethod::CreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethod::CreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethod::CreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethod::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethod::CreateParams::Paypal), pix: T.nilable(::Stripe::PaymentMethod::CreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethod::CreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethod::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethod::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethod::CreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethod::CreateParams::Zip)).void
|
1496
|
+
params(acss_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AcssDebit), affirm: T.nilable(::Stripe::PaymentMethod::CreateParams::Affirm), afterpay_clearpay: T.nilable(::Stripe::PaymentMethod::CreateParams::AfterpayClearpay), alipay: T.nilable(::Stripe::PaymentMethod::CreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(::Stripe::PaymentMethod::CreateParams::Alma), amazon_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::AmazonPay), au_becs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::AuBecsDebit), bacs_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::BacsDebit), bancontact: T.nilable(::Stripe::PaymentMethod::CreateParams::Bancontact), billie: T.nilable(::Stripe::PaymentMethod::CreateParams::Billie), billing_details: T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails), blik: T.nilable(::Stripe::PaymentMethod::CreateParams::Blik), boleto: T.nilable(::Stripe::PaymentMethod::CreateParams::Boleto), card: T.nilable(::Stripe::PaymentMethod::CreateParams::Card), cashapp: T.nilable(::Stripe::PaymentMethod::CreateParams::Cashapp), crypto: T.nilable(::Stripe::PaymentMethod::CreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(::Stripe::PaymentMethod::CreateParams::CustomerBalance), eps: T.nilable(::Stripe::PaymentMethod::CreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(::Stripe::PaymentMethod::CreateParams::Fpx), giropay: T.nilable(::Stripe::PaymentMethod::CreateParams::Giropay), grabpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Grabpay), ideal: T.nilable(::Stripe::PaymentMethod::CreateParams::Ideal), interac_present: T.nilable(::Stripe::PaymentMethod::CreateParams::InteracPresent), kakao_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::KakaoPay), klarna: T.nilable(::Stripe::PaymentMethod::CreateParams::Klarna), konbini: T.nilable(::Stripe::PaymentMethod::CreateParams::Konbini), kr_card: T.nilable(::Stripe::PaymentMethod::CreateParams::KrCard), link: T.nilable(::Stripe::PaymentMethod::CreateParams::Link), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(::Stripe::PaymentMethod::CreateParams::Mobilepay), multibanco: T.nilable(::Stripe::PaymentMethod::CreateParams::Multibanco), naver_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::NaverPay), nz_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::NzBankAccount), oxxo: T.nilable(::Stripe::PaymentMethod::CreateParams::Oxxo), p24: T.nilable(::Stripe::PaymentMethod::CreateParams::P24), pay_by_bank: T.nilable(::Stripe::PaymentMethod::CreateParams::PayByBank), payco: T.nilable(::Stripe::PaymentMethod::CreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(::Stripe::PaymentMethod::CreateParams::Paynow), paypal: T.nilable(::Stripe::PaymentMethod::CreateParams::Paypal), pix: T.nilable(::Stripe::PaymentMethod::CreateParams::Pix), promptpay: T.nilable(::Stripe::PaymentMethod::CreateParams::Promptpay), radar_options: T.nilable(::Stripe::PaymentMethod::CreateParams::RadarOptions), revolut_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::RevolutPay), samsung_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::SamsungPay), satispay: T.nilable(::Stripe::PaymentMethod::CreateParams::Satispay), sepa_debit: T.nilable(::Stripe::PaymentMethod::CreateParams::SepaDebit), sofort: T.nilable(::Stripe::PaymentMethod::CreateParams::Sofort), swish: T.nilable(::Stripe::PaymentMethod::CreateParams::Swish), twint: T.nilable(::Stripe::PaymentMethod::CreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(::Stripe::PaymentMethod::CreateParams::UsBankAccount), wechat_pay: T.nilable(::Stripe::PaymentMethod::CreateParams::WechatPay), zip: T.nilable(::Stripe::PaymentMethod::CreateParams::Zip)).void
|
1549
1497
|
}
|
1550
1498
|
def initialize(
|
1551
1499
|
acss_debit: nil,
|
@@ -1564,6 +1512,7 @@ module Stripe
|
|
1564
1512
|
boleto: nil,
|
1565
1513
|
card: nil,
|
1566
1514
|
cashapp: nil,
|
1515
|
+
crypto: nil,
|
1567
1516
|
customer: nil,
|
1568
1517
|
customer_balance: nil,
|
1569
1518
|
eps: nil,
|
@@ -1653,10 +1602,13 @@ module Stripe
|
|
1653
1602
|
# Billing phone number (including extension).
|
1654
1603
|
sig { returns(T.nilable(T.nilable(String))) }
|
1655
1604
|
attr_accessor :phone
|
1605
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
1606
|
+
sig { returns(T.nilable(String)) }
|
1607
|
+
attr_accessor :tax_id
|
1656
1608
|
sig {
|
1657
|
-
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void
|
1609
|
+
params(address: T.nilable(T.nilable(T.any(String, ::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void
|
1658
1610
|
}
|
1659
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
1611
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
1660
1612
|
end
|
1661
1613
|
class Card < Stripe::RequestParams
|
1662
1614
|
class Networks < Stripe::RequestParams
|
@@ -1680,12 +1632,8 @@ module Stripe
|
|
1680
1632
|
}
|
1681
1633
|
def initialize(exp_month: nil, exp_year: nil, networks: nil); end
|
1682
1634
|
end
|
1683
|
-
class Link < Stripe::RequestParams
|
1684
|
-
|
1685
|
-
end
|
1686
|
-
class PayByBank < Stripe::RequestParams
|
1687
|
-
|
1688
|
-
end
|
1635
|
+
class Link < Stripe::RequestParams; end
|
1636
|
+
class PayByBank < Stripe::RequestParams; end
|
1689
1637
|
class UsBankAccount < Stripe::RequestParams
|
1690
1638
|
# Bank account holder type.
|
1691
1639
|
sig { returns(T.nilable(String)) }
|
@@ -1753,16 +1701,16 @@ module Stripe
|
|
1753
1701
|
end
|
1754
1702
|
# Attaches a PaymentMethod object to a Customer.
|
1755
1703
|
#
|
1756
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1757
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1704
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
1705
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1758
1706
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1759
1707
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1760
1708
|
# future use, which makes later declines and payment friction more likely.
|
1761
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1709
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1762
1710
|
# future payments.
|
1763
1711
|
#
|
1764
1712
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1765
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1713
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1766
1714
|
# on the Customer to the PaymentMethod's ID.
|
1767
1715
|
sig {
|
1768
1716
|
params(params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
@@ -1771,25 +1719,25 @@ module Stripe
|
|
1771
1719
|
|
1772
1720
|
# Attaches a PaymentMethod object to a Customer.
|
1773
1721
|
#
|
1774
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1775
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1722
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
1723
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1776
1724
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1777
1725
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1778
1726
|
# future use, which makes later declines and payment friction more likely.
|
1779
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1727
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1780
1728
|
# future payments.
|
1781
1729
|
#
|
1782
1730
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1783
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1731
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1784
1732
|
# on the Customer to the PaymentMethod's ID.
|
1785
1733
|
sig {
|
1786
1734
|
params(payment_method: String, params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
1787
1735
|
}
|
1788
1736
|
def self.attach(payment_method, params = {}, opts = {}); end
|
1789
1737
|
|
1790
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
1738
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
1791
1739
|
#
|
1792
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
1740
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
1793
1741
|
sig {
|
1794
1742
|
params(params: T.any(::Stripe::PaymentMethod::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
1795
1743
|
}
|
@@ -1807,7 +1755,7 @@ module Stripe
|
|
1807
1755
|
}
|
1808
1756
|
def self.detach(payment_method, params = {}, opts = {}); end
|
1809
1757
|
|
1810
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
1758
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
1811
1759
|
sig {
|
1812
1760
|
params(params: T.any(::Stripe::PaymentMethod::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
1813
1761
|
}
|