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
@@ -78,8 +78,7 @@ module Stripe
|
|
78
78
|
|
79
79
|
class MandateData < Stripe::RequestParams
|
80
80
|
class CustomerAcceptance < Stripe::RequestParams
|
81
|
-
class Offline < Stripe::RequestParams
|
82
|
-
end
|
81
|
+
class Offline < Stripe::RequestParams; end
|
83
82
|
|
84
83
|
class Online < Stripe::RequestParams
|
85
84
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -132,20 +131,11 @@ module Stripe
|
|
132
131
|
end
|
133
132
|
end
|
134
133
|
|
135
|
-
class Affirm < Stripe::RequestParams
|
136
|
-
end
|
137
|
-
|
138
|
-
class
|
139
|
-
end
|
140
|
-
|
141
|
-
class Alipay < Stripe::RequestParams
|
142
|
-
end
|
143
|
-
|
144
|
-
class Alma < Stripe::RequestParams
|
145
|
-
end
|
146
|
-
|
147
|
-
class AmazonPay < Stripe::RequestParams
|
148
|
-
end
|
134
|
+
class Affirm < Stripe::RequestParams; end
|
135
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
136
|
+
class Alipay < Stripe::RequestParams; end
|
137
|
+
class Alma < Stripe::RequestParams; end
|
138
|
+
class AmazonPay < Stripe::RequestParams; end
|
149
139
|
|
150
140
|
class AuBecsDebit < Stripe::RequestParams
|
151
141
|
# The account number for the bank account.
|
@@ -171,11 +161,8 @@ module Stripe
|
|
171
161
|
end
|
172
162
|
end
|
173
163
|
|
174
|
-
class Bancontact < Stripe::RequestParams
|
175
|
-
end
|
176
|
-
|
177
|
-
class Billie < Stripe::RequestParams
|
178
|
-
end
|
164
|
+
class Bancontact < Stripe::RequestParams; end
|
165
|
+
class Billie < Stripe::RequestParams; end
|
179
166
|
|
180
167
|
class BillingDetails < Stripe::RequestParams
|
181
168
|
class Address < Stripe::RequestParams
|
@@ -216,17 +203,19 @@ module Stripe
|
|
216
203
|
attr_accessor :name
|
217
204
|
# Billing phone number (including extension).
|
218
205
|
attr_accessor :phone
|
206
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
207
|
+
attr_accessor :tax_id
|
219
208
|
|
220
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
209
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
221
210
|
@address = address
|
222
211
|
@email = email
|
223
212
|
@name = name
|
224
213
|
@phone = phone
|
214
|
+
@tax_id = tax_id
|
225
215
|
end
|
226
216
|
end
|
227
217
|
|
228
|
-
class Blik < Stripe::RequestParams
|
229
|
-
end
|
218
|
+
class Blik < Stripe::RequestParams; end
|
230
219
|
|
231
220
|
class Boleto < Stripe::RequestParams
|
232
221
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -237,11 +226,9 @@ module Stripe
|
|
237
226
|
end
|
238
227
|
end
|
239
228
|
|
240
|
-
class Cashapp < Stripe::RequestParams
|
241
|
-
end
|
242
|
-
|
243
|
-
class CustomerBalance < Stripe::RequestParams
|
244
|
-
end
|
229
|
+
class Cashapp < Stripe::RequestParams; end
|
230
|
+
class Crypto < Stripe::RequestParams; end
|
231
|
+
class CustomerBalance < Stripe::RequestParams; end
|
245
232
|
|
246
233
|
class Eps < Stripe::RequestParams
|
247
234
|
# The customer's bank.
|
@@ -264,11 +251,8 @@ module Stripe
|
|
264
251
|
end
|
265
252
|
end
|
266
253
|
|
267
|
-
class Giropay < Stripe::RequestParams
|
268
|
-
end
|
269
|
-
|
270
|
-
class Grabpay < Stripe::RequestParams
|
271
|
-
end
|
254
|
+
class Giropay < Stripe::RequestParams; end
|
255
|
+
class Grabpay < Stripe::RequestParams; end
|
272
256
|
|
273
257
|
class Ideal < Stripe::RequestParams
|
274
258
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -279,11 +263,8 @@ module Stripe
|
|
279
263
|
end
|
280
264
|
end
|
281
265
|
|
282
|
-
class InteracPresent < Stripe::RequestParams
|
283
|
-
end
|
284
|
-
|
285
|
-
class KakaoPay < Stripe::RequestParams
|
286
|
-
end
|
266
|
+
class InteracPresent < Stripe::RequestParams; end
|
267
|
+
class KakaoPay < Stripe::RequestParams; end
|
287
268
|
|
288
269
|
class Klarna < Stripe::RequestParams
|
289
270
|
class Dob < Stripe::RequestParams
|
@@ -308,20 +289,11 @@ module Stripe
|
|
308
289
|
end
|
309
290
|
end
|
310
291
|
|
311
|
-
class Konbini < Stripe::RequestParams
|
312
|
-
end
|
313
|
-
|
314
|
-
class
|
315
|
-
end
|
316
|
-
|
317
|
-
class Link < Stripe::RequestParams
|
318
|
-
end
|
319
|
-
|
320
|
-
class Mobilepay < Stripe::RequestParams
|
321
|
-
end
|
322
|
-
|
323
|
-
class Multibanco < Stripe::RequestParams
|
324
|
-
end
|
292
|
+
class Konbini < Stripe::RequestParams; end
|
293
|
+
class KrCard < Stripe::RequestParams; end
|
294
|
+
class Link < Stripe::RequestParams; end
|
295
|
+
class Mobilepay < Stripe::RequestParams; end
|
296
|
+
class Multibanco < Stripe::RequestParams; end
|
325
297
|
|
326
298
|
class NaverPay < Stripe::RequestParams
|
327
299
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -363,8 +335,7 @@ module Stripe
|
|
363
335
|
end
|
364
336
|
end
|
365
337
|
|
366
|
-
class Oxxo < Stripe::RequestParams
|
367
|
-
end
|
338
|
+
class Oxxo < Stripe::RequestParams; end
|
368
339
|
|
369
340
|
class P24 < Stripe::RequestParams
|
370
341
|
# The customer's bank.
|
@@ -375,23 +346,12 @@ module Stripe
|
|
375
346
|
end
|
376
347
|
end
|
377
348
|
|
378
|
-
class PayByBank < Stripe::RequestParams
|
379
|
-
end
|
380
|
-
|
381
|
-
class
|
382
|
-
end
|
383
|
-
|
384
|
-
class Paynow < Stripe::RequestParams
|
385
|
-
end
|
386
|
-
|
387
|
-
class Paypal < Stripe::RequestParams
|
388
|
-
end
|
389
|
-
|
390
|
-
class Pix < Stripe::RequestParams
|
391
|
-
end
|
392
|
-
|
393
|
-
class Promptpay < Stripe::RequestParams
|
394
|
-
end
|
349
|
+
class PayByBank < Stripe::RequestParams; end
|
350
|
+
class Payco < Stripe::RequestParams; end
|
351
|
+
class Paynow < Stripe::RequestParams; end
|
352
|
+
class Paypal < Stripe::RequestParams; end
|
353
|
+
class Pix < Stripe::RequestParams; end
|
354
|
+
class Promptpay < Stripe::RequestParams; end
|
395
355
|
|
396
356
|
class RadarOptions < Stripe::RequestParams
|
397
357
|
# 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.
|
@@ -402,14 +362,9 @@ module Stripe
|
|
402
362
|
end
|
403
363
|
end
|
404
364
|
|
405
|
-
class RevolutPay < Stripe::RequestParams
|
406
|
-
end
|
407
|
-
|
408
|
-
class SamsungPay < Stripe::RequestParams
|
409
|
-
end
|
410
|
-
|
411
|
-
class Satispay < Stripe::RequestParams
|
412
|
-
end
|
365
|
+
class RevolutPay < Stripe::RequestParams; end
|
366
|
+
class SamsungPay < Stripe::RequestParams; end
|
367
|
+
class Satispay < Stripe::RequestParams; end
|
413
368
|
|
414
369
|
class SepaDebit < Stripe::RequestParams
|
415
370
|
# IBAN of the bank account.
|
@@ -429,11 +384,8 @@ module Stripe
|
|
429
384
|
end
|
430
385
|
end
|
431
386
|
|
432
|
-
class Swish < Stripe::RequestParams
|
433
|
-
end
|
434
|
-
|
435
|
-
class Twint < Stripe::RequestParams
|
436
|
-
end
|
387
|
+
class Swish < Stripe::RequestParams; end
|
388
|
+
class Twint < Stripe::RequestParams; end
|
437
389
|
|
438
390
|
class UsBankAccount < Stripe::RequestParams
|
439
391
|
# Account holder type: individual or company.
|
@@ -462,11 +414,8 @@ module Stripe
|
|
462
414
|
end
|
463
415
|
end
|
464
416
|
|
465
|
-
class WechatPay < Stripe::RequestParams
|
466
|
-
end
|
467
|
-
|
468
|
-
class Zip < Stripe::RequestParams
|
469
|
-
end
|
417
|
+
class WechatPay < Stripe::RequestParams; end
|
418
|
+
class Zip < Stripe::RequestParams; end
|
470
419
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
471
420
|
attr_accessor :acss_debit
|
472
421
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -487,7 +436,7 @@ module Stripe
|
|
487
436
|
attr_accessor :bacs_debit
|
488
437
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
489
438
|
attr_accessor :bancontact
|
490
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
439
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
491
440
|
attr_accessor :billie
|
492
441
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
493
442
|
attr_accessor :billing_details
|
@@ -497,6 +446,8 @@ module Stripe
|
|
497
446
|
attr_accessor :boleto
|
498
447
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
499
448
|
attr_accessor :cashapp
|
449
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
450
|
+
attr_accessor :crypto
|
500
451
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
501
452
|
attr_accessor :customer_balance
|
502
453
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -549,11 +500,11 @@ module Stripe
|
|
549
500
|
attr_accessor :promptpay
|
550
501
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
551
502
|
attr_accessor :radar_options
|
552
|
-
# If this is a `
|
503
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
553
504
|
attr_accessor :revolut_pay
|
554
505
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
555
506
|
attr_accessor :samsung_pay
|
556
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
507
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
557
508
|
attr_accessor :satispay
|
558
509
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
559
510
|
attr_accessor :sepa_debit
|
@@ -588,6 +539,7 @@ module Stripe
|
|
588
539
|
blik: nil,
|
589
540
|
boleto: nil,
|
590
541
|
cashapp: nil,
|
542
|
+
crypto: nil,
|
591
543
|
customer_balance: nil,
|
592
544
|
eps: nil,
|
593
545
|
fpx: nil,
|
@@ -641,6 +593,7 @@ module Stripe
|
|
641
593
|
@blik = blik
|
642
594
|
@boleto = boleto
|
643
595
|
@cashapp = cashapp
|
596
|
+
@crypto = crypto
|
644
597
|
@customer_balance = customer_balance
|
645
598
|
@eps = eps
|
646
599
|
@fpx = fpx
|
@@ -725,8 +678,7 @@ module Stripe
|
|
725
678
|
end
|
726
679
|
end
|
727
680
|
|
728
|
-
class AmazonPay < Stripe::RequestParams
|
729
|
-
end
|
681
|
+
class AmazonPay < Stripe::RequestParams; end
|
730
682
|
|
731
683
|
class BacsDebit < Stripe::RequestParams
|
732
684
|
class MandateOptions < Stripe::RequestParams
|
@@ -892,7 +844,88 @@ module Stripe
|
|
892
844
|
end
|
893
845
|
end
|
894
846
|
|
895
|
-
class CardPresent < Stripe::RequestParams
|
847
|
+
class CardPresent < Stripe::RequestParams; end
|
848
|
+
|
849
|
+
class Klarna < Stripe::RequestParams
|
850
|
+
class OnDemand < Stripe::RequestParams
|
851
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
852
|
+
attr_accessor :average_amount
|
853
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
854
|
+
attr_accessor :maximum_amount
|
855
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
856
|
+
attr_accessor :minimum_amount
|
857
|
+
# Interval at which the customer is making purchases
|
858
|
+
attr_accessor :purchase_interval
|
859
|
+
# The number of `purchase_interval` between charges
|
860
|
+
attr_accessor :purchase_interval_count
|
861
|
+
|
862
|
+
def initialize(
|
863
|
+
average_amount: nil,
|
864
|
+
maximum_amount: nil,
|
865
|
+
minimum_amount: nil,
|
866
|
+
purchase_interval: nil,
|
867
|
+
purchase_interval_count: nil
|
868
|
+
)
|
869
|
+
@average_amount = average_amount
|
870
|
+
@maximum_amount = maximum_amount
|
871
|
+
@minimum_amount = minimum_amount
|
872
|
+
@purchase_interval = purchase_interval
|
873
|
+
@purchase_interval_count = purchase_interval_count
|
874
|
+
end
|
875
|
+
end
|
876
|
+
|
877
|
+
class Subscription < Stripe::RequestParams
|
878
|
+
class NextBilling < Stripe::RequestParams
|
879
|
+
# The amount of the next charge for the subscription.
|
880
|
+
attr_accessor :amount
|
881
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
882
|
+
attr_accessor :date
|
883
|
+
|
884
|
+
def initialize(amount: nil, date: nil)
|
885
|
+
@amount = amount
|
886
|
+
@date = date
|
887
|
+
end
|
888
|
+
end
|
889
|
+
# Unit of time between subscription charges.
|
890
|
+
attr_accessor :interval
|
891
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
892
|
+
attr_accessor :interval_count
|
893
|
+
# Name for subscription.
|
894
|
+
attr_accessor :name
|
895
|
+
# Describes the upcoming charge for this subscription.
|
896
|
+
attr_accessor :next_billing
|
897
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
898
|
+
attr_accessor :reference
|
899
|
+
|
900
|
+
def initialize(
|
901
|
+
interval: nil,
|
902
|
+
interval_count: nil,
|
903
|
+
name: nil,
|
904
|
+
next_billing: nil,
|
905
|
+
reference: nil
|
906
|
+
)
|
907
|
+
@interval = interval
|
908
|
+
@interval_count = interval_count
|
909
|
+
@name = name
|
910
|
+
@next_billing = next_billing
|
911
|
+
@reference = reference
|
912
|
+
end
|
913
|
+
end
|
914
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
915
|
+
attr_accessor :currency
|
916
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
917
|
+
attr_accessor :on_demand
|
918
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
919
|
+
attr_accessor :preferred_locale
|
920
|
+
# Subscription details if setting up or charging a subscription
|
921
|
+
attr_accessor :subscriptions
|
922
|
+
|
923
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
924
|
+
@currency = currency
|
925
|
+
@on_demand = on_demand
|
926
|
+
@preferred_locale = preferred_locale
|
927
|
+
@subscriptions = subscriptions
|
928
|
+
end
|
896
929
|
end
|
897
930
|
|
898
931
|
class Link < Stripe::RequestParams
|
@@ -1005,6 +1038,8 @@ module Stripe
|
|
1005
1038
|
attr_accessor :card
|
1006
1039
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
1007
1040
|
attr_accessor :card_present
|
1041
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
1042
|
+
attr_accessor :klarna
|
1008
1043
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
1009
1044
|
attr_accessor :link
|
1010
1045
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
@@ -1020,6 +1055,7 @@ module Stripe
|
|
1020
1055
|
bacs_debit: nil,
|
1021
1056
|
card: nil,
|
1022
1057
|
card_present: nil,
|
1058
|
+
klarna: nil,
|
1023
1059
|
link: nil,
|
1024
1060
|
paypal: nil,
|
1025
1061
|
sepa_debit: nil,
|
@@ -1030,6 +1066,7 @@ module Stripe
|
|
1030
1066
|
@bacs_debit = bacs_debit
|
1031
1067
|
@card = card
|
1032
1068
|
@card_present = card_present
|
1069
|
+
@klarna = klarna
|
1033
1070
|
@link = link
|
1034
1071
|
@paypal = paypal
|
1035
1072
|
@sepa_debit = sepa_debit
|
@@ -1087,7 +1124,7 @@ module Stripe
|
|
1087
1124
|
attr_accessor :payment_method_data
|
1088
1125
|
# Payment method-specific configuration for this SetupIntent.
|
1089
1126
|
attr_accessor :payment_method_options
|
1090
|
-
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
1127
|
+
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
1091
1128
|
attr_accessor :payment_method_types
|
1092
1129
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
|
1093
1130
|
attr_accessor :return_url
|
@@ -1174,20 +1211,11 @@ module Stripe
|
|
1174
1211
|
end
|
1175
1212
|
end
|
1176
1213
|
|
1177
|
-
class Affirm < Stripe::RequestParams
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
class
|
1181
|
-
end
|
1182
|
-
|
1183
|
-
class Alipay < Stripe::RequestParams
|
1184
|
-
end
|
1185
|
-
|
1186
|
-
class Alma < Stripe::RequestParams
|
1187
|
-
end
|
1188
|
-
|
1189
|
-
class AmazonPay < Stripe::RequestParams
|
1190
|
-
end
|
1214
|
+
class Affirm < Stripe::RequestParams; end
|
1215
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
1216
|
+
class Alipay < Stripe::RequestParams; end
|
1217
|
+
class Alma < Stripe::RequestParams; end
|
1218
|
+
class AmazonPay < Stripe::RequestParams; end
|
1191
1219
|
|
1192
1220
|
class AuBecsDebit < Stripe::RequestParams
|
1193
1221
|
# The account number for the bank account.
|
@@ -1213,11 +1241,8 @@ module Stripe
|
|
1213
1241
|
end
|
1214
1242
|
end
|
1215
1243
|
|
1216
|
-
class Bancontact < Stripe::RequestParams
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
class Billie < Stripe::RequestParams
|
1220
|
-
end
|
1244
|
+
class Bancontact < Stripe::RequestParams; end
|
1245
|
+
class Billie < Stripe::RequestParams; end
|
1221
1246
|
|
1222
1247
|
class BillingDetails < Stripe::RequestParams
|
1223
1248
|
class Address < Stripe::RequestParams
|
@@ -1258,17 +1283,19 @@ module Stripe
|
|
1258
1283
|
attr_accessor :name
|
1259
1284
|
# Billing phone number (including extension).
|
1260
1285
|
attr_accessor :phone
|
1286
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
1287
|
+
attr_accessor :tax_id
|
1261
1288
|
|
1262
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
1289
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
1263
1290
|
@address = address
|
1264
1291
|
@email = email
|
1265
1292
|
@name = name
|
1266
1293
|
@phone = phone
|
1294
|
+
@tax_id = tax_id
|
1267
1295
|
end
|
1268
1296
|
end
|
1269
1297
|
|
1270
|
-
class Blik < Stripe::RequestParams
|
1271
|
-
end
|
1298
|
+
class Blik < Stripe::RequestParams; end
|
1272
1299
|
|
1273
1300
|
class Boleto < Stripe::RequestParams
|
1274
1301
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -1279,11 +1306,9 @@ module Stripe
|
|
1279
1306
|
end
|
1280
1307
|
end
|
1281
1308
|
|
1282
|
-
class Cashapp < Stripe::RequestParams
|
1283
|
-
end
|
1284
|
-
|
1285
|
-
class CustomerBalance < Stripe::RequestParams
|
1286
|
-
end
|
1309
|
+
class Cashapp < Stripe::RequestParams; end
|
1310
|
+
class Crypto < Stripe::RequestParams; end
|
1311
|
+
class CustomerBalance < Stripe::RequestParams; end
|
1287
1312
|
|
1288
1313
|
class Eps < Stripe::RequestParams
|
1289
1314
|
# The customer's bank.
|
@@ -1306,11 +1331,8 @@ module Stripe
|
|
1306
1331
|
end
|
1307
1332
|
end
|
1308
1333
|
|
1309
|
-
class Giropay < Stripe::RequestParams
|
1310
|
-
end
|
1311
|
-
|
1312
|
-
class Grabpay < Stripe::RequestParams
|
1313
|
-
end
|
1334
|
+
class Giropay < Stripe::RequestParams; end
|
1335
|
+
class Grabpay < Stripe::RequestParams; end
|
1314
1336
|
|
1315
1337
|
class Ideal < Stripe::RequestParams
|
1316
1338
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -1321,11 +1343,8 @@ module Stripe
|
|
1321
1343
|
end
|
1322
1344
|
end
|
1323
1345
|
|
1324
|
-
class InteracPresent < Stripe::RequestParams
|
1325
|
-
end
|
1326
|
-
|
1327
|
-
class KakaoPay < Stripe::RequestParams
|
1328
|
-
end
|
1346
|
+
class InteracPresent < Stripe::RequestParams; end
|
1347
|
+
class KakaoPay < Stripe::RequestParams; end
|
1329
1348
|
|
1330
1349
|
class Klarna < Stripe::RequestParams
|
1331
1350
|
class Dob < Stripe::RequestParams
|
@@ -1350,20 +1369,11 @@ module Stripe
|
|
1350
1369
|
end
|
1351
1370
|
end
|
1352
1371
|
|
1353
|
-
class Konbini < Stripe::RequestParams
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
class
|
1357
|
-
end
|
1358
|
-
|
1359
|
-
class Link < Stripe::RequestParams
|
1360
|
-
end
|
1361
|
-
|
1362
|
-
class Mobilepay < Stripe::RequestParams
|
1363
|
-
end
|
1364
|
-
|
1365
|
-
class Multibanco < Stripe::RequestParams
|
1366
|
-
end
|
1372
|
+
class Konbini < Stripe::RequestParams; end
|
1373
|
+
class KrCard < Stripe::RequestParams; end
|
1374
|
+
class Link < Stripe::RequestParams; end
|
1375
|
+
class Mobilepay < Stripe::RequestParams; end
|
1376
|
+
class Multibanco < Stripe::RequestParams; end
|
1367
1377
|
|
1368
1378
|
class NaverPay < Stripe::RequestParams
|
1369
1379
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -1405,8 +1415,7 @@ module Stripe
|
|
1405
1415
|
end
|
1406
1416
|
end
|
1407
1417
|
|
1408
|
-
class Oxxo < Stripe::RequestParams
|
1409
|
-
end
|
1418
|
+
class Oxxo < Stripe::RequestParams; end
|
1410
1419
|
|
1411
1420
|
class P24 < Stripe::RequestParams
|
1412
1421
|
# The customer's bank.
|
@@ -1417,23 +1426,12 @@ module Stripe
|
|
1417
1426
|
end
|
1418
1427
|
end
|
1419
1428
|
|
1420
|
-
class PayByBank < Stripe::RequestParams
|
1421
|
-
end
|
1422
|
-
|
1423
|
-
class
|
1424
|
-
end
|
1425
|
-
|
1426
|
-
class Paynow < Stripe::RequestParams
|
1427
|
-
end
|
1428
|
-
|
1429
|
-
class Paypal < Stripe::RequestParams
|
1430
|
-
end
|
1431
|
-
|
1432
|
-
class Pix < Stripe::RequestParams
|
1433
|
-
end
|
1434
|
-
|
1435
|
-
class Promptpay < Stripe::RequestParams
|
1436
|
-
end
|
1429
|
+
class PayByBank < Stripe::RequestParams; end
|
1430
|
+
class Payco < Stripe::RequestParams; end
|
1431
|
+
class Paynow < Stripe::RequestParams; end
|
1432
|
+
class Paypal < Stripe::RequestParams; end
|
1433
|
+
class Pix < Stripe::RequestParams; end
|
1434
|
+
class Promptpay < Stripe::RequestParams; end
|
1437
1435
|
|
1438
1436
|
class RadarOptions < Stripe::RequestParams
|
1439
1437
|
# 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.
|
@@ -1444,14 +1442,9 @@ module Stripe
|
|
1444
1442
|
end
|
1445
1443
|
end
|
1446
1444
|
|
1447
|
-
class RevolutPay < Stripe::RequestParams
|
1448
|
-
end
|
1449
|
-
|
1450
|
-
class SamsungPay < Stripe::RequestParams
|
1451
|
-
end
|
1452
|
-
|
1453
|
-
class Satispay < Stripe::RequestParams
|
1454
|
-
end
|
1445
|
+
class RevolutPay < Stripe::RequestParams; end
|
1446
|
+
class SamsungPay < Stripe::RequestParams; end
|
1447
|
+
class Satispay < Stripe::RequestParams; end
|
1455
1448
|
|
1456
1449
|
class SepaDebit < Stripe::RequestParams
|
1457
1450
|
# IBAN of the bank account.
|
@@ -1471,11 +1464,8 @@ module Stripe
|
|
1471
1464
|
end
|
1472
1465
|
end
|
1473
1466
|
|
1474
|
-
class Swish < Stripe::RequestParams
|
1475
|
-
end
|
1476
|
-
|
1477
|
-
class Twint < Stripe::RequestParams
|
1478
|
-
end
|
1467
|
+
class Swish < Stripe::RequestParams; end
|
1468
|
+
class Twint < Stripe::RequestParams; end
|
1479
1469
|
|
1480
1470
|
class UsBankAccount < Stripe::RequestParams
|
1481
1471
|
# Account holder type: individual or company.
|
@@ -1504,11 +1494,8 @@ module Stripe
|
|
1504
1494
|
end
|
1505
1495
|
end
|
1506
1496
|
|
1507
|
-
class WechatPay < Stripe::RequestParams
|
1508
|
-
end
|
1509
|
-
|
1510
|
-
class Zip < Stripe::RequestParams
|
1511
|
-
end
|
1497
|
+
class WechatPay < Stripe::RequestParams; end
|
1498
|
+
class Zip < Stripe::RequestParams; end
|
1512
1499
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1513
1500
|
attr_accessor :acss_debit
|
1514
1501
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -1529,7 +1516,7 @@ module Stripe
|
|
1529
1516
|
attr_accessor :bacs_debit
|
1530
1517
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
1531
1518
|
attr_accessor :bancontact
|
1532
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
1519
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
1533
1520
|
attr_accessor :billie
|
1534
1521
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
1535
1522
|
attr_accessor :billing_details
|
@@ -1539,6 +1526,8 @@ module Stripe
|
|
1539
1526
|
attr_accessor :boleto
|
1540
1527
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1541
1528
|
attr_accessor :cashapp
|
1529
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
1530
|
+
attr_accessor :crypto
|
1542
1531
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
1543
1532
|
attr_accessor :customer_balance
|
1544
1533
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -1591,11 +1580,11 @@ module Stripe
|
|
1591
1580
|
attr_accessor :promptpay
|
1592
1581
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1593
1582
|
attr_accessor :radar_options
|
1594
|
-
# If this is a `
|
1583
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1595
1584
|
attr_accessor :revolut_pay
|
1596
1585
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1597
1586
|
attr_accessor :samsung_pay
|
1598
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
1587
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
1599
1588
|
attr_accessor :satispay
|
1600
1589
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1601
1590
|
attr_accessor :sepa_debit
|
@@ -1630,6 +1619,7 @@ module Stripe
|
|
1630
1619
|
blik: nil,
|
1631
1620
|
boleto: nil,
|
1632
1621
|
cashapp: nil,
|
1622
|
+
crypto: nil,
|
1633
1623
|
customer_balance: nil,
|
1634
1624
|
eps: nil,
|
1635
1625
|
fpx: nil,
|
@@ -1683,6 +1673,7 @@ module Stripe
|
|
1683
1673
|
@blik = blik
|
1684
1674
|
@boleto = boleto
|
1685
1675
|
@cashapp = cashapp
|
1676
|
+
@crypto = crypto
|
1686
1677
|
@customer_balance = customer_balance
|
1687
1678
|
@eps = eps
|
1688
1679
|
@fpx = fpx
|
@@ -1767,8 +1758,7 @@ module Stripe
|
|
1767
1758
|
end
|
1768
1759
|
end
|
1769
1760
|
|
1770
|
-
class AmazonPay < Stripe::RequestParams
|
1771
|
-
end
|
1761
|
+
class AmazonPay < Stripe::RequestParams; end
|
1772
1762
|
|
1773
1763
|
class BacsDebit < Stripe::RequestParams
|
1774
1764
|
class MandateOptions < Stripe::RequestParams
|
@@ -1934,7 +1924,88 @@ module Stripe
|
|
1934
1924
|
end
|
1935
1925
|
end
|
1936
1926
|
|
1937
|
-
class CardPresent < Stripe::RequestParams
|
1927
|
+
class CardPresent < Stripe::RequestParams; end
|
1928
|
+
|
1929
|
+
class Klarna < Stripe::RequestParams
|
1930
|
+
class OnDemand < Stripe::RequestParams
|
1931
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1932
|
+
attr_accessor :average_amount
|
1933
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1934
|
+
attr_accessor :maximum_amount
|
1935
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1936
|
+
attr_accessor :minimum_amount
|
1937
|
+
# Interval at which the customer is making purchases
|
1938
|
+
attr_accessor :purchase_interval
|
1939
|
+
# The number of `purchase_interval` between charges
|
1940
|
+
attr_accessor :purchase_interval_count
|
1941
|
+
|
1942
|
+
def initialize(
|
1943
|
+
average_amount: nil,
|
1944
|
+
maximum_amount: nil,
|
1945
|
+
minimum_amount: nil,
|
1946
|
+
purchase_interval: nil,
|
1947
|
+
purchase_interval_count: nil
|
1948
|
+
)
|
1949
|
+
@average_amount = average_amount
|
1950
|
+
@maximum_amount = maximum_amount
|
1951
|
+
@minimum_amount = minimum_amount
|
1952
|
+
@purchase_interval = purchase_interval
|
1953
|
+
@purchase_interval_count = purchase_interval_count
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
class Subscription < Stripe::RequestParams
|
1958
|
+
class NextBilling < Stripe::RequestParams
|
1959
|
+
# The amount of the next charge for the subscription.
|
1960
|
+
attr_accessor :amount
|
1961
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
1962
|
+
attr_accessor :date
|
1963
|
+
|
1964
|
+
def initialize(amount: nil, date: nil)
|
1965
|
+
@amount = amount
|
1966
|
+
@date = date
|
1967
|
+
end
|
1968
|
+
end
|
1969
|
+
# Unit of time between subscription charges.
|
1970
|
+
attr_accessor :interval
|
1971
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
1972
|
+
attr_accessor :interval_count
|
1973
|
+
# Name for subscription.
|
1974
|
+
attr_accessor :name
|
1975
|
+
# Describes the upcoming charge for this subscription.
|
1976
|
+
attr_accessor :next_billing
|
1977
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
1978
|
+
attr_accessor :reference
|
1979
|
+
|
1980
|
+
def initialize(
|
1981
|
+
interval: nil,
|
1982
|
+
interval_count: nil,
|
1983
|
+
name: nil,
|
1984
|
+
next_billing: nil,
|
1985
|
+
reference: nil
|
1986
|
+
)
|
1987
|
+
@interval = interval
|
1988
|
+
@interval_count = interval_count
|
1989
|
+
@name = name
|
1990
|
+
@next_billing = next_billing
|
1991
|
+
@reference = reference
|
1992
|
+
end
|
1993
|
+
end
|
1994
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
1995
|
+
attr_accessor :currency
|
1996
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
1997
|
+
attr_accessor :on_demand
|
1998
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
1999
|
+
attr_accessor :preferred_locale
|
2000
|
+
# Subscription details if setting up or charging a subscription
|
2001
|
+
attr_accessor :subscriptions
|
2002
|
+
|
2003
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
2004
|
+
@currency = currency
|
2005
|
+
@on_demand = on_demand
|
2006
|
+
@preferred_locale = preferred_locale
|
2007
|
+
@subscriptions = subscriptions
|
2008
|
+
end
|
1938
2009
|
end
|
1939
2010
|
|
1940
2011
|
class Link < Stripe::RequestParams
|
@@ -2047,6 +2118,8 @@ module Stripe
|
|
2047
2118
|
attr_accessor :card
|
2048
2119
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
2049
2120
|
attr_accessor :card_present
|
2121
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
2122
|
+
attr_accessor :klarna
|
2050
2123
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
2051
2124
|
attr_accessor :link
|
2052
2125
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
@@ -2062,6 +2135,7 @@ module Stripe
|
|
2062
2135
|
bacs_debit: nil,
|
2063
2136
|
card: nil,
|
2064
2137
|
card_present: nil,
|
2138
|
+
klarna: nil,
|
2065
2139
|
link: nil,
|
2066
2140
|
paypal: nil,
|
2067
2141
|
sepa_debit: nil,
|
@@ -2072,6 +2146,7 @@ module Stripe
|
|
2072
2146
|
@bacs_debit = bacs_debit
|
2073
2147
|
@card = card
|
2074
2148
|
@card_present = card_present
|
2149
|
+
@klarna = klarna
|
2075
2150
|
@link = link
|
2076
2151
|
@paypal = paypal
|
2077
2152
|
@sepa_debit = sepa_debit
|
@@ -2105,7 +2180,7 @@ module Stripe
|
|
2105
2180
|
attr_accessor :payment_method_data
|
2106
2181
|
# Payment method-specific configuration for this SetupIntent.
|
2107
2182
|
attr_accessor :payment_method_options
|
2108
|
-
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
2183
|
+
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
2109
2184
|
attr_accessor :payment_method_types
|
2110
2185
|
|
2111
2186
|
def initialize(
|
@@ -2150,8 +2225,7 @@ module Stripe
|
|
2150
2225
|
class ConfirmParams < Stripe::RequestParams
|
2151
2226
|
class MandateData < Stripe::RequestParams
|
2152
2227
|
class CustomerAcceptance < Stripe::RequestParams
|
2153
|
-
class Offline < Stripe::RequestParams
|
2154
|
-
end
|
2228
|
+
class Offline < Stripe::RequestParams; end
|
2155
2229
|
|
2156
2230
|
class Online < Stripe::RequestParams
|
2157
2231
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -2204,20 +2278,11 @@ module Stripe
|
|
2204
2278
|
end
|
2205
2279
|
end
|
2206
2280
|
|
2207
|
-
class Affirm < Stripe::RequestParams
|
2208
|
-
end
|
2209
|
-
|
2210
|
-
class
|
2211
|
-
end
|
2212
|
-
|
2213
|
-
class Alipay < Stripe::RequestParams
|
2214
|
-
end
|
2215
|
-
|
2216
|
-
class Alma < Stripe::RequestParams
|
2217
|
-
end
|
2218
|
-
|
2219
|
-
class AmazonPay < Stripe::RequestParams
|
2220
|
-
end
|
2281
|
+
class Affirm < Stripe::RequestParams; end
|
2282
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
2283
|
+
class Alipay < Stripe::RequestParams; end
|
2284
|
+
class Alma < Stripe::RequestParams; end
|
2285
|
+
class AmazonPay < Stripe::RequestParams; end
|
2221
2286
|
|
2222
2287
|
class AuBecsDebit < Stripe::RequestParams
|
2223
2288
|
# The account number for the bank account.
|
@@ -2243,11 +2308,8 @@ module Stripe
|
|
2243
2308
|
end
|
2244
2309
|
end
|
2245
2310
|
|
2246
|
-
class Bancontact < Stripe::RequestParams
|
2247
|
-
end
|
2248
|
-
|
2249
|
-
class Billie < Stripe::RequestParams
|
2250
|
-
end
|
2311
|
+
class Bancontact < Stripe::RequestParams; end
|
2312
|
+
class Billie < Stripe::RequestParams; end
|
2251
2313
|
|
2252
2314
|
class BillingDetails < Stripe::RequestParams
|
2253
2315
|
class Address < Stripe::RequestParams
|
@@ -2288,17 +2350,19 @@ module Stripe
|
|
2288
2350
|
attr_accessor :name
|
2289
2351
|
# Billing phone number (including extension).
|
2290
2352
|
attr_accessor :phone
|
2353
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
2354
|
+
attr_accessor :tax_id
|
2291
2355
|
|
2292
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
2356
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
2293
2357
|
@address = address
|
2294
2358
|
@email = email
|
2295
2359
|
@name = name
|
2296
2360
|
@phone = phone
|
2361
|
+
@tax_id = tax_id
|
2297
2362
|
end
|
2298
2363
|
end
|
2299
2364
|
|
2300
|
-
class Blik < Stripe::RequestParams
|
2301
|
-
end
|
2365
|
+
class Blik < Stripe::RequestParams; end
|
2302
2366
|
|
2303
2367
|
class Boleto < Stripe::RequestParams
|
2304
2368
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -2309,11 +2373,9 @@ module Stripe
|
|
2309
2373
|
end
|
2310
2374
|
end
|
2311
2375
|
|
2312
|
-
class Cashapp < Stripe::RequestParams
|
2313
|
-
end
|
2314
|
-
|
2315
|
-
class CustomerBalance < Stripe::RequestParams
|
2316
|
-
end
|
2376
|
+
class Cashapp < Stripe::RequestParams; end
|
2377
|
+
class Crypto < Stripe::RequestParams; end
|
2378
|
+
class CustomerBalance < Stripe::RequestParams; end
|
2317
2379
|
|
2318
2380
|
class Eps < Stripe::RequestParams
|
2319
2381
|
# The customer's bank.
|
@@ -2336,11 +2398,8 @@ module Stripe
|
|
2336
2398
|
end
|
2337
2399
|
end
|
2338
2400
|
|
2339
|
-
class Giropay < Stripe::RequestParams
|
2340
|
-
end
|
2341
|
-
|
2342
|
-
class Grabpay < Stripe::RequestParams
|
2343
|
-
end
|
2401
|
+
class Giropay < Stripe::RequestParams; end
|
2402
|
+
class Grabpay < Stripe::RequestParams; end
|
2344
2403
|
|
2345
2404
|
class Ideal < Stripe::RequestParams
|
2346
2405
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -2351,11 +2410,8 @@ module Stripe
|
|
2351
2410
|
end
|
2352
2411
|
end
|
2353
2412
|
|
2354
|
-
class InteracPresent < Stripe::RequestParams
|
2355
|
-
end
|
2356
|
-
|
2357
|
-
class KakaoPay < Stripe::RequestParams
|
2358
|
-
end
|
2413
|
+
class InteracPresent < Stripe::RequestParams; end
|
2414
|
+
class KakaoPay < Stripe::RequestParams; end
|
2359
2415
|
|
2360
2416
|
class Klarna < Stripe::RequestParams
|
2361
2417
|
class Dob < Stripe::RequestParams
|
@@ -2380,20 +2436,11 @@ module Stripe
|
|
2380
2436
|
end
|
2381
2437
|
end
|
2382
2438
|
|
2383
|
-
class Konbini < Stripe::RequestParams
|
2384
|
-
end
|
2385
|
-
|
2386
|
-
class
|
2387
|
-
end
|
2388
|
-
|
2389
|
-
class Link < Stripe::RequestParams
|
2390
|
-
end
|
2391
|
-
|
2392
|
-
class Mobilepay < Stripe::RequestParams
|
2393
|
-
end
|
2394
|
-
|
2395
|
-
class Multibanco < Stripe::RequestParams
|
2396
|
-
end
|
2439
|
+
class Konbini < Stripe::RequestParams; end
|
2440
|
+
class KrCard < Stripe::RequestParams; end
|
2441
|
+
class Link < Stripe::RequestParams; end
|
2442
|
+
class Mobilepay < Stripe::RequestParams; end
|
2443
|
+
class Multibanco < Stripe::RequestParams; end
|
2397
2444
|
|
2398
2445
|
class NaverPay < Stripe::RequestParams
|
2399
2446
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -2435,8 +2482,7 @@ module Stripe
|
|
2435
2482
|
end
|
2436
2483
|
end
|
2437
2484
|
|
2438
|
-
class Oxxo < Stripe::RequestParams
|
2439
|
-
end
|
2485
|
+
class Oxxo < Stripe::RequestParams; end
|
2440
2486
|
|
2441
2487
|
class P24 < Stripe::RequestParams
|
2442
2488
|
# The customer's bank.
|
@@ -2447,23 +2493,12 @@ module Stripe
|
|
2447
2493
|
end
|
2448
2494
|
end
|
2449
2495
|
|
2450
|
-
class PayByBank < Stripe::RequestParams
|
2451
|
-
end
|
2452
|
-
|
2453
|
-
class
|
2454
|
-
end
|
2455
|
-
|
2456
|
-
class Paynow < Stripe::RequestParams
|
2457
|
-
end
|
2458
|
-
|
2459
|
-
class Paypal < Stripe::RequestParams
|
2460
|
-
end
|
2461
|
-
|
2462
|
-
class Pix < Stripe::RequestParams
|
2463
|
-
end
|
2464
|
-
|
2465
|
-
class Promptpay < Stripe::RequestParams
|
2466
|
-
end
|
2496
|
+
class PayByBank < Stripe::RequestParams; end
|
2497
|
+
class Payco < Stripe::RequestParams; end
|
2498
|
+
class Paynow < Stripe::RequestParams; end
|
2499
|
+
class Paypal < Stripe::RequestParams; end
|
2500
|
+
class Pix < Stripe::RequestParams; end
|
2501
|
+
class Promptpay < Stripe::RequestParams; end
|
2467
2502
|
|
2468
2503
|
class RadarOptions < Stripe::RequestParams
|
2469
2504
|
# 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.
|
@@ -2474,14 +2509,9 @@ module Stripe
|
|
2474
2509
|
end
|
2475
2510
|
end
|
2476
2511
|
|
2477
|
-
class RevolutPay < Stripe::RequestParams
|
2478
|
-
end
|
2479
|
-
|
2480
|
-
class SamsungPay < Stripe::RequestParams
|
2481
|
-
end
|
2482
|
-
|
2483
|
-
class Satispay < Stripe::RequestParams
|
2484
|
-
end
|
2512
|
+
class RevolutPay < Stripe::RequestParams; end
|
2513
|
+
class SamsungPay < Stripe::RequestParams; end
|
2514
|
+
class Satispay < Stripe::RequestParams; end
|
2485
2515
|
|
2486
2516
|
class SepaDebit < Stripe::RequestParams
|
2487
2517
|
# IBAN of the bank account.
|
@@ -2501,11 +2531,8 @@ module Stripe
|
|
2501
2531
|
end
|
2502
2532
|
end
|
2503
2533
|
|
2504
|
-
class Swish < Stripe::RequestParams
|
2505
|
-
end
|
2506
|
-
|
2507
|
-
class Twint < Stripe::RequestParams
|
2508
|
-
end
|
2534
|
+
class Swish < Stripe::RequestParams; end
|
2535
|
+
class Twint < Stripe::RequestParams; end
|
2509
2536
|
|
2510
2537
|
class UsBankAccount < Stripe::RequestParams
|
2511
2538
|
# Account holder type: individual or company.
|
@@ -2534,11 +2561,8 @@ module Stripe
|
|
2534
2561
|
end
|
2535
2562
|
end
|
2536
2563
|
|
2537
|
-
class WechatPay < Stripe::RequestParams
|
2538
|
-
end
|
2539
|
-
|
2540
|
-
class Zip < Stripe::RequestParams
|
2541
|
-
end
|
2564
|
+
class WechatPay < Stripe::RequestParams; end
|
2565
|
+
class Zip < Stripe::RequestParams; end
|
2542
2566
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
2543
2567
|
attr_accessor :acss_debit
|
2544
2568
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -2559,7 +2583,7 @@ module Stripe
|
|
2559
2583
|
attr_accessor :bacs_debit
|
2560
2584
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
2561
2585
|
attr_accessor :bancontact
|
2562
|
-
# If this is a `billie` PaymentMethod, this hash contains details about the
|
2586
|
+
# If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
|
2563
2587
|
attr_accessor :billie
|
2564
2588
|
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
2565
2589
|
attr_accessor :billing_details
|
@@ -2569,6 +2593,8 @@ module Stripe
|
|
2569
2593
|
attr_accessor :boleto
|
2570
2594
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
2571
2595
|
attr_accessor :cashapp
|
2596
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
2597
|
+
attr_accessor :crypto
|
2572
2598
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
2573
2599
|
attr_accessor :customer_balance
|
2574
2600
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -2621,11 +2647,11 @@ module Stripe
|
|
2621
2647
|
attr_accessor :promptpay
|
2622
2648
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2623
2649
|
attr_accessor :radar_options
|
2624
|
-
# If this is a `
|
2650
|
+
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2625
2651
|
attr_accessor :revolut_pay
|
2626
2652
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
2627
2653
|
attr_accessor :samsung_pay
|
2628
|
-
# If this is a `satispay` PaymentMethod, this hash contains details about the
|
2654
|
+
# If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
|
2629
2655
|
attr_accessor :satispay
|
2630
2656
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2631
2657
|
attr_accessor :sepa_debit
|
@@ -2660,6 +2686,7 @@ module Stripe
|
|
2660
2686
|
blik: nil,
|
2661
2687
|
boleto: nil,
|
2662
2688
|
cashapp: nil,
|
2689
|
+
crypto: nil,
|
2663
2690
|
customer_balance: nil,
|
2664
2691
|
eps: nil,
|
2665
2692
|
fpx: nil,
|
@@ -2713,6 +2740,7 @@ module Stripe
|
|
2713
2740
|
@blik = blik
|
2714
2741
|
@boleto = boleto
|
2715
2742
|
@cashapp = cashapp
|
2743
|
+
@crypto = crypto
|
2716
2744
|
@customer_balance = customer_balance
|
2717
2745
|
@eps = eps
|
2718
2746
|
@fpx = fpx
|
@@ -2797,8 +2825,7 @@ module Stripe
|
|
2797
2825
|
end
|
2798
2826
|
end
|
2799
2827
|
|
2800
|
-
class AmazonPay < Stripe::RequestParams
|
2801
|
-
end
|
2828
|
+
class AmazonPay < Stripe::RequestParams; end
|
2802
2829
|
|
2803
2830
|
class BacsDebit < Stripe::RequestParams
|
2804
2831
|
class MandateOptions < Stripe::RequestParams
|
@@ -2964,7 +2991,88 @@ module Stripe
|
|
2964
2991
|
end
|
2965
2992
|
end
|
2966
2993
|
|
2967
|
-
class CardPresent < Stripe::RequestParams
|
2994
|
+
class CardPresent < Stripe::RequestParams; end
|
2995
|
+
|
2996
|
+
class Klarna < Stripe::RequestParams
|
2997
|
+
class OnDemand < Stripe::RequestParams
|
2998
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
2999
|
+
attr_accessor :average_amount
|
3000
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3001
|
+
attr_accessor :maximum_amount
|
3002
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3003
|
+
attr_accessor :minimum_amount
|
3004
|
+
# Interval at which the customer is making purchases
|
3005
|
+
attr_accessor :purchase_interval
|
3006
|
+
# The number of `purchase_interval` between charges
|
3007
|
+
attr_accessor :purchase_interval_count
|
3008
|
+
|
3009
|
+
def initialize(
|
3010
|
+
average_amount: nil,
|
3011
|
+
maximum_amount: nil,
|
3012
|
+
minimum_amount: nil,
|
3013
|
+
purchase_interval: nil,
|
3014
|
+
purchase_interval_count: nil
|
3015
|
+
)
|
3016
|
+
@average_amount = average_amount
|
3017
|
+
@maximum_amount = maximum_amount
|
3018
|
+
@minimum_amount = minimum_amount
|
3019
|
+
@purchase_interval = purchase_interval
|
3020
|
+
@purchase_interval_count = purchase_interval_count
|
3021
|
+
end
|
3022
|
+
end
|
3023
|
+
|
3024
|
+
class Subscription < Stripe::RequestParams
|
3025
|
+
class NextBilling < Stripe::RequestParams
|
3026
|
+
# The amount of the next charge for the subscription.
|
3027
|
+
attr_accessor :amount
|
3028
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
3029
|
+
attr_accessor :date
|
3030
|
+
|
3031
|
+
def initialize(amount: nil, date: nil)
|
3032
|
+
@amount = amount
|
3033
|
+
@date = date
|
3034
|
+
end
|
3035
|
+
end
|
3036
|
+
# Unit of time between subscription charges.
|
3037
|
+
attr_accessor :interval
|
3038
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
3039
|
+
attr_accessor :interval_count
|
3040
|
+
# Name for subscription.
|
3041
|
+
attr_accessor :name
|
3042
|
+
# Describes the upcoming charge for this subscription.
|
3043
|
+
attr_accessor :next_billing
|
3044
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
3045
|
+
attr_accessor :reference
|
3046
|
+
|
3047
|
+
def initialize(
|
3048
|
+
interval: nil,
|
3049
|
+
interval_count: nil,
|
3050
|
+
name: nil,
|
3051
|
+
next_billing: nil,
|
3052
|
+
reference: nil
|
3053
|
+
)
|
3054
|
+
@interval = interval
|
3055
|
+
@interval_count = interval_count
|
3056
|
+
@name = name
|
3057
|
+
@next_billing = next_billing
|
3058
|
+
@reference = reference
|
3059
|
+
end
|
3060
|
+
end
|
3061
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
3062
|
+
attr_accessor :currency
|
3063
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
3064
|
+
attr_accessor :on_demand
|
3065
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
3066
|
+
attr_accessor :preferred_locale
|
3067
|
+
# Subscription details if setting up or charging a subscription
|
3068
|
+
attr_accessor :subscriptions
|
3069
|
+
|
3070
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
3071
|
+
@currency = currency
|
3072
|
+
@on_demand = on_demand
|
3073
|
+
@preferred_locale = preferred_locale
|
3074
|
+
@subscriptions = subscriptions
|
3075
|
+
end
|
2968
3076
|
end
|
2969
3077
|
|
2970
3078
|
class Link < Stripe::RequestParams
|
@@ -3077,6 +3185,8 @@ module Stripe
|
|
3077
3185
|
attr_accessor :card
|
3078
3186
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
3079
3187
|
attr_accessor :card_present
|
3188
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
3189
|
+
attr_accessor :klarna
|
3080
3190
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
3081
3191
|
attr_accessor :link
|
3082
3192
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
@@ -3092,6 +3202,7 @@ module Stripe
|
|
3092
3202
|
bacs_debit: nil,
|
3093
3203
|
card: nil,
|
3094
3204
|
card_present: nil,
|
3205
|
+
klarna: nil,
|
3095
3206
|
link: nil,
|
3096
3207
|
paypal: nil,
|
3097
3208
|
sepa_debit: nil,
|
@@ -3102,6 +3213,7 @@ module Stripe
|
|
3102
3213
|
@bacs_debit = bacs_debit
|
3103
3214
|
@card = card
|
3104
3215
|
@card_present = card_present
|
3216
|
+
@klarna = klarna
|
3105
3217
|
@link = link
|
3106
3218
|
@paypal = paypal
|
3107
3219
|
@sepa_debit = sepa_debit
|
@@ -3168,7 +3280,7 @@ module Stripe
|
|
3168
3280
|
|
3169
3281
|
# You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
|
3170
3282
|
#
|
3171
|
-
# After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
3283
|
+
# After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
3172
3284
|
def cancel(intent, params = {}, opts = {})
|
3173
3285
|
request(
|
3174
3286
|
method: :post,
|
@@ -3205,7 +3317,7 @@ module Stripe
|
|
3205
3317
|
|
3206
3318
|
# Creates a SetupIntent object.
|
3207
3319
|
#
|
3208
|
-
# After you create the SetupIntent, attach a payment method and [confirm](https://stripe.com/docs/api/setup_intents/confirm)
|
3320
|
+
# After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm)
|
3209
3321
|
# it to collect any required permissions to charge the payment method later.
|
3210
3322
|
def create(params = {}, opts = {})
|
3211
3323
|
request(
|
@@ -3232,7 +3344,7 @@ module Stripe
|
|
3232
3344
|
#
|
3233
3345
|
# Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.
|
3234
3346
|
#
|
3235
|
-
# When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://stripe.com/
|
3347
|
+
# When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://docs.stripe.com/api#setup_intent_object) object reference for more details.
|
3236
3348
|
def retrieve(intent, params = {}, opts = {})
|
3237
3349
|
request(
|
3238
3350
|
method: :get,
|