stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3
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 +28 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- 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/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +46 -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/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- 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 +58 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -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 +42 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- 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 +19 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
- data/lib/stripe/params/setup_intent_create_params.rb +50 -1
- data/lib/stripe/params/setup_intent_update_params.rb +34 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -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/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +27 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +373 -5
- data/lib/stripe/resources/checkout/session.rb +32 -0
- data/lib/stripe/resources/confirmation_token.rb +103 -3
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +151 -2
- data/lib/stripe/resources/payment_intent.rb +126 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +103 -3
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +151 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +21 -2
- data/lib/stripe/resources/setup_intent.rb +38 -2
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- 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/terminal/reader.rb +18 -1
- 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/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -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/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- 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/core/vault/network_token_service.rb +1 -0
- 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/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_event_notification_handler.rb +28 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +5856 -213
- metadata +32 -2
|
@@ -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
|
|
@@ -826,6 +847,15 @@ module Stripe
|
|
|
826
847
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
827
848
|
|
|
828
849
|
class BacsDebit < ::Stripe::RequestParams
|
|
850
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
851
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
852
|
+
attr_accessor :return_url
|
|
853
|
+
|
|
854
|
+
def initialize(return_url: nil)
|
|
855
|
+
@return_url = return_url
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
829
859
|
class MandateOptions < ::Stripe::RequestParams
|
|
830
860
|
# 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 'DDIC' or 'STRIPE'.
|
|
831
861
|
attr_accessor :reference_prefix
|
|
@@ -834,12 +864,15 @@ module Stripe
|
|
|
834
864
|
@reference_prefix = reference_prefix
|
|
835
865
|
end
|
|
836
866
|
end
|
|
867
|
+
# Additional fields for Financial Connections session creation.
|
|
868
|
+
attr_accessor :financial_connections
|
|
837
869
|
# Additional fields for Mandate creation
|
|
838
870
|
attr_accessor :mandate_options
|
|
839
871
|
# Attribute for param field verification_method
|
|
840
872
|
attr_accessor :verification_method
|
|
841
873
|
|
|
842
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
874
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
875
|
+
@financial_connections = financial_connections
|
|
843
876
|
@mandate_options = mandate_options
|
|
844
877
|
@verification_method = verification_method
|
|
845
878
|
end
|
|
@@ -1435,6 +1468,18 @@ module Stripe
|
|
|
1435
1468
|
end
|
|
1436
1469
|
end
|
|
1437
1470
|
|
|
1471
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
1472
|
+
# 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.
|
|
1473
|
+
attr_accessor :is_free_trial_transaction
|
|
1474
|
+
# 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.
|
|
1475
|
+
attr_accessor :session
|
|
1476
|
+
|
|
1477
|
+
def initialize(is_free_trial_transaction: nil, session: nil)
|
|
1478
|
+
@is_free_trial_transaction = is_free_trial_transaction
|
|
1479
|
+
@session = session
|
|
1480
|
+
end
|
|
1481
|
+
end
|
|
1482
|
+
|
|
1438
1483
|
class SetupDetails < ::Stripe::RequestParams
|
|
1439
1484
|
class Benefit < ::Stripe::RequestParams
|
|
1440
1485
|
class FrMealVoucher < ::Stripe::RequestParams
|
|
@@ -1482,6 +1527,8 @@ module Stripe
|
|
|
1482
1527
|
attr_accessor :payment_method_data
|
|
1483
1528
|
# Payment method-specific configuration for this SetupIntent.
|
|
1484
1529
|
attr_accessor :payment_method_options
|
|
1530
|
+
# Options to configure Radar.
|
|
1531
|
+
attr_accessor :radar_options
|
|
1485
1532
|
# The URL to redirect your customer back to after they authenticate on the payment method's app or site.
|
|
1486
1533
|
# If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
|
1487
1534
|
# This parameter is only used for cards and other redirect-based payment methods.
|
|
@@ -1499,6 +1546,7 @@ module Stripe
|
|
|
1499
1546
|
payment_method: nil,
|
|
1500
1547
|
payment_method_data: nil,
|
|
1501
1548
|
payment_method_options: nil,
|
|
1549
|
+
radar_options: nil,
|
|
1502
1550
|
return_url: nil,
|
|
1503
1551
|
setup_details: nil,
|
|
1504
1552
|
use_stripe_sdk: nil
|
|
@@ -1510,6 +1558,7 @@ module Stripe
|
|
|
1510
1558
|
@payment_method = payment_method
|
|
1511
1559
|
@payment_method_data = payment_method_data
|
|
1512
1560
|
@payment_method_options = payment_method_options
|
|
1561
|
+
@radar_options = radar_options
|
|
1513
1562
|
@return_url = return_url
|
|
1514
1563
|
@setup_details = setup_details
|
|
1515
1564
|
@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
|
|
@@ -840,6 +861,15 @@ module Stripe
|
|
|
840
861
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
841
862
|
|
|
842
863
|
class BacsDebit < ::Stripe::RequestParams
|
|
864
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
865
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
866
|
+
attr_accessor :return_url
|
|
867
|
+
|
|
868
|
+
def initialize(return_url: nil)
|
|
869
|
+
@return_url = return_url
|
|
870
|
+
end
|
|
871
|
+
end
|
|
872
|
+
|
|
843
873
|
class MandateOptions < ::Stripe::RequestParams
|
|
844
874
|
# 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 'DDIC' or 'STRIPE'.
|
|
845
875
|
attr_accessor :reference_prefix
|
|
@@ -848,12 +878,15 @@ module Stripe
|
|
|
848
878
|
@reference_prefix = reference_prefix
|
|
849
879
|
end
|
|
850
880
|
end
|
|
881
|
+
# Additional fields for Financial Connections session creation.
|
|
882
|
+
attr_accessor :financial_connections
|
|
851
883
|
# Additional fields for Mandate creation
|
|
852
884
|
attr_accessor :mandate_options
|
|
853
885
|
# Attribute for param field verification_method
|
|
854
886
|
attr_accessor :verification_method
|
|
855
887
|
|
|
856
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
888
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
889
|
+
@financial_connections = financial_connections
|
|
857
890
|
@mandate_options = mandate_options
|
|
858
891
|
@verification_method = verification_method
|
|
859
892
|
end
|
|
@@ -1449,6 +1482,18 @@ module Stripe
|
|
|
1449
1482
|
end
|
|
1450
1483
|
end
|
|
1451
1484
|
|
|
1485
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
1486
|
+
# 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.
|
|
1487
|
+
attr_accessor :is_free_trial_transaction
|
|
1488
|
+
# 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.
|
|
1489
|
+
attr_accessor :session
|
|
1490
|
+
|
|
1491
|
+
def initialize(is_free_trial_transaction: nil, session: nil)
|
|
1492
|
+
@is_free_trial_transaction = is_free_trial_transaction
|
|
1493
|
+
@session = session
|
|
1494
|
+
end
|
|
1495
|
+
end
|
|
1496
|
+
|
|
1452
1497
|
class SetupDetails < ::Stripe::RequestParams
|
|
1453
1498
|
class Benefit < ::Stripe::RequestParams
|
|
1454
1499
|
class FrMealVoucher < ::Stripe::RequestParams
|
|
@@ -1538,6 +1583,8 @@ module Stripe
|
|
|
1538
1583
|
attr_accessor :payment_method_data
|
|
1539
1584
|
# Payment method-specific configuration for this SetupIntent.
|
|
1540
1585
|
attr_accessor :payment_method_options
|
|
1586
|
+
# Options to configure Radar.
|
|
1587
|
+
attr_accessor :radar_options
|
|
1541
1588
|
# 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
1589
|
attr_accessor :return_url
|
|
1543
1590
|
# Provides industry-specific information about the SetupIntent.
|
|
@@ -1570,6 +1617,7 @@ module Stripe
|
|
|
1570
1617
|
payment_method_configuration: nil,
|
|
1571
1618
|
payment_method_data: nil,
|
|
1572
1619
|
payment_method_options: nil,
|
|
1620
|
+
radar_options: nil,
|
|
1573
1621
|
return_url: nil,
|
|
1574
1622
|
setup_details: nil,
|
|
1575
1623
|
single_use: nil,
|
|
@@ -1594,6 +1642,7 @@ module Stripe
|
|
|
1594
1642
|
@payment_method_configuration = payment_method_configuration
|
|
1595
1643
|
@payment_method_data = payment_method_data
|
|
1596
1644
|
@payment_method_options = payment_method_options
|
|
1645
|
+
@radar_options = radar_options
|
|
1597
1646
|
@return_url = return_url
|
|
1598
1647
|
@setup_details = setup_details
|
|
1599
1648
|
@single_use = single_use
|
|
@@ -19,6 +19,7 @@ module Stripe
|
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
22
23
|
class Affirm < ::Stripe::RequestParams; end
|
|
23
24
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
24
25
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -37,6 +38,8 @@ module Stripe
|
|
|
37
38
|
end
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
42
|
+
|
|
40
43
|
class BacsDebit < ::Stripe::RequestParams
|
|
41
44
|
# Account number of the bank account that the funds will be debited from.
|
|
42
45
|
attr_accessor :account_number
|
|
@@ -119,6 +122,7 @@ module Stripe
|
|
|
119
122
|
class Cashapp < ::Stripe::RequestParams; end
|
|
120
123
|
class Crypto < ::Stripe::RequestParams; end
|
|
121
124
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
125
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
122
126
|
|
|
123
127
|
class Eps < ::Stripe::RequestParams
|
|
124
128
|
# The customer's bank.
|
|
@@ -204,6 +208,7 @@ module Stripe
|
|
|
204
208
|
class KrCard < ::Stripe::RequestParams; end
|
|
205
209
|
class Link < ::Stripe::RequestParams; end
|
|
206
210
|
class MbWay < ::Stripe::RequestParams; end
|
|
211
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
207
212
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
208
213
|
class Multibanco < ::Stripe::RequestParams; end
|
|
209
214
|
|
|
@@ -432,6 +437,8 @@ module Stripe
|
|
|
432
437
|
class Zip < ::Stripe::RequestParams; end
|
|
433
438
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
434
439
|
attr_accessor :acss_debit
|
|
440
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
441
|
+
attr_accessor :aeon_pay
|
|
435
442
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
436
443
|
attr_accessor :affirm
|
|
437
444
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -446,6 +453,8 @@ module Stripe
|
|
|
446
453
|
attr_accessor :amazon_pay
|
|
447
454
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
448
455
|
attr_accessor :au_becs_debit
|
|
456
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
457
|
+
attr_accessor :au_pay
|
|
449
458
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
450
459
|
attr_accessor :bacs_debit
|
|
451
460
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -468,6 +477,8 @@ module Stripe
|
|
|
468
477
|
attr_accessor :crypto
|
|
469
478
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
470
479
|
attr_accessor :customer_balance
|
|
480
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
481
|
+
attr_accessor :dbarai
|
|
471
482
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
472
483
|
attr_accessor :eps
|
|
473
484
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -500,6 +511,8 @@ module Stripe
|
|
|
500
511
|
attr_accessor :link
|
|
501
512
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
502
513
|
attr_accessor :mb_way
|
|
514
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
515
|
+
attr_accessor :merpay
|
|
503
516
|
# 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`.
|
|
504
517
|
attr_accessor :metadata
|
|
505
518
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -585,6 +598,7 @@ module Stripe
|
|
|
585
598
|
|
|
586
599
|
def initialize(
|
|
587
600
|
acss_debit: nil,
|
|
601
|
+
aeon_pay: nil,
|
|
588
602
|
affirm: nil,
|
|
589
603
|
afterpay_clearpay: nil,
|
|
590
604
|
alipay: nil,
|
|
@@ -592,6 +606,7 @@ module Stripe
|
|
|
592
606
|
alma: nil,
|
|
593
607
|
amazon_pay: nil,
|
|
594
608
|
au_becs_debit: nil,
|
|
609
|
+
au_pay: nil,
|
|
595
610
|
bacs_debit: nil,
|
|
596
611
|
bancontact: nil,
|
|
597
612
|
billie: nil,
|
|
@@ -603,6 +618,7 @@ module Stripe
|
|
|
603
618
|
cashapp: nil,
|
|
604
619
|
crypto: nil,
|
|
605
620
|
customer_balance: nil,
|
|
621
|
+
dbarai: nil,
|
|
606
622
|
eps: nil,
|
|
607
623
|
fpx: nil,
|
|
608
624
|
getflex: nil,
|
|
@@ -619,6 +635,7 @@ module Stripe
|
|
|
619
635
|
kr_card: nil,
|
|
620
636
|
link: nil,
|
|
621
637
|
mb_way: nil,
|
|
638
|
+
merpay: nil,
|
|
622
639
|
metadata: nil,
|
|
623
640
|
mobilepay: nil,
|
|
624
641
|
multibanco: nil,
|
|
@@ -662,6 +679,7 @@ module Stripe
|
|
|
662
679
|
zip: nil
|
|
663
680
|
)
|
|
664
681
|
@acss_debit = acss_debit
|
|
682
|
+
@aeon_pay = aeon_pay
|
|
665
683
|
@affirm = affirm
|
|
666
684
|
@afterpay_clearpay = afterpay_clearpay
|
|
667
685
|
@alipay = alipay
|
|
@@ -669,6 +687,7 @@ module Stripe
|
|
|
669
687
|
@alma = alma
|
|
670
688
|
@amazon_pay = amazon_pay
|
|
671
689
|
@au_becs_debit = au_becs_debit
|
|
690
|
+
@au_pay = au_pay
|
|
672
691
|
@bacs_debit = bacs_debit
|
|
673
692
|
@bancontact = bancontact
|
|
674
693
|
@billie = billie
|
|
@@ -680,6 +699,7 @@ module Stripe
|
|
|
680
699
|
@cashapp = cashapp
|
|
681
700
|
@crypto = crypto
|
|
682
701
|
@customer_balance = customer_balance
|
|
702
|
+
@dbarai = dbarai
|
|
683
703
|
@eps = eps
|
|
684
704
|
@fpx = fpx
|
|
685
705
|
@getflex = getflex
|
|
@@ -696,6 +716,7 @@ module Stripe
|
|
|
696
716
|
@kr_card = kr_card
|
|
697
717
|
@link = link
|
|
698
718
|
@mb_way = mb_way
|
|
719
|
+
@merpay = merpay
|
|
699
720
|
@metadata = metadata
|
|
700
721
|
@mobilepay = mobilepay
|
|
701
722
|
@multibanco = multibanco
|
|
@@ -787,6 +808,15 @@ module Stripe
|
|
|
787
808
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
788
809
|
|
|
789
810
|
class BacsDebit < ::Stripe::RequestParams
|
|
811
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
812
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
813
|
+
attr_accessor :return_url
|
|
814
|
+
|
|
815
|
+
def initialize(return_url: nil)
|
|
816
|
+
@return_url = return_url
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
790
820
|
class MandateOptions < ::Stripe::RequestParams
|
|
791
821
|
# 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 'DDIC' or 'STRIPE'.
|
|
792
822
|
attr_accessor :reference_prefix
|
|
@@ -795,12 +825,15 @@ module Stripe
|
|
|
795
825
|
@reference_prefix = reference_prefix
|
|
796
826
|
end
|
|
797
827
|
end
|
|
828
|
+
# Additional fields for Financial Connections session creation.
|
|
829
|
+
attr_accessor :financial_connections
|
|
798
830
|
# Additional fields for Mandate creation
|
|
799
831
|
attr_accessor :mandate_options
|
|
800
832
|
# Attribute for param field verification_method
|
|
801
833
|
attr_accessor :verification_method
|
|
802
834
|
|
|
803
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
835
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
836
|
+
@financial_connections = financial_connections
|
|
804
837
|
@mandate_options = mandate_options
|
|
805
838
|
@verification_method = verification_method
|
|
806
839
|
end
|
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module SharedPayment
|
|
6
6
|
class IssuedTokenCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class ReferralFeeDetails < ::Stripe::RequestParams
|
|
8
|
+
# The Customer to be invoiced for fees assessed.
|
|
9
|
+
attr_accessor :customer
|
|
10
|
+
# The account with a Customer configuration to be invoiced for fees assessed.
|
|
11
|
+
attr_accessor :customer_account
|
|
12
|
+
# The percentage of the payment to charge as a referral fee, from 0 through 50 with at most two decimal places.
|
|
13
|
+
attr_accessor :referral_fee_percent
|
|
14
|
+
|
|
15
|
+
def initialize(customer: nil, customer_account: nil, referral_fee_percent: nil)
|
|
16
|
+
@customer = customer
|
|
17
|
+
@customer_account = customer_account
|
|
18
|
+
@referral_fee_percent = referral_fee_percent
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
7
22
|
class SellerDetails < ::Stripe::RequestParams
|
|
8
23
|
# A unique id within a network that identifies a logical seller, usually this would be the unique merchant id.
|
|
9
24
|
attr_accessor :external_id
|
|
@@ -57,6 +72,8 @@ module Stripe
|
|
|
57
72
|
attr_accessor :expand
|
|
58
73
|
# The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken.
|
|
59
74
|
attr_accessor :payment_method
|
|
75
|
+
# Referral fee details for this SharedPaymentToken.
|
|
76
|
+
attr_accessor :referral_fee_details
|
|
60
77
|
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
61
78
|
attr_accessor :return_url
|
|
62
79
|
# Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
|
|
@@ -73,6 +90,7 @@ module Stripe
|
|
|
73
90
|
def initialize(
|
|
74
91
|
expand: nil,
|
|
75
92
|
payment_method: nil,
|
|
93
|
+
referral_fee_details: nil,
|
|
76
94
|
return_url: nil,
|
|
77
95
|
seller_details: nil,
|
|
78
96
|
setup_future_usage: nil,
|
|
@@ -82,6 +100,7 @@ module Stripe
|
|
|
82
100
|
)
|
|
83
101
|
@expand = expand
|
|
84
102
|
@payment_method = payment_method
|
|
103
|
+
@referral_fee_details = referral_fee_details
|
|
85
104
|
@return_url = return_url
|
|
86
105
|
@seller_details = seller_details
|
|
87
106
|
@setup_future_usage = setup_future_usage
|
|
@@ -1166,6 +1166,8 @@ module Stripe
|
|
|
1166
1166
|
attr_accessor :billing_cycle_anchor
|
|
1167
1167
|
# Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurrence of the day_of_month at the hour, minute, and second UTC.
|
|
1168
1168
|
attr_accessor :billing_cycle_anchor_config
|
|
1169
|
+
# The Billing Group which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
1170
|
+
attr_accessor :billing_group
|
|
1169
1171
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
1170
1172
|
attr_accessor :billing_mode
|
|
1171
1173
|
# An array of billing schedules, which allow you to bill customers in advance for multiple service periods. Requires flexible billing mode and API version 2026-05-27.dahlia or later. Learn more about [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling).
|
|
@@ -1237,6 +1239,7 @@ module Stripe
|
|
|
1237
1239
|
billing_cadence: nil,
|
|
1238
1240
|
billing_cycle_anchor: nil,
|
|
1239
1241
|
billing_cycle_anchor_config: nil,
|
|
1242
|
+
billing_group: nil,
|
|
1240
1243
|
billing_mode: nil,
|
|
1241
1244
|
billing_schedules: nil,
|
|
1242
1245
|
billing_thresholds: nil,
|
|
@@ -1276,6 +1279,7 @@ module Stripe
|
|
|
1276
1279
|
@billing_cadence = billing_cadence
|
|
1277
1280
|
@billing_cycle_anchor = billing_cycle_anchor
|
|
1278
1281
|
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
|
1282
|
+
@billing_group = billing_group
|
|
1279
1283
|
@billing_mode = billing_mode
|
|
1280
1284
|
@billing_schedules = billing_schedules
|
|
1281
1285
|
@billing_thresholds = billing_thresholds
|
|
@@ -67,8 +67,10 @@ module Stripe
|
|
|
67
67
|
end
|
|
68
68
|
# Filter subscriptions by their automatic tax settings.
|
|
69
69
|
attr_accessor :automatic_tax
|
|
70
|
-
#
|
|
70
|
+
# The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
71
71
|
attr_accessor :billing_cadence
|
|
72
|
+
# Filter for subscriptions that have the specified billing group.
|
|
73
|
+
attr_accessor :billing_group
|
|
72
74
|
# The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
73
75
|
attr_accessor :collection_method
|
|
74
76
|
# Only return subscriptions that were created during the given date interval.
|
|
@@ -101,6 +103,7 @@ module Stripe
|
|
|
101
103
|
def initialize(
|
|
102
104
|
automatic_tax: nil,
|
|
103
105
|
billing_cadence: nil,
|
|
106
|
+
billing_group: nil,
|
|
104
107
|
collection_method: nil,
|
|
105
108
|
created: nil,
|
|
106
109
|
current_period_end: nil,
|
|
@@ -118,6 +121,7 @@ module Stripe
|
|
|
118
121
|
)
|
|
119
122
|
@automatic_tax = automatic_tax
|
|
120
123
|
@billing_cadence = billing_cadence
|
|
124
|
+
@billing_group = billing_group
|
|
121
125
|
@collection_method = collection_method
|
|
122
126
|
@created = created
|
|
123
127
|
@current_period_end = current_period_end
|