stripe 21.0.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +16 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +54 -34
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/event_types.rb +20 -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_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +8 -1
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +663 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +663 -1
- data/lib/stripe/params/payment_intent_create_params.rb +664 -2
- data/lib/stripe/params/payment_intent_update_params.rb +664 -2
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -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/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +138 -4
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +138 -4
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/request_options.rb +19 -2
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +274 -5
- data/lib/stripe/resources/checkout/session.rb +4 -0
- data/lib/stripe/resources/confirmation_token.rb +2 -2
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -2
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +4 -1
- data/lib/stripe/resources/payment_intent.rb +575 -2
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/payment_record.rb +4 -1
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- 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 +1 -1
- data/lib/stripe/resources/setup_attempt.rb +2 -2
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -9
- data/lib/stripe/resources/treasury/received_credit.rb +1 -1
- data/lib/stripe/resources/treasury/received_debit.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +246 -3
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event_base.rb +8 -25
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -0
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/event_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_event_notification_handler.rb +26 -0
- data/lib/stripe/stripe_object.rb +22 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6888 -221
- metadata +12 -2
|
@@ -284,6 +284,15 @@ module Stripe
|
|
|
284
284
|
end
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
+
class BilliePayments < ::Stripe::RequestParams
|
|
288
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
289
|
+
attr_accessor :requested
|
|
290
|
+
|
|
291
|
+
def initialize(requested: nil)
|
|
292
|
+
@requested = requested
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
287
296
|
class BlikPayments < ::Stripe::RequestParams
|
|
288
297
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
289
298
|
attr_accessor :requested
|
|
@@ -446,6 +455,15 @@ module Stripe
|
|
|
446
455
|
end
|
|
447
456
|
end
|
|
448
457
|
|
|
458
|
+
class MbWayPayments < ::Stripe::RequestParams
|
|
459
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
460
|
+
attr_accessor :requested
|
|
461
|
+
|
|
462
|
+
def initialize(requested: nil)
|
|
463
|
+
@requested = requested
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
|
|
449
467
|
class MobilepayPayments < ::Stripe::RequestParams
|
|
450
468
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
451
469
|
attr_accessor :requested
|
|
@@ -482,6 +500,15 @@ module Stripe
|
|
|
482
500
|
end
|
|
483
501
|
end
|
|
484
502
|
|
|
503
|
+
class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams
|
|
504
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
505
|
+
attr_accessor :requested
|
|
506
|
+
|
|
507
|
+
def initialize(requested: nil)
|
|
508
|
+
@requested = requested
|
|
509
|
+
end
|
|
510
|
+
end
|
|
511
|
+
|
|
485
512
|
class OxxoPayments < ::Stripe::RequestParams
|
|
486
513
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
487
514
|
attr_accessor :requested
|
|
@@ -527,6 +554,24 @@ module Stripe
|
|
|
527
554
|
end
|
|
528
555
|
end
|
|
529
556
|
|
|
557
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
558
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
559
|
+
attr_accessor :requested
|
|
560
|
+
|
|
561
|
+
def initialize(requested: nil)
|
|
562
|
+
@requested = requested
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
class PixPayments < ::Stripe::RequestParams
|
|
567
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
568
|
+
attr_accessor :requested
|
|
569
|
+
|
|
570
|
+
def initialize(requested: nil)
|
|
571
|
+
@requested = requested
|
|
572
|
+
end
|
|
573
|
+
end
|
|
574
|
+
|
|
530
575
|
class PromptpayPayments < ::Stripe::RequestParams
|
|
531
576
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
532
577
|
attr_accessor :requested
|
|
@@ -652,6 +697,8 @@ module Stripe
|
|
|
652
697
|
attr_accessor :bacs_debit_payments
|
|
653
698
|
# Allow the merchant to process Bancontact payments.
|
|
654
699
|
attr_accessor :bancontact_payments
|
|
700
|
+
# Allow the merchant to process Billie payments.
|
|
701
|
+
attr_accessor :billie_payments
|
|
655
702
|
# Allow the merchant to process BLIK payments.
|
|
656
703
|
attr_accessor :blik_payments
|
|
657
704
|
# Allow the merchant to process recurring BLIK payments.
|
|
@@ -688,6 +735,8 @@ module Stripe
|
|
|
688
735
|
attr_accessor :kr_card_payments
|
|
689
736
|
# Allow the merchant to process Link payments.
|
|
690
737
|
attr_accessor :link_payments
|
|
738
|
+
# Allow the merchant to process MB WAY payments.
|
|
739
|
+
attr_accessor :mb_way_payments
|
|
691
740
|
# Allow the merchant to process MobilePay payments.
|
|
692
741
|
attr_accessor :mobilepay_payments
|
|
693
742
|
# Allow the merchant to process Multibanco payments.
|
|
@@ -696,6 +745,8 @@ module Stripe
|
|
|
696
745
|
attr_accessor :mx_bank_transfer_payments
|
|
697
746
|
# Allow the merchant to process Naver Pay payments.
|
|
698
747
|
attr_accessor :naver_pay_payments
|
|
748
|
+
# Allow the merchant to process New Zealand BECS Direct Debit payments.
|
|
749
|
+
attr_accessor :nz_bank_account_becs_debit_payments
|
|
699
750
|
# Allow the merchant to process OXXO payments.
|
|
700
751
|
attr_accessor :oxxo_payments
|
|
701
752
|
# Allow the merchant to process Przelewy24 (P24) payments.
|
|
@@ -706,6 +757,10 @@ module Stripe
|
|
|
706
757
|
attr_accessor :payco_payments
|
|
707
758
|
# Allow the merchant to process PayNow payments.
|
|
708
759
|
attr_accessor :paynow_payments
|
|
760
|
+
# Allow the merchant to process PayPay payments.
|
|
761
|
+
attr_accessor :paypay_payments
|
|
762
|
+
# Allow the merchant to process Pix payments.
|
|
763
|
+
attr_accessor :pix_payments
|
|
709
764
|
# Allow the merchant to process PromptPay payments.
|
|
710
765
|
attr_accessor :promptpay_payments
|
|
711
766
|
# Allow the merchant to process Revolut Pay payments.
|
|
@@ -741,6 +796,7 @@ module Stripe
|
|
|
741
796
|
au_becs_debit_payments: nil,
|
|
742
797
|
bacs_debit_payments: nil,
|
|
743
798
|
bancontact_payments: nil,
|
|
799
|
+
billie_payments: nil,
|
|
744
800
|
blik_payments: nil,
|
|
745
801
|
blik_recurring_payments: nil,
|
|
746
802
|
boleto_payments: nil,
|
|
@@ -759,15 +815,19 @@ module Stripe
|
|
|
759
815
|
konbini_payments: nil,
|
|
760
816
|
kr_card_payments: nil,
|
|
761
817
|
link_payments: nil,
|
|
818
|
+
mb_way_payments: nil,
|
|
762
819
|
mobilepay_payments: nil,
|
|
763
820
|
multibanco_payments: nil,
|
|
764
821
|
mx_bank_transfer_payments: nil,
|
|
765
822
|
naver_pay_payments: nil,
|
|
823
|
+
nz_bank_account_becs_debit_payments: nil,
|
|
766
824
|
oxxo_payments: nil,
|
|
767
825
|
p24_payments: nil,
|
|
768
826
|
pay_by_bank_payments: nil,
|
|
769
827
|
payco_payments: nil,
|
|
770
828
|
paynow_payments: nil,
|
|
829
|
+
paypay_payments: nil,
|
|
830
|
+
pix_payments: nil,
|
|
771
831
|
promptpay_payments: nil,
|
|
772
832
|
revolut_pay_payments: nil,
|
|
773
833
|
samsung_pay_payments: nil,
|
|
@@ -790,6 +850,7 @@ module Stripe
|
|
|
790
850
|
@au_becs_debit_payments = au_becs_debit_payments
|
|
791
851
|
@bacs_debit_payments = bacs_debit_payments
|
|
792
852
|
@bancontact_payments = bancontact_payments
|
|
853
|
+
@billie_payments = billie_payments
|
|
793
854
|
@blik_payments = blik_payments
|
|
794
855
|
@blik_recurring_payments = blik_recurring_payments
|
|
795
856
|
@boleto_payments = boleto_payments
|
|
@@ -808,15 +869,19 @@ module Stripe
|
|
|
808
869
|
@konbini_payments = konbini_payments
|
|
809
870
|
@kr_card_payments = kr_card_payments
|
|
810
871
|
@link_payments = link_payments
|
|
872
|
+
@mb_way_payments = mb_way_payments
|
|
811
873
|
@mobilepay_payments = mobilepay_payments
|
|
812
874
|
@multibanco_payments = multibanco_payments
|
|
813
875
|
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
|
814
876
|
@naver_pay_payments = naver_pay_payments
|
|
877
|
+
@nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
|
|
815
878
|
@oxxo_payments = oxxo_payments
|
|
816
879
|
@p24_payments = p24_payments
|
|
817
880
|
@pay_by_bank_payments = pay_by_bank_payments
|
|
818
881
|
@payco_payments = payco_payments
|
|
819
882
|
@paynow_payments = paynow_payments
|
|
883
|
+
@paypay_payments = paypay_payments
|
|
884
|
+
@pix_payments = pix_payments
|
|
820
885
|
@promptpay_payments = promptpay_payments
|
|
821
886
|
@revolut_pay_payments = revolut_pay_payments
|
|
822
887
|
@samsung_pay_payments = samsung_pay_payments
|
|
@@ -878,14 +943,79 @@ module Stripe
|
|
|
878
943
|
@phone = phone
|
|
879
944
|
end
|
|
880
945
|
end
|
|
946
|
+
# Information provided to support the onboarding process for Konbini payments.
|
|
947
|
+
attr_accessor :additional_material
|
|
881
948
|
# Support for Konbini payments.
|
|
882
949
|
attr_accessor :support
|
|
883
950
|
|
|
884
|
-
def initialize(support: nil)
|
|
951
|
+
def initialize(additional_material: nil, support: nil)
|
|
952
|
+
@additional_material = additional_material
|
|
885
953
|
@support = support
|
|
886
954
|
end
|
|
887
955
|
end
|
|
888
956
|
|
|
957
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
958
|
+
class Site < ::Stripe::RequestParams
|
|
959
|
+
class Accessible < ::Stripe::RequestParams; end
|
|
960
|
+
|
|
961
|
+
class InDevelopment < ::Stripe::RequestParams
|
|
962
|
+
# The password needed to access the business's website.
|
|
963
|
+
attr_accessor :password
|
|
964
|
+
# The username needed to access the business's website.
|
|
965
|
+
attr_accessor :username
|
|
966
|
+
|
|
967
|
+
def initialize(password: nil, username: nil)
|
|
968
|
+
@password = password
|
|
969
|
+
@username = username
|
|
970
|
+
end
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
class Restricted < ::Stripe::RequestParams
|
|
974
|
+
# The file explaining the payment flow for the business.
|
|
975
|
+
attr_accessor :payment_flow_file
|
|
976
|
+
|
|
977
|
+
def initialize(payment_flow_file: nil)
|
|
978
|
+
@payment_flow_file = payment_flow_file
|
|
979
|
+
end
|
|
980
|
+
end
|
|
981
|
+
# Additional information about the business's website when it's accessible.
|
|
982
|
+
attr_accessor :accessible
|
|
983
|
+
# Additional information about the business's website when it's in development.
|
|
984
|
+
attr_accessor :in_development
|
|
985
|
+
# Additional information about the business's website when it has restricted access.
|
|
986
|
+
attr_accessor :restricted
|
|
987
|
+
# The status of the business's website.
|
|
988
|
+
attr_accessor :type
|
|
989
|
+
|
|
990
|
+
def initialize(accessible: nil, in_development: nil, restricted: nil, type: nil)
|
|
991
|
+
@accessible = accessible
|
|
992
|
+
@in_development = in_development
|
|
993
|
+
@restricted = restricted
|
|
994
|
+
@type = type
|
|
995
|
+
end
|
|
996
|
+
end
|
|
997
|
+
# Additional files supporting PayPay payments configuration.
|
|
998
|
+
attr_accessor :additional_files
|
|
999
|
+
# The type of goods sold by the merchant for PayPay payments.
|
|
1000
|
+
attr_accessor :goods_type
|
|
1001
|
+
# The business's website for PayPay payments.
|
|
1002
|
+
attr_accessor :site
|
|
1003
|
+
# URL to the Specified Commercial Transactions Act page for PayPay payments.
|
|
1004
|
+
attr_accessor :specified_commercial_transactions_act_url
|
|
1005
|
+
|
|
1006
|
+
def initialize(
|
|
1007
|
+
additional_files: nil,
|
|
1008
|
+
goods_type: nil,
|
|
1009
|
+
site: nil,
|
|
1010
|
+
specified_commercial_transactions_act_url: nil
|
|
1011
|
+
)
|
|
1012
|
+
@additional_files = additional_files
|
|
1013
|
+
@goods_type = goods_type
|
|
1014
|
+
@site = site
|
|
1015
|
+
@specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
|
|
1016
|
+
end
|
|
1017
|
+
end
|
|
1018
|
+
|
|
889
1019
|
class ScriptStatementDescriptor < ::Stripe::RequestParams
|
|
890
1020
|
class Kana < ::Stripe::RequestParams
|
|
891
1021
|
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
|
|
@@ -1007,6 +1137,8 @@ module Stripe
|
|
|
1007
1137
|
attr_accessor :konbini_payments
|
|
1008
1138
|
# The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
|
|
1009
1139
|
attr_accessor :mcc
|
|
1140
|
+
# Settings for PayPay payments.
|
|
1141
|
+
attr_accessor :paypay_payments
|
|
1010
1142
|
# Settings for the default text that appears on statements for language variations.
|
|
1011
1143
|
attr_accessor :script_statement_descriptor
|
|
1012
1144
|
# Settings for SEPA Direct Debit payments.
|
|
@@ -1024,6 +1156,7 @@ module Stripe
|
|
|
1024
1156
|
card_payments: nil,
|
|
1025
1157
|
konbini_payments: nil,
|
|
1026
1158
|
mcc: nil,
|
|
1159
|
+
paypay_payments: nil,
|
|
1027
1160
|
script_statement_descriptor: nil,
|
|
1028
1161
|
sepa_debit_payments: nil,
|
|
1029
1162
|
statement_descriptor: nil,
|
|
@@ -1036,6 +1169,7 @@ module Stripe
|
|
|
1036
1169
|
@card_payments = card_payments
|
|
1037
1170
|
@konbini_payments = konbini_payments
|
|
1038
1171
|
@mcc = mcc
|
|
1172
|
+
@paypay_payments = paypay_payments
|
|
1039
1173
|
@script_statement_descriptor = script_statement_descriptor
|
|
1040
1174
|
@sepa_debit_payments = sepa_debit_payments
|
|
1041
1175
|
@statement_descriptor = statement_descriptor
|
|
@@ -1221,9 +1355,9 @@ module Stripe
|
|
|
1221
1355
|
end
|
|
1222
1356
|
|
|
1223
1357
|
class Responsibilities < ::Stripe::RequestParams
|
|
1224
|
-
#
|
|
1358
|
+
# Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations. Set this value when adding an applicable configuration to the account. You can't change it after it's set.
|
|
1225
1359
|
attr_accessor :fees_collector
|
|
1226
|
-
#
|
|
1360
|
+
# Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk). Set this value when adding an applicable configuration to the account. You can't change it after it's set.
|
|
1227
1361
|
attr_accessor :losses_collector
|
|
1228
1362
|
|
|
1229
1363
|
def initialize(fees_collector: nil, losses_collector: nil)
|
|
@@ -2400,7 +2534,7 @@ module Stripe
|
|
|
2400
2534
|
attr_accessor :contact_email
|
|
2401
2535
|
# The default contact phone for the Account.
|
|
2402
2536
|
attr_accessor :contact_phone
|
|
2403
|
-
#
|
|
2537
|
+
# Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
|
|
2404
2538
|
attr_accessor :dashboard
|
|
2405
2539
|
# Default values to be used on Account Configurations.
|
|
2406
2540
|
attr_accessor :defaults
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
class ClaimableSandboxCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class OnboardingLinkDetails < ::Stripe::RequestParams
|
|
9
|
+
# The URL the user will be redirected to if the onboarding link is expired or invalid.
|
|
10
|
+
# The URL specified should attempt to generate a new onboarding link,
|
|
11
|
+
# and re-direct the user to this new onboarding link so that they can proceed with the onboarding flow.
|
|
12
|
+
attr_accessor :refresh_url
|
|
13
|
+
# The URL offered to the user as a way back to your app after they claim the sandbox.
|
|
14
|
+
attr_accessor :return_url
|
|
15
|
+
|
|
16
|
+
def initialize(refresh_url: nil, return_url: nil)
|
|
17
|
+
@refresh_url = refresh_url
|
|
18
|
+
@return_url = return_url
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class Prefill < ::Stripe::RequestParams
|
|
23
|
+
# Country in which the account holder resides, or in which the business is legally established.
|
|
24
|
+
# Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
25
|
+
attr_accessor :country
|
|
26
|
+
# Email address of the user who will claim the sandbox.
|
|
27
|
+
# Stripe sends this address an invitation to claim the sandbox and a reminder before the unclaimed sandbox expires.
|
|
28
|
+
attr_accessor :email
|
|
29
|
+
# Name for the sandbox.
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
def initialize(country: nil, email: nil, name: nil)
|
|
33
|
+
@country = country
|
|
34
|
+
@email = email
|
|
35
|
+
@name = name
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The distribution channel used to pre-install your Stripe App on the claimable sandbox.
|
|
39
|
+
# Use `testing` to install your app's external test version or `public` to install its published version.
|
|
40
|
+
# This field defaults to `public` if omitted.
|
|
41
|
+
attr_accessor :channel
|
|
42
|
+
# If true, returns a key that can be used with [Stripe's MCP server](https://docs.stripe.com/mcp).
|
|
43
|
+
attr_accessor :enable_mcp_access
|
|
44
|
+
# Details about the onboarding link.
|
|
45
|
+
attr_accessor :onboarding_link_details
|
|
46
|
+
# Values that are prefilled when a user claims the sandbox. When a user claims the sandbox, they will be able to update these values.
|
|
47
|
+
attr_accessor :prefill
|
|
48
|
+
|
|
49
|
+
def initialize(
|
|
50
|
+
channel: nil,
|
|
51
|
+
enable_mcp_access: nil,
|
|
52
|
+
onboarding_link_details: nil,
|
|
53
|
+
prefill: nil
|
|
54
|
+
)
|
|
55
|
+
@channel = channel
|
|
56
|
+
@enable_mcp_access = enable_mcp_access
|
|
57
|
+
@onboarding_link_details = onboarding_link_details
|
|
58
|
+
@prefill = prefill
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
class ClaimableSandboxRenewOnboardingLinkParams < ::Stripe::RequestParams
|
|
8
|
+
class OnboardingLinkDetails < ::Stripe::RequestParams
|
|
9
|
+
# The URL the user will be redirected to if the onboarding link is expired or invalid.
|
|
10
|
+
# If omitted, the existing refresh URL is retained.
|
|
11
|
+
# The URL should generate a new onboarding link and redirect the user to it.
|
|
12
|
+
attr_accessor :refresh_url
|
|
13
|
+
# The URL offered to the user as a way back to your app after they claim the sandbox.
|
|
14
|
+
# If omitted, the existing return URL is retained. Set to null to clear it.
|
|
15
|
+
attr_accessor :return_url
|
|
16
|
+
|
|
17
|
+
def initialize(refresh_url: nil, return_url: nil)
|
|
18
|
+
@refresh_url = refresh_url
|
|
19
|
+
@return_url = return_url
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# Details about the onboarding link. If omitted, existing details are reused.
|
|
23
|
+
# Omitted URL fields retain their existing values.
|
|
24
|
+
attr_accessor :onboarding_link_details
|
|
25
|
+
|
|
26
|
+
def initialize(onboarding_link_details: nil)
|
|
27
|
+
@onboarding_link_details = onboarding_link_details
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
class ClaimableSandboxRetrieveParams < ::Stripe::RequestParams
|
|
8
|
+
# Additional fields to include in the response.
|
|
9
|
+
attr_accessor :include
|
|
10
|
+
|
|
11
|
+
def initialize(include: nil)
|
|
12
|
+
@include = include
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -7,7 +7,7 @@ module Stripe
|
|
|
7
7
|
class FinancialAccountListParams < ::Stripe::RequestParams
|
|
8
8
|
# Additional fields to include in the response.
|
|
9
9
|
attr_accessor :include
|
|
10
|
-
#
|
|
10
|
+
# Maximum number of results to return. Default: 10. Valid range: 1-20.
|
|
11
11
|
attr_accessor :limit
|
|
12
12
|
# Return FinancialAccounts whose `status` matches any of the provided values.
|
|
13
13
|
# If omitted, closed FinancialAccounts are not returned.
|
|
@@ -6,9 +6,9 @@ module Stripe
|
|
|
6
6
|
module MoneyManagement
|
|
7
7
|
class FinancialAddressCreateParams < ::Stripe::RequestParams
|
|
8
8
|
class BankAccount < ::Stripe::RequestParams
|
|
9
|
-
# The country
|
|
9
|
+
# The country where Stripe provisions the bank account. Each currency supports the country listed in its description. If omitted, Stripe selects that country.
|
|
10
10
|
attr_accessor :country
|
|
11
|
-
# The currency of the bank account to provision.
|
|
11
|
+
# The currency of the bank account to provision. Some currencies require preview or rollout access, as configured for your account.
|
|
12
12
|
attr_accessor :currency
|
|
13
13
|
|
|
14
14
|
def initialize(country: nil, currency: nil)
|
data/lib/stripe/params.rb
CHANGED
|
@@ -727,6 +727,10 @@ module Stripe
|
|
|
727
727
|
autoload :AccountTokenCreateParams, "stripe/params/v2/core/account_token_create_params"
|
|
728
728
|
autoload :AccountTokenRetrieveParams, "stripe/params/v2/core/account_token_retrieve_params"
|
|
729
729
|
autoload :AccountUpdateParams, "stripe/params/v2/core/account_update_params"
|
|
730
|
+
autoload :ClaimableSandboxCreateParams, "stripe/params/v2/core/claimable_sandbox_create_params"
|
|
731
|
+
autoload :ClaimableSandboxRenewOnboardingLinkParams,
|
|
732
|
+
"stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params"
|
|
733
|
+
autoload :ClaimableSandboxRetrieveParams, "stripe/params/v2/core/claimable_sandbox_retrieve_params"
|
|
730
734
|
autoload :EventDestinationCreateParams, "stripe/params/v2/core/event_destination_create_params"
|
|
731
735
|
autoload :EventDestinationDeleteParams, "stripe/params/v2/core/event_destination_delete_params"
|
|
732
736
|
autoload :EventDestinationDisableParams, "stripe/params/v2/core/event_destination_disable_params"
|
|
@@ -1464,6 +1468,9 @@ module Stripe
|
|
|
1464
1468
|
stripe/params/v2/core/accounts/person_token_create_params
|
|
1465
1469
|
stripe/params/v2/core/accounts/person_token_retrieve_params
|
|
1466
1470
|
stripe/params/v2/core/accounts/person_update_params
|
|
1471
|
+
stripe/params/v2/core/claimable_sandbox_create_params
|
|
1472
|
+
stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params
|
|
1473
|
+
stripe/params/v2/core/claimable_sandbox_retrieve_params
|
|
1467
1474
|
stripe/params/v2/core/event_destination_create_params
|
|
1468
1475
|
stripe/params/v2/core/event_destination_delete_params
|
|
1469
1476
|
stripe/params/v2/core/event_destination_disable_params
|
|
@@ -24,9 +24,10 @@ module Stripe
|
|
|
24
24
|
OPTS_USER_SPECIFIED + Set[:api_base]
|
|
25
25
|
).freeze
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Account and context identify the resource's authorization scope and
|
|
28
|
+
# must persist for subsequent operations, unlike an idempotency key.
|
|
28
29
|
OPTS_PERSISTABLE = (
|
|
29
|
-
OPTS_USER_SPECIFIED - Set[:idempotency_key
|
|
30
|
+
OPTS_USER_SPECIFIED - Set[:idempotency_key]
|
|
30
31
|
).freeze
|
|
31
32
|
|
|
32
33
|
# Written in place of API keys when a StripeObject is serialized with
|
|
@@ -79,6 +80,22 @@ module Stripe
|
|
|
79
80
|
merged_opts
|
|
80
81
|
end
|
|
81
82
|
|
|
83
|
+
# Retain absent selectors so restoring a scope can clear ambient defaults.
|
|
84
|
+
def self.authorization_scope(config, opts)
|
|
85
|
+
merged_opts = merge_config_and_opts(config, opts)
|
|
86
|
+
{ stripe_account: merged_opts[:stripe_account], stripe_context: merged_opts[:stripe_context] }
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Caller-owned selector strings must not change the authorization scope of a live resource.
|
|
90
|
+
def self.snapshot_authorization_selectors(opts)
|
|
91
|
+
opts.dup.tap do |snapshot|
|
|
92
|
+
%i[stripe_account stripe_context].each do |selector|
|
|
93
|
+
value = snapshot[selector]
|
|
94
|
+
snapshot[selector] = value.dup.freeze if value.is_a?(String)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
82
99
|
# Merges requestor options hash on a StripeObject
|
|
83
100
|
# with a per-request options hash, giving precedence
|
|
84
101
|
# to the per-request options. Returns the merged request options.
|
|
@@ -81,12 +81,12 @@ module Stripe
|
|
|
81
81
|
# The status of the app install.
|
|
82
82
|
attr_reader :status
|
|
83
83
|
|
|
84
|
-
# Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
|
|
84
|
+
# Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
|
|
85
85
|
def self.create(params = {}, opts = {})
|
|
86
86
|
request_stripe_object(method: :post, path: "/v1/apps/installs", params: params, opts: opts)
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
# Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox.
|
|
89
|
+
# Returns a list of app installs. An app developer filtering by its own app with its own key sees that app's installs across the accounts that installed it. An app developer acting on a connected account through Stripe-Account and filtering by its app sees that account's installs of the app, and an embedding platform acting on a connected account sees only the installs it created there. Other callers see the installs on their own account. A live key lists live installs and a test key lists test installs; the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox, and also that app's legacy test mode installs when the developer has no legacy test mode.
|
|
90
90
|
def self.list(params = {}, opts = {})
|
|
91
91
|
request_stripe_object(method: :get, path: "/v1/apps/installs", params: params, opts: opts)
|
|
92
92
|
end
|
|
@@ -46,7 +46,7 @@ module Stripe
|
|
|
46
46
|
attr_reader :currency
|
|
47
47
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
48
48
|
attr_reader :description
|
|
49
|
-
#
|
|
49
|
+
# The exchange rate used for this transaction, if applicable. Multiplying the source `amount` by the `exchange_rate` gives the destination `amount`, both in their currencies' smallest units. For example, `1000` EUR cents converts to `1234` USD cents at `1.234`. For a zero-decimal currency such as JPY, `1000` JPY converts to `640` USD cents (6.40 USD) at `0.64`, equivalent to `0.0064` USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents.
|
|
50
50
|
attr_reader :exchange_rate
|
|
51
51
|
# Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
|
|
52
52
|
attr_reader :fee
|