stripe 15.2.0.pre.beta.1 → 15.3.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +92 -0
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +9 -0
- data/lib/stripe/events/v2_core_account_link_completed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +1 -1
- data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
- data/lib/stripe/object_types.rb +1 -3
- data/lib/stripe/resources/account.rb +47 -20
- data/lib/stripe/resources/account_session.rb +85 -24
- 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 +1 -1
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +85 -9
- data/lib/stripe/resources/checkout/session.rb +22 -6
- data/lib/stripe/resources/confirmation_token.rb +37 -97
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +1 -2
- data/lib/stripe/resources/credit_note.rb +10 -11
- data/lib/stripe/resources/customer.rb +2 -4
- data/lib/stripe/resources/customer_session.rb +3 -3
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +2 -0
- data/lib/stripe/resources/financial_connections/institution.rb +2 -0
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -11
- data/lib/stripe/resources/invoice.rb +70 -43
- data/lib/stripe/resources/invoice_item.rb +2 -3
- 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/order.rb +2 -55
- data/lib/stripe/resources/payment_attempt_record.rb +8 -0
- data/lib/stripe/resources/payment_intent.rb +439 -411
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -0
- data/lib/stripe/resources/payment_method.rb +50 -113
- data/lib/stripe/resources/payment_method_configuration.rb +297 -2
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payment_record.rb +8 -0
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/privacy/redaction_job.rb +52 -29
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +12 -4
- data/lib/stripe/resources/product.rb +1 -61
- data/lib/stripe/resources/quote.rb +1 -1
- data/lib/stripe/resources/quote_preview_invoice.rb +2 -2
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +26 -1
- 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 +6 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +123 -311
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +132 -37
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +120 -5
- data/lib/stripe/resources/tax/association.rb +8 -31
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +1 -2
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +26 -4
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +5 -5
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -20
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -24
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +8 -3
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +38 -13
- data/lib/stripe/services/account_session_service.rb +49 -24
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/balance_settings_service.rb +2 -2
- data/lib/stripe/services/charge_service.rb +76 -8
- data/lib/stripe/services/checkout/session_service.rb +14 -6
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +7 -8
- 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_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/external_account_service.rb +2 -3
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +65 -35
- 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/order_service.rb +1 -33
- data/lib/stripe/services/payment_intent_service.rb +385 -386
- data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +47 -110
- 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/privacy/redaction_job_service.rb +22 -13
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +1 -1
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -41
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -1
- 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/setup_intent_service.rb +122 -310
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +94 -4
- data/lib/stripe/services/subscription_service.rb +103 -33
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +1 -2
- 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 +17 -3
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +37 -97
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -2
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -4
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +3 -7
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -4
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +1 -1
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +2 -4
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -4
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +2 -4
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +3 -7
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +1 -2
- data/lib/stripe/services/v2/money_management/transaction_service.rb +1 -2
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +2 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/services.rb +2 -3
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3903 -4131
- metadata +13 -8
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/gift_cards/card.rb +0 -208
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
@@ -63,7 +63,21 @@ module Stripe
|
|
63
63
|
end
|
64
64
|
|
65
65
|
class CreateParams < Stripe::RequestParams
|
66
|
-
class
|
66
|
+
class AutomaticPaymentMethods < Stripe::RequestParams
|
67
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
68
|
+
#
|
69
|
+
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
70
|
+
attr_accessor :allow_redirects
|
71
|
+
# Whether this feature is enabled.
|
72
|
+
attr_accessor :enabled
|
73
|
+
|
74
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
75
|
+
@allow_redirects = allow_redirects
|
76
|
+
@enabled = enabled
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class Hooks < Stripe::RequestParams
|
67
81
|
class Inputs < Stripe::RequestParams
|
68
82
|
class Tax < Stripe::RequestParams
|
69
83
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -88,24 +102,9 @@ module Stripe
|
|
88
102
|
end
|
89
103
|
end
|
90
104
|
|
91
|
-
class AutomaticPaymentMethods < Stripe::RequestParams
|
92
|
-
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
93
|
-
#
|
94
|
-
# Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
|
95
|
-
attr_accessor :allow_redirects
|
96
|
-
# Whether this feature is enabled.
|
97
|
-
attr_accessor :enabled
|
98
|
-
|
99
|
-
def initialize(allow_redirects: nil, enabled: nil)
|
100
|
-
@allow_redirects = allow_redirects
|
101
|
-
@enabled = enabled
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
105
|
class MandateData < Stripe::RequestParams
|
106
106
|
class CustomerAcceptance < Stripe::RequestParams
|
107
|
-
class Offline < Stripe::RequestParams
|
108
|
-
end
|
107
|
+
class Offline < Stripe::RequestParams; end
|
109
108
|
|
110
109
|
class Online < Stripe::RequestParams
|
111
110
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -179,11 +178,29 @@ module Stripe
|
|
179
178
|
end
|
180
179
|
end
|
181
180
|
|
181
|
+
class Distance < Stripe::RequestParams
|
182
|
+
# Distance traveled.
|
183
|
+
attr_accessor :amount
|
184
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
185
|
+
attr_accessor :unit
|
186
|
+
|
187
|
+
def initialize(amount: nil, unit: nil)
|
188
|
+
@amount = amount
|
189
|
+
@unit = unit
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
182
193
|
class Driver < Stripe::RequestParams
|
194
|
+
# Driver's identification number.
|
195
|
+
attr_accessor :driver_identification_number
|
196
|
+
# Driver's tax number.
|
197
|
+
attr_accessor :driver_tax_number
|
183
198
|
# Full name of the person or entity on the car reservation.
|
184
199
|
attr_accessor :name
|
185
200
|
|
186
|
-
def initialize(name: nil)
|
201
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
202
|
+
@driver_identification_number = driver_identification_number
|
203
|
+
@driver_tax_number = driver_tax_number
|
187
204
|
@name = name
|
188
205
|
end
|
189
206
|
end
|
@@ -267,6 +284,8 @@ module Stripe
|
|
267
284
|
attr_accessor :days_rented
|
268
285
|
# Delivery details for this purchase.
|
269
286
|
attr_accessor :delivery
|
287
|
+
# The details of the distance traveled during the rental period.
|
288
|
+
attr_accessor :distance
|
270
289
|
# The details of the passengers in the travel reservation
|
271
290
|
attr_accessor :drivers
|
272
291
|
# List of additional charges being billed.
|
@@ -277,6 +296,8 @@ module Stripe
|
|
277
296
|
attr_accessor :pickup_address
|
278
297
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
279
298
|
attr_accessor :pickup_at
|
299
|
+
# Name of the pickup location.
|
300
|
+
attr_accessor :pickup_location_name
|
280
301
|
# Rental rate.
|
281
302
|
attr_accessor :rate_amount
|
282
303
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -287,8 +308,12 @@ module Stripe
|
|
287
308
|
attr_accessor :return_address
|
288
309
|
# Car return time. Measured in seconds since the Unix epoch.
|
289
310
|
attr_accessor :return_at
|
311
|
+
# Name of the return location.
|
312
|
+
attr_accessor :return_location_name
|
290
313
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
291
314
|
attr_accessor :tax_exempt
|
315
|
+
# The vehicle identification number.
|
316
|
+
attr_accessor :vehicle_identification_number
|
292
317
|
|
293
318
|
def initialize(
|
294
319
|
affiliate: nil,
|
@@ -300,17 +325,21 @@ module Stripe
|
|
300
325
|
customer_service_phone_number: nil,
|
301
326
|
days_rented: nil,
|
302
327
|
delivery: nil,
|
328
|
+
distance: nil,
|
303
329
|
drivers: nil,
|
304
330
|
extra_charges: nil,
|
305
331
|
no_show: nil,
|
306
332
|
pickup_address: nil,
|
307
333
|
pickup_at: nil,
|
334
|
+
pickup_location_name: nil,
|
308
335
|
rate_amount: nil,
|
309
336
|
rate_interval: nil,
|
310
337
|
renter_name: nil,
|
311
338
|
return_address: nil,
|
312
339
|
return_at: nil,
|
313
|
-
|
340
|
+
return_location_name: nil,
|
341
|
+
tax_exempt: nil,
|
342
|
+
vehicle_identification_number: nil
|
314
343
|
)
|
315
344
|
@affiliate = affiliate
|
316
345
|
@booking_number = booking_number
|
@@ -321,17 +350,21 @@ module Stripe
|
|
321
350
|
@customer_service_phone_number = customer_service_phone_number
|
322
351
|
@days_rented = days_rented
|
323
352
|
@delivery = delivery
|
353
|
+
@distance = distance
|
324
354
|
@drivers = drivers
|
325
355
|
@extra_charges = extra_charges
|
326
356
|
@no_show = no_show
|
327
357
|
@pickup_address = pickup_address
|
328
358
|
@pickup_at = pickup_at
|
359
|
+
@pickup_location_name = pickup_location_name
|
329
360
|
@rate_amount = rate_amount
|
330
361
|
@rate_interval = rate_interval
|
331
362
|
@renter_name = renter_name
|
332
363
|
@return_address = return_address
|
333
364
|
@return_at = return_at
|
365
|
+
@return_location_name = return_location_name
|
334
366
|
@tax_exempt = tax_exempt
|
367
|
+
@vehicle_identification_number = vehicle_identification_number
|
335
368
|
end
|
336
369
|
end
|
337
370
|
|
@@ -829,20 +862,11 @@ module Stripe
|
|
829
862
|
end
|
830
863
|
end
|
831
864
|
|
832
|
-
class Affirm < Stripe::RequestParams
|
833
|
-
end
|
834
|
-
|
835
|
-
class
|
836
|
-
end
|
837
|
-
|
838
|
-
class Alipay < Stripe::RequestParams
|
839
|
-
end
|
840
|
-
|
841
|
-
class Alma < Stripe::RequestParams
|
842
|
-
end
|
843
|
-
|
844
|
-
class AmazonPay < Stripe::RequestParams
|
845
|
-
end
|
865
|
+
class Affirm < Stripe::RequestParams; end
|
866
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
867
|
+
class Alipay < Stripe::RequestParams; end
|
868
|
+
class Alma < Stripe::RequestParams; end
|
869
|
+
class AmazonPay < Stripe::RequestParams; end
|
846
870
|
|
847
871
|
class AuBecsDebit < Stripe::RequestParams
|
848
872
|
# The account number for the bank account.
|
@@ -868,11 +892,8 @@ module Stripe
|
|
868
892
|
end
|
869
893
|
end
|
870
894
|
|
871
|
-
class Bancontact < Stripe::RequestParams
|
872
|
-
end
|
873
|
-
|
874
|
-
class Billie < Stripe::RequestParams
|
875
|
-
end
|
895
|
+
class Bancontact < Stripe::RequestParams; end
|
896
|
+
class Billie < Stripe::RequestParams; end
|
876
897
|
|
877
898
|
class BillingDetails < Stripe::RequestParams
|
878
899
|
class Address < Stripe::RequestParams
|
@@ -925,8 +946,7 @@ module Stripe
|
|
925
946
|
end
|
926
947
|
end
|
927
948
|
|
928
|
-
class Blik < Stripe::RequestParams
|
929
|
-
end
|
949
|
+
class Blik < Stripe::RequestParams; end
|
930
950
|
|
931
951
|
class Boleto < Stripe::RequestParams
|
932
952
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -937,11 +957,8 @@ module Stripe
|
|
937
957
|
end
|
938
958
|
end
|
939
959
|
|
940
|
-
class Cashapp < Stripe::RequestParams
|
941
|
-
end
|
942
|
-
|
943
|
-
class CustomerBalance < Stripe::RequestParams
|
944
|
-
end
|
960
|
+
class Cashapp < Stripe::RequestParams; end
|
961
|
+
class CustomerBalance < Stripe::RequestParams; end
|
945
962
|
|
946
963
|
class Eps < Stripe::RequestParams
|
947
964
|
# The customer's bank.
|
@@ -964,14 +981,9 @@ module Stripe
|
|
964
981
|
end
|
965
982
|
end
|
966
983
|
|
967
|
-
class Giropay < Stripe::RequestParams
|
968
|
-
end
|
969
|
-
|
970
|
-
class Gopay < Stripe::RequestParams
|
971
|
-
end
|
972
|
-
|
973
|
-
class Grabpay < Stripe::RequestParams
|
974
|
-
end
|
984
|
+
class Giropay < Stripe::RequestParams; end
|
985
|
+
class Gopay < Stripe::RequestParams; end
|
986
|
+
class Grabpay < Stripe::RequestParams; end
|
975
987
|
|
976
988
|
class IdBankTransfer < Stripe::RequestParams
|
977
989
|
# Bank where the account is held.
|
@@ -991,11 +1003,8 @@ module Stripe
|
|
991
1003
|
end
|
992
1004
|
end
|
993
1005
|
|
994
|
-
class InteracPresent < Stripe::RequestParams
|
995
|
-
end
|
996
|
-
|
997
|
-
class KakaoPay < Stripe::RequestParams
|
998
|
-
end
|
1006
|
+
class InteracPresent < Stripe::RequestParams; end
|
1007
|
+
class KakaoPay < Stripe::RequestParams; end
|
999
1008
|
|
1000
1009
|
class Klarna < Stripe::RequestParams
|
1001
1010
|
class Dob < Stripe::RequestParams
|
@@ -1020,23 +1029,12 @@ module Stripe
|
|
1020
1029
|
end
|
1021
1030
|
end
|
1022
1031
|
|
1023
|
-
class Konbini < Stripe::RequestParams
|
1024
|
-
end
|
1025
|
-
|
1026
|
-
class
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
class Link < Stripe::RequestParams
|
1030
|
-
end
|
1031
|
-
|
1032
|
-
class MbWay < Stripe::RequestParams
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
class Mobilepay < Stripe::RequestParams
|
1036
|
-
end
|
1037
|
-
|
1038
|
-
class Multibanco < Stripe::RequestParams
|
1039
|
-
end
|
1032
|
+
class Konbini < Stripe::RequestParams; end
|
1033
|
+
class KrCard < Stripe::RequestParams; end
|
1034
|
+
class Link < Stripe::RequestParams; end
|
1035
|
+
class MbWay < Stripe::RequestParams; end
|
1036
|
+
class Mobilepay < Stripe::RequestParams; end
|
1037
|
+
class Multibanco < Stripe::RequestParams; end
|
1040
1038
|
|
1041
1039
|
class NaverPay < Stripe::RequestParams
|
1042
1040
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -1078,8 +1076,7 @@ module Stripe
|
|
1078
1076
|
end
|
1079
1077
|
end
|
1080
1078
|
|
1081
|
-
class Oxxo < Stripe::RequestParams
|
1082
|
-
end
|
1079
|
+
class Oxxo < Stripe::RequestParams; end
|
1083
1080
|
|
1084
1081
|
class P24 < Stripe::RequestParams
|
1085
1082
|
# The customer's bank.
|
@@ -1090,17 +1087,10 @@ module Stripe
|
|
1090
1087
|
end
|
1091
1088
|
end
|
1092
1089
|
|
1093
|
-
class PayByBank < Stripe::RequestParams
|
1094
|
-
end
|
1095
|
-
|
1096
|
-
class
|
1097
|
-
end
|
1098
|
-
|
1099
|
-
class Paynow < Stripe::RequestParams
|
1100
|
-
end
|
1101
|
-
|
1102
|
-
class Paypal < Stripe::RequestParams
|
1103
|
-
end
|
1090
|
+
class PayByBank < Stripe::RequestParams; end
|
1091
|
+
class Payco < Stripe::RequestParams; end
|
1092
|
+
class Paynow < Stripe::RequestParams; end
|
1093
|
+
class Paypal < Stripe::RequestParams; end
|
1104
1094
|
|
1105
1095
|
class Payto < Stripe::RequestParams
|
1106
1096
|
# The account number for the bank account.
|
@@ -1117,14 +1107,9 @@ module Stripe
|
|
1117
1107
|
end
|
1118
1108
|
end
|
1119
1109
|
|
1120
|
-
class Pix < Stripe::RequestParams
|
1121
|
-
end
|
1122
|
-
|
1123
|
-
class Promptpay < Stripe::RequestParams
|
1124
|
-
end
|
1125
|
-
|
1126
|
-
class Qris < Stripe::RequestParams
|
1127
|
-
end
|
1110
|
+
class Pix < Stripe::RequestParams; end
|
1111
|
+
class Promptpay < Stripe::RequestParams; end
|
1112
|
+
class Qris < Stripe::RequestParams; end
|
1128
1113
|
|
1129
1114
|
class RadarOptions < Stripe::RequestParams
|
1130
1115
|
# 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.
|
@@ -1158,14 +1143,9 @@ module Stripe
|
|
1158
1143
|
end
|
1159
1144
|
end
|
1160
1145
|
|
1161
|
-
class RevolutPay < Stripe::RequestParams
|
1162
|
-
end
|
1163
|
-
|
1164
|
-
class SamsungPay < Stripe::RequestParams
|
1165
|
-
end
|
1166
|
-
|
1167
|
-
class Satispay < Stripe::RequestParams
|
1168
|
-
end
|
1146
|
+
class RevolutPay < Stripe::RequestParams; end
|
1147
|
+
class SamsungPay < Stripe::RequestParams; end
|
1148
|
+
class Satispay < Stripe::RequestParams; end
|
1169
1149
|
|
1170
1150
|
class SepaDebit < Stripe::RequestParams
|
1171
1151
|
# IBAN of the bank account.
|
@@ -1176,8 +1156,7 @@ module Stripe
|
|
1176
1156
|
end
|
1177
1157
|
end
|
1178
1158
|
|
1179
|
-
class Shopeepay < Stripe::RequestParams
|
1180
|
-
end
|
1159
|
+
class Shopeepay < Stripe::RequestParams; end
|
1181
1160
|
|
1182
1161
|
class Sofort < Stripe::RequestParams
|
1183
1162
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -1200,11 +1179,8 @@ module Stripe
|
|
1200
1179
|
end
|
1201
1180
|
end
|
1202
1181
|
|
1203
|
-
class Swish < Stripe::RequestParams
|
1204
|
-
end
|
1205
|
-
|
1206
|
-
class Twint < Stripe::RequestParams
|
1207
|
-
end
|
1182
|
+
class Swish < Stripe::RequestParams; end
|
1183
|
+
class Twint < Stripe::RequestParams; end
|
1208
1184
|
|
1209
1185
|
class UsBankAccount < Stripe::RequestParams
|
1210
1186
|
# Account holder type: individual or company.
|
@@ -1233,11 +1209,8 @@ module Stripe
|
|
1233
1209
|
end
|
1234
1210
|
end
|
1235
1211
|
|
1236
|
-
class WechatPay < Stripe::RequestParams
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
class Zip < Stripe::RequestParams
|
1240
|
-
end
|
1212
|
+
class WechatPay < Stripe::RequestParams; end
|
1213
|
+
class Zip < Stripe::RequestParams; end
|
1241
1214
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1242
1215
|
attr_accessor :acss_debit
|
1243
1216
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -2283,8 +2256,7 @@ module Stripe
|
|
2283
2256
|
end
|
2284
2257
|
end
|
2285
2258
|
|
2286
|
-
class InteracPresent < Stripe::RequestParams
|
2287
|
-
end
|
2259
|
+
class InteracPresent < Stripe::RequestParams; end
|
2288
2260
|
|
2289
2261
|
class KakaoPay < Stripe::RequestParams
|
2290
2262
|
# Controls when the funds are captured from the customer's account.
|
@@ -2559,8 +2531,7 @@ module Stripe
|
|
2559
2531
|
end
|
2560
2532
|
end
|
2561
2533
|
|
2562
|
-
class PayByBank < Stripe::RequestParams
|
2563
|
-
end
|
2534
|
+
class PayByBank < Stripe::RequestParams; end
|
2564
2535
|
|
2565
2536
|
class Payco < Stripe::RequestParams
|
2566
2537
|
# Controls when the funds are captured from the customer's account.
|
@@ -2795,8 +2766,7 @@ module Stripe
|
|
2795
2766
|
end
|
2796
2767
|
end
|
2797
2768
|
|
2798
|
-
class Rechnung < Stripe::RequestParams
|
2799
|
-
end
|
2769
|
+
class Rechnung < Stripe::RequestParams; end
|
2800
2770
|
|
2801
2771
|
class RevolutPay < Stripe::RequestParams
|
2802
2772
|
# Controls when the funds are captured from the customer's account.
|
@@ -2833,6 +2803,19 @@ module Stripe
|
|
2833
2803
|
end
|
2834
2804
|
end
|
2835
2805
|
|
2806
|
+
class Satispay < Stripe::RequestParams
|
2807
|
+
# Controls when the funds are captured from the customer's account.
|
2808
|
+
#
|
2809
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
2810
|
+
#
|
2811
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
2812
|
+
attr_accessor :capture_method
|
2813
|
+
|
2814
|
+
def initialize(capture_method: nil)
|
2815
|
+
@capture_method = capture_method
|
2816
|
+
end
|
2817
|
+
end
|
2818
|
+
|
2836
2819
|
class SepaDebit < Stripe::RequestParams
|
2837
2820
|
class MandateOptions < Stripe::RequestParams
|
2838
2821
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -3139,7 +3122,7 @@ module Stripe
|
|
3139
3122
|
attr_accessor :fpx
|
3140
3123
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
3141
3124
|
attr_accessor :giropay
|
3142
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
3125
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
3143
3126
|
attr_accessor :gopay
|
3144
3127
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
3145
3128
|
attr_accessor :grabpay
|
@@ -3195,6 +3178,8 @@ module Stripe
|
|
3195
3178
|
attr_accessor :revolut_pay
|
3196
3179
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
3197
3180
|
attr_accessor :samsung_pay
|
3181
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
3182
|
+
attr_accessor :satispay
|
3198
3183
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3199
3184
|
attr_accessor :sepa_debit
|
3200
3185
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -3262,6 +3247,7 @@ module Stripe
|
|
3262
3247
|
rechnung: nil,
|
3263
3248
|
revolut_pay: nil,
|
3264
3249
|
samsung_pay: nil,
|
3250
|
+
satispay: nil,
|
3265
3251
|
sepa_debit: nil,
|
3266
3252
|
shopeepay: nil,
|
3267
3253
|
sofort: nil,
|
@@ -3319,6 +3305,7 @@ module Stripe
|
|
3319
3305
|
@rechnung = rechnung
|
3320
3306
|
@revolut_pay = revolut_pay
|
3321
3307
|
@samsung_pay = samsung_pay
|
3308
|
+
@satispay = satispay
|
3322
3309
|
@sepa_debit = sepa_debit
|
3323
3310
|
@shopeepay = shopeepay
|
3324
3311
|
@sofort = sofort
|
@@ -3415,8 +3402,6 @@ module Stripe
|
|
3415
3402
|
attr_accessor :amount
|
3416
3403
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
3417
3404
|
attr_accessor :application_fee_amount
|
3418
|
-
# Automations to be run during the PaymentIntent lifecycle
|
3419
|
-
attr_accessor :async_workflows
|
3420
3405
|
# When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
|
3421
3406
|
attr_accessor :automatic_payment_methods
|
3422
3407
|
# Controls when the funds will be captured from the customer's account.
|
@@ -3451,6 +3436,8 @@ module Stripe
|
|
3451
3436
|
attr_accessor :expand
|
3452
3437
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
3453
3438
|
attr_accessor :fx_quote
|
3439
|
+
# Automations to be run during the PaymentIntent lifecycle
|
3440
|
+
attr_accessor :hooks
|
3454
3441
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
3455
3442
|
attr_accessor :mandate
|
3456
3443
|
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
@@ -3466,6 +3453,8 @@ module Stripe
|
|
3466
3453
|
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
|
3467
3454
|
#
|
3468
3455
|
# If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
|
3456
|
+
# If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
|
3457
|
+
# end
|
3469
3458
|
attr_accessor :payment_method
|
3470
3459
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
|
3471
3460
|
attr_accessor :payment_method_configuration
|
@@ -3512,7 +3501,6 @@ module Stripe
|
|
3512
3501
|
def initialize(
|
3513
3502
|
amount: nil,
|
3514
3503
|
application_fee_amount: nil,
|
3515
|
-
async_workflows: nil,
|
3516
3504
|
automatic_payment_methods: nil,
|
3517
3505
|
capture_method: nil,
|
3518
3506
|
confirm: nil,
|
@@ -3525,6 +3513,7 @@ module Stripe
|
|
3525
3513
|
error_on_requires_action: nil,
|
3526
3514
|
expand: nil,
|
3527
3515
|
fx_quote: nil,
|
3516
|
+
hooks: nil,
|
3528
3517
|
mandate: nil,
|
3529
3518
|
mandate_data: nil,
|
3530
3519
|
metadata: nil,
|
@@ -3550,7 +3539,6 @@ module Stripe
|
|
3550
3539
|
)
|
3551
3540
|
@amount = amount
|
3552
3541
|
@application_fee_amount = application_fee_amount
|
3553
|
-
@async_workflows = async_workflows
|
3554
3542
|
@automatic_payment_methods = automatic_payment_methods
|
3555
3543
|
@capture_method = capture_method
|
3556
3544
|
@confirm = confirm
|
@@ -3563,6 +3551,7 @@ module Stripe
|
|
3563
3551
|
@error_on_requires_action = error_on_requires_action
|
3564
3552
|
@expand = expand
|
3565
3553
|
@fx_quote = fx_quote
|
3554
|
+
@hooks = hooks
|
3566
3555
|
@mandate = mandate
|
3567
3556
|
@mandate_data = mandate_data
|
3568
3557
|
@metadata = metadata
|
@@ -3601,7 +3590,7 @@ module Stripe
|
|
3601
3590
|
end
|
3602
3591
|
|
3603
3592
|
class UpdateParams < Stripe::RequestParams
|
3604
|
-
class
|
3593
|
+
class Hooks < Stripe::RequestParams
|
3605
3594
|
class Inputs < Stripe::RequestParams
|
3606
3595
|
class Tax < Stripe::RequestParams
|
3607
3596
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -3694,11 +3683,29 @@ module Stripe
|
|
3694
3683
|
end
|
3695
3684
|
end
|
3696
3685
|
|
3686
|
+
class Distance < Stripe::RequestParams
|
3687
|
+
# Distance traveled.
|
3688
|
+
attr_accessor :amount
|
3689
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
3690
|
+
attr_accessor :unit
|
3691
|
+
|
3692
|
+
def initialize(amount: nil, unit: nil)
|
3693
|
+
@amount = amount
|
3694
|
+
@unit = unit
|
3695
|
+
end
|
3696
|
+
end
|
3697
|
+
|
3697
3698
|
class Driver < Stripe::RequestParams
|
3699
|
+
# Driver's identification number.
|
3700
|
+
attr_accessor :driver_identification_number
|
3701
|
+
# Driver's tax number.
|
3702
|
+
attr_accessor :driver_tax_number
|
3698
3703
|
# Full name of the person or entity on the car reservation.
|
3699
3704
|
attr_accessor :name
|
3700
3705
|
|
3701
|
-
def initialize(name: nil)
|
3706
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
3707
|
+
@driver_identification_number = driver_identification_number
|
3708
|
+
@driver_tax_number = driver_tax_number
|
3702
3709
|
@name = name
|
3703
3710
|
end
|
3704
3711
|
end
|
@@ -3782,6 +3789,8 @@ module Stripe
|
|
3782
3789
|
attr_accessor :days_rented
|
3783
3790
|
# Delivery details for this purchase.
|
3784
3791
|
attr_accessor :delivery
|
3792
|
+
# The details of the distance traveled during the rental period.
|
3793
|
+
attr_accessor :distance
|
3785
3794
|
# The details of the passengers in the travel reservation
|
3786
3795
|
attr_accessor :drivers
|
3787
3796
|
# List of additional charges being billed.
|
@@ -3792,6 +3801,8 @@ module Stripe
|
|
3792
3801
|
attr_accessor :pickup_address
|
3793
3802
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
3794
3803
|
attr_accessor :pickup_at
|
3804
|
+
# Name of the pickup location.
|
3805
|
+
attr_accessor :pickup_location_name
|
3795
3806
|
# Rental rate.
|
3796
3807
|
attr_accessor :rate_amount
|
3797
3808
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -3802,8 +3813,12 @@ module Stripe
|
|
3802
3813
|
attr_accessor :return_address
|
3803
3814
|
# Car return time. Measured in seconds since the Unix epoch.
|
3804
3815
|
attr_accessor :return_at
|
3816
|
+
# Name of the return location.
|
3817
|
+
attr_accessor :return_location_name
|
3805
3818
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
3806
3819
|
attr_accessor :tax_exempt
|
3820
|
+
# The vehicle identification number.
|
3821
|
+
attr_accessor :vehicle_identification_number
|
3807
3822
|
|
3808
3823
|
def initialize(
|
3809
3824
|
affiliate: nil,
|
@@ -3815,17 +3830,21 @@ module Stripe
|
|
3815
3830
|
customer_service_phone_number: nil,
|
3816
3831
|
days_rented: nil,
|
3817
3832
|
delivery: nil,
|
3833
|
+
distance: nil,
|
3818
3834
|
drivers: nil,
|
3819
3835
|
extra_charges: nil,
|
3820
3836
|
no_show: nil,
|
3821
3837
|
pickup_address: nil,
|
3822
3838
|
pickup_at: nil,
|
3839
|
+
pickup_location_name: nil,
|
3823
3840
|
rate_amount: nil,
|
3824
3841
|
rate_interval: nil,
|
3825
3842
|
renter_name: nil,
|
3826
3843
|
return_address: nil,
|
3827
3844
|
return_at: nil,
|
3828
|
-
|
3845
|
+
return_location_name: nil,
|
3846
|
+
tax_exempt: nil,
|
3847
|
+
vehicle_identification_number: nil
|
3829
3848
|
)
|
3830
3849
|
@affiliate = affiliate
|
3831
3850
|
@booking_number = booking_number
|
@@ -3836,17 +3855,21 @@ module Stripe
|
|
3836
3855
|
@customer_service_phone_number = customer_service_phone_number
|
3837
3856
|
@days_rented = days_rented
|
3838
3857
|
@delivery = delivery
|
3858
|
+
@distance = distance
|
3839
3859
|
@drivers = drivers
|
3840
3860
|
@extra_charges = extra_charges
|
3841
3861
|
@no_show = no_show
|
3842
3862
|
@pickup_address = pickup_address
|
3843
3863
|
@pickup_at = pickup_at
|
3864
|
+
@pickup_location_name = pickup_location_name
|
3844
3865
|
@rate_amount = rate_amount
|
3845
3866
|
@rate_interval = rate_interval
|
3846
3867
|
@renter_name = renter_name
|
3847
3868
|
@return_address = return_address
|
3848
3869
|
@return_at = return_at
|
3870
|
+
@return_location_name = return_location_name
|
3849
3871
|
@tax_exempt = tax_exempt
|
3872
|
+
@vehicle_identification_number = vehicle_identification_number
|
3850
3873
|
end
|
3851
3874
|
end
|
3852
3875
|
|
@@ -4344,20 +4367,11 @@ module Stripe
|
|
4344
4367
|
end
|
4345
4368
|
end
|
4346
4369
|
|
4347
|
-
class Affirm < Stripe::RequestParams
|
4348
|
-
end
|
4349
|
-
|
4350
|
-
class
|
4351
|
-
end
|
4352
|
-
|
4353
|
-
class Alipay < Stripe::RequestParams
|
4354
|
-
end
|
4355
|
-
|
4356
|
-
class Alma < Stripe::RequestParams
|
4357
|
-
end
|
4358
|
-
|
4359
|
-
class AmazonPay < Stripe::RequestParams
|
4360
|
-
end
|
4370
|
+
class Affirm < Stripe::RequestParams; end
|
4371
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
4372
|
+
class Alipay < Stripe::RequestParams; end
|
4373
|
+
class Alma < Stripe::RequestParams; end
|
4374
|
+
class AmazonPay < Stripe::RequestParams; end
|
4361
4375
|
|
4362
4376
|
class AuBecsDebit < Stripe::RequestParams
|
4363
4377
|
# The account number for the bank account.
|
@@ -4383,11 +4397,8 @@ module Stripe
|
|
4383
4397
|
end
|
4384
4398
|
end
|
4385
4399
|
|
4386
|
-
class Bancontact < Stripe::RequestParams
|
4387
|
-
end
|
4388
|
-
|
4389
|
-
class Billie < Stripe::RequestParams
|
4390
|
-
end
|
4400
|
+
class Bancontact < Stripe::RequestParams; end
|
4401
|
+
class Billie < Stripe::RequestParams; end
|
4391
4402
|
|
4392
4403
|
class BillingDetails < Stripe::RequestParams
|
4393
4404
|
class Address < Stripe::RequestParams
|
@@ -4440,8 +4451,7 @@ module Stripe
|
|
4440
4451
|
end
|
4441
4452
|
end
|
4442
4453
|
|
4443
|
-
class Blik < Stripe::RequestParams
|
4444
|
-
end
|
4454
|
+
class Blik < Stripe::RequestParams; end
|
4445
4455
|
|
4446
4456
|
class Boleto < Stripe::RequestParams
|
4447
4457
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -4452,11 +4462,8 @@ module Stripe
|
|
4452
4462
|
end
|
4453
4463
|
end
|
4454
4464
|
|
4455
|
-
class Cashapp < Stripe::RequestParams
|
4456
|
-
end
|
4457
|
-
|
4458
|
-
class CustomerBalance < Stripe::RequestParams
|
4459
|
-
end
|
4465
|
+
class Cashapp < Stripe::RequestParams; end
|
4466
|
+
class CustomerBalance < Stripe::RequestParams; end
|
4460
4467
|
|
4461
4468
|
class Eps < Stripe::RequestParams
|
4462
4469
|
# The customer's bank.
|
@@ -4479,14 +4486,9 @@ module Stripe
|
|
4479
4486
|
end
|
4480
4487
|
end
|
4481
4488
|
|
4482
|
-
class Giropay < Stripe::RequestParams
|
4483
|
-
end
|
4484
|
-
|
4485
|
-
class Gopay < Stripe::RequestParams
|
4486
|
-
end
|
4487
|
-
|
4488
|
-
class Grabpay < Stripe::RequestParams
|
4489
|
-
end
|
4489
|
+
class Giropay < Stripe::RequestParams; end
|
4490
|
+
class Gopay < Stripe::RequestParams; end
|
4491
|
+
class Grabpay < Stripe::RequestParams; end
|
4490
4492
|
|
4491
4493
|
class IdBankTransfer < Stripe::RequestParams
|
4492
4494
|
# Bank where the account is held.
|
@@ -4506,11 +4508,8 @@ module Stripe
|
|
4506
4508
|
end
|
4507
4509
|
end
|
4508
4510
|
|
4509
|
-
class InteracPresent < Stripe::RequestParams
|
4510
|
-
end
|
4511
|
-
|
4512
|
-
class KakaoPay < Stripe::RequestParams
|
4513
|
-
end
|
4511
|
+
class InteracPresent < Stripe::RequestParams; end
|
4512
|
+
class KakaoPay < Stripe::RequestParams; end
|
4514
4513
|
|
4515
4514
|
class Klarna < Stripe::RequestParams
|
4516
4515
|
class Dob < Stripe::RequestParams
|
@@ -4535,23 +4534,12 @@ module Stripe
|
|
4535
4534
|
end
|
4536
4535
|
end
|
4537
4536
|
|
4538
|
-
class Konbini < Stripe::RequestParams
|
4539
|
-
end
|
4540
|
-
|
4541
|
-
class
|
4542
|
-
end
|
4543
|
-
|
4544
|
-
class Link < Stripe::RequestParams
|
4545
|
-
end
|
4546
|
-
|
4547
|
-
class MbWay < Stripe::RequestParams
|
4548
|
-
end
|
4549
|
-
|
4550
|
-
class Mobilepay < Stripe::RequestParams
|
4551
|
-
end
|
4552
|
-
|
4553
|
-
class Multibanco < Stripe::RequestParams
|
4554
|
-
end
|
4537
|
+
class Konbini < Stripe::RequestParams; end
|
4538
|
+
class KrCard < Stripe::RequestParams; end
|
4539
|
+
class Link < Stripe::RequestParams; end
|
4540
|
+
class MbWay < Stripe::RequestParams; end
|
4541
|
+
class Mobilepay < Stripe::RequestParams; end
|
4542
|
+
class Multibanco < Stripe::RequestParams; end
|
4555
4543
|
|
4556
4544
|
class NaverPay < Stripe::RequestParams
|
4557
4545
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -4593,8 +4581,7 @@ module Stripe
|
|
4593
4581
|
end
|
4594
4582
|
end
|
4595
4583
|
|
4596
|
-
class Oxxo < Stripe::RequestParams
|
4597
|
-
end
|
4584
|
+
class Oxxo < Stripe::RequestParams; end
|
4598
4585
|
|
4599
4586
|
class P24 < Stripe::RequestParams
|
4600
4587
|
# The customer's bank.
|
@@ -4605,17 +4592,10 @@ module Stripe
|
|
4605
4592
|
end
|
4606
4593
|
end
|
4607
4594
|
|
4608
|
-
class PayByBank < Stripe::RequestParams
|
4609
|
-
end
|
4610
|
-
|
4611
|
-
class
|
4612
|
-
end
|
4613
|
-
|
4614
|
-
class Paynow < Stripe::RequestParams
|
4615
|
-
end
|
4616
|
-
|
4617
|
-
class Paypal < Stripe::RequestParams
|
4618
|
-
end
|
4595
|
+
class PayByBank < Stripe::RequestParams; end
|
4596
|
+
class Payco < Stripe::RequestParams; end
|
4597
|
+
class Paynow < Stripe::RequestParams; end
|
4598
|
+
class Paypal < Stripe::RequestParams; end
|
4619
4599
|
|
4620
4600
|
class Payto < Stripe::RequestParams
|
4621
4601
|
# The account number for the bank account.
|
@@ -4632,14 +4612,9 @@ module Stripe
|
|
4632
4612
|
end
|
4633
4613
|
end
|
4634
4614
|
|
4635
|
-
class Pix < Stripe::RequestParams
|
4636
|
-
end
|
4637
|
-
|
4638
|
-
class Promptpay < Stripe::RequestParams
|
4639
|
-
end
|
4640
|
-
|
4641
|
-
class Qris < Stripe::RequestParams
|
4642
|
-
end
|
4615
|
+
class Pix < Stripe::RequestParams; end
|
4616
|
+
class Promptpay < Stripe::RequestParams; end
|
4617
|
+
class Qris < Stripe::RequestParams; end
|
4643
4618
|
|
4644
4619
|
class RadarOptions < Stripe::RequestParams
|
4645
4620
|
# 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.
|
@@ -4673,14 +4648,9 @@ module Stripe
|
|
4673
4648
|
end
|
4674
4649
|
end
|
4675
4650
|
|
4676
|
-
class RevolutPay < Stripe::RequestParams
|
4677
|
-
end
|
4678
|
-
|
4679
|
-
class SamsungPay < Stripe::RequestParams
|
4680
|
-
end
|
4681
|
-
|
4682
|
-
class Satispay < Stripe::RequestParams
|
4683
|
-
end
|
4651
|
+
class RevolutPay < Stripe::RequestParams; end
|
4652
|
+
class SamsungPay < Stripe::RequestParams; end
|
4653
|
+
class Satispay < Stripe::RequestParams; end
|
4684
4654
|
|
4685
4655
|
class SepaDebit < Stripe::RequestParams
|
4686
4656
|
# IBAN of the bank account.
|
@@ -4691,8 +4661,7 @@ module Stripe
|
|
4691
4661
|
end
|
4692
4662
|
end
|
4693
4663
|
|
4694
|
-
class Shopeepay < Stripe::RequestParams
|
4695
|
-
end
|
4664
|
+
class Shopeepay < Stripe::RequestParams; end
|
4696
4665
|
|
4697
4666
|
class Sofort < Stripe::RequestParams
|
4698
4667
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -4715,11 +4684,8 @@ module Stripe
|
|
4715
4684
|
end
|
4716
4685
|
end
|
4717
4686
|
|
4718
|
-
class Swish < Stripe::RequestParams
|
4719
|
-
end
|
4720
|
-
|
4721
|
-
class Twint < Stripe::RequestParams
|
4722
|
-
end
|
4687
|
+
class Swish < Stripe::RequestParams; end
|
4688
|
+
class Twint < Stripe::RequestParams; end
|
4723
4689
|
|
4724
4690
|
class UsBankAccount < Stripe::RequestParams
|
4725
4691
|
# Account holder type: individual or company.
|
@@ -4748,11 +4714,8 @@ module Stripe
|
|
4748
4714
|
end
|
4749
4715
|
end
|
4750
4716
|
|
4751
|
-
class WechatPay < Stripe::RequestParams
|
4752
|
-
end
|
4753
|
-
|
4754
|
-
class Zip < Stripe::RequestParams
|
4755
|
-
end
|
4717
|
+
class WechatPay < Stripe::RequestParams; end
|
4718
|
+
class Zip < Stripe::RequestParams; end
|
4756
4719
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
4757
4720
|
attr_accessor :acss_debit
|
4758
4721
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -5798,8 +5761,7 @@ module Stripe
|
|
5798
5761
|
end
|
5799
5762
|
end
|
5800
5763
|
|
5801
|
-
class InteracPresent < Stripe::RequestParams
|
5802
|
-
end
|
5764
|
+
class InteracPresent < Stripe::RequestParams; end
|
5803
5765
|
|
5804
5766
|
class KakaoPay < Stripe::RequestParams
|
5805
5767
|
# Controls when the funds are captured from the customer's account.
|
@@ -6074,8 +6036,7 @@ module Stripe
|
|
6074
6036
|
end
|
6075
6037
|
end
|
6076
6038
|
|
6077
|
-
class PayByBank < Stripe::RequestParams
|
6078
|
-
end
|
6039
|
+
class PayByBank < Stripe::RequestParams; end
|
6079
6040
|
|
6080
6041
|
class Payco < Stripe::RequestParams
|
6081
6042
|
# Controls when the funds are captured from the customer's account.
|
@@ -6310,8 +6271,7 @@ module Stripe
|
|
6310
6271
|
end
|
6311
6272
|
end
|
6312
6273
|
|
6313
|
-
class Rechnung < Stripe::RequestParams
|
6314
|
-
end
|
6274
|
+
class Rechnung < Stripe::RequestParams; end
|
6315
6275
|
|
6316
6276
|
class RevolutPay < Stripe::RequestParams
|
6317
6277
|
# Controls when the funds are captured from the customer's account.
|
@@ -6348,6 +6308,19 @@ module Stripe
|
|
6348
6308
|
end
|
6349
6309
|
end
|
6350
6310
|
|
6311
|
+
class Satispay < Stripe::RequestParams
|
6312
|
+
# Controls when the funds are captured from the customer's account.
|
6313
|
+
#
|
6314
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
6315
|
+
#
|
6316
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
6317
|
+
attr_accessor :capture_method
|
6318
|
+
|
6319
|
+
def initialize(capture_method: nil)
|
6320
|
+
@capture_method = capture_method
|
6321
|
+
end
|
6322
|
+
end
|
6323
|
+
|
6351
6324
|
class SepaDebit < Stripe::RequestParams
|
6352
6325
|
class MandateOptions < Stripe::RequestParams
|
6353
6326
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -6654,7 +6627,7 @@ module Stripe
|
|
6654
6627
|
attr_accessor :fpx
|
6655
6628
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
6656
6629
|
attr_accessor :giropay
|
6657
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
6630
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
6658
6631
|
attr_accessor :gopay
|
6659
6632
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
6660
6633
|
attr_accessor :grabpay
|
@@ -6710,6 +6683,8 @@ module Stripe
|
|
6710
6683
|
attr_accessor :revolut_pay
|
6711
6684
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
6712
6685
|
attr_accessor :samsung_pay
|
6686
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
6687
|
+
attr_accessor :satispay
|
6713
6688
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
6714
6689
|
attr_accessor :sepa_debit
|
6715
6690
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -6777,6 +6752,7 @@ module Stripe
|
|
6777
6752
|
rechnung: nil,
|
6778
6753
|
revolut_pay: nil,
|
6779
6754
|
samsung_pay: nil,
|
6755
|
+
satispay: nil,
|
6780
6756
|
sepa_debit: nil,
|
6781
6757
|
shopeepay: nil,
|
6782
6758
|
sofort: nil,
|
@@ -6834,6 +6810,7 @@ module Stripe
|
|
6834
6810
|
@rechnung = rechnung
|
6835
6811
|
@revolut_pay = revolut_pay
|
6836
6812
|
@samsung_pay = samsung_pay
|
6813
|
+
@satispay = satispay
|
6837
6814
|
@sepa_debit = sepa_debit
|
6838
6815
|
@shopeepay = shopeepay
|
6839
6816
|
@sofort = sofort
|
@@ -6909,8 +6886,6 @@ module Stripe
|
|
6909
6886
|
attr_accessor :amount
|
6910
6887
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
6911
6888
|
attr_accessor :application_fee_amount
|
6912
|
-
# Automations to be run during the PaymentIntent lifecycle
|
6913
|
-
attr_accessor :async_workflows
|
6914
6889
|
# Controls when the funds will be captured from the customer's account.
|
6915
6890
|
attr_accessor :capture_method
|
6916
6891
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
@@ -6933,6 +6908,8 @@ module Stripe
|
|
6933
6908
|
attr_accessor :expand
|
6934
6909
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
6935
6910
|
attr_accessor :fx_quote
|
6911
|
+
# Automations to be run during the PaymentIntent lifecycle
|
6912
|
+
attr_accessor :hooks
|
6936
6913
|
# This hash contains details about the Mandate to create.
|
6937
6914
|
attr_accessor :mandate_data
|
6938
6915
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
@@ -6979,7 +6956,6 @@ module Stripe
|
|
6979
6956
|
def initialize(
|
6980
6957
|
amount: nil,
|
6981
6958
|
application_fee_amount: nil,
|
6982
|
-
async_workflows: nil,
|
6983
6959
|
capture_method: nil,
|
6984
6960
|
currency: nil,
|
6985
6961
|
customer: nil,
|
@@ -6987,6 +6963,7 @@ module Stripe
|
|
6987
6963
|
description: nil,
|
6988
6964
|
expand: nil,
|
6989
6965
|
fx_quote: nil,
|
6966
|
+
hooks: nil,
|
6990
6967
|
mandate_data: nil,
|
6991
6968
|
metadata: nil,
|
6992
6969
|
payment_details: nil,
|
@@ -7005,7 +6982,6 @@ module Stripe
|
|
7005
6982
|
)
|
7006
6983
|
@amount = amount
|
7007
6984
|
@application_fee_amount = application_fee_amount
|
7008
|
-
@async_workflows = async_workflows
|
7009
6985
|
@capture_method = capture_method
|
7010
6986
|
@currency = currency
|
7011
6987
|
@customer = customer
|
@@ -7013,6 +6989,7 @@ module Stripe
|
|
7013
6989
|
@description = description
|
7014
6990
|
@expand = expand
|
7015
6991
|
@fx_quote = fx_quote
|
6992
|
+
@hooks = hooks
|
7016
6993
|
@mandate_data = mandate_data
|
7017
6994
|
@metadata = metadata
|
7018
6995
|
@payment_details = payment_details
|
@@ -7081,7 +7058,7 @@ module Stripe
|
|
7081
7058
|
end
|
7082
7059
|
|
7083
7060
|
class CaptureParams < Stripe::RequestParams
|
7084
|
-
class
|
7061
|
+
class Hooks < Stripe::RequestParams
|
7085
7062
|
class Inputs < Stripe::RequestParams
|
7086
7063
|
class Tax < Stripe::RequestParams
|
7087
7064
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -7143,11 +7120,29 @@ module Stripe
|
|
7143
7120
|
end
|
7144
7121
|
end
|
7145
7122
|
|
7123
|
+
class Distance < Stripe::RequestParams
|
7124
|
+
# Distance traveled.
|
7125
|
+
attr_accessor :amount
|
7126
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
7127
|
+
attr_accessor :unit
|
7128
|
+
|
7129
|
+
def initialize(amount: nil, unit: nil)
|
7130
|
+
@amount = amount
|
7131
|
+
@unit = unit
|
7132
|
+
end
|
7133
|
+
end
|
7134
|
+
|
7146
7135
|
class Driver < Stripe::RequestParams
|
7136
|
+
# Driver's identification number.
|
7137
|
+
attr_accessor :driver_identification_number
|
7138
|
+
# Driver's tax number.
|
7139
|
+
attr_accessor :driver_tax_number
|
7147
7140
|
# Full name of the person or entity on the car reservation.
|
7148
7141
|
attr_accessor :name
|
7149
7142
|
|
7150
|
-
def initialize(name: nil)
|
7143
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
7144
|
+
@driver_identification_number = driver_identification_number
|
7145
|
+
@driver_tax_number = driver_tax_number
|
7151
7146
|
@name = name
|
7152
7147
|
end
|
7153
7148
|
end
|
@@ -7231,6 +7226,8 @@ module Stripe
|
|
7231
7226
|
attr_accessor :days_rented
|
7232
7227
|
# Delivery details for this purchase.
|
7233
7228
|
attr_accessor :delivery
|
7229
|
+
# The details of the distance traveled during the rental period.
|
7230
|
+
attr_accessor :distance
|
7234
7231
|
# The details of the passengers in the travel reservation
|
7235
7232
|
attr_accessor :drivers
|
7236
7233
|
# List of additional charges being billed.
|
@@ -7241,6 +7238,8 @@ module Stripe
|
|
7241
7238
|
attr_accessor :pickup_address
|
7242
7239
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
7243
7240
|
attr_accessor :pickup_at
|
7241
|
+
# Name of the pickup location.
|
7242
|
+
attr_accessor :pickup_location_name
|
7244
7243
|
# Rental rate.
|
7245
7244
|
attr_accessor :rate_amount
|
7246
7245
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -7251,8 +7250,12 @@ module Stripe
|
|
7251
7250
|
attr_accessor :return_address
|
7252
7251
|
# Car return time. Measured in seconds since the Unix epoch.
|
7253
7252
|
attr_accessor :return_at
|
7253
|
+
# Name of the return location.
|
7254
|
+
attr_accessor :return_location_name
|
7254
7255
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
7255
7256
|
attr_accessor :tax_exempt
|
7257
|
+
# The vehicle identification number.
|
7258
|
+
attr_accessor :vehicle_identification_number
|
7256
7259
|
|
7257
7260
|
def initialize(
|
7258
7261
|
affiliate: nil,
|
@@ -7264,17 +7267,21 @@ module Stripe
|
|
7264
7267
|
customer_service_phone_number: nil,
|
7265
7268
|
days_rented: nil,
|
7266
7269
|
delivery: nil,
|
7270
|
+
distance: nil,
|
7267
7271
|
drivers: nil,
|
7268
7272
|
extra_charges: nil,
|
7269
7273
|
no_show: nil,
|
7270
7274
|
pickup_address: nil,
|
7271
7275
|
pickup_at: nil,
|
7276
|
+
pickup_location_name: nil,
|
7272
7277
|
rate_amount: nil,
|
7273
7278
|
rate_interval: nil,
|
7274
7279
|
renter_name: nil,
|
7275
7280
|
return_address: nil,
|
7276
7281
|
return_at: nil,
|
7277
|
-
|
7282
|
+
return_location_name: nil,
|
7283
|
+
tax_exempt: nil,
|
7284
|
+
vehicle_identification_number: nil
|
7278
7285
|
)
|
7279
7286
|
@affiliate = affiliate
|
7280
7287
|
@booking_number = booking_number
|
@@ -7285,17 +7292,21 @@ module Stripe
|
|
7285
7292
|
@customer_service_phone_number = customer_service_phone_number
|
7286
7293
|
@days_rented = days_rented
|
7287
7294
|
@delivery = delivery
|
7295
|
+
@distance = distance
|
7288
7296
|
@drivers = drivers
|
7289
7297
|
@extra_charges = extra_charges
|
7290
7298
|
@no_show = no_show
|
7291
7299
|
@pickup_address = pickup_address
|
7292
7300
|
@pickup_at = pickup_at
|
7301
|
+
@pickup_location_name = pickup_location_name
|
7293
7302
|
@rate_amount = rate_amount
|
7294
7303
|
@rate_interval = rate_interval
|
7295
7304
|
@renter_name = renter_name
|
7296
7305
|
@return_address = return_address
|
7297
7306
|
@return_at = return_at
|
7307
|
+
@return_location_name = return_location_name
|
7298
7308
|
@tax_exempt = tax_exempt
|
7309
|
+
@vehicle_identification_number = vehicle_identification_number
|
7299
7310
|
end
|
7300
7311
|
end
|
7301
7312
|
|
@@ -7789,12 +7800,12 @@ module Stripe
|
|
7789
7800
|
attr_accessor :amount_to_capture
|
7790
7801
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
7791
7802
|
attr_accessor :application_fee_amount
|
7792
|
-
# Automations to be run during the PaymentIntent lifecycle
|
7793
|
-
attr_accessor :async_workflows
|
7794
7803
|
# Specifies which fields in the response should be expanded.
|
7795
7804
|
attr_accessor :expand
|
7796
7805
|
# Defaults to `true`. When capturing a PaymentIntent, setting `final_capture` to `false` notifies Stripe to not release the remaining uncaptured funds to make sure that they're captured in future requests. You can only use this setting when [multicapture](https://stripe.com/docs/payments/multicapture) is available for PaymentIntents.
|
7797
7806
|
attr_accessor :final_capture
|
7807
|
+
# Automations to be run during the PaymentIntent lifecycle
|
7808
|
+
attr_accessor :hooks
|
7798
7809
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
7799
7810
|
attr_accessor :metadata
|
7800
7811
|
# Provides industry-specific information about the charge.
|
@@ -7812,9 +7823,9 @@ module Stripe
|
|
7812
7823
|
def initialize(
|
7813
7824
|
amount_to_capture: nil,
|
7814
7825
|
application_fee_amount: nil,
|
7815
|
-
async_workflows: nil,
|
7816
7826
|
expand: nil,
|
7817
7827
|
final_capture: nil,
|
7828
|
+
hooks: nil,
|
7818
7829
|
metadata: nil,
|
7819
7830
|
payment_details: nil,
|
7820
7831
|
statement_descriptor: nil,
|
@@ -7823,9 +7834,9 @@ module Stripe
|
|
7823
7834
|
)
|
7824
7835
|
@amount_to_capture = amount_to_capture
|
7825
7836
|
@application_fee_amount = application_fee_amount
|
7826
|
-
@async_workflows = async_workflows
|
7827
7837
|
@expand = expand
|
7828
7838
|
@final_capture = final_capture
|
7839
|
+
@hooks = hooks
|
7829
7840
|
@metadata = metadata
|
7830
7841
|
@payment_details = payment_details
|
7831
7842
|
@statement_descriptor = statement_descriptor
|
@@ -7835,7 +7846,7 @@ module Stripe
|
|
7835
7846
|
end
|
7836
7847
|
|
7837
7848
|
class ConfirmParams < Stripe::RequestParams
|
7838
|
-
class
|
7849
|
+
class Hooks < Stripe::RequestParams
|
7839
7850
|
class Inputs < Stripe::RequestParams
|
7840
7851
|
class Tax < Stripe::RequestParams
|
7841
7852
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -7862,8 +7873,7 @@ module Stripe
|
|
7862
7873
|
|
7863
7874
|
class MandateData < Stripe::RequestParams
|
7864
7875
|
class CustomerAcceptance < Stripe::RequestParams
|
7865
|
-
class Offline < Stripe::RequestParams
|
7866
|
-
end
|
7876
|
+
class Offline < Stripe::RequestParams; end
|
7867
7877
|
|
7868
7878
|
class Online < Stripe::RequestParams
|
7869
7879
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -7937,11 +7947,29 @@ module Stripe
|
|
7937
7947
|
end
|
7938
7948
|
end
|
7939
7949
|
|
7950
|
+
class Distance < Stripe::RequestParams
|
7951
|
+
# Distance traveled.
|
7952
|
+
attr_accessor :amount
|
7953
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
7954
|
+
attr_accessor :unit
|
7955
|
+
|
7956
|
+
def initialize(amount: nil, unit: nil)
|
7957
|
+
@amount = amount
|
7958
|
+
@unit = unit
|
7959
|
+
end
|
7960
|
+
end
|
7961
|
+
|
7940
7962
|
class Driver < Stripe::RequestParams
|
7963
|
+
# Driver's identification number.
|
7964
|
+
attr_accessor :driver_identification_number
|
7965
|
+
# Driver's tax number.
|
7966
|
+
attr_accessor :driver_tax_number
|
7941
7967
|
# Full name of the person or entity on the car reservation.
|
7942
7968
|
attr_accessor :name
|
7943
7969
|
|
7944
|
-
def initialize(name: nil)
|
7970
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
7971
|
+
@driver_identification_number = driver_identification_number
|
7972
|
+
@driver_tax_number = driver_tax_number
|
7945
7973
|
@name = name
|
7946
7974
|
end
|
7947
7975
|
end
|
@@ -8025,6 +8053,8 @@ module Stripe
|
|
8025
8053
|
attr_accessor :days_rented
|
8026
8054
|
# Delivery details for this purchase.
|
8027
8055
|
attr_accessor :delivery
|
8056
|
+
# The details of the distance traveled during the rental period.
|
8057
|
+
attr_accessor :distance
|
8028
8058
|
# The details of the passengers in the travel reservation
|
8029
8059
|
attr_accessor :drivers
|
8030
8060
|
# List of additional charges being billed.
|
@@ -8035,6 +8065,8 @@ module Stripe
|
|
8035
8065
|
attr_accessor :pickup_address
|
8036
8066
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
8037
8067
|
attr_accessor :pickup_at
|
8068
|
+
# Name of the pickup location.
|
8069
|
+
attr_accessor :pickup_location_name
|
8038
8070
|
# Rental rate.
|
8039
8071
|
attr_accessor :rate_amount
|
8040
8072
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -8045,8 +8077,12 @@ module Stripe
|
|
8045
8077
|
attr_accessor :return_address
|
8046
8078
|
# Car return time. Measured in seconds since the Unix epoch.
|
8047
8079
|
attr_accessor :return_at
|
8080
|
+
# Name of the return location.
|
8081
|
+
attr_accessor :return_location_name
|
8048
8082
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
8049
8083
|
attr_accessor :tax_exempt
|
8084
|
+
# The vehicle identification number.
|
8085
|
+
attr_accessor :vehicle_identification_number
|
8050
8086
|
|
8051
8087
|
def initialize(
|
8052
8088
|
affiliate: nil,
|
@@ -8058,17 +8094,21 @@ module Stripe
|
|
8058
8094
|
customer_service_phone_number: nil,
|
8059
8095
|
days_rented: nil,
|
8060
8096
|
delivery: nil,
|
8097
|
+
distance: nil,
|
8061
8098
|
drivers: nil,
|
8062
8099
|
extra_charges: nil,
|
8063
8100
|
no_show: nil,
|
8064
8101
|
pickup_address: nil,
|
8065
8102
|
pickup_at: nil,
|
8103
|
+
pickup_location_name: nil,
|
8066
8104
|
rate_amount: nil,
|
8067
8105
|
rate_interval: nil,
|
8068
8106
|
renter_name: nil,
|
8069
8107
|
return_address: nil,
|
8070
8108
|
return_at: nil,
|
8071
|
-
|
8109
|
+
return_location_name: nil,
|
8110
|
+
tax_exempt: nil,
|
8111
|
+
vehicle_identification_number: nil
|
8072
8112
|
)
|
8073
8113
|
@affiliate = affiliate
|
8074
8114
|
@booking_number = booking_number
|
@@ -8079,17 +8119,21 @@ module Stripe
|
|
8079
8119
|
@customer_service_phone_number = customer_service_phone_number
|
8080
8120
|
@days_rented = days_rented
|
8081
8121
|
@delivery = delivery
|
8122
|
+
@distance = distance
|
8082
8123
|
@drivers = drivers
|
8083
8124
|
@extra_charges = extra_charges
|
8084
8125
|
@no_show = no_show
|
8085
8126
|
@pickup_address = pickup_address
|
8086
8127
|
@pickup_at = pickup_at
|
8128
|
+
@pickup_location_name = pickup_location_name
|
8087
8129
|
@rate_amount = rate_amount
|
8088
8130
|
@rate_interval = rate_interval
|
8089
8131
|
@renter_name = renter_name
|
8090
8132
|
@return_address = return_address
|
8091
8133
|
@return_at = return_at
|
8134
|
+
@return_location_name = return_location_name
|
8092
8135
|
@tax_exempt = tax_exempt
|
8136
|
+
@vehicle_identification_number = vehicle_identification_number
|
8093
8137
|
end
|
8094
8138
|
end
|
8095
8139
|
|
@@ -8587,20 +8631,11 @@ module Stripe
|
|
8587
8631
|
end
|
8588
8632
|
end
|
8589
8633
|
|
8590
|
-
class Affirm < Stripe::RequestParams
|
8591
|
-
end
|
8592
|
-
|
8593
|
-
class
|
8594
|
-
end
|
8595
|
-
|
8596
|
-
class Alipay < Stripe::RequestParams
|
8597
|
-
end
|
8598
|
-
|
8599
|
-
class Alma < Stripe::RequestParams
|
8600
|
-
end
|
8601
|
-
|
8602
|
-
class AmazonPay < Stripe::RequestParams
|
8603
|
-
end
|
8634
|
+
class Affirm < Stripe::RequestParams; end
|
8635
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
8636
|
+
class Alipay < Stripe::RequestParams; end
|
8637
|
+
class Alma < Stripe::RequestParams; end
|
8638
|
+
class AmazonPay < Stripe::RequestParams; end
|
8604
8639
|
|
8605
8640
|
class AuBecsDebit < Stripe::RequestParams
|
8606
8641
|
# The account number for the bank account.
|
@@ -8626,11 +8661,8 @@ module Stripe
|
|
8626
8661
|
end
|
8627
8662
|
end
|
8628
8663
|
|
8629
|
-
class Bancontact < Stripe::RequestParams
|
8630
|
-
end
|
8631
|
-
|
8632
|
-
class Billie < Stripe::RequestParams
|
8633
|
-
end
|
8664
|
+
class Bancontact < Stripe::RequestParams; end
|
8665
|
+
class Billie < Stripe::RequestParams; end
|
8634
8666
|
|
8635
8667
|
class BillingDetails < Stripe::RequestParams
|
8636
8668
|
class Address < Stripe::RequestParams
|
@@ -8683,8 +8715,7 @@ module Stripe
|
|
8683
8715
|
end
|
8684
8716
|
end
|
8685
8717
|
|
8686
|
-
class Blik < Stripe::RequestParams
|
8687
|
-
end
|
8718
|
+
class Blik < Stripe::RequestParams; end
|
8688
8719
|
|
8689
8720
|
class Boleto < Stripe::RequestParams
|
8690
8721
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -8695,11 +8726,8 @@ module Stripe
|
|
8695
8726
|
end
|
8696
8727
|
end
|
8697
8728
|
|
8698
|
-
class Cashapp < Stripe::RequestParams
|
8699
|
-
end
|
8700
|
-
|
8701
|
-
class CustomerBalance < Stripe::RequestParams
|
8702
|
-
end
|
8729
|
+
class Cashapp < Stripe::RequestParams; end
|
8730
|
+
class CustomerBalance < Stripe::RequestParams; end
|
8703
8731
|
|
8704
8732
|
class Eps < Stripe::RequestParams
|
8705
8733
|
# The customer's bank.
|
@@ -8722,14 +8750,9 @@ module Stripe
|
|
8722
8750
|
end
|
8723
8751
|
end
|
8724
8752
|
|
8725
|
-
class Giropay < Stripe::RequestParams
|
8726
|
-
end
|
8727
|
-
|
8728
|
-
class Gopay < Stripe::RequestParams
|
8729
|
-
end
|
8730
|
-
|
8731
|
-
class Grabpay < Stripe::RequestParams
|
8732
|
-
end
|
8753
|
+
class Giropay < Stripe::RequestParams; end
|
8754
|
+
class Gopay < Stripe::RequestParams; end
|
8755
|
+
class Grabpay < Stripe::RequestParams; end
|
8733
8756
|
|
8734
8757
|
class IdBankTransfer < Stripe::RequestParams
|
8735
8758
|
# Bank where the account is held.
|
@@ -8749,11 +8772,8 @@ module Stripe
|
|
8749
8772
|
end
|
8750
8773
|
end
|
8751
8774
|
|
8752
|
-
class InteracPresent < Stripe::RequestParams
|
8753
|
-
end
|
8754
|
-
|
8755
|
-
class KakaoPay < Stripe::RequestParams
|
8756
|
-
end
|
8775
|
+
class InteracPresent < Stripe::RequestParams; end
|
8776
|
+
class KakaoPay < Stripe::RequestParams; end
|
8757
8777
|
|
8758
8778
|
class Klarna < Stripe::RequestParams
|
8759
8779
|
class Dob < Stripe::RequestParams
|
@@ -8778,23 +8798,12 @@ module Stripe
|
|
8778
8798
|
end
|
8779
8799
|
end
|
8780
8800
|
|
8781
|
-
class Konbini < Stripe::RequestParams
|
8782
|
-
end
|
8783
|
-
|
8784
|
-
class
|
8785
|
-
end
|
8786
|
-
|
8787
|
-
class Link < Stripe::RequestParams
|
8788
|
-
end
|
8789
|
-
|
8790
|
-
class MbWay < Stripe::RequestParams
|
8791
|
-
end
|
8792
|
-
|
8793
|
-
class Mobilepay < Stripe::RequestParams
|
8794
|
-
end
|
8795
|
-
|
8796
|
-
class Multibanco < Stripe::RequestParams
|
8797
|
-
end
|
8801
|
+
class Konbini < Stripe::RequestParams; end
|
8802
|
+
class KrCard < Stripe::RequestParams; end
|
8803
|
+
class Link < Stripe::RequestParams; end
|
8804
|
+
class MbWay < Stripe::RequestParams; end
|
8805
|
+
class Mobilepay < Stripe::RequestParams; end
|
8806
|
+
class Multibanco < Stripe::RequestParams; end
|
8798
8807
|
|
8799
8808
|
class NaverPay < Stripe::RequestParams
|
8800
8809
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -8836,8 +8845,7 @@ module Stripe
|
|
8836
8845
|
end
|
8837
8846
|
end
|
8838
8847
|
|
8839
|
-
class Oxxo < Stripe::RequestParams
|
8840
|
-
end
|
8848
|
+
class Oxxo < Stripe::RequestParams; end
|
8841
8849
|
|
8842
8850
|
class P24 < Stripe::RequestParams
|
8843
8851
|
# The customer's bank.
|
@@ -8848,17 +8856,10 @@ module Stripe
|
|
8848
8856
|
end
|
8849
8857
|
end
|
8850
8858
|
|
8851
|
-
class PayByBank < Stripe::RequestParams
|
8852
|
-
end
|
8853
|
-
|
8854
|
-
class
|
8855
|
-
end
|
8856
|
-
|
8857
|
-
class Paynow < Stripe::RequestParams
|
8858
|
-
end
|
8859
|
-
|
8860
|
-
class Paypal < Stripe::RequestParams
|
8861
|
-
end
|
8859
|
+
class PayByBank < Stripe::RequestParams; end
|
8860
|
+
class Payco < Stripe::RequestParams; end
|
8861
|
+
class Paynow < Stripe::RequestParams; end
|
8862
|
+
class Paypal < Stripe::RequestParams; end
|
8862
8863
|
|
8863
8864
|
class Payto < Stripe::RequestParams
|
8864
8865
|
# The account number for the bank account.
|
@@ -8875,14 +8876,9 @@ module Stripe
|
|
8875
8876
|
end
|
8876
8877
|
end
|
8877
8878
|
|
8878
|
-
class Pix < Stripe::RequestParams
|
8879
|
-
end
|
8880
|
-
|
8881
|
-
class Promptpay < Stripe::RequestParams
|
8882
|
-
end
|
8883
|
-
|
8884
|
-
class Qris < Stripe::RequestParams
|
8885
|
-
end
|
8879
|
+
class Pix < Stripe::RequestParams; end
|
8880
|
+
class Promptpay < Stripe::RequestParams; end
|
8881
|
+
class Qris < Stripe::RequestParams; end
|
8886
8882
|
|
8887
8883
|
class RadarOptions < Stripe::RequestParams
|
8888
8884
|
# 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.
|
@@ -8916,14 +8912,9 @@ module Stripe
|
|
8916
8912
|
end
|
8917
8913
|
end
|
8918
8914
|
|
8919
|
-
class RevolutPay < Stripe::RequestParams
|
8920
|
-
end
|
8921
|
-
|
8922
|
-
class SamsungPay < Stripe::RequestParams
|
8923
|
-
end
|
8924
|
-
|
8925
|
-
class Satispay < Stripe::RequestParams
|
8926
|
-
end
|
8915
|
+
class RevolutPay < Stripe::RequestParams; end
|
8916
|
+
class SamsungPay < Stripe::RequestParams; end
|
8917
|
+
class Satispay < Stripe::RequestParams; end
|
8927
8918
|
|
8928
8919
|
class SepaDebit < Stripe::RequestParams
|
8929
8920
|
# IBAN of the bank account.
|
@@ -8934,8 +8925,7 @@ module Stripe
|
|
8934
8925
|
end
|
8935
8926
|
end
|
8936
8927
|
|
8937
|
-
class Shopeepay < Stripe::RequestParams
|
8938
|
-
end
|
8928
|
+
class Shopeepay < Stripe::RequestParams; end
|
8939
8929
|
|
8940
8930
|
class Sofort < Stripe::RequestParams
|
8941
8931
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -8958,11 +8948,8 @@ module Stripe
|
|
8958
8948
|
end
|
8959
8949
|
end
|
8960
8950
|
|
8961
|
-
class Swish < Stripe::RequestParams
|
8962
|
-
end
|
8963
|
-
|
8964
|
-
class Twint < Stripe::RequestParams
|
8965
|
-
end
|
8951
|
+
class Swish < Stripe::RequestParams; end
|
8952
|
+
class Twint < Stripe::RequestParams; end
|
8966
8953
|
|
8967
8954
|
class UsBankAccount < Stripe::RequestParams
|
8968
8955
|
# Account holder type: individual or company.
|
@@ -8991,11 +8978,8 @@ module Stripe
|
|
8991
8978
|
end
|
8992
8979
|
end
|
8993
8980
|
|
8994
|
-
class WechatPay < Stripe::RequestParams
|
8995
|
-
end
|
8996
|
-
|
8997
|
-
class Zip < Stripe::RequestParams
|
8998
|
-
end
|
8981
|
+
class WechatPay < Stripe::RequestParams; end
|
8982
|
+
class Zip < Stripe::RequestParams; end
|
8999
8983
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
9000
8984
|
attr_accessor :acss_debit
|
9001
8985
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -10041,8 +10025,7 @@ module Stripe
|
|
10041
10025
|
end
|
10042
10026
|
end
|
10043
10027
|
|
10044
|
-
class InteracPresent < Stripe::RequestParams
|
10045
|
-
end
|
10028
|
+
class InteracPresent < Stripe::RequestParams; end
|
10046
10029
|
|
10047
10030
|
class KakaoPay < Stripe::RequestParams
|
10048
10031
|
# Controls when the funds are captured from the customer's account.
|
@@ -10317,8 +10300,7 @@ module Stripe
|
|
10317
10300
|
end
|
10318
10301
|
end
|
10319
10302
|
|
10320
|
-
class PayByBank < Stripe::RequestParams
|
10321
|
-
end
|
10303
|
+
class PayByBank < Stripe::RequestParams; end
|
10322
10304
|
|
10323
10305
|
class Payco < Stripe::RequestParams
|
10324
10306
|
# Controls when the funds are captured from the customer's account.
|
@@ -10553,8 +10535,7 @@ module Stripe
|
|
10553
10535
|
end
|
10554
10536
|
end
|
10555
10537
|
|
10556
|
-
class Rechnung < Stripe::RequestParams
|
10557
|
-
end
|
10538
|
+
class Rechnung < Stripe::RequestParams; end
|
10558
10539
|
|
10559
10540
|
class RevolutPay < Stripe::RequestParams
|
10560
10541
|
# Controls when the funds are captured from the customer's account.
|
@@ -10591,6 +10572,19 @@ module Stripe
|
|
10591
10572
|
end
|
10592
10573
|
end
|
10593
10574
|
|
10575
|
+
class Satispay < Stripe::RequestParams
|
10576
|
+
# Controls when the funds are captured from the customer's account.
|
10577
|
+
#
|
10578
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
10579
|
+
#
|
10580
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
10581
|
+
attr_accessor :capture_method
|
10582
|
+
|
10583
|
+
def initialize(capture_method: nil)
|
10584
|
+
@capture_method = capture_method
|
10585
|
+
end
|
10586
|
+
end
|
10587
|
+
|
10594
10588
|
class SepaDebit < Stripe::RequestParams
|
10595
10589
|
class MandateOptions < Stripe::RequestParams
|
10596
10590
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -10897,7 +10891,7 @@ module Stripe
|
|
10897
10891
|
attr_accessor :fpx
|
10898
10892
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
10899
10893
|
attr_accessor :giropay
|
10900
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
10894
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
10901
10895
|
attr_accessor :gopay
|
10902
10896
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
10903
10897
|
attr_accessor :grabpay
|
@@ -10953,6 +10947,8 @@ module Stripe
|
|
10953
10947
|
attr_accessor :revolut_pay
|
10954
10948
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
10955
10949
|
attr_accessor :samsung_pay
|
10950
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
10951
|
+
attr_accessor :satispay
|
10956
10952
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
10957
10953
|
attr_accessor :sepa_debit
|
10958
10954
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -11020,6 +11016,7 @@ module Stripe
|
|
11020
11016
|
rechnung: nil,
|
11021
11017
|
revolut_pay: nil,
|
11022
11018
|
samsung_pay: nil,
|
11019
|
+
satispay: nil,
|
11023
11020
|
sepa_debit: nil,
|
11024
11021
|
shopeepay: nil,
|
11025
11022
|
sofort: nil,
|
@@ -11077,6 +11074,7 @@ module Stripe
|
|
11077
11074
|
@rechnung = rechnung
|
11078
11075
|
@revolut_pay = revolut_pay
|
11079
11076
|
@samsung_pay = samsung_pay
|
11077
|
+
@satispay = satispay
|
11080
11078
|
@sepa_debit = sepa_debit
|
11081
11079
|
@shopeepay = shopeepay
|
11082
11080
|
@sofort = sofort
|
@@ -11150,8 +11148,6 @@ module Stripe
|
|
11150
11148
|
end
|
11151
11149
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
11152
11150
|
attr_accessor :application_fee_amount
|
11153
|
-
# Automations to be run during the PaymentIntent lifecycle
|
11154
|
-
attr_accessor :async_workflows
|
11155
11151
|
# Controls when the funds will be captured from the customer's account.
|
11156
11152
|
attr_accessor :capture_method
|
11157
11153
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
@@ -11164,6 +11160,8 @@ module Stripe
|
|
11164
11160
|
attr_accessor :expand
|
11165
11161
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
11166
11162
|
attr_accessor :fx_quote
|
11163
|
+
# Automations to be run during the PaymentIntent lifecycle
|
11164
|
+
attr_accessor :hooks
|
11167
11165
|
# ID of the mandate that's used for this payment.
|
11168
11166
|
attr_accessor :mandate
|
11169
11167
|
# Attribute for param field mandate_data
|
@@ -11173,6 +11171,7 @@ module Stripe
|
|
11173
11171
|
# Provides industry-specific information about the charge.
|
11174
11172
|
attr_accessor :payment_details
|
11175
11173
|
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
|
11174
|
+
# If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent.
|
11176
11175
|
attr_accessor :payment_method
|
11177
11176
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
11178
11177
|
# in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
|
@@ -11207,12 +11206,12 @@ module Stripe
|
|
11207
11206
|
|
11208
11207
|
def initialize(
|
11209
11208
|
application_fee_amount: nil,
|
11210
|
-
async_workflows: nil,
|
11211
11209
|
capture_method: nil,
|
11212
11210
|
confirmation_token: nil,
|
11213
11211
|
error_on_requires_action: nil,
|
11214
11212
|
expand: nil,
|
11215
11213
|
fx_quote: nil,
|
11214
|
+
hooks: nil,
|
11216
11215
|
mandate: nil,
|
11217
11216
|
mandate_data: nil,
|
11218
11217
|
off_session: nil,
|
@@ -11229,12 +11228,12 @@ module Stripe
|
|
11229
11228
|
use_stripe_sdk: nil
|
11230
11229
|
)
|
11231
11230
|
@application_fee_amount = application_fee_amount
|
11232
|
-
@async_workflows = async_workflows
|
11233
11231
|
@capture_method = capture_method
|
11234
11232
|
@confirmation_token = confirmation_token
|
11235
11233
|
@error_on_requires_action = error_on_requires_action
|
11236
11234
|
@expand = expand
|
11237
11235
|
@fx_quote = fx_quote
|
11236
|
+
@hooks = hooks
|
11238
11237
|
@mandate = mandate
|
11239
11238
|
@mandate_data = mandate_data
|
11240
11239
|
@off_session = off_session
|
@@ -11253,7 +11252,7 @@ module Stripe
|
|
11253
11252
|
end
|
11254
11253
|
|
11255
11254
|
class DecrementAuthorizationParams < Stripe::RequestParams
|
11256
|
-
class
|
11255
|
+
class Hooks < Stripe::RequestParams
|
11257
11256
|
class Inputs < Stripe::RequestParams
|
11258
11257
|
class Tax < Stripe::RequestParams
|
11259
11258
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -11290,12 +11289,12 @@ module Stripe
|
|
11290
11289
|
attr_accessor :amount
|
11291
11290
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
11292
11291
|
attr_accessor :application_fee_amount
|
11293
|
-
# Automations to be run during the PaymentIntent lifecycle
|
11294
|
-
attr_accessor :async_workflows
|
11295
11292
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
11296
11293
|
attr_accessor :description
|
11297
11294
|
# Specifies which fields in the response should be expanded.
|
11298
11295
|
attr_accessor :expand
|
11296
|
+
# Automations to be run during the PaymentIntent lifecycle
|
11297
|
+
attr_accessor :hooks
|
11299
11298
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
11300
11299
|
attr_accessor :metadata
|
11301
11300
|
# The parameters used to automatically create a transfer after the payment is captured.
|
@@ -11305,24 +11304,24 @@ module Stripe
|
|
11305
11304
|
def initialize(
|
11306
11305
|
amount: nil,
|
11307
11306
|
application_fee_amount: nil,
|
11308
|
-
async_workflows: nil,
|
11309
11307
|
description: nil,
|
11310
11308
|
expand: nil,
|
11309
|
+
hooks: nil,
|
11311
11310
|
metadata: nil,
|
11312
11311
|
transfer_data: nil
|
11313
11312
|
)
|
11314
11313
|
@amount = amount
|
11315
11314
|
@application_fee_amount = application_fee_amount
|
11316
|
-
@async_workflows = async_workflows
|
11317
11315
|
@description = description
|
11318
11316
|
@expand = expand
|
11317
|
+
@hooks = hooks
|
11319
11318
|
@metadata = metadata
|
11320
11319
|
@transfer_data = transfer_data
|
11321
11320
|
end
|
11322
11321
|
end
|
11323
11322
|
|
11324
11323
|
class IncrementAuthorizationParams < Stripe::RequestParams
|
11325
|
-
class
|
11324
|
+
class Hooks < Stripe::RequestParams
|
11326
11325
|
class Inputs < Stripe::RequestParams
|
11327
11326
|
class Tax < Stripe::RequestParams
|
11328
11327
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -11376,12 +11375,12 @@ module Stripe
|
|
11376
11375
|
attr_accessor :amount
|
11377
11376
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
11378
11377
|
attr_accessor :application_fee_amount
|
11379
|
-
# Automations to be run during the PaymentIntent lifecycle
|
11380
|
-
attr_accessor :async_workflows
|
11381
11378
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
11382
11379
|
attr_accessor :description
|
11383
11380
|
# Specifies which fields in the response should be expanded.
|
11384
11381
|
attr_accessor :expand
|
11382
|
+
# Automations to be run during the PaymentIntent lifecycle
|
11383
|
+
attr_accessor :hooks
|
11385
11384
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
11386
11385
|
attr_accessor :metadata
|
11387
11386
|
# Payment method-specific configuration for this PaymentIntent.
|
@@ -11395,9 +11394,9 @@ module Stripe
|
|
11395
11394
|
def initialize(
|
11396
11395
|
amount: nil,
|
11397
11396
|
application_fee_amount: nil,
|
11398
|
-
async_workflows: nil,
|
11399
11397
|
description: nil,
|
11400
11398
|
expand: nil,
|
11399
|
+
hooks: nil,
|
11401
11400
|
metadata: nil,
|
11402
11401
|
payment_method_options: nil,
|
11403
11402
|
statement_descriptor: nil,
|
@@ -11405,9 +11404,9 @@ module Stripe
|
|
11405
11404
|
)
|
11406
11405
|
@amount = amount
|
11407
11406
|
@application_fee_amount = application_fee_amount
|
11408
|
-
@async_workflows = async_workflows
|
11409
11407
|
@description = description
|
11410
11408
|
@expand = expand
|
11409
|
+
@hooks = hooks
|
11411
11410
|
@metadata = metadata
|
11412
11411
|
@payment_method_options = payment_method_options
|
11413
11412
|
@statement_descriptor = statement_descriptor
|
@@ -11464,11 +11463,11 @@ module Stripe
|
|
11464
11463
|
)
|
11465
11464
|
end
|
11466
11465
|
|
11467
|
-
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
|
11466
|
+
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
|
11468
11467
|
#
|
11469
11468
|
# After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
|
11470
11469
|
#
|
11471
|
-
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
11470
|
+
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
11472
11471
|
def cancel(intent, params = {}, opts = {})
|
11473
11472
|
request(
|
11474
11473
|
method: :post,
|
@@ -11483,7 +11482,7 @@ module Stripe
|
|
11483
11482
|
#
|
11484
11483
|
# Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
|
11485
11484
|
#
|
11486
|
-
# Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
|
11485
|
+
# Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
|
11487
11486
|
def capture(intent, params = {}, opts = {})
|
11488
11487
|
request(
|
11489
11488
|
method: :post,
|
@@ -11505,8 +11504,8 @@ module Stripe
|
|
11505
11504
|
# payment succeeds, the PaymentIntent will transition to the succeeded
|
11506
11505
|
# status (or requires_capture, if capture_method is set to manual).
|
11507
11506
|
# If the confirmation_method is automatic, payment may be attempted
|
11508
|
-
# using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
11509
|
-
# and the PaymentIntent's [client_secret](https://stripe.com/
|
11507
|
+
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
11508
|
+
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
|
11510
11509
|
# After next_actions are handled by the client, no additional
|
11511
11510
|
# confirmation is required to complete the payment.
|
11512
11511
|
# If the confirmation_method is manual, all payment attempts must be
|
@@ -11531,13 +11530,13 @@ module Stripe
|
|
11531
11530
|
|
11532
11531
|
# Creates a PaymentIntent object.
|
11533
11532
|
#
|
11534
|
-
# After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
|
11533
|
+
# After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
|
11535
11534
|
# to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
|
11536
11535
|
# with the Payment Intents API.
|
11537
11536
|
#
|
11538
11537
|
# When you use confirm=true during creation, it's equivalent to creating
|
11539
11538
|
# and confirming the PaymentIntent in the same call. You can use any parameters
|
11540
|
-
# available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
|
11539
|
+
# available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
|
11541
11540
|
# confirm=true.
|
11542
11541
|
def create(params = {}, opts = {})
|
11543
11542
|
request(
|
@@ -11550,9 +11549,9 @@ module Stripe
|
|
11550
11549
|
end
|
11551
11550
|
|
11552
11551
|
# Perform a decremental authorization on an eligible
|
11553
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
11552
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
11554
11553
|
# PaymentIntent's status must be requires_capture and
|
11555
|
-
# [decremental_authorization.status](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
11554
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
11556
11555
|
# must be available.
|
11557
11556
|
#
|
11558
11557
|
# Decremental authorizations decrease the authorized amount on your customer's card
|
@@ -11560,7 +11559,7 @@ module Stripe
|
|
11560
11559
|
#
|
11561
11560
|
# After decrement, the PaymentIntent object
|
11562
11561
|
# returns with the updated
|
11563
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
11562
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
11564
11563
|
# The PaymentIntent will now be capturable up to the new authorized amount.
|
11565
11564
|
#
|
11566
11565
|
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
@@ -11576,9 +11575,9 @@ module Stripe
|
|
11576
11575
|
end
|
11577
11576
|
|
11578
11577
|
# Perform an incremental authorization on an eligible
|
11579
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
11578
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
11580
11579
|
# PaymentIntent's status must be requires_capture and
|
11581
|
-
# [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
11580
|
+
# [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
11582
11581
|
# must be true.
|
11583
11582
|
#
|
11584
11583
|
# Incremental authorizations attempt to increase the authorized amount on
|
@@ -11589,16 +11588,16 @@ module Stripe
|
|
11589
11588
|
#
|
11590
11589
|
# If the incremental authorization succeeds, the PaymentIntent object
|
11591
11590
|
# returns with the updated
|
11592
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
11591
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
11593
11592
|
# If the incremental authorization fails, a
|
11594
|
-
# [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
|
11593
|
+
# [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
|
11595
11594
|
# fields on the PaymentIntent or Charge update. The PaymentIntent
|
11596
11595
|
# object remains capturable for the previously authorized amount.
|
11597
11596
|
#
|
11598
11597
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
11599
11598
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
11600
11599
|
#
|
11601
|
-
# Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
|
11600
|
+
# Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
|
11602
11601
|
def increment_authorization(intent, params = {}, opts = {})
|
11603
11602
|
request(
|
11604
11603
|
method: :post,
|
@@ -11624,7 +11623,7 @@ module Stripe
|
|
11624
11623
|
#
|
11625
11624
|
# You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
|
11626
11625
|
#
|
11627
|
-
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://stripe.com/
|
11626
|
+
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
|
11628
11627
|
def retrieve(intent, params = {}, opts = {})
|
11629
11628
|
request(
|
11630
11629
|
method: :get,
|
@@ -11635,7 +11634,7 @@ module Stripe
|
|
11635
11634
|
)
|
11636
11635
|
end
|
11637
11636
|
|
11638
|
-
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
11637
|
+
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
11639
11638
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
11640
11639
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
11641
11640
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -11666,7 +11665,7 @@ module Stripe
|
|
11666
11665
|
# PaymentIntent again. For example, updating the payment_method
|
11667
11666
|
# always requires you to confirm the PaymentIntent again. If you prefer to
|
11668
11667
|
# update and confirm at the same time, we recommend updating properties through
|
11669
|
-
# the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
|
11668
|
+
# the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
|
11670
11669
|
def update(intent, params = {}, opts = {})
|
11671
11670
|
request(
|
11672
11671
|
method: :post,
|