stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2
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/lib/stripe/event_types.rb +8 -0
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +42 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
- data/lib/stripe/params/setup_intent_create_params.rb +37 -0
- data/lib/stripe/params/setup_intent_update_params.rb +21 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/charge.rb +354 -2
- data/lib/stripe/resources/checkout/session.rb +30 -0
- data/lib/stripe/resources/confirmation_token.rb +84 -0
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/payment_attempt_record.rb +133 -0
- data/lib/stripe/resources/payment_intent.rb +100 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +84 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +133 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services.rb +9 -0
- data/lib/stripe/stripe_event_notification_handler.rb +8 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -1
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe.rbi +4320 -69
- metadata +20 -2
|
@@ -870,6 +870,23 @@ module Stripe
|
|
|
870
870
|
end
|
|
871
871
|
end
|
|
872
872
|
|
|
873
|
+
class RakutenPay < ::Stripe::RequestParams
|
|
874
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
875
|
+
# The account's preference for whether or not to display this payment method.
|
|
876
|
+
attr_accessor :preference
|
|
877
|
+
|
|
878
|
+
def initialize(preference: nil)
|
|
879
|
+
@preference = preference
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
# Whether or not the payment method should be displayed.
|
|
883
|
+
attr_accessor :display_preference
|
|
884
|
+
|
|
885
|
+
def initialize(display_preference: nil)
|
|
886
|
+
@display_preference = display_preference
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
|
|
873
890
|
class RevolutPay < ::Stripe::RequestParams
|
|
874
891
|
class DisplayPreference < ::Stripe::RequestParams
|
|
875
892
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1249,6 +1266,8 @@ module Stripe
|
|
|
1249
1266
|
attr_accessor :promptpay
|
|
1250
1267
|
# QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
|
|
1251
1268
|
attr_accessor :qris
|
|
1269
|
+
# Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed.
|
|
1270
|
+
attr_accessor :rakuten_pay
|
|
1252
1271
|
# Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
|
|
1253
1272
|
attr_accessor :revolut_pay
|
|
1254
1273
|
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
|
@@ -1337,6 +1356,7 @@ module Stripe
|
|
|
1337
1356
|
pix: nil,
|
|
1338
1357
|
promptpay: nil,
|
|
1339
1358
|
qris: nil,
|
|
1359
|
+
rakuten_pay: nil,
|
|
1340
1360
|
revolut_pay: nil,
|
|
1341
1361
|
samsung_pay: nil,
|
|
1342
1362
|
satispay: nil,
|
|
@@ -1408,6 +1428,7 @@ module Stripe
|
|
|
1408
1428
|
@pix = pix
|
|
1409
1429
|
@promptpay = promptpay
|
|
1410
1430
|
@qris = qris
|
|
1431
|
+
@rakuten_pay = rakuten_pay
|
|
1411
1432
|
@revolut_pay = revolut_pay
|
|
1412
1433
|
@samsung_pay = samsung_pay
|
|
1413
1434
|
@satispay = satispay
|
|
@@ -18,6 +18,7 @@ module Stripe
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
21
22
|
class Affirm < ::Stripe::RequestParams; end
|
|
22
23
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
23
24
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -36,6 +37,8 @@ module Stripe
|
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
|
|
40
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
41
|
+
|
|
39
42
|
class BacsDebit < ::Stripe::RequestParams
|
|
40
43
|
# Account number of the bank account that the funds will be debited from.
|
|
41
44
|
attr_accessor :account_number
|
|
@@ -167,6 +170,7 @@ module Stripe
|
|
|
167
170
|
end
|
|
168
171
|
|
|
169
172
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
173
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
170
174
|
|
|
171
175
|
class Eps < ::Stripe::RequestParams
|
|
172
176
|
# The customer's bank.
|
|
@@ -252,6 +256,7 @@ module Stripe
|
|
|
252
256
|
class KrCard < ::Stripe::RequestParams; end
|
|
253
257
|
class Link < ::Stripe::RequestParams; end
|
|
254
258
|
class MbWay < ::Stripe::RequestParams; end
|
|
259
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
255
260
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
256
261
|
class Multibanco < ::Stripe::RequestParams; end
|
|
257
262
|
|
|
@@ -480,6 +485,8 @@ module Stripe
|
|
|
480
485
|
class Zip < ::Stripe::RequestParams; end
|
|
481
486
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
482
487
|
attr_accessor :acss_debit
|
|
488
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
489
|
+
attr_accessor :aeon_pay
|
|
483
490
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
484
491
|
attr_accessor :affirm
|
|
485
492
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -494,6 +501,8 @@ module Stripe
|
|
|
494
501
|
attr_accessor :amazon_pay
|
|
495
502
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
496
503
|
attr_accessor :au_becs_debit
|
|
504
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
505
|
+
attr_accessor :au_pay
|
|
497
506
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
498
507
|
attr_accessor :bacs_debit
|
|
499
508
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -522,6 +531,8 @@ module Stripe
|
|
|
522
531
|
attr_accessor :customer
|
|
523
532
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
524
533
|
attr_accessor :customer_balance
|
|
534
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
535
|
+
attr_accessor :dbarai
|
|
525
536
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
526
537
|
attr_accessor :eps
|
|
527
538
|
# Specifies which fields in the response should be expanded.
|
|
@@ -556,6 +567,8 @@ module Stripe
|
|
|
556
567
|
attr_accessor :link
|
|
557
568
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
558
569
|
attr_accessor :mb_way
|
|
570
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
571
|
+
attr_accessor :merpay
|
|
559
572
|
# Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
560
573
|
attr_accessor :metadata
|
|
561
574
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -641,6 +654,7 @@ module Stripe
|
|
|
641
654
|
|
|
642
655
|
def initialize(
|
|
643
656
|
acss_debit: nil,
|
|
657
|
+
aeon_pay: nil,
|
|
644
658
|
affirm: nil,
|
|
645
659
|
afterpay_clearpay: nil,
|
|
646
660
|
alipay: nil,
|
|
@@ -648,6 +662,7 @@ module Stripe
|
|
|
648
662
|
alma: nil,
|
|
649
663
|
amazon_pay: nil,
|
|
650
664
|
au_becs_debit: nil,
|
|
665
|
+
au_pay: nil,
|
|
651
666
|
bacs_debit: nil,
|
|
652
667
|
bancontact: nil,
|
|
653
668
|
billie: nil,
|
|
@@ -662,6 +677,7 @@ module Stripe
|
|
|
662
677
|
custom: nil,
|
|
663
678
|
customer: nil,
|
|
664
679
|
customer_balance: nil,
|
|
680
|
+
dbarai: nil,
|
|
665
681
|
eps: nil,
|
|
666
682
|
expand: nil,
|
|
667
683
|
fpx: nil,
|
|
@@ -679,6 +695,7 @@ module Stripe
|
|
|
679
695
|
kr_card: nil,
|
|
680
696
|
link: nil,
|
|
681
697
|
mb_way: nil,
|
|
698
|
+
merpay: nil,
|
|
682
699
|
metadata: nil,
|
|
683
700
|
mobilepay: nil,
|
|
684
701
|
multibanco: nil,
|
|
@@ -722,6 +739,7 @@ module Stripe
|
|
|
722
739
|
zip: nil
|
|
723
740
|
)
|
|
724
741
|
@acss_debit = acss_debit
|
|
742
|
+
@aeon_pay = aeon_pay
|
|
725
743
|
@affirm = affirm
|
|
726
744
|
@afterpay_clearpay = afterpay_clearpay
|
|
727
745
|
@alipay = alipay
|
|
@@ -729,6 +747,7 @@ module Stripe
|
|
|
729
747
|
@alma = alma
|
|
730
748
|
@amazon_pay = amazon_pay
|
|
731
749
|
@au_becs_debit = au_becs_debit
|
|
750
|
+
@au_pay = au_pay
|
|
732
751
|
@bacs_debit = bacs_debit
|
|
733
752
|
@bancontact = bancontact
|
|
734
753
|
@billie = billie
|
|
@@ -743,6 +762,7 @@ module Stripe
|
|
|
743
762
|
@custom = custom
|
|
744
763
|
@customer = customer
|
|
745
764
|
@customer_balance = customer_balance
|
|
765
|
+
@dbarai = dbarai
|
|
746
766
|
@eps = eps
|
|
747
767
|
@expand = expand
|
|
748
768
|
@fpx = fpx
|
|
@@ -760,6 +780,7 @@ module Stripe
|
|
|
760
780
|
@kr_card = kr_card
|
|
761
781
|
@link = link
|
|
762
782
|
@mb_way = mb_way
|
|
783
|
+
@merpay = merpay
|
|
763
784
|
@metadata = metadata
|
|
764
785
|
@mobilepay = mobilepay
|
|
765
786
|
@multibanco = multibanco
|
|
@@ -904,7 +904,7 @@ module Stripe
|
|
|
904
904
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
905
905
|
end
|
|
906
906
|
end
|
|
907
|
-
# The discounts applied to this line item.
|
|
907
|
+
# The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
|
|
908
908
|
attr_accessor :discounts
|
|
909
909
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
910
910
|
attr_accessor :price
|
|
@@ -899,7 +899,7 @@ module Stripe
|
|
|
899
899
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
900
900
|
end
|
|
901
901
|
end
|
|
902
|
-
# The discounts applied to this line item.
|
|
902
|
+
# The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
|
|
903
903
|
attr_accessor :discounts
|
|
904
904
|
# The ID of an existing line item on the quote.
|
|
905
905
|
attr_accessor :id
|
|
@@ -77,6 +77,15 @@ module Stripe
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
81
|
+
# Supply the SEPA Creditor Identifier configured for the intended debit with your selected processor. Obtain it from your processor's SEPA configuration API or onboarding/support information. Do not supply a statement descriptor, IBAN, processor merchant-account ID, or mandate reference. If the creditor identifier is unknown, omit it.
|
|
82
|
+
attr_accessor :creditor_id
|
|
83
|
+
|
|
84
|
+
def initialize(creditor_id: nil)
|
|
85
|
+
@creditor_id = creditor_id
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
80
89
|
class UsBankAccount < ::Stripe::RequestParams
|
|
81
90
|
# Describes the presence of the customer during the payment.
|
|
82
91
|
attr_accessor :customer_presence
|
|
@@ -92,12 +101,15 @@ module Stripe
|
|
|
92
101
|
attr_accessor :card
|
|
93
102
|
# Describes the type of money movement.
|
|
94
103
|
attr_accessor :money_movement_type
|
|
104
|
+
# Describes SEPA debit money movement details.
|
|
105
|
+
attr_accessor :sepa_debit
|
|
95
106
|
# Describes US bank account money movement details.
|
|
96
107
|
attr_accessor :us_bank_account
|
|
97
108
|
|
|
98
|
-
def initialize(card: nil, money_movement_type: nil, us_bank_account: nil)
|
|
109
|
+
def initialize(card: nil, money_movement_type: nil, sepa_debit: nil, us_bank_account: nil)
|
|
99
110
|
@card = card
|
|
100
111
|
@money_movement_type = money_movement_type
|
|
112
|
+
@sepa_debit = sepa_debit
|
|
101
113
|
@us_bank_account = us_bank_account
|
|
102
114
|
end
|
|
103
115
|
end
|
|
@@ -59,6 +59,8 @@ module Stripe
|
|
|
59
59
|
attr_accessor :payment_attempt_record
|
|
60
60
|
# The identifier of the PaymentIntent to refund.
|
|
61
61
|
attr_accessor :payment_intent
|
|
62
|
+
# The ID of a PaymentMethod that will receive the refund.
|
|
63
|
+
attr_accessor :payment_method
|
|
62
64
|
# Used to create the PaymentMethod that will receive the refund.
|
|
63
65
|
attr_accessor :payment_method_data
|
|
64
66
|
# Payment method-specific options for the refund.
|
|
@@ -83,6 +85,7 @@ module Stripe
|
|
|
83
85
|
origin: nil,
|
|
84
86
|
payment_attempt_record: nil,
|
|
85
87
|
payment_intent: nil,
|
|
88
|
+
payment_method: nil,
|
|
86
89
|
payment_method_data: nil,
|
|
87
90
|
payment_method_options: nil,
|
|
88
91
|
payment_record: nil,
|
|
@@ -100,6 +103,7 @@ module Stripe
|
|
|
100
103
|
@origin = origin
|
|
101
104
|
@payment_attempt_record = payment_attempt_record
|
|
102
105
|
@payment_intent = payment_intent
|
|
106
|
+
@payment_method = payment_method
|
|
103
107
|
@payment_method_data = payment_method_data
|
|
104
108
|
@payment_method_options = payment_method_options
|
|
105
109
|
@payment_record = payment_record
|
|
@@ -58,6 +58,7 @@ module Stripe
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
61
62
|
class Affirm < ::Stripe::RequestParams; end
|
|
62
63
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
63
64
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -76,6 +77,8 @@ module Stripe
|
|
|
76
77
|
end
|
|
77
78
|
end
|
|
78
79
|
|
|
80
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
81
|
+
|
|
79
82
|
class BacsDebit < ::Stripe::RequestParams
|
|
80
83
|
# Account number of the bank account that the funds will be debited from.
|
|
81
84
|
attr_accessor :account_number
|
|
@@ -158,6 +161,7 @@ module Stripe
|
|
|
158
161
|
class Cashapp < ::Stripe::RequestParams; end
|
|
159
162
|
class Crypto < ::Stripe::RequestParams; end
|
|
160
163
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
164
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
161
165
|
|
|
162
166
|
class Eps < ::Stripe::RequestParams
|
|
163
167
|
# The customer's bank.
|
|
@@ -243,6 +247,7 @@ module Stripe
|
|
|
243
247
|
class KrCard < ::Stripe::RequestParams; end
|
|
244
248
|
class Link < ::Stripe::RequestParams; end
|
|
245
249
|
class MbWay < ::Stripe::RequestParams; end
|
|
250
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
246
251
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
247
252
|
class Multibanco < ::Stripe::RequestParams; end
|
|
248
253
|
|
|
@@ -471,6 +476,8 @@ module Stripe
|
|
|
471
476
|
class Zip < ::Stripe::RequestParams; end
|
|
472
477
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
473
478
|
attr_accessor :acss_debit
|
|
479
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
480
|
+
attr_accessor :aeon_pay
|
|
474
481
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
475
482
|
attr_accessor :affirm
|
|
476
483
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -485,6 +492,8 @@ module Stripe
|
|
|
485
492
|
attr_accessor :amazon_pay
|
|
486
493
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
487
494
|
attr_accessor :au_becs_debit
|
|
495
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
496
|
+
attr_accessor :au_pay
|
|
488
497
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
489
498
|
attr_accessor :bacs_debit
|
|
490
499
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -507,6 +516,8 @@ module Stripe
|
|
|
507
516
|
attr_accessor :crypto
|
|
508
517
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
509
518
|
attr_accessor :customer_balance
|
|
519
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
520
|
+
attr_accessor :dbarai
|
|
510
521
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
511
522
|
attr_accessor :eps
|
|
512
523
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -539,6 +550,8 @@ module Stripe
|
|
|
539
550
|
attr_accessor :link
|
|
540
551
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
541
552
|
attr_accessor :mb_way
|
|
553
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
554
|
+
attr_accessor :merpay
|
|
542
555
|
# Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
543
556
|
attr_accessor :metadata
|
|
544
557
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -624,6 +637,7 @@ module Stripe
|
|
|
624
637
|
|
|
625
638
|
def initialize(
|
|
626
639
|
acss_debit: nil,
|
|
640
|
+
aeon_pay: nil,
|
|
627
641
|
affirm: nil,
|
|
628
642
|
afterpay_clearpay: nil,
|
|
629
643
|
alipay: nil,
|
|
@@ -631,6 +645,7 @@ module Stripe
|
|
|
631
645
|
alma: nil,
|
|
632
646
|
amazon_pay: nil,
|
|
633
647
|
au_becs_debit: nil,
|
|
648
|
+
au_pay: nil,
|
|
634
649
|
bacs_debit: nil,
|
|
635
650
|
bancontact: nil,
|
|
636
651
|
billie: nil,
|
|
@@ -642,6 +657,7 @@ module Stripe
|
|
|
642
657
|
cashapp: nil,
|
|
643
658
|
crypto: nil,
|
|
644
659
|
customer_balance: nil,
|
|
660
|
+
dbarai: nil,
|
|
645
661
|
eps: nil,
|
|
646
662
|
fpx: nil,
|
|
647
663
|
getflex: nil,
|
|
@@ -658,6 +674,7 @@ module Stripe
|
|
|
658
674
|
kr_card: nil,
|
|
659
675
|
link: nil,
|
|
660
676
|
mb_way: nil,
|
|
677
|
+
merpay: nil,
|
|
661
678
|
metadata: nil,
|
|
662
679
|
mobilepay: nil,
|
|
663
680
|
multibanco: nil,
|
|
@@ -701,6 +718,7 @@ module Stripe
|
|
|
701
718
|
zip: nil
|
|
702
719
|
)
|
|
703
720
|
@acss_debit = acss_debit
|
|
721
|
+
@aeon_pay = aeon_pay
|
|
704
722
|
@affirm = affirm
|
|
705
723
|
@afterpay_clearpay = afterpay_clearpay
|
|
706
724
|
@alipay = alipay
|
|
@@ -708,6 +726,7 @@ module Stripe
|
|
|
708
726
|
@alma = alma
|
|
709
727
|
@amazon_pay = amazon_pay
|
|
710
728
|
@au_becs_debit = au_becs_debit
|
|
729
|
+
@au_pay = au_pay
|
|
711
730
|
@bacs_debit = bacs_debit
|
|
712
731
|
@bancontact = bancontact
|
|
713
732
|
@billie = billie
|
|
@@ -719,6 +738,7 @@ module Stripe
|
|
|
719
738
|
@cashapp = cashapp
|
|
720
739
|
@crypto = crypto
|
|
721
740
|
@customer_balance = customer_balance
|
|
741
|
+
@dbarai = dbarai
|
|
722
742
|
@eps = eps
|
|
723
743
|
@fpx = fpx
|
|
724
744
|
@getflex = getflex
|
|
@@ -735,6 +755,7 @@ module Stripe
|
|
|
735
755
|
@kr_card = kr_card
|
|
736
756
|
@link = link
|
|
737
757
|
@mb_way = mb_way
|
|
758
|
+
@merpay = merpay
|
|
738
759
|
@metadata = metadata
|
|
739
760
|
@mobilepay = mobilepay
|
|
740
761
|
@multibanco = multibanco
|
|
@@ -1435,6 +1456,18 @@ module Stripe
|
|
|
1435
1456
|
end
|
|
1436
1457
|
end
|
|
1437
1458
|
|
|
1459
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
1460
|
+
# Whether this transaction starts a free trial. Set to `true` for a free trial or `false` otherwise. If omitted, retains the previously set value. If never set, Stripe uses Billing or metadata to determine trial status.
|
|
1461
|
+
attr_accessor :is_free_trial_transaction
|
|
1462
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
1463
|
+
attr_accessor :session
|
|
1464
|
+
|
|
1465
|
+
def initialize(is_free_trial_transaction: nil, session: nil)
|
|
1466
|
+
@is_free_trial_transaction = is_free_trial_transaction
|
|
1467
|
+
@session = session
|
|
1468
|
+
end
|
|
1469
|
+
end
|
|
1470
|
+
|
|
1438
1471
|
class SetupDetails < ::Stripe::RequestParams
|
|
1439
1472
|
class Benefit < ::Stripe::RequestParams
|
|
1440
1473
|
class FrMealVoucher < ::Stripe::RequestParams
|
|
@@ -1482,6 +1515,8 @@ module Stripe
|
|
|
1482
1515
|
attr_accessor :payment_method_data
|
|
1483
1516
|
# Payment method-specific configuration for this SetupIntent.
|
|
1484
1517
|
attr_accessor :payment_method_options
|
|
1518
|
+
# Options to configure Radar.
|
|
1519
|
+
attr_accessor :radar_options
|
|
1485
1520
|
# The URL to redirect your customer back to after they authenticate on the payment method's app or site.
|
|
1486
1521
|
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
|
1487
1522
|
# This parameter is only used for cards and other redirect-based payment methods.
|
|
@@ -1499,6 +1534,7 @@ module Stripe
|
|
|
1499
1534
|
payment_method: nil,
|
|
1500
1535
|
payment_method_data: nil,
|
|
1501
1536
|
payment_method_options: nil,
|
|
1537
|
+
radar_options: nil,
|
|
1502
1538
|
return_url: nil,
|
|
1503
1539
|
setup_details: nil,
|
|
1504
1540
|
use_stripe_sdk: nil
|
|
@@ -1510,6 +1546,7 @@ module Stripe
|
|
|
1510
1546
|
@payment_method = payment_method
|
|
1511
1547
|
@payment_method_data = payment_method_data
|
|
1512
1548
|
@payment_method_options = payment_method_options
|
|
1549
|
+
@radar_options = radar_options
|
|
1513
1550
|
@return_url = return_url
|
|
1514
1551
|
@setup_details = setup_details
|
|
1515
1552
|
@use_stripe_sdk = use_stripe_sdk
|
|
@@ -72,6 +72,7 @@ module Stripe
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
75
76
|
class Affirm < ::Stripe::RequestParams; end
|
|
76
77
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
77
78
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -90,6 +91,8 @@ module Stripe
|
|
|
90
91
|
end
|
|
91
92
|
end
|
|
92
93
|
|
|
94
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
95
|
+
|
|
93
96
|
class BacsDebit < ::Stripe::RequestParams
|
|
94
97
|
# Account number of the bank account that the funds will be debited from.
|
|
95
98
|
attr_accessor :account_number
|
|
@@ -172,6 +175,7 @@ module Stripe
|
|
|
172
175
|
class Cashapp < ::Stripe::RequestParams; end
|
|
173
176
|
class Crypto < ::Stripe::RequestParams; end
|
|
174
177
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
178
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
175
179
|
|
|
176
180
|
class Eps < ::Stripe::RequestParams
|
|
177
181
|
# The customer's bank.
|
|
@@ -257,6 +261,7 @@ module Stripe
|
|
|
257
261
|
class KrCard < ::Stripe::RequestParams; end
|
|
258
262
|
class Link < ::Stripe::RequestParams; end
|
|
259
263
|
class MbWay < ::Stripe::RequestParams; end
|
|
264
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
260
265
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
261
266
|
class Multibanco < ::Stripe::RequestParams; end
|
|
262
267
|
|
|
@@ -485,6 +490,8 @@ module Stripe
|
|
|
485
490
|
class Zip < ::Stripe::RequestParams; end
|
|
486
491
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
487
492
|
attr_accessor :acss_debit
|
|
493
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
494
|
+
attr_accessor :aeon_pay
|
|
488
495
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
489
496
|
attr_accessor :affirm
|
|
490
497
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -499,6 +506,8 @@ module Stripe
|
|
|
499
506
|
attr_accessor :amazon_pay
|
|
500
507
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
501
508
|
attr_accessor :au_becs_debit
|
|
509
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
510
|
+
attr_accessor :au_pay
|
|
502
511
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
503
512
|
attr_accessor :bacs_debit
|
|
504
513
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -521,6 +530,8 @@ module Stripe
|
|
|
521
530
|
attr_accessor :crypto
|
|
522
531
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
523
532
|
attr_accessor :customer_balance
|
|
533
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
534
|
+
attr_accessor :dbarai
|
|
524
535
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
525
536
|
attr_accessor :eps
|
|
526
537
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -553,6 +564,8 @@ module Stripe
|
|
|
553
564
|
attr_accessor :link
|
|
554
565
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
555
566
|
attr_accessor :mb_way
|
|
567
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
568
|
+
attr_accessor :merpay
|
|
556
569
|
# Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
557
570
|
attr_accessor :metadata
|
|
558
571
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -638,6 +651,7 @@ module Stripe
|
|
|
638
651
|
|
|
639
652
|
def initialize(
|
|
640
653
|
acss_debit: nil,
|
|
654
|
+
aeon_pay: nil,
|
|
641
655
|
affirm: nil,
|
|
642
656
|
afterpay_clearpay: nil,
|
|
643
657
|
alipay: nil,
|
|
@@ -645,6 +659,7 @@ module Stripe
|
|
|
645
659
|
alma: nil,
|
|
646
660
|
amazon_pay: nil,
|
|
647
661
|
au_becs_debit: nil,
|
|
662
|
+
au_pay: nil,
|
|
648
663
|
bacs_debit: nil,
|
|
649
664
|
bancontact: nil,
|
|
650
665
|
billie: nil,
|
|
@@ -656,6 +671,7 @@ module Stripe
|
|
|
656
671
|
cashapp: nil,
|
|
657
672
|
crypto: nil,
|
|
658
673
|
customer_balance: nil,
|
|
674
|
+
dbarai: nil,
|
|
659
675
|
eps: nil,
|
|
660
676
|
fpx: nil,
|
|
661
677
|
getflex: nil,
|
|
@@ -672,6 +688,7 @@ module Stripe
|
|
|
672
688
|
kr_card: nil,
|
|
673
689
|
link: nil,
|
|
674
690
|
mb_way: nil,
|
|
691
|
+
merpay: nil,
|
|
675
692
|
metadata: nil,
|
|
676
693
|
mobilepay: nil,
|
|
677
694
|
multibanco: nil,
|
|
@@ -715,6 +732,7 @@ module Stripe
|
|
|
715
732
|
zip: nil
|
|
716
733
|
)
|
|
717
734
|
@acss_debit = acss_debit
|
|
735
|
+
@aeon_pay = aeon_pay
|
|
718
736
|
@affirm = affirm
|
|
719
737
|
@afterpay_clearpay = afterpay_clearpay
|
|
720
738
|
@alipay = alipay
|
|
@@ -722,6 +740,7 @@ module Stripe
|
|
|
722
740
|
@alma = alma
|
|
723
741
|
@amazon_pay = amazon_pay
|
|
724
742
|
@au_becs_debit = au_becs_debit
|
|
743
|
+
@au_pay = au_pay
|
|
725
744
|
@bacs_debit = bacs_debit
|
|
726
745
|
@bancontact = bancontact
|
|
727
746
|
@billie = billie
|
|
@@ -733,6 +752,7 @@ module Stripe
|
|
|
733
752
|
@cashapp = cashapp
|
|
734
753
|
@crypto = crypto
|
|
735
754
|
@customer_balance = customer_balance
|
|
755
|
+
@dbarai = dbarai
|
|
736
756
|
@eps = eps
|
|
737
757
|
@fpx = fpx
|
|
738
758
|
@getflex = getflex
|
|
@@ -749,6 +769,7 @@ module Stripe
|
|
|
749
769
|
@kr_card = kr_card
|
|
750
770
|
@link = link
|
|
751
771
|
@mb_way = mb_way
|
|
772
|
+
@merpay = merpay
|
|
752
773
|
@metadata = metadata
|
|
753
774
|
@mobilepay = mobilepay
|
|
754
775
|
@multibanco = multibanco
|
|
@@ -1449,6 +1470,18 @@ module Stripe
|
|
|
1449
1470
|
end
|
|
1450
1471
|
end
|
|
1451
1472
|
|
|
1473
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
1474
|
+
# Whether this transaction starts a free trial. Set to `true` for a free trial or `false` otherwise. If omitted, retains the previously set value. If never set, Stripe uses Billing or metadata to determine trial status.
|
|
1475
|
+
attr_accessor :is_free_trial_transaction
|
|
1476
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
1477
|
+
attr_accessor :session
|
|
1478
|
+
|
|
1479
|
+
def initialize(is_free_trial_transaction: nil, session: nil)
|
|
1480
|
+
@is_free_trial_transaction = is_free_trial_transaction
|
|
1481
|
+
@session = session
|
|
1482
|
+
end
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1452
1485
|
class SetupDetails < ::Stripe::RequestParams
|
|
1453
1486
|
class Benefit < ::Stripe::RequestParams
|
|
1454
1487
|
class FrMealVoucher < ::Stripe::RequestParams
|
|
@@ -1538,6 +1571,8 @@ module Stripe
|
|
|
1538
1571
|
attr_accessor :payment_method_data
|
|
1539
1572
|
# Payment method-specific configuration for this SetupIntent.
|
|
1540
1573
|
attr_accessor :payment_method_options
|
|
1574
|
+
# Options to configure Radar.
|
|
1575
|
+
attr_accessor :radar_options
|
|
1541
1576
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).
|
|
1542
1577
|
attr_accessor :return_url
|
|
1543
1578
|
# Provides industry-specific information about the SetupIntent.
|
|
@@ -1570,6 +1605,7 @@ module Stripe
|
|
|
1570
1605
|
payment_method_configuration: nil,
|
|
1571
1606
|
payment_method_data: nil,
|
|
1572
1607
|
payment_method_options: nil,
|
|
1608
|
+
radar_options: nil,
|
|
1573
1609
|
return_url: nil,
|
|
1574
1610
|
setup_details: nil,
|
|
1575
1611
|
single_use: nil,
|
|
@@ -1594,6 +1630,7 @@ module Stripe
|
|
|
1594
1630
|
@payment_method_configuration = payment_method_configuration
|
|
1595
1631
|
@payment_method_data = payment_method_data
|
|
1596
1632
|
@payment_method_options = payment_method_options
|
|
1633
|
+
@radar_options = radar_options
|
|
1597
1634
|
@return_url = return_url
|
|
1598
1635
|
@setup_details = setup_details
|
|
1599
1636
|
@single_use = single_use
|