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
@@ -58,7 +58,16 @@ module Stripe
|
|
58
58
|
attr_reader :tip
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class AutomaticPaymentMethods < Stripe::StripeObject
|
62
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
63
|
+
#
|
64
|
+
# 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.
|
65
|
+
attr_reader :allow_redirects
|
66
|
+
# Automatically calculates compatible payment methods
|
67
|
+
attr_reader :enabled
|
68
|
+
end
|
69
|
+
|
70
|
+
class Hooks < Stripe::StripeObject
|
62
71
|
class Inputs < Stripe::StripeObject
|
63
72
|
class Tax < Stripe::StripeObject
|
64
73
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -71,15 +80,6 @@ module Stripe
|
|
71
80
|
attr_reader :inputs
|
72
81
|
end
|
73
82
|
|
74
|
-
class AutomaticPaymentMethods < Stripe::StripeObject
|
75
|
-
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
76
|
-
#
|
77
|
-
# 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.
|
78
|
-
attr_reader :allow_redirects
|
79
|
-
# Automatically calculates compatible payment methods
|
80
|
-
attr_reader :enabled
|
81
|
-
end
|
82
|
-
|
83
83
|
class LastPaymentError < Stripe::StripeObject
|
84
84
|
# For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
|
85
85
|
attr_reader :advice_code
|
@@ -694,7 +694,7 @@ module Stripe
|
|
694
694
|
attr_reader :redirect_to_url
|
695
695
|
# Attribute for field swish_handle_redirect_or_display_qr_code
|
696
696
|
attr_reader :swish_handle_redirect_or_display_qr_code
|
697
|
-
# Type of the next action to perform
|
697
|
+
# Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
698
698
|
attr_reader :type
|
699
699
|
# When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
|
700
700
|
attr_reader :use_stripe_sdk
|
@@ -730,7 +730,18 @@ module Stripe
|
|
730
730
|
attr_reader :recipient
|
731
731
|
end
|
732
732
|
|
733
|
+
class Distance < Stripe::StripeObject
|
734
|
+
# Distance traveled.
|
735
|
+
attr_reader :amount
|
736
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
737
|
+
attr_reader :unit
|
738
|
+
end
|
739
|
+
|
733
740
|
class Driver < Stripe::StripeObject
|
741
|
+
# Driver's identification number.
|
742
|
+
attr_reader :driver_identification_number
|
743
|
+
# Driver's tax number.
|
744
|
+
attr_reader :driver_tax_number
|
734
745
|
# Full name of the driver on the reservation.
|
735
746
|
attr_reader :name
|
736
747
|
end
|
@@ -782,6 +793,8 @@ module Stripe
|
|
782
793
|
attr_reader :days_rented
|
783
794
|
# Attribute for field delivery
|
784
795
|
attr_reader :delivery
|
796
|
+
# Attribute for field distance
|
797
|
+
attr_reader :distance
|
785
798
|
# The details of the drivers associated with the trip.
|
786
799
|
attr_reader :drivers
|
787
800
|
# List of additional charges being billed.
|
@@ -792,6 +805,8 @@ module Stripe
|
|
792
805
|
attr_reader :pickup_address
|
793
806
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
794
807
|
attr_reader :pickup_at
|
808
|
+
# Name of the pickup location.
|
809
|
+
attr_reader :pickup_location_name
|
795
810
|
# Rental rate.
|
796
811
|
attr_reader :rate_amount
|
797
812
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -802,8 +817,12 @@ module Stripe
|
|
802
817
|
attr_reader :return_address
|
803
818
|
# Car return time. Measured in seconds since the Unix epoch.
|
804
819
|
attr_reader :return_at
|
820
|
+
# Name of the return location.
|
821
|
+
attr_reader :return_location_name
|
805
822
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
806
823
|
attr_reader :tax_exempt
|
824
|
+
# The vehicle identification number of the car.
|
825
|
+
attr_reader :vehicle_identification_number
|
807
826
|
end
|
808
827
|
|
809
828
|
class EventDetails < Stripe::StripeObject
|
@@ -1038,7 +1057,10 @@ module Stripe
|
|
1038
1057
|
attr_reader :setup_future_usage
|
1039
1058
|
end
|
1040
1059
|
|
1041
|
-
class Billie < Stripe::StripeObject
|
1060
|
+
class Billie < Stripe::StripeObject
|
1061
|
+
# Controls when the funds will be captured from the customer's account.
|
1062
|
+
attr_reader :capture_method
|
1063
|
+
end
|
1042
1064
|
|
1043
1065
|
class Blik < Stripe::StripeObject
|
1044
1066
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -1623,6 +1645,11 @@ module Stripe
|
|
1623
1645
|
attr_reader :capture_method
|
1624
1646
|
end
|
1625
1647
|
|
1648
|
+
class Satispay < Stripe::StripeObject
|
1649
|
+
# Controls when the funds will be captured from the customer's account.
|
1650
|
+
attr_reader :capture_method
|
1651
|
+
end
|
1652
|
+
|
1626
1653
|
class SepaDebit < Stripe::StripeObject
|
1627
1654
|
class MandateOptions < Stripe::StripeObject
|
1628
1655
|
# 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'.
|
@@ -1869,6 +1896,8 @@ module Stripe
|
|
1869
1896
|
attr_reader :revolut_pay
|
1870
1897
|
# Attribute for field samsung_pay
|
1871
1898
|
attr_reader :samsung_pay
|
1899
|
+
# Attribute for field satispay
|
1900
|
+
attr_reader :satispay
|
1872
1901
|
# Attribute for field sepa_debit
|
1873
1902
|
attr_reader :sepa_debit
|
1874
1903
|
# Attribute for field shopeepay
|
@@ -2002,7 +2031,21 @@ module Stripe
|
|
2002
2031
|
end
|
2003
2032
|
|
2004
2033
|
class CreateParams < Stripe::RequestParams
|
2005
|
-
class
|
2034
|
+
class AutomaticPaymentMethods < Stripe::RequestParams
|
2035
|
+
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
2036
|
+
#
|
2037
|
+
# 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.
|
2038
|
+
attr_accessor :allow_redirects
|
2039
|
+
# Whether this feature is enabled.
|
2040
|
+
attr_accessor :enabled
|
2041
|
+
|
2042
|
+
def initialize(allow_redirects: nil, enabled: nil)
|
2043
|
+
@allow_redirects = allow_redirects
|
2044
|
+
@enabled = enabled
|
2045
|
+
end
|
2046
|
+
end
|
2047
|
+
|
2048
|
+
class Hooks < Stripe::RequestParams
|
2006
2049
|
class Inputs < Stripe::RequestParams
|
2007
2050
|
class Tax < Stripe::RequestParams
|
2008
2051
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -2027,24 +2070,9 @@ module Stripe
|
|
2027
2070
|
end
|
2028
2071
|
end
|
2029
2072
|
|
2030
|
-
class AutomaticPaymentMethods < Stripe::RequestParams
|
2031
|
-
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
2032
|
-
#
|
2033
|
-
# 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.
|
2034
|
-
attr_accessor :allow_redirects
|
2035
|
-
# Whether this feature is enabled.
|
2036
|
-
attr_accessor :enabled
|
2037
|
-
|
2038
|
-
def initialize(allow_redirects: nil, enabled: nil)
|
2039
|
-
@allow_redirects = allow_redirects
|
2040
|
-
@enabled = enabled
|
2041
|
-
end
|
2042
|
-
end
|
2043
|
-
|
2044
2073
|
class MandateData < Stripe::RequestParams
|
2045
2074
|
class CustomerAcceptance < Stripe::RequestParams
|
2046
|
-
class Offline < Stripe::RequestParams
|
2047
|
-
end
|
2075
|
+
class Offline < Stripe::RequestParams; end
|
2048
2076
|
|
2049
2077
|
class Online < Stripe::RequestParams
|
2050
2078
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -2118,11 +2146,29 @@ module Stripe
|
|
2118
2146
|
end
|
2119
2147
|
end
|
2120
2148
|
|
2149
|
+
class Distance < Stripe::RequestParams
|
2150
|
+
# Distance traveled.
|
2151
|
+
attr_accessor :amount
|
2152
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
2153
|
+
attr_accessor :unit
|
2154
|
+
|
2155
|
+
def initialize(amount: nil, unit: nil)
|
2156
|
+
@amount = amount
|
2157
|
+
@unit = unit
|
2158
|
+
end
|
2159
|
+
end
|
2160
|
+
|
2121
2161
|
class Driver < Stripe::RequestParams
|
2162
|
+
# Driver's identification number.
|
2163
|
+
attr_accessor :driver_identification_number
|
2164
|
+
# Driver's tax number.
|
2165
|
+
attr_accessor :driver_tax_number
|
2122
2166
|
# Full name of the person or entity on the car reservation.
|
2123
2167
|
attr_accessor :name
|
2124
2168
|
|
2125
|
-
def initialize(name: nil)
|
2169
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
2170
|
+
@driver_identification_number = driver_identification_number
|
2171
|
+
@driver_tax_number = driver_tax_number
|
2126
2172
|
@name = name
|
2127
2173
|
end
|
2128
2174
|
end
|
@@ -2206,6 +2252,8 @@ module Stripe
|
|
2206
2252
|
attr_accessor :days_rented
|
2207
2253
|
# Delivery details for this purchase.
|
2208
2254
|
attr_accessor :delivery
|
2255
|
+
# The details of the distance traveled during the rental period.
|
2256
|
+
attr_accessor :distance
|
2209
2257
|
# The details of the passengers in the travel reservation
|
2210
2258
|
attr_accessor :drivers
|
2211
2259
|
# List of additional charges being billed.
|
@@ -2216,6 +2264,8 @@ module Stripe
|
|
2216
2264
|
attr_accessor :pickup_address
|
2217
2265
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
2218
2266
|
attr_accessor :pickup_at
|
2267
|
+
# Name of the pickup location.
|
2268
|
+
attr_accessor :pickup_location_name
|
2219
2269
|
# Rental rate.
|
2220
2270
|
attr_accessor :rate_amount
|
2221
2271
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -2226,8 +2276,12 @@ module Stripe
|
|
2226
2276
|
attr_accessor :return_address
|
2227
2277
|
# Car return time. Measured in seconds since the Unix epoch.
|
2228
2278
|
attr_accessor :return_at
|
2279
|
+
# Name of the return location.
|
2280
|
+
attr_accessor :return_location_name
|
2229
2281
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
2230
2282
|
attr_accessor :tax_exempt
|
2283
|
+
# The vehicle identification number.
|
2284
|
+
attr_accessor :vehicle_identification_number
|
2231
2285
|
|
2232
2286
|
def initialize(
|
2233
2287
|
affiliate: nil,
|
@@ -2239,17 +2293,21 @@ module Stripe
|
|
2239
2293
|
customer_service_phone_number: nil,
|
2240
2294
|
days_rented: nil,
|
2241
2295
|
delivery: nil,
|
2296
|
+
distance: nil,
|
2242
2297
|
drivers: nil,
|
2243
2298
|
extra_charges: nil,
|
2244
2299
|
no_show: nil,
|
2245
2300
|
pickup_address: nil,
|
2246
2301
|
pickup_at: nil,
|
2302
|
+
pickup_location_name: nil,
|
2247
2303
|
rate_amount: nil,
|
2248
2304
|
rate_interval: nil,
|
2249
2305
|
renter_name: nil,
|
2250
2306
|
return_address: nil,
|
2251
2307
|
return_at: nil,
|
2252
|
-
|
2308
|
+
return_location_name: nil,
|
2309
|
+
tax_exempt: nil,
|
2310
|
+
vehicle_identification_number: nil
|
2253
2311
|
)
|
2254
2312
|
@affiliate = affiliate
|
2255
2313
|
@booking_number = booking_number
|
@@ -2260,17 +2318,21 @@ module Stripe
|
|
2260
2318
|
@customer_service_phone_number = customer_service_phone_number
|
2261
2319
|
@days_rented = days_rented
|
2262
2320
|
@delivery = delivery
|
2321
|
+
@distance = distance
|
2263
2322
|
@drivers = drivers
|
2264
2323
|
@extra_charges = extra_charges
|
2265
2324
|
@no_show = no_show
|
2266
2325
|
@pickup_address = pickup_address
|
2267
2326
|
@pickup_at = pickup_at
|
2327
|
+
@pickup_location_name = pickup_location_name
|
2268
2328
|
@rate_amount = rate_amount
|
2269
2329
|
@rate_interval = rate_interval
|
2270
2330
|
@renter_name = renter_name
|
2271
2331
|
@return_address = return_address
|
2272
2332
|
@return_at = return_at
|
2333
|
+
@return_location_name = return_location_name
|
2273
2334
|
@tax_exempt = tax_exempt
|
2335
|
+
@vehicle_identification_number = vehicle_identification_number
|
2274
2336
|
end
|
2275
2337
|
end
|
2276
2338
|
|
@@ -2768,20 +2830,11 @@ module Stripe
|
|
2768
2830
|
end
|
2769
2831
|
end
|
2770
2832
|
|
2771
|
-
class Affirm < Stripe::RequestParams
|
2772
|
-
end
|
2773
|
-
|
2774
|
-
class
|
2775
|
-
end
|
2776
|
-
|
2777
|
-
class Alipay < Stripe::RequestParams
|
2778
|
-
end
|
2779
|
-
|
2780
|
-
class Alma < Stripe::RequestParams
|
2781
|
-
end
|
2782
|
-
|
2783
|
-
class AmazonPay < Stripe::RequestParams
|
2784
|
-
end
|
2833
|
+
class Affirm < Stripe::RequestParams; end
|
2834
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
2835
|
+
class Alipay < Stripe::RequestParams; end
|
2836
|
+
class Alma < Stripe::RequestParams; end
|
2837
|
+
class AmazonPay < Stripe::RequestParams; end
|
2785
2838
|
|
2786
2839
|
class AuBecsDebit < Stripe::RequestParams
|
2787
2840
|
# The account number for the bank account.
|
@@ -2807,11 +2860,8 @@ module Stripe
|
|
2807
2860
|
end
|
2808
2861
|
end
|
2809
2862
|
|
2810
|
-
class Bancontact < Stripe::RequestParams
|
2811
|
-
end
|
2812
|
-
|
2813
|
-
class Billie < Stripe::RequestParams
|
2814
|
-
end
|
2863
|
+
class Bancontact < Stripe::RequestParams; end
|
2864
|
+
class Billie < Stripe::RequestParams; end
|
2815
2865
|
|
2816
2866
|
class BillingDetails < Stripe::RequestParams
|
2817
2867
|
class Address < Stripe::RequestParams
|
@@ -2864,8 +2914,7 @@ module Stripe
|
|
2864
2914
|
end
|
2865
2915
|
end
|
2866
2916
|
|
2867
|
-
class Blik < Stripe::RequestParams
|
2868
|
-
end
|
2917
|
+
class Blik < Stripe::RequestParams; end
|
2869
2918
|
|
2870
2919
|
class Boleto < Stripe::RequestParams
|
2871
2920
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -2876,11 +2925,8 @@ module Stripe
|
|
2876
2925
|
end
|
2877
2926
|
end
|
2878
2927
|
|
2879
|
-
class Cashapp < Stripe::RequestParams
|
2880
|
-
end
|
2881
|
-
|
2882
|
-
class CustomerBalance < Stripe::RequestParams
|
2883
|
-
end
|
2928
|
+
class Cashapp < Stripe::RequestParams; end
|
2929
|
+
class CustomerBalance < Stripe::RequestParams; end
|
2884
2930
|
|
2885
2931
|
class Eps < Stripe::RequestParams
|
2886
2932
|
# The customer's bank.
|
@@ -2903,14 +2949,9 @@ module Stripe
|
|
2903
2949
|
end
|
2904
2950
|
end
|
2905
2951
|
|
2906
|
-
class Giropay < Stripe::RequestParams
|
2907
|
-
end
|
2908
|
-
|
2909
|
-
class Gopay < Stripe::RequestParams
|
2910
|
-
end
|
2911
|
-
|
2912
|
-
class Grabpay < Stripe::RequestParams
|
2913
|
-
end
|
2952
|
+
class Giropay < Stripe::RequestParams; end
|
2953
|
+
class Gopay < Stripe::RequestParams; end
|
2954
|
+
class Grabpay < Stripe::RequestParams; end
|
2914
2955
|
|
2915
2956
|
class IdBankTransfer < Stripe::RequestParams
|
2916
2957
|
# Bank where the account is held.
|
@@ -2930,11 +2971,8 @@ module Stripe
|
|
2930
2971
|
end
|
2931
2972
|
end
|
2932
2973
|
|
2933
|
-
class InteracPresent < Stripe::RequestParams
|
2934
|
-
end
|
2935
|
-
|
2936
|
-
class KakaoPay < Stripe::RequestParams
|
2937
|
-
end
|
2974
|
+
class InteracPresent < Stripe::RequestParams; end
|
2975
|
+
class KakaoPay < Stripe::RequestParams; end
|
2938
2976
|
|
2939
2977
|
class Klarna < Stripe::RequestParams
|
2940
2978
|
class Dob < Stripe::RequestParams
|
@@ -2959,23 +2997,12 @@ module Stripe
|
|
2959
2997
|
end
|
2960
2998
|
end
|
2961
2999
|
|
2962
|
-
class Konbini < Stripe::RequestParams
|
2963
|
-
end
|
2964
|
-
|
2965
|
-
class
|
2966
|
-
end
|
2967
|
-
|
2968
|
-
class Link < Stripe::RequestParams
|
2969
|
-
end
|
2970
|
-
|
2971
|
-
class MbWay < Stripe::RequestParams
|
2972
|
-
end
|
2973
|
-
|
2974
|
-
class Mobilepay < Stripe::RequestParams
|
2975
|
-
end
|
2976
|
-
|
2977
|
-
class Multibanco < Stripe::RequestParams
|
2978
|
-
end
|
3000
|
+
class Konbini < Stripe::RequestParams; end
|
3001
|
+
class KrCard < Stripe::RequestParams; end
|
3002
|
+
class Link < Stripe::RequestParams; end
|
3003
|
+
class MbWay < Stripe::RequestParams; end
|
3004
|
+
class Mobilepay < Stripe::RequestParams; end
|
3005
|
+
class Multibanco < Stripe::RequestParams; end
|
2979
3006
|
|
2980
3007
|
class NaverPay < Stripe::RequestParams
|
2981
3008
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -3017,8 +3044,7 @@ module Stripe
|
|
3017
3044
|
end
|
3018
3045
|
end
|
3019
3046
|
|
3020
|
-
class Oxxo < Stripe::RequestParams
|
3021
|
-
end
|
3047
|
+
class Oxxo < Stripe::RequestParams; end
|
3022
3048
|
|
3023
3049
|
class P24 < Stripe::RequestParams
|
3024
3050
|
# The customer's bank.
|
@@ -3029,17 +3055,10 @@ module Stripe
|
|
3029
3055
|
end
|
3030
3056
|
end
|
3031
3057
|
|
3032
|
-
class PayByBank < Stripe::RequestParams
|
3033
|
-
end
|
3034
|
-
|
3035
|
-
class
|
3036
|
-
end
|
3037
|
-
|
3038
|
-
class Paynow < Stripe::RequestParams
|
3039
|
-
end
|
3040
|
-
|
3041
|
-
class Paypal < Stripe::RequestParams
|
3042
|
-
end
|
3058
|
+
class PayByBank < Stripe::RequestParams; end
|
3059
|
+
class Payco < Stripe::RequestParams; end
|
3060
|
+
class Paynow < Stripe::RequestParams; end
|
3061
|
+
class Paypal < Stripe::RequestParams; end
|
3043
3062
|
|
3044
3063
|
class Payto < Stripe::RequestParams
|
3045
3064
|
# The account number for the bank account.
|
@@ -3056,14 +3075,9 @@ module Stripe
|
|
3056
3075
|
end
|
3057
3076
|
end
|
3058
3077
|
|
3059
|
-
class Pix < Stripe::RequestParams
|
3060
|
-
end
|
3061
|
-
|
3062
|
-
class Promptpay < Stripe::RequestParams
|
3063
|
-
end
|
3064
|
-
|
3065
|
-
class Qris < Stripe::RequestParams
|
3066
|
-
end
|
3078
|
+
class Pix < Stripe::RequestParams; end
|
3079
|
+
class Promptpay < Stripe::RequestParams; end
|
3080
|
+
class Qris < Stripe::RequestParams; end
|
3067
3081
|
|
3068
3082
|
class RadarOptions < Stripe::RequestParams
|
3069
3083
|
# 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.
|
@@ -3097,14 +3111,9 @@ module Stripe
|
|
3097
3111
|
end
|
3098
3112
|
end
|
3099
3113
|
|
3100
|
-
class RevolutPay < Stripe::RequestParams
|
3101
|
-
end
|
3102
|
-
|
3103
|
-
class SamsungPay < Stripe::RequestParams
|
3104
|
-
end
|
3105
|
-
|
3106
|
-
class Satispay < Stripe::RequestParams
|
3107
|
-
end
|
3114
|
+
class RevolutPay < Stripe::RequestParams; end
|
3115
|
+
class SamsungPay < Stripe::RequestParams; end
|
3116
|
+
class Satispay < Stripe::RequestParams; end
|
3108
3117
|
|
3109
3118
|
class SepaDebit < Stripe::RequestParams
|
3110
3119
|
# IBAN of the bank account.
|
@@ -3115,8 +3124,7 @@ module Stripe
|
|
3115
3124
|
end
|
3116
3125
|
end
|
3117
3126
|
|
3118
|
-
class Shopeepay < Stripe::RequestParams
|
3119
|
-
end
|
3127
|
+
class Shopeepay < Stripe::RequestParams; end
|
3120
3128
|
|
3121
3129
|
class Sofort < Stripe::RequestParams
|
3122
3130
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -3139,11 +3147,8 @@ module Stripe
|
|
3139
3147
|
end
|
3140
3148
|
end
|
3141
3149
|
|
3142
|
-
class Swish < Stripe::RequestParams
|
3143
|
-
end
|
3144
|
-
|
3145
|
-
class Twint < Stripe::RequestParams
|
3146
|
-
end
|
3150
|
+
class Swish < Stripe::RequestParams; end
|
3151
|
+
class Twint < Stripe::RequestParams; end
|
3147
3152
|
|
3148
3153
|
class UsBankAccount < Stripe::RequestParams
|
3149
3154
|
# Account holder type: individual or company.
|
@@ -3172,11 +3177,8 @@ module Stripe
|
|
3172
3177
|
end
|
3173
3178
|
end
|
3174
3179
|
|
3175
|
-
class WechatPay < Stripe::RequestParams
|
3176
|
-
end
|
3177
|
-
|
3178
|
-
class Zip < Stripe::RequestParams
|
3179
|
-
end
|
3180
|
+
class WechatPay < Stripe::RequestParams; end
|
3181
|
+
class Zip < Stripe::RequestParams; end
|
3180
3182
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
3181
3183
|
attr_accessor :acss_debit
|
3182
3184
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -4222,8 +4224,7 @@ module Stripe
|
|
4222
4224
|
end
|
4223
4225
|
end
|
4224
4226
|
|
4225
|
-
class InteracPresent < Stripe::RequestParams
|
4226
|
-
end
|
4227
|
+
class InteracPresent < Stripe::RequestParams; end
|
4227
4228
|
|
4228
4229
|
class KakaoPay < Stripe::RequestParams
|
4229
4230
|
# Controls when the funds are captured from the customer's account.
|
@@ -4498,8 +4499,7 @@ module Stripe
|
|
4498
4499
|
end
|
4499
4500
|
end
|
4500
4501
|
|
4501
|
-
class PayByBank < Stripe::RequestParams
|
4502
|
-
end
|
4502
|
+
class PayByBank < Stripe::RequestParams; end
|
4503
4503
|
|
4504
4504
|
class Payco < Stripe::RequestParams
|
4505
4505
|
# Controls when the funds are captured from the customer's account.
|
@@ -4734,8 +4734,7 @@ module Stripe
|
|
4734
4734
|
end
|
4735
4735
|
end
|
4736
4736
|
|
4737
|
-
class Rechnung < Stripe::RequestParams
|
4738
|
-
end
|
4737
|
+
class Rechnung < Stripe::RequestParams; end
|
4739
4738
|
|
4740
4739
|
class RevolutPay < Stripe::RequestParams
|
4741
4740
|
# Controls when the funds are captured from the customer's account.
|
@@ -4772,6 +4771,19 @@ module Stripe
|
|
4772
4771
|
end
|
4773
4772
|
end
|
4774
4773
|
|
4774
|
+
class Satispay < Stripe::RequestParams
|
4775
|
+
# Controls when the funds are captured from the customer's account.
|
4776
|
+
#
|
4777
|
+
# 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.
|
4778
|
+
#
|
4779
|
+
# 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.
|
4780
|
+
attr_accessor :capture_method
|
4781
|
+
|
4782
|
+
def initialize(capture_method: nil)
|
4783
|
+
@capture_method = capture_method
|
4784
|
+
end
|
4785
|
+
end
|
4786
|
+
|
4775
4787
|
class SepaDebit < Stripe::RequestParams
|
4776
4788
|
class MandateOptions < Stripe::RequestParams
|
4777
4789
|
# 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'.
|
@@ -5078,7 +5090,7 @@ module Stripe
|
|
5078
5090
|
attr_accessor :fpx
|
5079
5091
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
5080
5092
|
attr_accessor :giropay
|
5081
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
5093
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
5082
5094
|
attr_accessor :gopay
|
5083
5095
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
5084
5096
|
attr_accessor :grabpay
|
@@ -5134,6 +5146,8 @@ module Stripe
|
|
5134
5146
|
attr_accessor :revolut_pay
|
5135
5147
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
5136
5148
|
attr_accessor :samsung_pay
|
5149
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
5150
|
+
attr_accessor :satispay
|
5137
5151
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
5138
5152
|
attr_accessor :sepa_debit
|
5139
5153
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -5201,6 +5215,7 @@ module Stripe
|
|
5201
5215
|
rechnung: nil,
|
5202
5216
|
revolut_pay: nil,
|
5203
5217
|
samsung_pay: nil,
|
5218
|
+
satispay: nil,
|
5204
5219
|
sepa_debit: nil,
|
5205
5220
|
shopeepay: nil,
|
5206
5221
|
sofort: nil,
|
@@ -5258,6 +5273,7 @@ module Stripe
|
|
5258
5273
|
@rechnung = rechnung
|
5259
5274
|
@revolut_pay = revolut_pay
|
5260
5275
|
@samsung_pay = samsung_pay
|
5276
|
+
@satispay = satispay
|
5261
5277
|
@sepa_debit = sepa_debit
|
5262
5278
|
@shopeepay = shopeepay
|
5263
5279
|
@sofort = sofort
|
@@ -5354,8 +5370,6 @@ module Stripe
|
|
5354
5370
|
attr_accessor :amount
|
5355
5371
|
# 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).
|
5356
5372
|
attr_accessor :application_fee_amount
|
5357
|
-
# Automations to be run during the PaymentIntent lifecycle
|
5358
|
-
attr_accessor :async_workflows
|
5359
5373
|
# 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.
|
5360
5374
|
attr_accessor :automatic_payment_methods
|
5361
5375
|
# Controls when the funds will be captured from the customer's account.
|
@@ -5390,6 +5404,8 @@ module Stripe
|
|
5390
5404
|
attr_accessor :expand
|
5391
5405
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
5392
5406
|
attr_accessor :fx_quote
|
5407
|
+
# Automations to be run during the PaymentIntent lifecycle
|
5408
|
+
attr_accessor :hooks
|
5393
5409
|
# 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).
|
5394
5410
|
attr_accessor :mandate
|
5395
5411
|
# 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).
|
@@ -5405,6 +5421,8 @@ module Stripe
|
|
5405
5421
|
# 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.
|
5406
5422
|
#
|
5407
5423
|
# 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.
|
5424
|
+
# 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.
|
5425
|
+
# end
|
5408
5426
|
attr_accessor :payment_method
|
5409
5427
|
# The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
|
5410
5428
|
attr_accessor :payment_method_configuration
|
@@ -5451,7 +5469,6 @@ module Stripe
|
|
5451
5469
|
def initialize(
|
5452
5470
|
amount: nil,
|
5453
5471
|
application_fee_amount: nil,
|
5454
|
-
async_workflows: nil,
|
5455
5472
|
automatic_payment_methods: nil,
|
5456
5473
|
capture_method: nil,
|
5457
5474
|
confirm: nil,
|
@@ -5464,6 +5481,7 @@ module Stripe
|
|
5464
5481
|
error_on_requires_action: nil,
|
5465
5482
|
expand: nil,
|
5466
5483
|
fx_quote: nil,
|
5484
|
+
hooks: nil,
|
5467
5485
|
mandate: nil,
|
5468
5486
|
mandate_data: nil,
|
5469
5487
|
metadata: nil,
|
@@ -5489,7 +5507,6 @@ module Stripe
|
|
5489
5507
|
)
|
5490
5508
|
@amount = amount
|
5491
5509
|
@application_fee_amount = application_fee_amount
|
5492
|
-
@async_workflows = async_workflows
|
5493
5510
|
@automatic_payment_methods = automatic_payment_methods
|
5494
5511
|
@capture_method = capture_method
|
5495
5512
|
@confirm = confirm
|
@@ -5502,6 +5519,7 @@ module Stripe
|
|
5502
5519
|
@error_on_requires_action = error_on_requires_action
|
5503
5520
|
@expand = expand
|
5504
5521
|
@fx_quote = fx_quote
|
5522
|
+
@hooks = hooks
|
5505
5523
|
@mandate = mandate
|
5506
5524
|
@mandate_data = mandate_data
|
5507
5525
|
@metadata = metadata
|
@@ -5528,7 +5546,7 @@ module Stripe
|
|
5528
5546
|
end
|
5529
5547
|
|
5530
5548
|
class UpdateParams < Stripe::RequestParams
|
5531
|
-
class
|
5549
|
+
class Hooks < Stripe::RequestParams
|
5532
5550
|
class Inputs < Stripe::RequestParams
|
5533
5551
|
class Tax < Stripe::RequestParams
|
5534
5552
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -5621,11 +5639,29 @@ module Stripe
|
|
5621
5639
|
end
|
5622
5640
|
end
|
5623
5641
|
|
5642
|
+
class Distance < Stripe::RequestParams
|
5643
|
+
# Distance traveled.
|
5644
|
+
attr_accessor :amount
|
5645
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
5646
|
+
attr_accessor :unit
|
5647
|
+
|
5648
|
+
def initialize(amount: nil, unit: nil)
|
5649
|
+
@amount = amount
|
5650
|
+
@unit = unit
|
5651
|
+
end
|
5652
|
+
end
|
5653
|
+
|
5624
5654
|
class Driver < Stripe::RequestParams
|
5655
|
+
# Driver's identification number.
|
5656
|
+
attr_accessor :driver_identification_number
|
5657
|
+
# Driver's tax number.
|
5658
|
+
attr_accessor :driver_tax_number
|
5625
5659
|
# Full name of the person or entity on the car reservation.
|
5626
5660
|
attr_accessor :name
|
5627
5661
|
|
5628
|
-
def initialize(name: nil)
|
5662
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
5663
|
+
@driver_identification_number = driver_identification_number
|
5664
|
+
@driver_tax_number = driver_tax_number
|
5629
5665
|
@name = name
|
5630
5666
|
end
|
5631
5667
|
end
|
@@ -5709,6 +5745,8 @@ module Stripe
|
|
5709
5745
|
attr_accessor :days_rented
|
5710
5746
|
# Delivery details for this purchase.
|
5711
5747
|
attr_accessor :delivery
|
5748
|
+
# The details of the distance traveled during the rental period.
|
5749
|
+
attr_accessor :distance
|
5712
5750
|
# The details of the passengers in the travel reservation
|
5713
5751
|
attr_accessor :drivers
|
5714
5752
|
# List of additional charges being billed.
|
@@ -5719,6 +5757,8 @@ module Stripe
|
|
5719
5757
|
attr_accessor :pickup_address
|
5720
5758
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
5721
5759
|
attr_accessor :pickup_at
|
5760
|
+
# Name of the pickup location.
|
5761
|
+
attr_accessor :pickup_location_name
|
5722
5762
|
# Rental rate.
|
5723
5763
|
attr_accessor :rate_amount
|
5724
5764
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -5729,8 +5769,12 @@ module Stripe
|
|
5729
5769
|
attr_accessor :return_address
|
5730
5770
|
# Car return time. Measured in seconds since the Unix epoch.
|
5731
5771
|
attr_accessor :return_at
|
5772
|
+
# Name of the return location.
|
5773
|
+
attr_accessor :return_location_name
|
5732
5774
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
5733
5775
|
attr_accessor :tax_exempt
|
5776
|
+
# The vehicle identification number.
|
5777
|
+
attr_accessor :vehicle_identification_number
|
5734
5778
|
|
5735
5779
|
def initialize(
|
5736
5780
|
affiliate: nil,
|
@@ -5742,17 +5786,21 @@ module Stripe
|
|
5742
5786
|
customer_service_phone_number: nil,
|
5743
5787
|
days_rented: nil,
|
5744
5788
|
delivery: nil,
|
5789
|
+
distance: nil,
|
5745
5790
|
drivers: nil,
|
5746
5791
|
extra_charges: nil,
|
5747
5792
|
no_show: nil,
|
5748
5793
|
pickup_address: nil,
|
5749
5794
|
pickup_at: nil,
|
5795
|
+
pickup_location_name: nil,
|
5750
5796
|
rate_amount: nil,
|
5751
5797
|
rate_interval: nil,
|
5752
5798
|
renter_name: nil,
|
5753
5799
|
return_address: nil,
|
5754
5800
|
return_at: nil,
|
5755
|
-
|
5801
|
+
return_location_name: nil,
|
5802
|
+
tax_exempt: nil,
|
5803
|
+
vehicle_identification_number: nil
|
5756
5804
|
)
|
5757
5805
|
@affiliate = affiliate
|
5758
5806
|
@booking_number = booking_number
|
@@ -5763,17 +5811,21 @@ module Stripe
|
|
5763
5811
|
@customer_service_phone_number = customer_service_phone_number
|
5764
5812
|
@days_rented = days_rented
|
5765
5813
|
@delivery = delivery
|
5814
|
+
@distance = distance
|
5766
5815
|
@drivers = drivers
|
5767
5816
|
@extra_charges = extra_charges
|
5768
5817
|
@no_show = no_show
|
5769
5818
|
@pickup_address = pickup_address
|
5770
5819
|
@pickup_at = pickup_at
|
5820
|
+
@pickup_location_name = pickup_location_name
|
5771
5821
|
@rate_amount = rate_amount
|
5772
5822
|
@rate_interval = rate_interval
|
5773
5823
|
@renter_name = renter_name
|
5774
5824
|
@return_address = return_address
|
5775
5825
|
@return_at = return_at
|
5826
|
+
@return_location_name = return_location_name
|
5776
5827
|
@tax_exempt = tax_exempt
|
5828
|
+
@vehicle_identification_number = vehicle_identification_number
|
5777
5829
|
end
|
5778
5830
|
end
|
5779
5831
|
|
@@ -6271,20 +6323,11 @@ module Stripe
|
|
6271
6323
|
end
|
6272
6324
|
end
|
6273
6325
|
|
6274
|
-
class Affirm < Stripe::RequestParams
|
6275
|
-
end
|
6276
|
-
|
6277
|
-
class
|
6278
|
-
end
|
6279
|
-
|
6280
|
-
class Alipay < Stripe::RequestParams
|
6281
|
-
end
|
6282
|
-
|
6283
|
-
class Alma < Stripe::RequestParams
|
6284
|
-
end
|
6285
|
-
|
6286
|
-
class AmazonPay < Stripe::RequestParams
|
6287
|
-
end
|
6326
|
+
class Affirm < Stripe::RequestParams; end
|
6327
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
6328
|
+
class Alipay < Stripe::RequestParams; end
|
6329
|
+
class Alma < Stripe::RequestParams; end
|
6330
|
+
class AmazonPay < Stripe::RequestParams; end
|
6288
6331
|
|
6289
6332
|
class AuBecsDebit < Stripe::RequestParams
|
6290
6333
|
# The account number for the bank account.
|
@@ -6310,11 +6353,8 @@ module Stripe
|
|
6310
6353
|
end
|
6311
6354
|
end
|
6312
6355
|
|
6313
|
-
class Bancontact < Stripe::RequestParams
|
6314
|
-
end
|
6315
|
-
|
6316
|
-
class Billie < Stripe::RequestParams
|
6317
|
-
end
|
6356
|
+
class Bancontact < Stripe::RequestParams; end
|
6357
|
+
class Billie < Stripe::RequestParams; end
|
6318
6358
|
|
6319
6359
|
class BillingDetails < Stripe::RequestParams
|
6320
6360
|
class Address < Stripe::RequestParams
|
@@ -6367,8 +6407,7 @@ module Stripe
|
|
6367
6407
|
end
|
6368
6408
|
end
|
6369
6409
|
|
6370
|
-
class Blik < Stripe::RequestParams
|
6371
|
-
end
|
6410
|
+
class Blik < Stripe::RequestParams; end
|
6372
6411
|
|
6373
6412
|
class Boleto < Stripe::RequestParams
|
6374
6413
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -6379,11 +6418,8 @@ module Stripe
|
|
6379
6418
|
end
|
6380
6419
|
end
|
6381
6420
|
|
6382
|
-
class Cashapp < Stripe::RequestParams
|
6383
|
-
end
|
6384
|
-
|
6385
|
-
class CustomerBalance < Stripe::RequestParams
|
6386
|
-
end
|
6421
|
+
class Cashapp < Stripe::RequestParams; end
|
6422
|
+
class CustomerBalance < Stripe::RequestParams; end
|
6387
6423
|
|
6388
6424
|
class Eps < Stripe::RequestParams
|
6389
6425
|
# The customer's bank.
|
@@ -6406,14 +6442,9 @@ module Stripe
|
|
6406
6442
|
end
|
6407
6443
|
end
|
6408
6444
|
|
6409
|
-
class Giropay < Stripe::RequestParams
|
6410
|
-
end
|
6411
|
-
|
6412
|
-
class Gopay < Stripe::RequestParams
|
6413
|
-
end
|
6414
|
-
|
6415
|
-
class Grabpay < Stripe::RequestParams
|
6416
|
-
end
|
6445
|
+
class Giropay < Stripe::RequestParams; end
|
6446
|
+
class Gopay < Stripe::RequestParams; end
|
6447
|
+
class Grabpay < Stripe::RequestParams; end
|
6417
6448
|
|
6418
6449
|
class IdBankTransfer < Stripe::RequestParams
|
6419
6450
|
# Bank where the account is held.
|
@@ -6433,11 +6464,8 @@ module Stripe
|
|
6433
6464
|
end
|
6434
6465
|
end
|
6435
6466
|
|
6436
|
-
class InteracPresent < Stripe::RequestParams
|
6437
|
-
end
|
6438
|
-
|
6439
|
-
class KakaoPay < Stripe::RequestParams
|
6440
|
-
end
|
6467
|
+
class InteracPresent < Stripe::RequestParams; end
|
6468
|
+
class KakaoPay < Stripe::RequestParams; end
|
6441
6469
|
|
6442
6470
|
class Klarna < Stripe::RequestParams
|
6443
6471
|
class Dob < Stripe::RequestParams
|
@@ -6462,23 +6490,12 @@ module Stripe
|
|
6462
6490
|
end
|
6463
6491
|
end
|
6464
6492
|
|
6465
|
-
class Konbini < Stripe::RequestParams
|
6466
|
-
end
|
6467
|
-
|
6468
|
-
class
|
6469
|
-
end
|
6470
|
-
|
6471
|
-
class Link < Stripe::RequestParams
|
6472
|
-
end
|
6473
|
-
|
6474
|
-
class MbWay < Stripe::RequestParams
|
6475
|
-
end
|
6476
|
-
|
6477
|
-
class Mobilepay < Stripe::RequestParams
|
6478
|
-
end
|
6479
|
-
|
6480
|
-
class Multibanco < Stripe::RequestParams
|
6481
|
-
end
|
6493
|
+
class Konbini < Stripe::RequestParams; end
|
6494
|
+
class KrCard < Stripe::RequestParams; end
|
6495
|
+
class Link < Stripe::RequestParams; end
|
6496
|
+
class MbWay < Stripe::RequestParams; end
|
6497
|
+
class Mobilepay < Stripe::RequestParams; end
|
6498
|
+
class Multibanco < Stripe::RequestParams; end
|
6482
6499
|
|
6483
6500
|
class NaverPay < Stripe::RequestParams
|
6484
6501
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -6520,8 +6537,7 @@ module Stripe
|
|
6520
6537
|
end
|
6521
6538
|
end
|
6522
6539
|
|
6523
|
-
class Oxxo < Stripe::RequestParams
|
6524
|
-
end
|
6540
|
+
class Oxxo < Stripe::RequestParams; end
|
6525
6541
|
|
6526
6542
|
class P24 < Stripe::RequestParams
|
6527
6543
|
# The customer's bank.
|
@@ -6532,17 +6548,10 @@ module Stripe
|
|
6532
6548
|
end
|
6533
6549
|
end
|
6534
6550
|
|
6535
|
-
class PayByBank < Stripe::RequestParams
|
6536
|
-
end
|
6537
|
-
|
6538
|
-
class
|
6539
|
-
end
|
6540
|
-
|
6541
|
-
class Paynow < Stripe::RequestParams
|
6542
|
-
end
|
6543
|
-
|
6544
|
-
class Paypal < Stripe::RequestParams
|
6545
|
-
end
|
6551
|
+
class PayByBank < Stripe::RequestParams; end
|
6552
|
+
class Payco < Stripe::RequestParams; end
|
6553
|
+
class Paynow < Stripe::RequestParams; end
|
6554
|
+
class Paypal < Stripe::RequestParams; end
|
6546
6555
|
|
6547
6556
|
class Payto < Stripe::RequestParams
|
6548
6557
|
# The account number for the bank account.
|
@@ -6559,14 +6568,9 @@ module Stripe
|
|
6559
6568
|
end
|
6560
6569
|
end
|
6561
6570
|
|
6562
|
-
class Pix < Stripe::RequestParams
|
6563
|
-
end
|
6564
|
-
|
6565
|
-
class Promptpay < Stripe::RequestParams
|
6566
|
-
end
|
6567
|
-
|
6568
|
-
class Qris < Stripe::RequestParams
|
6569
|
-
end
|
6571
|
+
class Pix < Stripe::RequestParams; end
|
6572
|
+
class Promptpay < Stripe::RequestParams; end
|
6573
|
+
class Qris < Stripe::RequestParams; end
|
6570
6574
|
|
6571
6575
|
class RadarOptions < Stripe::RequestParams
|
6572
6576
|
# 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.
|
@@ -6600,14 +6604,9 @@ module Stripe
|
|
6600
6604
|
end
|
6601
6605
|
end
|
6602
6606
|
|
6603
|
-
class RevolutPay < Stripe::RequestParams
|
6604
|
-
end
|
6605
|
-
|
6606
|
-
class SamsungPay < Stripe::RequestParams
|
6607
|
-
end
|
6608
|
-
|
6609
|
-
class Satispay < Stripe::RequestParams
|
6610
|
-
end
|
6607
|
+
class RevolutPay < Stripe::RequestParams; end
|
6608
|
+
class SamsungPay < Stripe::RequestParams; end
|
6609
|
+
class Satispay < Stripe::RequestParams; end
|
6611
6610
|
|
6612
6611
|
class SepaDebit < Stripe::RequestParams
|
6613
6612
|
# IBAN of the bank account.
|
@@ -6618,8 +6617,7 @@ module Stripe
|
|
6618
6617
|
end
|
6619
6618
|
end
|
6620
6619
|
|
6621
|
-
class Shopeepay < Stripe::RequestParams
|
6622
|
-
end
|
6620
|
+
class Shopeepay < Stripe::RequestParams; end
|
6623
6621
|
|
6624
6622
|
class Sofort < Stripe::RequestParams
|
6625
6623
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -6642,11 +6640,8 @@ module Stripe
|
|
6642
6640
|
end
|
6643
6641
|
end
|
6644
6642
|
|
6645
|
-
class Swish < Stripe::RequestParams
|
6646
|
-
end
|
6647
|
-
|
6648
|
-
class Twint < Stripe::RequestParams
|
6649
|
-
end
|
6643
|
+
class Swish < Stripe::RequestParams; end
|
6644
|
+
class Twint < Stripe::RequestParams; end
|
6650
6645
|
|
6651
6646
|
class UsBankAccount < Stripe::RequestParams
|
6652
6647
|
# Account holder type: individual or company.
|
@@ -6675,11 +6670,8 @@ module Stripe
|
|
6675
6670
|
end
|
6676
6671
|
end
|
6677
6672
|
|
6678
|
-
class WechatPay < Stripe::RequestParams
|
6679
|
-
end
|
6680
|
-
|
6681
|
-
class Zip < Stripe::RequestParams
|
6682
|
-
end
|
6673
|
+
class WechatPay < Stripe::RequestParams; end
|
6674
|
+
class Zip < Stripe::RequestParams; end
|
6683
6675
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
6684
6676
|
attr_accessor :acss_debit
|
6685
6677
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -7725,8 +7717,7 @@ module Stripe
|
|
7725
7717
|
end
|
7726
7718
|
end
|
7727
7719
|
|
7728
|
-
class InteracPresent < Stripe::RequestParams
|
7729
|
-
end
|
7720
|
+
class InteracPresent < Stripe::RequestParams; end
|
7730
7721
|
|
7731
7722
|
class KakaoPay < Stripe::RequestParams
|
7732
7723
|
# Controls when the funds are captured from the customer's account.
|
@@ -8001,8 +7992,7 @@ module Stripe
|
|
8001
7992
|
end
|
8002
7993
|
end
|
8003
7994
|
|
8004
|
-
class PayByBank < Stripe::RequestParams
|
8005
|
-
end
|
7995
|
+
class PayByBank < Stripe::RequestParams; end
|
8006
7996
|
|
8007
7997
|
class Payco < Stripe::RequestParams
|
8008
7998
|
# Controls when the funds are captured from the customer's account.
|
@@ -8237,8 +8227,7 @@ module Stripe
|
|
8237
8227
|
end
|
8238
8228
|
end
|
8239
8229
|
|
8240
|
-
class Rechnung < Stripe::RequestParams
|
8241
|
-
end
|
8230
|
+
class Rechnung < Stripe::RequestParams; end
|
8242
8231
|
|
8243
8232
|
class RevolutPay < Stripe::RequestParams
|
8244
8233
|
# Controls when the funds are captured from the customer's account.
|
@@ -8275,6 +8264,19 @@ module Stripe
|
|
8275
8264
|
end
|
8276
8265
|
end
|
8277
8266
|
|
8267
|
+
class Satispay < Stripe::RequestParams
|
8268
|
+
# Controls when the funds are captured from the customer's account.
|
8269
|
+
#
|
8270
|
+
# 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.
|
8271
|
+
#
|
8272
|
+
# 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.
|
8273
|
+
attr_accessor :capture_method
|
8274
|
+
|
8275
|
+
def initialize(capture_method: nil)
|
8276
|
+
@capture_method = capture_method
|
8277
|
+
end
|
8278
|
+
end
|
8279
|
+
|
8278
8280
|
class SepaDebit < Stripe::RequestParams
|
8279
8281
|
class MandateOptions < Stripe::RequestParams
|
8280
8282
|
# 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'.
|
@@ -8581,7 +8583,7 @@ module Stripe
|
|
8581
8583
|
attr_accessor :fpx
|
8582
8584
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
8583
8585
|
attr_accessor :giropay
|
8584
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
8586
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
8585
8587
|
attr_accessor :gopay
|
8586
8588
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
8587
8589
|
attr_accessor :grabpay
|
@@ -8637,6 +8639,8 @@ module Stripe
|
|
8637
8639
|
attr_accessor :revolut_pay
|
8638
8640
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
8639
8641
|
attr_accessor :samsung_pay
|
8642
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
8643
|
+
attr_accessor :satispay
|
8640
8644
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
8641
8645
|
attr_accessor :sepa_debit
|
8642
8646
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -8704,6 +8708,7 @@ module Stripe
|
|
8704
8708
|
rechnung: nil,
|
8705
8709
|
revolut_pay: nil,
|
8706
8710
|
samsung_pay: nil,
|
8711
|
+
satispay: nil,
|
8707
8712
|
sepa_debit: nil,
|
8708
8713
|
shopeepay: nil,
|
8709
8714
|
sofort: nil,
|
@@ -8761,6 +8766,7 @@ module Stripe
|
|
8761
8766
|
@rechnung = rechnung
|
8762
8767
|
@revolut_pay = revolut_pay
|
8763
8768
|
@samsung_pay = samsung_pay
|
8769
|
+
@satispay = satispay
|
8764
8770
|
@sepa_debit = sepa_debit
|
8765
8771
|
@shopeepay = shopeepay
|
8766
8772
|
@sofort = sofort
|
@@ -8836,8 +8842,6 @@ module Stripe
|
|
8836
8842
|
attr_accessor :amount
|
8837
8843
|
# 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).
|
8838
8844
|
attr_accessor :application_fee_amount
|
8839
|
-
# Automations to be run during the PaymentIntent lifecycle
|
8840
|
-
attr_accessor :async_workflows
|
8841
8845
|
# Controls when the funds will be captured from the customer's account.
|
8842
8846
|
attr_accessor :capture_method
|
8843
8847
|
# 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).
|
@@ -8860,6 +8864,8 @@ module Stripe
|
|
8860
8864
|
attr_accessor :expand
|
8861
8865
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
8862
8866
|
attr_accessor :fx_quote
|
8867
|
+
# Automations to be run during the PaymentIntent lifecycle
|
8868
|
+
attr_accessor :hooks
|
8863
8869
|
# This hash contains details about the Mandate to create.
|
8864
8870
|
attr_accessor :mandate_data
|
8865
8871
|
# 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`.
|
@@ -8906,7 +8912,6 @@ module Stripe
|
|
8906
8912
|
def initialize(
|
8907
8913
|
amount: nil,
|
8908
8914
|
application_fee_amount: nil,
|
8909
|
-
async_workflows: nil,
|
8910
8915
|
capture_method: nil,
|
8911
8916
|
currency: nil,
|
8912
8917
|
customer: nil,
|
@@ -8914,6 +8919,7 @@ module Stripe
|
|
8914
8919
|
description: nil,
|
8915
8920
|
expand: nil,
|
8916
8921
|
fx_quote: nil,
|
8922
|
+
hooks: nil,
|
8917
8923
|
mandate_data: nil,
|
8918
8924
|
metadata: nil,
|
8919
8925
|
payment_details: nil,
|
@@ -8932,7 +8938,6 @@ module Stripe
|
|
8932
8938
|
)
|
8933
8939
|
@amount = amount
|
8934
8940
|
@application_fee_amount = application_fee_amount
|
8935
|
-
@async_workflows = async_workflows
|
8936
8941
|
@capture_method = capture_method
|
8937
8942
|
@currency = currency
|
8938
8943
|
@customer = customer
|
@@ -8940,6 +8945,7 @@ module Stripe
|
|
8940
8945
|
@description = description
|
8941
8946
|
@expand = expand
|
8942
8947
|
@fx_quote = fx_quote
|
8948
|
+
@hooks = hooks
|
8943
8949
|
@mandate_data = mandate_data
|
8944
8950
|
@metadata = metadata
|
8945
8951
|
@payment_details = payment_details
|
@@ -9008,7 +9014,7 @@ module Stripe
|
|
9008
9014
|
end
|
9009
9015
|
|
9010
9016
|
class CaptureParams < Stripe::RequestParams
|
9011
|
-
class
|
9017
|
+
class Hooks < Stripe::RequestParams
|
9012
9018
|
class Inputs < Stripe::RequestParams
|
9013
9019
|
class Tax < Stripe::RequestParams
|
9014
9020
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -9070,11 +9076,29 @@ module Stripe
|
|
9070
9076
|
end
|
9071
9077
|
end
|
9072
9078
|
|
9079
|
+
class Distance < Stripe::RequestParams
|
9080
|
+
# Distance traveled.
|
9081
|
+
attr_accessor :amount
|
9082
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
9083
|
+
attr_accessor :unit
|
9084
|
+
|
9085
|
+
def initialize(amount: nil, unit: nil)
|
9086
|
+
@amount = amount
|
9087
|
+
@unit = unit
|
9088
|
+
end
|
9089
|
+
end
|
9090
|
+
|
9073
9091
|
class Driver < Stripe::RequestParams
|
9092
|
+
# Driver's identification number.
|
9093
|
+
attr_accessor :driver_identification_number
|
9094
|
+
# Driver's tax number.
|
9095
|
+
attr_accessor :driver_tax_number
|
9074
9096
|
# Full name of the person or entity on the car reservation.
|
9075
9097
|
attr_accessor :name
|
9076
9098
|
|
9077
|
-
def initialize(name: nil)
|
9099
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
9100
|
+
@driver_identification_number = driver_identification_number
|
9101
|
+
@driver_tax_number = driver_tax_number
|
9078
9102
|
@name = name
|
9079
9103
|
end
|
9080
9104
|
end
|
@@ -9158,6 +9182,8 @@ module Stripe
|
|
9158
9182
|
attr_accessor :days_rented
|
9159
9183
|
# Delivery details for this purchase.
|
9160
9184
|
attr_accessor :delivery
|
9185
|
+
# The details of the distance traveled during the rental period.
|
9186
|
+
attr_accessor :distance
|
9161
9187
|
# The details of the passengers in the travel reservation
|
9162
9188
|
attr_accessor :drivers
|
9163
9189
|
# List of additional charges being billed.
|
@@ -9168,6 +9194,8 @@ module Stripe
|
|
9168
9194
|
attr_accessor :pickup_address
|
9169
9195
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
9170
9196
|
attr_accessor :pickup_at
|
9197
|
+
# Name of the pickup location.
|
9198
|
+
attr_accessor :pickup_location_name
|
9171
9199
|
# Rental rate.
|
9172
9200
|
attr_accessor :rate_amount
|
9173
9201
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -9178,8 +9206,12 @@ module Stripe
|
|
9178
9206
|
attr_accessor :return_address
|
9179
9207
|
# Car return time. Measured in seconds since the Unix epoch.
|
9180
9208
|
attr_accessor :return_at
|
9209
|
+
# Name of the return location.
|
9210
|
+
attr_accessor :return_location_name
|
9181
9211
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
9182
9212
|
attr_accessor :tax_exempt
|
9213
|
+
# The vehicle identification number.
|
9214
|
+
attr_accessor :vehicle_identification_number
|
9183
9215
|
|
9184
9216
|
def initialize(
|
9185
9217
|
affiliate: nil,
|
@@ -9191,17 +9223,21 @@ module Stripe
|
|
9191
9223
|
customer_service_phone_number: nil,
|
9192
9224
|
days_rented: nil,
|
9193
9225
|
delivery: nil,
|
9226
|
+
distance: nil,
|
9194
9227
|
drivers: nil,
|
9195
9228
|
extra_charges: nil,
|
9196
9229
|
no_show: nil,
|
9197
9230
|
pickup_address: nil,
|
9198
9231
|
pickup_at: nil,
|
9232
|
+
pickup_location_name: nil,
|
9199
9233
|
rate_amount: nil,
|
9200
9234
|
rate_interval: nil,
|
9201
9235
|
renter_name: nil,
|
9202
9236
|
return_address: nil,
|
9203
9237
|
return_at: nil,
|
9204
|
-
|
9238
|
+
return_location_name: nil,
|
9239
|
+
tax_exempt: nil,
|
9240
|
+
vehicle_identification_number: nil
|
9205
9241
|
)
|
9206
9242
|
@affiliate = affiliate
|
9207
9243
|
@booking_number = booking_number
|
@@ -9212,17 +9248,21 @@ module Stripe
|
|
9212
9248
|
@customer_service_phone_number = customer_service_phone_number
|
9213
9249
|
@days_rented = days_rented
|
9214
9250
|
@delivery = delivery
|
9251
|
+
@distance = distance
|
9215
9252
|
@drivers = drivers
|
9216
9253
|
@extra_charges = extra_charges
|
9217
9254
|
@no_show = no_show
|
9218
9255
|
@pickup_address = pickup_address
|
9219
9256
|
@pickup_at = pickup_at
|
9257
|
+
@pickup_location_name = pickup_location_name
|
9220
9258
|
@rate_amount = rate_amount
|
9221
9259
|
@rate_interval = rate_interval
|
9222
9260
|
@renter_name = renter_name
|
9223
9261
|
@return_address = return_address
|
9224
9262
|
@return_at = return_at
|
9263
|
+
@return_location_name = return_location_name
|
9225
9264
|
@tax_exempt = tax_exempt
|
9265
|
+
@vehicle_identification_number = vehicle_identification_number
|
9226
9266
|
end
|
9227
9267
|
end
|
9228
9268
|
|
@@ -9716,12 +9756,12 @@ module Stripe
|
|
9716
9756
|
attr_accessor :amount_to_capture
|
9717
9757
|
# 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).
|
9718
9758
|
attr_accessor :application_fee_amount
|
9719
|
-
# Automations to be run during the PaymentIntent lifecycle
|
9720
|
-
attr_accessor :async_workflows
|
9721
9759
|
# Specifies which fields in the response should be expanded.
|
9722
9760
|
attr_accessor :expand
|
9723
9761
|
# 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.
|
9724
9762
|
attr_accessor :final_capture
|
9763
|
+
# Automations to be run during the PaymentIntent lifecycle
|
9764
|
+
attr_accessor :hooks
|
9725
9765
|
# 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`.
|
9726
9766
|
attr_accessor :metadata
|
9727
9767
|
# Provides industry-specific information about the charge.
|
@@ -9739,9 +9779,9 @@ module Stripe
|
|
9739
9779
|
def initialize(
|
9740
9780
|
amount_to_capture: nil,
|
9741
9781
|
application_fee_amount: nil,
|
9742
|
-
async_workflows: nil,
|
9743
9782
|
expand: nil,
|
9744
9783
|
final_capture: nil,
|
9784
|
+
hooks: nil,
|
9745
9785
|
metadata: nil,
|
9746
9786
|
payment_details: nil,
|
9747
9787
|
statement_descriptor: nil,
|
@@ -9750,9 +9790,9 @@ module Stripe
|
|
9750
9790
|
)
|
9751
9791
|
@amount_to_capture = amount_to_capture
|
9752
9792
|
@application_fee_amount = application_fee_amount
|
9753
|
-
@async_workflows = async_workflows
|
9754
9793
|
@expand = expand
|
9755
9794
|
@final_capture = final_capture
|
9795
|
+
@hooks = hooks
|
9756
9796
|
@metadata = metadata
|
9757
9797
|
@payment_details = payment_details
|
9758
9798
|
@statement_descriptor = statement_descriptor
|
@@ -9762,7 +9802,7 @@ module Stripe
|
|
9762
9802
|
end
|
9763
9803
|
|
9764
9804
|
class ConfirmParams < Stripe::RequestParams
|
9765
|
-
class
|
9805
|
+
class Hooks < Stripe::RequestParams
|
9766
9806
|
class Inputs < Stripe::RequestParams
|
9767
9807
|
class Tax < Stripe::RequestParams
|
9768
9808
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -9789,8 +9829,7 @@ module Stripe
|
|
9789
9829
|
|
9790
9830
|
class MandateData < Stripe::RequestParams
|
9791
9831
|
class CustomerAcceptance < Stripe::RequestParams
|
9792
|
-
class Offline < Stripe::RequestParams
|
9793
|
-
end
|
9832
|
+
class Offline < Stripe::RequestParams; end
|
9794
9833
|
|
9795
9834
|
class Online < Stripe::RequestParams
|
9796
9835
|
# The IP address from which the Mandate was accepted by the customer.
|
@@ -9864,11 +9903,29 @@ module Stripe
|
|
9864
9903
|
end
|
9865
9904
|
end
|
9866
9905
|
|
9906
|
+
class Distance < Stripe::RequestParams
|
9907
|
+
# Distance traveled.
|
9908
|
+
attr_accessor :amount
|
9909
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
9910
|
+
attr_accessor :unit
|
9911
|
+
|
9912
|
+
def initialize(amount: nil, unit: nil)
|
9913
|
+
@amount = amount
|
9914
|
+
@unit = unit
|
9915
|
+
end
|
9916
|
+
end
|
9917
|
+
|
9867
9918
|
class Driver < Stripe::RequestParams
|
9919
|
+
# Driver's identification number.
|
9920
|
+
attr_accessor :driver_identification_number
|
9921
|
+
# Driver's tax number.
|
9922
|
+
attr_accessor :driver_tax_number
|
9868
9923
|
# Full name of the person or entity on the car reservation.
|
9869
9924
|
attr_accessor :name
|
9870
9925
|
|
9871
|
-
def initialize(name: nil)
|
9926
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
9927
|
+
@driver_identification_number = driver_identification_number
|
9928
|
+
@driver_tax_number = driver_tax_number
|
9872
9929
|
@name = name
|
9873
9930
|
end
|
9874
9931
|
end
|
@@ -9952,6 +10009,8 @@ module Stripe
|
|
9952
10009
|
attr_accessor :days_rented
|
9953
10010
|
# Delivery details for this purchase.
|
9954
10011
|
attr_accessor :delivery
|
10012
|
+
# The details of the distance traveled during the rental period.
|
10013
|
+
attr_accessor :distance
|
9955
10014
|
# The details of the passengers in the travel reservation
|
9956
10015
|
attr_accessor :drivers
|
9957
10016
|
# List of additional charges being billed.
|
@@ -9962,6 +10021,8 @@ module Stripe
|
|
9962
10021
|
attr_accessor :pickup_address
|
9963
10022
|
# Car pick-up time. Measured in seconds since the Unix epoch.
|
9964
10023
|
attr_accessor :pickup_at
|
10024
|
+
# Name of the pickup location.
|
10025
|
+
attr_accessor :pickup_location_name
|
9965
10026
|
# Rental rate.
|
9966
10027
|
attr_accessor :rate_amount
|
9967
10028
|
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
@@ -9972,8 +10033,12 @@ module Stripe
|
|
9972
10033
|
attr_accessor :return_address
|
9973
10034
|
# Car return time. Measured in seconds since the Unix epoch.
|
9974
10035
|
attr_accessor :return_at
|
10036
|
+
# Name of the return location.
|
10037
|
+
attr_accessor :return_location_name
|
9975
10038
|
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
9976
10039
|
attr_accessor :tax_exempt
|
10040
|
+
# The vehicle identification number.
|
10041
|
+
attr_accessor :vehicle_identification_number
|
9977
10042
|
|
9978
10043
|
def initialize(
|
9979
10044
|
affiliate: nil,
|
@@ -9985,17 +10050,21 @@ module Stripe
|
|
9985
10050
|
customer_service_phone_number: nil,
|
9986
10051
|
days_rented: nil,
|
9987
10052
|
delivery: nil,
|
10053
|
+
distance: nil,
|
9988
10054
|
drivers: nil,
|
9989
10055
|
extra_charges: nil,
|
9990
10056
|
no_show: nil,
|
9991
10057
|
pickup_address: nil,
|
9992
10058
|
pickup_at: nil,
|
10059
|
+
pickup_location_name: nil,
|
9993
10060
|
rate_amount: nil,
|
9994
10061
|
rate_interval: nil,
|
9995
10062
|
renter_name: nil,
|
9996
10063
|
return_address: nil,
|
9997
10064
|
return_at: nil,
|
9998
|
-
|
10065
|
+
return_location_name: nil,
|
10066
|
+
tax_exempt: nil,
|
10067
|
+
vehicle_identification_number: nil
|
9999
10068
|
)
|
10000
10069
|
@affiliate = affiliate
|
10001
10070
|
@booking_number = booking_number
|
@@ -10006,17 +10075,21 @@ module Stripe
|
|
10006
10075
|
@customer_service_phone_number = customer_service_phone_number
|
10007
10076
|
@days_rented = days_rented
|
10008
10077
|
@delivery = delivery
|
10078
|
+
@distance = distance
|
10009
10079
|
@drivers = drivers
|
10010
10080
|
@extra_charges = extra_charges
|
10011
10081
|
@no_show = no_show
|
10012
10082
|
@pickup_address = pickup_address
|
10013
10083
|
@pickup_at = pickup_at
|
10084
|
+
@pickup_location_name = pickup_location_name
|
10014
10085
|
@rate_amount = rate_amount
|
10015
10086
|
@rate_interval = rate_interval
|
10016
10087
|
@renter_name = renter_name
|
10017
10088
|
@return_address = return_address
|
10018
10089
|
@return_at = return_at
|
10090
|
+
@return_location_name = return_location_name
|
10019
10091
|
@tax_exempt = tax_exempt
|
10092
|
+
@vehicle_identification_number = vehicle_identification_number
|
10020
10093
|
end
|
10021
10094
|
end
|
10022
10095
|
|
@@ -10514,20 +10587,11 @@ module Stripe
|
|
10514
10587
|
end
|
10515
10588
|
end
|
10516
10589
|
|
10517
|
-
class Affirm < Stripe::RequestParams
|
10518
|
-
end
|
10519
|
-
|
10520
|
-
class
|
10521
|
-
end
|
10522
|
-
|
10523
|
-
class Alipay < Stripe::RequestParams
|
10524
|
-
end
|
10525
|
-
|
10526
|
-
class Alma < Stripe::RequestParams
|
10527
|
-
end
|
10528
|
-
|
10529
|
-
class AmazonPay < Stripe::RequestParams
|
10530
|
-
end
|
10590
|
+
class Affirm < Stripe::RequestParams; end
|
10591
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
10592
|
+
class Alipay < Stripe::RequestParams; end
|
10593
|
+
class Alma < Stripe::RequestParams; end
|
10594
|
+
class AmazonPay < Stripe::RequestParams; end
|
10531
10595
|
|
10532
10596
|
class AuBecsDebit < Stripe::RequestParams
|
10533
10597
|
# The account number for the bank account.
|
@@ -10553,11 +10617,8 @@ module Stripe
|
|
10553
10617
|
end
|
10554
10618
|
end
|
10555
10619
|
|
10556
|
-
class Bancontact < Stripe::RequestParams
|
10557
|
-
end
|
10558
|
-
|
10559
|
-
class Billie < Stripe::RequestParams
|
10560
|
-
end
|
10620
|
+
class Bancontact < Stripe::RequestParams; end
|
10621
|
+
class Billie < Stripe::RequestParams; end
|
10561
10622
|
|
10562
10623
|
class BillingDetails < Stripe::RequestParams
|
10563
10624
|
class Address < Stripe::RequestParams
|
@@ -10610,8 +10671,7 @@ module Stripe
|
|
10610
10671
|
end
|
10611
10672
|
end
|
10612
10673
|
|
10613
|
-
class Blik < Stripe::RequestParams
|
10614
|
-
end
|
10674
|
+
class Blik < Stripe::RequestParams; end
|
10615
10675
|
|
10616
10676
|
class Boleto < Stripe::RequestParams
|
10617
10677
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -10622,11 +10682,8 @@ module Stripe
|
|
10622
10682
|
end
|
10623
10683
|
end
|
10624
10684
|
|
10625
|
-
class Cashapp < Stripe::RequestParams
|
10626
|
-
end
|
10627
|
-
|
10628
|
-
class CustomerBalance < Stripe::RequestParams
|
10629
|
-
end
|
10685
|
+
class Cashapp < Stripe::RequestParams; end
|
10686
|
+
class CustomerBalance < Stripe::RequestParams; end
|
10630
10687
|
|
10631
10688
|
class Eps < Stripe::RequestParams
|
10632
10689
|
# The customer's bank.
|
@@ -10649,14 +10706,9 @@ module Stripe
|
|
10649
10706
|
end
|
10650
10707
|
end
|
10651
10708
|
|
10652
|
-
class Giropay < Stripe::RequestParams
|
10653
|
-
end
|
10654
|
-
|
10655
|
-
class Gopay < Stripe::RequestParams
|
10656
|
-
end
|
10657
|
-
|
10658
|
-
class Grabpay < Stripe::RequestParams
|
10659
|
-
end
|
10709
|
+
class Giropay < Stripe::RequestParams; end
|
10710
|
+
class Gopay < Stripe::RequestParams; end
|
10711
|
+
class Grabpay < Stripe::RequestParams; end
|
10660
10712
|
|
10661
10713
|
class IdBankTransfer < Stripe::RequestParams
|
10662
10714
|
# Bank where the account is held.
|
@@ -10676,11 +10728,8 @@ module Stripe
|
|
10676
10728
|
end
|
10677
10729
|
end
|
10678
10730
|
|
10679
|
-
class InteracPresent < Stripe::RequestParams
|
10680
|
-
end
|
10681
|
-
|
10682
|
-
class KakaoPay < Stripe::RequestParams
|
10683
|
-
end
|
10731
|
+
class InteracPresent < Stripe::RequestParams; end
|
10732
|
+
class KakaoPay < Stripe::RequestParams; end
|
10684
10733
|
|
10685
10734
|
class Klarna < Stripe::RequestParams
|
10686
10735
|
class Dob < Stripe::RequestParams
|
@@ -10705,23 +10754,12 @@ module Stripe
|
|
10705
10754
|
end
|
10706
10755
|
end
|
10707
10756
|
|
10708
|
-
class Konbini < Stripe::RequestParams
|
10709
|
-
end
|
10710
|
-
|
10711
|
-
class
|
10712
|
-
end
|
10713
|
-
|
10714
|
-
class Link < Stripe::RequestParams
|
10715
|
-
end
|
10716
|
-
|
10717
|
-
class MbWay < Stripe::RequestParams
|
10718
|
-
end
|
10719
|
-
|
10720
|
-
class Mobilepay < Stripe::RequestParams
|
10721
|
-
end
|
10722
|
-
|
10723
|
-
class Multibanco < Stripe::RequestParams
|
10724
|
-
end
|
10757
|
+
class Konbini < Stripe::RequestParams; end
|
10758
|
+
class KrCard < Stripe::RequestParams; end
|
10759
|
+
class Link < Stripe::RequestParams; end
|
10760
|
+
class MbWay < Stripe::RequestParams; end
|
10761
|
+
class Mobilepay < Stripe::RequestParams; end
|
10762
|
+
class Multibanco < Stripe::RequestParams; end
|
10725
10763
|
|
10726
10764
|
class NaverPay < Stripe::RequestParams
|
10727
10765
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -10763,8 +10801,7 @@ module Stripe
|
|
10763
10801
|
end
|
10764
10802
|
end
|
10765
10803
|
|
10766
|
-
class Oxxo < Stripe::RequestParams
|
10767
|
-
end
|
10804
|
+
class Oxxo < Stripe::RequestParams; end
|
10768
10805
|
|
10769
10806
|
class P24 < Stripe::RequestParams
|
10770
10807
|
# The customer's bank.
|
@@ -10775,17 +10812,10 @@ module Stripe
|
|
10775
10812
|
end
|
10776
10813
|
end
|
10777
10814
|
|
10778
|
-
class PayByBank < Stripe::RequestParams
|
10779
|
-
end
|
10780
|
-
|
10781
|
-
class
|
10782
|
-
end
|
10783
|
-
|
10784
|
-
class Paynow < Stripe::RequestParams
|
10785
|
-
end
|
10786
|
-
|
10787
|
-
class Paypal < Stripe::RequestParams
|
10788
|
-
end
|
10815
|
+
class PayByBank < Stripe::RequestParams; end
|
10816
|
+
class Payco < Stripe::RequestParams; end
|
10817
|
+
class Paynow < Stripe::RequestParams; end
|
10818
|
+
class Paypal < Stripe::RequestParams; end
|
10789
10819
|
|
10790
10820
|
class Payto < Stripe::RequestParams
|
10791
10821
|
# The account number for the bank account.
|
@@ -10802,14 +10832,9 @@ module Stripe
|
|
10802
10832
|
end
|
10803
10833
|
end
|
10804
10834
|
|
10805
|
-
class Pix < Stripe::RequestParams
|
10806
|
-
end
|
10807
|
-
|
10808
|
-
class Promptpay < Stripe::RequestParams
|
10809
|
-
end
|
10810
|
-
|
10811
|
-
class Qris < Stripe::RequestParams
|
10812
|
-
end
|
10835
|
+
class Pix < Stripe::RequestParams; end
|
10836
|
+
class Promptpay < Stripe::RequestParams; end
|
10837
|
+
class Qris < Stripe::RequestParams; end
|
10813
10838
|
|
10814
10839
|
class RadarOptions < Stripe::RequestParams
|
10815
10840
|
# 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.
|
@@ -10843,14 +10868,9 @@ module Stripe
|
|
10843
10868
|
end
|
10844
10869
|
end
|
10845
10870
|
|
10846
|
-
class RevolutPay < Stripe::RequestParams
|
10847
|
-
end
|
10848
|
-
|
10849
|
-
class SamsungPay < Stripe::RequestParams
|
10850
|
-
end
|
10851
|
-
|
10852
|
-
class Satispay < Stripe::RequestParams
|
10853
|
-
end
|
10871
|
+
class RevolutPay < Stripe::RequestParams; end
|
10872
|
+
class SamsungPay < Stripe::RequestParams; end
|
10873
|
+
class Satispay < Stripe::RequestParams; end
|
10854
10874
|
|
10855
10875
|
class SepaDebit < Stripe::RequestParams
|
10856
10876
|
# IBAN of the bank account.
|
@@ -10861,8 +10881,7 @@ module Stripe
|
|
10861
10881
|
end
|
10862
10882
|
end
|
10863
10883
|
|
10864
|
-
class Shopeepay < Stripe::RequestParams
|
10865
|
-
end
|
10884
|
+
class Shopeepay < Stripe::RequestParams; end
|
10866
10885
|
|
10867
10886
|
class Sofort < Stripe::RequestParams
|
10868
10887
|
# Two-letter ISO code representing the country the bank account is located in.
|
@@ -10885,11 +10904,8 @@ module Stripe
|
|
10885
10904
|
end
|
10886
10905
|
end
|
10887
10906
|
|
10888
|
-
class Swish < Stripe::RequestParams
|
10889
|
-
end
|
10890
|
-
|
10891
|
-
class Twint < Stripe::RequestParams
|
10892
|
-
end
|
10907
|
+
class Swish < Stripe::RequestParams; end
|
10908
|
+
class Twint < Stripe::RequestParams; end
|
10893
10909
|
|
10894
10910
|
class UsBankAccount < Stripe::RequestParams
|
10895
10911
|
# Account holder type: individual or company.
|
@@ -10918,11 +10934,8 @@ module Stripe
|
|
10918
10934
|
end
|
10919
10935
|
end
|
10920
10936
|
|
10921
|
-
class WechatPay < Stripe::RequestParams
|
10922
|
-
end
|
10923
|
-
|
10924
|
-
class Zip < Stripe::RequestParams
|
10925
|
-
end
|
10937
|
+
class WechatPay < Stripe::RequestParams; end
|
10938
|
+
class Zip < Stripe::RequestParams; end
|
10926
10939
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
10927
10940
|
attr_accessor :acss_debit
|
10928
10941
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -11968,8 +11981,7 @@ module Stripe
|
|
11968
11981
|
end
|
11969
11982
|
end
|
11970
11983
|
|
11971
|
-
class InteracPresent < Stripe::RequestParams
|
11972
|
-
end
|
11984
|
+
class InteracPresent < Stripe::RequestParams; end
|
11973
11985
|
|
11974
11986
|
class KakaoPay < Stripe::RequestParams
|
11975
11987
|
# Controls when the funds are captured from the customer's account.
|
@@ -12244,8 +12256,7 @@ module Stripe
|
|
12244
12256
|
end
|
12245
12257
|
end
|
12246
12258
|
|
12247
|
-
class PayByBank < Stripe::RequestParams
|
12248
|
-
end
|
12259
|
+
class PayByBank < Stripe::RequestParams; end
|
12249
12260
|
|
12250
12261
|
class Payco < Stripe::RequestParams
|
12251
12262
|
# Controls when the funds are captured from the customer's account.
|
@@ -12480,8 +12491,7 @@ module Stripe
|
|
12480
12491
|
end
|
12481
12492
|
end
|
12482
12493
|
|
12483
|
-
class Rechnung < Stripe::RequestParams
|
12484
|
-
end
|
12494
|
+
class Rechnung < Stripe::RequestParams; end
|
12485
12495
|
|
12486
12496
|
class RevolutPay < Stripe::RequestParams
|
12487
12497
|
# Controls when the funds are captured from the customer's account.
|
@@ -12518,6 +12528,19 @@ module Stripe
|
|
12518
12528
|
end
|
12519
12529
|
end
|
12520
12530
|
|
12531
|
+
class Satispay < Stripe::RequestParams
|
12532
|
+
# Controls when the funds are captured from the customer's account.
|
12533
|
+
#
|
12534
|
+
# 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.
|
12535
|
+
#
|
12536
|
+
# 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.
|
12537
|
+
attr_accessor :capture_method
|
12538
|
+
|
12539
|
+
def initialize(capture_method: nil)
|
12540
|
+
@capture_method = capture_method
|
12541
|
+
end
|
12542
|
+
end
|
12543
|
+
|
12521
12544
|
class SepaDebit < Stripe::RequestParams
|
12522
12545
|
class MandateOptions < Stripe::RequestParams
|
12523
12546
|
# 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'.
|
@@ -12824,7 +12847,7 @@ module Stripe
|
|
12824
12847
|
attr_accessor :fpx
|
12825
12848
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
12826
12849
|
attr_accessor :giropay
|
12827
|
-
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the
|
12850
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
12828
12851
|
attr_accessor :gopay
|
12829
12852
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
12830
12853
|
attr_accessor :grabpay
|
@@ -12880,6 +12903,8 @@ module Stripe
|
|
12880
12903
|
attr_accessor :revolut_pay
|
12881
12904
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
12882
12905
|
attr_accessor :samsung_pay
|
12906
|
+
# If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
|
12907
|
+
attr_accessor :satispay
|
12883
12908
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
12884
12909
|
attr_accessor :sepa_debit
|
12885
12910
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
@@ -12947,6 +12972,7 @@ module Stripe
|
|
12947
12972
|
rechnung: nil,
|
12948
12973
|
revolut_pay: nil,
|
12949
12974
|
samsung_pay: nil,
|
12975
|
+
satispay: nil,
|
12950
12976
|
sepa_debit: nil,
|
12951
12977
|
shopeepay: nil,
|
12952
12978
|
sofort: nil,
|
@@ -13004,6 +13030,7 @@ module Stripe
|
|
13004
13030
|
@rechnung = rechnung
|
13005
13031
|
@revolut_pay = revolut_pay
|
13006
13032
|
@samsung_pay = samsung_pay
|
13033
|
+
@satispay = satispay
|
13007
13034
|
@sepa_debit = sepa_debit
|
13008
13035
|
@shopeepay = shopeepay
|
13009
13036
|
@sofort = sofort
|
@@ -13077,8 +13104,6 @@ module Stripe
|
|
13077
13104
|
end
|
13078
13105
|
# 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).
|
13079
13106
|
attr_accessor :application_fee_amount
|
13080
|
-
# Automations to be run during the PaymentIntent lifecycle
|
13081
|
-
attr_accessor :async_workflows
|
13082
13107
|
# Controls when the funds will be captured from the customer's account.
|
13083
13108
|
attr_accessor :capture_method
|
13084
13109
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
@@ -13091,6 +13116,8 @@ module Stripe
|
|
13091
13116
|
attr_accessor :expand
|
13092
13117
|
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
13093
13118
|
attr_accessor :fx_quote
|
13119
|
+
# Automations to be run during the PaymentIntent lifecycle
|
13120
|
+
attr_accessor :hooks
|
13094
13121
|
# ID of the mandate that's used for this payment.
|
13095
13122
|
attr_accessor :mandate
|
13096
13123
|
# Attribute for param field mandate_data
|
@@ -13100,6 +13127,7 @@ module Stripe
|
|
13100
13127
|
# Provides industry-specific information about the charge.
|
13101
13128
|
attr_accessor :payment_details
|
13102
13129
|
# 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.
|
13130
|
+
# 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.
|
13103
13131
|
attr_accessor :payment_method
|
13104
13132
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
13105
13133
|
# in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
|
@@ -13134,12 +13162,12 @@ module Stripe
|
|
13134
13162
|
|
13135
13163
|
def initialize(
|
13136
13164
|
application_fee_amount: nil,
|
13137
|
-
async_workflows: nil,
|
13138
13165
|
capture_method: nil,
|
13139
13166
|
confirmation_token: nil,
|
13140
13167
|
error_on_requires_action: nil,
|
13141
13168
|
expand: nil,
|
13142
13169
|
fx_quote: nil,
|
13170
|
+
hooks: nil,
|
13143
13171
|
mandate: nil,
|
13144
13172
|
mandate_data: nil,
|
13145
13173
|
off_session: nil,
|
@@ -13156,12 +13184,12 @@ module Stripe
|
|
13156
13184
|
use_stripe_sdk: nil
|
13157
13185
|
)
|
13158
13186
|
@application_fee_amount = application_fee_amount
|
13159
|
-
@async_workflows = async_workflows
|
13160
13187
|
@capture_method = capture_method
|
13161
13188
|
@confirmation_token = confirmation_token
|
13162
13189
|
@error_on_requires_action = error_on_requires_action
|
13163
13190
|
@expand = expand
|
13164
13191
|
@fx_quote = fx_quote
|
13192
|
+
@hooks = hooks
|
13165
13193
|
@mandate = mandate
|
13166
13194
|
@mandate_data = mandate_data
|
13167
13195
|
@off_session = off_session
|
@@ -13180,7 +13208,7 @@ module Stripe
|
|
13180
13208
|
end
|
13181
13209
|
|
13182
13210
|
class DecrementAuthorizationParams < Stripe::RequestParams
|
13183
|
-
class
|
13211
|
+
class Hooks < Stripe::RequestParams
|
13184
13212
|
class Inputs < Stripe::RequestParams
|
13185
13213
|
class Tax < Stripe::RequestParams
|
13186
13214
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -13217,12 +13245,12 @@ module Stripe
|
|
13217
13245
|
attr_accessor :amount
|
13218
13246
|
# 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).
|
13219
13247
|
attr_accessor :application_fee_amount
|
13220
|
-
# Automations to be run during the PaymentIntent lifecycle
|
13221
|
-
attr_accessor :async_workflows
|
13222
13248
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
13223
13249
|
attr_accessor :description
|
13224
13250
|
# Specifies which fields in the response should be expanded.
|
13225
13251
|
attr_accessor :expand
|
13252
|
+
# Automations to be run during the PaymentIntent lifecycle
|
13253
|
+
attr_accessor :hooks
|
13226
13254
|
# 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`.
|
13227
13255
|
attr_accessor :metadata
|
13228
13256
|
# The parameters used to automatically create a transfer after the payment is captured.
|
@@ -13232,24 +13260,24 @@ module Stripe
|
|
13232
13260
|
def initialize(
|
13233
13261
|
amount: nil,
|
13234
13262
|
application_fee_amount: nil,
|
13235
|
-
async_workflows: nil,
|
13236
13263
|
description: nil,
|
13237
13264
|
expand: nil,
|
13265
|
+
hooks: nil,
|
13238
13266
|
metadata: nil,
|
13239
13267
|
transfer_data: nil
|
13240
13268
|
)
|
13241
13269
|
@amount = amount
|
13242
13270
|
@application_fee_amount = application_fee_amount
|
13243
|
-
@async_workflows = async_workflows
|
13244
13271
|
@description = description
|
13245
13272
|
@expand = expand
|
13273
|
+
@hooks = hooks
|
13246
13274
|
@metadata = metadata
|
13247
13275
|
@transfer_data = transfer_data
|
13248
13276
|
end
|
13249
13277
|
end
|
13250
13278
|
|
13251
13279
|
class IncrementAuthorizationParams < Stripe::RequestParams
|
13252
|
-
class
|
13280
|
+
class Hooks < Stripe::RequestParams
|
13253
13281
|
class Inputs < Stripe::RequestParams
|
13254
13282
|
class Tax < Stripe::RequestParams
|
13255
13283
|
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
@@ -13303,12 +13331,12 @@ module Stripe
|
|
13303
13331
|
attr_accessor :amount
|
13304
13332
|
# 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).
|
13305
13333
|
attr_accessor :application_fee_amount
|
13306
|
-
# Automations to be run during the PaymentIntent lifecycle
|
13307
|
-
attr_accessor :async_workflows
|
13308
13334
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
13309
13335
|
attr_accessor :description
|
13310
13336
|
# Specifies which fields in the response should be expanded.
|
13311
13337
|
attr_accessor :expand
|
13338
|
+
# Automations to be run during the PaymentIntent lifecycle
|
13339
|
+
attr_accessor :hooks
|
13312
13340
|
# 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`.
|
13313
13341
|
attr_accessor :metadata
|
13314
13342
|
# Payment method-specific configuration for this PaymentIntent.
|
@@ -13322,9 +13350,9 @@ module Stripe
|
|
13322
13350
|
def initialize(
|
13323
13351
|
amount: nil,
|
13324
13352
|
application_fee_amount: nil,
|
13325
|
-
async_workflows: nil,
|
13326
13353
|
description: nil,
|
13327
13354
|
expand: nil,
|
13355
|
+
hooks: nil,
|
13328
13356
|
metadata: nil,
|
13329
13357
|
payment_method_options: nil,
|
13330
13358
|
statement_descriptor: nil,
|
@@ -13332,9 +13360,9 @@ module Stripe
|
|
13332
13360
|
)
|
13333
13361
|
@amount = amount
|
13334
13362
|
@application_fee_amount = application_fee_amount
|
13335
|
-
@async_workflows = async_workflows
|
13336
13363
|
@description = description
|
13337
13364
|
@expand = expand
|
13365
|
+
@hooks = hooks
|
13338
13366
|
@metadata = metadata
|
13339
13367
|
@payment_method_options = payment_method_options
|
13340
13368
|
@statement_descriptor = statement_descriptor
|
@@ -13391,8 +13419,6 @@ module Stripe
|
|
13391
13419
|
attr_reader :application
|
13392
13420
|
# 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).
|
13393
13421
|
attr_reader :application_fee_amount
|
13394
|
-
# Attribute for field async_workflows
|
13395
|
-
attr_reader :async_workflows
|
13396
13422
|
# Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
13397
13423
|
attr_reader :automatic_payment_methods
|
13398
13424
|
# Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
@@ -13429,6 +13455,8 @@ module Stripe
|
|
13429
13455
|
attr_reader :description
|
13430
13456
|
# The FX Quote used for the PaymentIntent.
|
13431
13457
|
attr_reader :fx_quote
|
13458
|
+
# Attribute for field hooks
|
13459
|
+
attr_reader :hooks
|
13432
13460
|
# Unique identifier for the object.
|
13433
13461
|
attr_reader :id
|
13434
13462
|
# The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
@@ -13510,11 +13538,11 @@ module Stripe
|
|
13510
13538
|
)
|
13511
13539
|
end
|
13512
13540
|
|
13513
|
-
# 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.
|
13541
|
+
# 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.
|
13514
13542
|
#
|
13515
13543
|
# 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.
|
13516
13544
|
#
|
13517
|
-
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
13545
|
+
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
13518
13546
|
def cancel(params = {}, opts = {})
|
13519
13547
|
request_stripe_object(
|
13520
13548
|
method: :post,
|
@@ -13524,11 +13552,11 @@ module Stripe
|
|
13524
13552
|
)
|
13525
13553
|
end
|
13526
13554
|
|
13527
|
-
# 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.
|
13555
|
+
# 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.
|
13528
13556
|
#
|
13529
13557
|
# 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.
|
13530
13558
|
#
|
13531
|
-
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
13559
|
+
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
13532
13560
|
def self.cancel(intent, params = {}, opts = {})
|
13533
13561
|
request_stripe_object(
|
13534
13562
|
method: :post,
|
@@ -13542,7 +13570,7 @@ module Stripe
|
|
13542
13570
|
#
|
13543
13571
|
# Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
|
13544
13572
|
#
|
13545
|
-
# Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
|
13573
|
+
# Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
|
13546
13574
|
def capture(params = {}, opts = {})
|
13547
13575
|
request_stripe_object(
|
13548
13576
|
method: :post,
|
@@ -13556,7 +13584,7 @@ module Stripe
|
|
13556
13584
|
#
|
13557
13585
|
# Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
|
13558
13586
|
#
|
13559
|
-
# Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
|
13587
|
+
# Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
|
13560
13588
|
def self.capture(intent, params = {}, opts = {})
|
13561
13589
|
request_stripe_object(
|
13562
13590
|
method: :post,
|
@@ -13577,8 +13605,8 @@ module Stripe
|
|
13577
13605
|
# payment succeeds, the PaymentIntent will transition to the succeeded
|
13578
13606
|
# status (or requires_capture, if capture_method is set to manual).
|
13579
13607
|
# If the confirmation_method is automatic, payment may be attempted
|
13580
|
-
# using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
13581
|
-
# and the PaymentIntent's [client_secret](https://stripe.com/
|
13608
|
+
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
13609
|
+
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
|
13582
13610
|
# After next_actions are handled by the client, no additional
|
13583
13611
|
# confirmation is required to complete the payment.
|
13584
13612
|
# If the confirmation_method is manual, all payment attempts must be
|
@@ -13611,8 +13639,8 @@ module Stripe
|
|
13611
13639
|
# payment succeeds, the PaymentIntent will transition to the succeeded
|
13612
13640
|
# status (or requires_capture, if capture_method is set to manual).
|
13613
13641
|
# If the confirmation_method is automatic, payment may be attempted
|
13614
|
-
# using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
13615
|
-
# and the PaymentIntent's [client_secret](https://stripe.com/
|
13642
|
+
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
13643
|
+
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
|
13616
13644
|
# After next_actions are handled by the client, no additional
|
13617
13645
|
# confirmation is required to complete the payment.
|
13618
13646
|
# If the confirmation_method is manual, all payment attempts must be
|
@@ -13636,22 +13664,22 @@ module Stripe
|
|
13636
13664
|
|
13637
13665
|
# Creates a PaymentIntent object.
|
13638
13666
|
#
|
13639
|
-
# After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
|
13667
|
+
# After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
|
13640
13668
|
# to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
|
13641
13669
|
# with the Payment Intents API.
|
13642
13670
|
#
|
13643
13671
|
# When you use confirm=true during creation, it's equivalent to creating
|
13644
13672
|
# and confirming the PaymentIntent in the same call. You can use any parameters
|
13645
|
-
# available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
|
13673
|
+
# available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
|
13646
13674
|
# confirm=true.
|
13647
13675
|
def self.create(params = {}, opts = {})
|
13648
13676
|
request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
|
13649
13677
|
end
|
13650
13678
|
|
13651
13679
|
# Perform a decremental authorization on an eligible
|
13652
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13680
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13653
13681
|
# PaymentIntent's status must be requires_capture and
|
13654
|
-
# [decremental_authorization.status](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
13682
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
13655
13683
|
# must be available.
|
13656
13684
|
#
|
13657
13685
|
# Decremental authorizations decrease the authorized amount on your customer's card
|
@@ -13659,7 +13687,7 @@ module Stripe
|
|
13659
13687
|
#
|
13660
13688
|
# After decrement, the PaymentIntent object
|
13661
13689
|
# returns with the updated
|
13662
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13690
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13663
13691
|
# The PaymentIntent will now be capturable up to the new authorized amount.
|
13664
13692
|
#
|
13665
13693
|
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
@@ -13674,9 +13702,9 @@ module Stripe
|
|
13674
13702
|
end
|
13675
13703
|
|
13676
13704
|
# Perform a decremental authorization on an eligible
|
13677
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13705
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13678
13706
|
# PaymentIntent's status must be requires_capture and
|
13679
|
-
# [decremental_authorization.status](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
13707
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
13680
13708
|
# must be available.
|
13681
13709
|
#
|
13682
13710
|
# Decremental authorizations decrease the authorized amount on your customer's card
|
@@ -13684,7 +13712,7 @@ module Stripe
|
|
13684
13712
|
#
|
13685
13713
|
# After decrement, the PaymentIntent object
|
13686
13714
|
# returns with the updated
|
13687
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13715
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13688
13716
|
# The PaymentIntent will now be capturable up to the new authorized amount.
|
13689
13717
|
#
|
13690
13718
|
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
@@ -13699,9 +13727,9 @@ module Stripe
|
|
13699
13727
|
end
|
13700
13728
|
|
13701
13729
|
# Perform an incremental authorization on an eligible
|
13702
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13730
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13703
13731
|
# PaymentIntent's status must be requires_capture and
|
13704
|
-
# [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
13732
|
+
# [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
13705
13733
|
# must be true.
|
13706
13734
|
#
|
13707
13735
|
# Incremental authorizations attempt to increase the authorized amount on
|
@@ -13712,16 +13740,16 @@ module Stripe
|
|
13712
13740
|
#
|
13713
13741
|
# If the incremental authorization succeeds, the PaymentIntent object
|
13714
13742
|
# returns with the updated
|
13715
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13743
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13716
13744
|
# If the incremental authorization fails, a
|
13717
|
-
# [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
|
13745
|
+
# [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
|
13718
13746
|
# fields on the PaymentIntent or Charge update. The PaymentIntent
|
13719
13747
|
# object remains capturable for the previously authorized amount.
|
13720
13748
|
#
|
13721
13749
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
13722
13750
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
13723
13751
|
#
|
13724
|
-
# Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
|
13752
|
+
# Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
|
13725
13753
|
def increment_authorization(params = {}, opts = {})
|
13726
13754
|
request_stripe_object(
|
13727
13755
|
method: :post,
|
@@ -13732,9 +13760,9 @@ module Stripe
|
|
13732
13760
|
end
|
13733
13761
|
|
13734
13762
|
# Perform an incremental authorization on an eligible
|
13735
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13763
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
13736
13764
|
# PaymentIntent's status must be requires_capture and
|
13737
|
-
# [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
13765
|
+
# [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
13738
13766
|
# must be true.
|
13739
13767
|
#
|
13740
13768
|
# Incremental authorizations attempt to increase the authorized amount on
|
@@ -13745,16 +13773,16 @@ module Stripe
|
|
13745
13773
|
#
|
13746
13774
|
# If the incremental authorization succeeds, the PaymentIntent object
|
13747
13775
|
# returns with the updated
|
13748
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13776
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
13749
13777
|
# If the incremental authorization fails, a
|
13750
|
-
# [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
|
13778
|
+
# [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
|
13751
13779
|
# fields on the PaymentIntent or Charge update. The PaymentIntent
|
13752
13780
|
# object remains capturable for the previously authorized amount.
|
13753
13781
|
#
|
13754
13782
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
13755
13783
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
13756
13784
|
#
|
13757
|
-
# Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
|
13785
|
+
# Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
|
13758
13786
|
def self.increment_authorization(intent, params = {}, opts = {})
|
13759
13787
|
request_stripe_object(
|
13760
13788
|
method: :post,
|
@@ -13808,7 +13836,7 @@ module Stripe
|
|
13808
13836
|
# PaymentIntent again. For example, updating the payment_method
|
13809
13837
|
# always requires you to confirm the PaymentIntent again. If you prefer to
|
13810
13838
|
# update and confirm at the same time, we recommend updating properties through
|
13811
|
-
# the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
|
13839
|
+
# the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
|
13812
13840
|
def self.update(intent, params = {}, opts = {})
|
13813
13841
|
request_stripe_object(
|
13814
13842
|
method: :post,
|