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
@@ -80,6 +80,8 @@ module Stripe
|
|
80
80
|
attr_reader :name
|
81
81
|
# Billing phone number (including extension).
|
82
82
|
attr_reader :phone
|
83
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
84
|
+
attr_reader :tax_id
|
83
85
|
end
|
84
86
|
|
85
87
|
class Blik < Stripe::StripeObject; end
|
@@ -112,9 +114,9 @@ module Stripe
|
|
112
114
|
class Receipt < Stripe::StripeObject
|
113
115
|
# The type of account being debited or credited
|
114
116
|
attr_reader :account_type
|
115
|
-
#
|
117
|
+
# The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
|
116
118
|
attr_reader :application_cryptogram
|
117
|
-
#
|
119
|
+
# 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.
|
118
120
|
attr_reader :application_preferred_name
|
119
121
|
# Identifier for this transaction.
|
120
122
|
attr_reader :authorization_code
|
@@ -122,11 +124,11 @@ module Stripe
|
|
122
124
|
attr_reader :authorization_response_code
|
123
125
|
# 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`.
|
124
126
|
attr_reader :cardholder_verification_method
|
125
|
-
#
|
127
|
+
# Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
|
126
128
|
attr_reader :dedicated_file_name
|
127
|
-
#
|
129
|
+
# 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.
|
128
130
|
attr_reader :terminal_verification_results
|
129
|
-
# An indication of
|
131
|
+
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
130
132
|
attr_reader :transaction_status_information
|
131
133
|
end
|
132
134
|
|
@@ -178,7 +180,7 @@ module Stripe
|
|
178
180
|
attr_reader :offline
|
179
181
|
# Defines whether the authorized amount can be over-captured or not
|
180
182
|
attr_reader :overcapture_supported
|
181
|
-
# EMV tag 5F2D
|
183
|
+
# 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.
|
182
184
|
attr_reader :preferred_locales
|
183
185
|
# How card details were read in this transaction.
|
184
186
|
attr_reader :read_method
|
@@ -405,7 +407,7 @@ module Stripe
|
|
405
407
|
attr_reader :networks
|
406
408
|
# Details about payment methods collected offline.
|
407
409
|
attr_reader :offline
|
408
|
-
# EMV tag 5F2D
|
410
|
+
# 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.
|
409
411
|
attr_reader :preferred_locales
|
410
412
|
# How card details were read in this transaction.
|
411
413
|
attr_reader :read_method
|
@@ -420,6 +422,7 @@ module Stripe
|
|
420
422
|
attr_reader :cashtag
|
421
423
|
end
|
422
424
|
|
425
|
+
class Crypto < Stripe::StripeObject; end
|
423
426
|
class CustomerBalance < Stripe::StripeObject; end
|
424
427
|
|
425
428
|
class Eps < Stripe::StripeObject
|
@@ -438,7 +441,7 @@ module Stripe
|
|
438
441
|
class Grabpay < Stripe::StripeObject; end
|
439
442
|
|
440
443
|
class Ideal < Stripe::StripeObject
|
441
|
-
# 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`.
|
444
|
+
# 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`.
|
442
445
|
attr_reader :bank
|
443
446
|
# The Bank Identifier Code of the customer's bank, if the bank was provided.
|
444
447
|
attr_reader :bic
|
@@ -477,7 +480,7 @@ module Stripe
|
|
477
480
|
attr_reader :last4
|
478
481
|
# Contains information about card networks that can be used to process the payment.
|
479
482
|
attr_reader :networks
|
480
|
-
# EMV tag 5F2D
|
483
|
+
# 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.
|
481
484
|
attr_reader :preferred_locales
|
482
485
|
# How card details were read in this transaction.
|
483
486
|
attr_reader :read_method
|
@@ -689,20 +692,11 @@ module Stripe
|
|
689
692
|
end
|
690
693
|
end
|
691
694
|
|
692
|
-
class Affirm < Stripe::RequestParams
|
693
|
-
end
|
694
|
-
|
695
|
-
class
|
696
|
-
end
|
697
|
-
|
698
|
-
class Alipay < Stripe::RequestParams
|
699
|
-
end
|
700
|
-
|
701
|
-
class Alma < Stripe::RequestParams
|
702
|
-
end
|
703
|
-
|
704
|
-
class AmazonPay < Stripe::RequestParams
|
705
|
-
end
|
695
|
+
class Affirm < Stripe::RequestParams; end
|
696
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
697
|
+
class Alipay < Stripe::RequestParams; end
|
698
|
+
class Alma < Stripe::RequestParams; end
|
699
|
+
class AmazonPay < Stripe::RequestParams; end
|
706
700
|
|
707
701
|
class AuBecsDebit < Stripe::RequestParams
|
708
702
|
# The account number for the bank account.
|
@@ -728,11 +722,8 @@ module Stripe
|
|
728
722
|
end
|
729
723
|
end
|
730
724
|
|
731
|
-
class Bancontact < Stripe::RequestParams
|
732
|
-
end
|
733
|
-
|
734
|
-
class Billie < Stripe::RequestParams
|
735
|
-
end
|
725
|
+
class Bancontact < Stripe::RequestParams; end
|
726
|
+
class Billie < Stripe::RequestParams; end
|
736
727
|
|
737
728
|
class BillingDetails < Stripe::RequestParams
|
738
729
|
class Address < Stripe::RequestParams
|
@@ -773,17 +764,19 @@ module Stripe
|
|
773
764
|
attr_accessor :name
|
774
765
|
# Billing phone number (including extension).
|
775
766
|
attr_accessor :phone
|
767
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
768
|
+
attr_accessor :tax_id
|
776
769
|
|
777
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
770
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
778
771
|
@address = address
|
779
772
|
@email = email
|
780
773
|
@name = name
|
781
774
|
@phone = phone
|
775
|
+
@tax_id = tax_id
|
782
776
|
end
|
783
777
|
end
|
784
778
|
|
785
|
-
class Blik < Stripe::RequestParams
|
786
|
-
end
|
779
|
+
class Blik < Stripe::RequestParams; end
|
787
780
|
|
788
781
|
class Boleto < Stripe::RequestParams
|
789
782
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -833,11 +826,9 @@ module Stripe
|
|
833
826
|
end
|
834
827
|
end
|
835
828
|
|
836
|
-
class Cashapp < Stripe::RequestParams
|
837
|
-
end
|
838
|
-
|
839
|
-
class CustomerBalance < Stripe::RequestParams
|
840
|
-
end
|
829
|
+
class Cashapp < Stripe::RequestParams; end
|
830
|
+
class Crypto < Stripe::RequestParams; end
|
831
|
+
class CustomerBalance < Stripe::RequestParams; end
|
841
832
|
|
842
833
|
class Eps < Stripe::RequestParams
|
843
834
|
# The customer's bank.
|
@@ -860,11 +851,8 @@ module Stripe
|
|
860
851
|
end
|
861
852
|
end
|
862
853
|
|
863
|
-
class Giropay < Stripe::RequestParams
|
864
|
-
end
|
865
|
-
|
866
|
-
class Grabpay < Stripe::RequestParams
|
867
|
-
end
|
854
|
+
class Giropay < Stripe::RequestParams; end
|
855
|
+
class Grabpay < Stripe::RequestParams; end
|
868
856
|
|
869
857
|
class Ideal < Stripe::RequestParams
|
870
858
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -875,11 +863,8 @@ module Stripe
|
|
875
863
|
end
|
876
864
|
end
|
877
865
|
|
878
|
-
class InteracPresent < Stripe::RequestParams
|
879
|
-
end
|
880
|
-
|
881
|
-
class KakaoPay < Stripe::RequestParams
|
882
|
-
end
|
866
|
+
class InteracPresent < Stripe::RequestParams; end
|
867
|
+
class KakaoPay < Stripe::RequestParams; end
|
883
868
|
|
884
869
|
class Klarna < Stripe::RequestParams
|
885
870
|
class Dob < Stripe::RequestParams
|
@@ -904,20 +889,11 @@ module Stripe
|
|
904
889
|
end
|
905
890
|
end
|
906
891
|
|
907
|
-
class Konbini < Stripe::RequestParams
|
908
|
-
end
|
909
|
-
|
910
|
-
class
|
911
|
-
end
|
912
|
-
|
913
|
-
class Link < Stripe::RequestParams
|
914
|
-
end
|
915
|
-
|
916
|
-
class Mobilepay < Stripe::RequestParams
|
917
|
-
end
|
918
|
-
|
919
|
-
class Multibanco < Stripe::RequestParams
|
920
|
-
end
|
892
|
+
class Konbini < Stripe::RequestParams; end
|
893
|
+
class KrCard < Stripe::RequestParams; end
|
894
|
+
class Link < Stripe::RequestParams; end
|
895
|
+
class Mobilepay < Stripe::RequestParams; end
|
896
|
+
class Multibanco < Stripe::RequestParams; end
|
921
897
|
|
922
898
|
class NaverPay < Stripe::RequestParams
|
923
899
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -959,8 +935,7 @@ module Stripe
|
|
959
935
|
end
|
960
936
|
end
|
961
937
|
|
962
|
-
class Oxxo < Stripe::RequestParams
|
963
|
-
end
|
938
|
+
class Oxxo < Stripe::RequestParams; end
|
964
939
|
|
965
940
|
class P24 < Stripe::RequestParams
|
966
941
|
# The customer's bank.
|
@@ -971,23 +946,12 @@ module Stripe
|
|
971
946
|
end
|
972
947
|
end
|
973
948
|
|
974
|
-
class PayByBank < Stripe::RequestParams
|
975
|
-
end
|
976
|
-
|
977
|
-
class
|
978
|
-
end
|
979
|
-
|
980
|
-
class Paynow < Stripe::RequestParams
|
981
|
-
end
|
982
|
-
|
983
|
-
class Paypal < Stripe::RequestParams
|
984
|
-
end
|
985
|
-
|
986
|
-
class Pix < Stripe::RequestParams
|
987
|
-
end
|
988
|
-
|
989
|
-
class Promptpay < Stripe::RequestParams
|
990
|
-
end
|
949
|
+
class PayByBank < Stripe::RequestParams; end
|
950
|
+
class Payco < Stripe::RequestParams; end
|
951
|
+
class Paynow < Stripe::RequestParams; end
|
952
|
+
class Paypal < Stripe::RequestParams; end
|
953
|
+
class Pix < Stripe::RequestParams; end
|
954
|
+
class Promptpay < Stripe::RequestParams; end
|
991
955
|
|
992
956
|
class RadarOptions < Stripe::RequestParams
|
993
957
|
# 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.
|
@@ -998,14 +962,9 @@ module Stripe
|
|
998
962
|
end
|
999
963
|
end
|
1000
964
|
|
1001
|
-
class RevolutPay < Stripe::RequestParams
|
1002
|
-
end
|
1003
|
-
|
1004
|
-
class SamsungPay < Stripe::RequestParams
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
class Satispay < Stripe::RequestParams
|
1008
|
-
end
|
965
|
+
class RevolutPay < Stripe::RequestParams; end
|
966
|
+
class SamsungPay < Stripe::RequestParams; end
|
967
|
+
class Satispay < Stripe::RequestParams; end
|
1009
968
|
|
1010
969
|
class SepaDebit < Stripe::RequestParams
|
1011
970
|
# IBAN of the bank account.
|
@@ -1025,11 +984,8 @@ module Stripe
|
|
1025
984
|
end
|
1026
985
|
end
|
1027
986
|
|
1028
|
-
class Swish < Stripe::RequestParams
|
1029
|
-
end
|
1030
|
-
|
1031
|
-
class Twint < Stripe::RequestParams
|
1032
|
-
end
|
987
|
+
class Swish < Stripe::RequestParams; end
|
988
|
+
class Twint < Stripe::RequestParams; end
|
1033
989
|
|
1034
990
|
class UsBankAccount < Stripe::RequestParams
|
1035
991
|
# Account holder type: individual or company.
|
@@ -1058,11 +1014,8 @@ module Stripe
|
|
1058
1014
|
end
|
1059
1015
|
end
|
1060
1016
|
|
1061
|
-
class WechatPay < Stripe::RequestParams
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
class Zip < Stripe::RequestParams
|
1065
|
-
end
|
1017
|
+
class WechatPay < Stripe::RequestParams; end
|
1018
|
+
class Zip < Stripe::RequestParams; end
|
1066
1019
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1067
1020
|
attr_accessor :acss_debit
|
1068
1021
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -1083,7 +1036,7 @@ module Stripe
|
|
1083
1036
|
attr_accessor :bacs_debit
|
1084
1037
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
1085
1038
|
attr_accessor :bancontact
|
1086
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
1039
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
1087
1040
|
attr_accessor :billie
|
1088
1041
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
1089
1042
|
attr_accessor :billing_details
|
@@ -1095,6 +1048,8 @@ module Stripe
|
|
1095
1048
|
attr_accessor :card
|
1096
1049
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1097
1050
|
attr_accessor :cashapp
|
1051
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
1052
|
+
attr_accessor :crypto
|
1098
1053
|
# The `Customer` to whom the original PaymentMethod is attached.
|
1099
1054
|
attr_accessor :customer
|
1100
1055
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
@@ -1153,11 +1108,11 @@ module Stripe
|
|
1153
1108
|
attr_accessor :promptpay
|
1154
1109
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1155
1110
|
attr_accessor :radar_options
|
1156
|
-
# If this is a `
|
1111
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1157
1112
|
attr_accessor :revolut_pay
|
1158
1113
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1159
1114
|
attr_accessor :samsung_pay
|
1160
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
1115
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
1161
1116
|
attr_accessor :satispay
|
1162
1117
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1163
1118
|
attr_accessor :sepa_debit
|
@@ -1193,6 +1148,7 @@ module Stripe
|
|
1193
1148
|
boleto: nil,
|
1194
1149
|
card: nil,
|
1195
1150
|
cashapp: nil,
|
1151
|
+
crypto: nil,
|
1196
1152
|
customer: nil,
|
1197
1153
|
customer_balance: nil,
|
1198
1154
|
eps: nil,
|
@@ -1250,6 +1206,7 @@ module Stripe
|
|
1250
1206
|
@boleto = boleto
|
1251
1207
|
@card = card
|
1252
1208
|
@cashapp = cashapp
|
1209
|
+
@crypto = crypto
|
1253
1210
|
@customer = customer
|
1254
1211
|
@customer_balance = customer_balance
|
1255
1212
|
@eps = eps
|
@@ -1333,12 +1290,15 @@ module Stripe
|
|
1333
1290
|
attr_accessor :name
|
1334
1291
|
# Billing phone number (including extension).
|
1335
1292
|
attr_accessor :phone
|
1293
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
1294
|
+
attr_accessor :tax_id
|
1336
1295
|
|
1337
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
1296
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
1338
1297
|
@address = address
|
1339
1298
|
@email = email
|
1340
1299
|
@name = name
|
1341
1300
|
@phone = phone
|
1301
|
+
@tax_id = tax_id
|
1342
1302
|
end
|
1343
1303
|
end
|
1344
1304
|
|
@@ -1365,11 +1325,8 @@ module Stripe
|
|
1365
1325
|
end
|
1366
1326
|
end
|
1367
1327
|
|
1368
|
-
class Link < Stripe::RequestParams
|
1369
|
-
end
|
1370
|
-
|
1371
|
-
class PayByBank < Stripe::RequestParams
|
1372
|
-
end
|
1328
|
+
class Link < Stripe::RequestParams; end
|
1329
|
+
class PayByBank < Stripe::RequestParams; end
|
1373
1330
|
|
1374
1331
|
class UsBankAccount < Stripe::RequestParams
|
1375
1332
|
# Bank account holder type.
|
@@ -1476,6 +1433,8 @@ module Stripe
|
|
1476
1433
|
attr_reader :cashapp
|
1477
1434
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
1478
1435
|
attr_reader :created
|
1436
|
+
# Attribute for field crypto
|
1437
|
+
attr_reader :crypto
|
1479
1438
|
# 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.
|
1480
1439
|
attr_reader :customer
|
1481
1440
|
# Attribute for field customer_balance
|
@@ -1561,16 +1520,16 @@ module Stripe
|
|
1561
1520
|
|
1562
1521
|
# Attaches a PaymentMethod object to a Customer.
|
1563
1522
|
#
|
1564
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1565
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1523
|
+
# 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)
|
1524
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1566
1525
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1567
1526
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1568
1527
|
# future use, which makes later declines and payment friction more likely.
|
1569
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1528
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1570
1529
|
# future payments.
|
1571
1530
|
#
|
1572
1531
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1573
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1532
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1574
1533
|
# on the Customer to the PaymentMethod's ID.
|
1575
1534
|
def attach(params = {}, opts = {})
|
1576
1535
|
request_stripe_object(
|
@@ -1583,16 +1542,16 @@ module Stripe
|
|
1583
1542
|
|
1584
1543
|
# Attaches a PaymentMethod object to a Customer.
|
1585
1544
|
#
|
1586
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1587
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1545
|
+
# 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)
|
1546
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1588
1547
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1589
1548
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1590
1549
|
# future use, which makes later declines and payment friction more likely.
|
1591
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1550
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1592
1551
|
# future payments.
|
1593
1552
|
#
|
1594
1553
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1595
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1554
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1596
1555
|
# on the Customer to the PaymentMethod's ID.
|
1597
1556
|
def self.attach(payment_method, params = {}, opts = {})
|
1598
1557
|
request_stripe_object(
|
@@ -1603,9 +1562,9 @@ module Stripe
|
|
1603
1562
|
)
|
1604
1563
|
end
|
1605
1564
|
|
1606
|
-
# 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.
|
1565
|
+
# 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.
|
1607
1566
|
#
|
1608
|
-
# 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.
|
1567
|
+
# 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.
|
1609
1568
|
def self.create(params = {}, opts = {})
|
1610
1569
|
request_stripe_object(method: :post, path: "/v1/payment_methods", params: params, opts: opts)
|
1611
1570
|
end
|
@@ -1630,7 +1589,7 @@ module Stripe
|
|
1630
1589
|
)
|
1631
1590
|
end
|
1632
1591
|
|
1633
|
-
# 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.
|
1592
|
+
# 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.
|
1634
1593
|
def self.list(params = {}, opts = {})
|
1635
1594
|
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
|
1636
1595
|
end
|