stripe 15.3.0 → 15.4.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/API_VERSION +1 -1
- data/CHANGELOG.md +21 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/account.rb +5 -5
- data/lib/stripe/resources/account_link.rb +3 -1
- data/lib/stripe/resources/account_session.rb +51 -0
- data/lib/stripe/resources/billing/credit_grant.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +46 -2
- data/lib/stripe/resources/charge.rb +7 -5
- data/lib/stripe/resources/checkout/session.rb +32 -4
- data/lib/stripe/resources/confirmation_token.rb +3 -3
- data/lib/stripe/resources/customer.rb +1 -1
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/event.rb +14 -26
- data/lib/stripe/resources/invoice.rb +24 -8
- data/lib/stripe/resources/invoice_item.rb +1 -1
- data/lib/stripe/resources/payment_intent.rb +14 -4
- data/lib/stripe/resources/payment_link.rb +83 -5
- data/lib/stripe/resources/payment_method.rb +4 -4
- data/lib/stripe/resources/quote.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/refund.rb +1 -1
- data/lib/stripe/resources/review.rb +2 -2
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/subscription.rb +2 -2
- data/lib/stripe/resources/subscription_item.rb +2 -2
- data/lib/stripe/resources/subscription_schedule.rb +35 -3
- data/lib/stripe/resources/tax/registration.rb +408 -30
- data/lib/stripe/resources/terminal/configuration.rb +196 -0
- data/lib/stripe/services/account_link_service.rb +3 -1
- data/lib/stripe/services/account_service.rb +3 -3
- data/lib/stripe/services/account_session_service.rb +34 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +36 -2
- data/lib/stripe/services/checkout/session_service.rb +19 -3
- data/lib/stripe/services/invoice_item_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +24 -8
- data/lib/stripe/services/payment_intent_service.rb +8 -3
- data/lib/stripe/services/payment_link_service.rb +81 -5
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +2 -2
- data/lib/stripe/services/subscription_schedule_service.rb +35 -3
- data/lib/stripe/services/subscription_service.rb +2 -2
- data/lib/stripe/services/tax/registration_service.rb +360 -30
- data/lib/stripe/services/terminal/configuration_service.rb +152 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +5 -5
- data/rbi/stripe/resources/account_link.rbi +3 -1
- data/rbi/stripe/resources/account_session.rbi +62 -1
- data/rbi/stripe/resources/billing/credit_grant.rbi +1 -1
- data/rbi/stripe/resources/billing_portal/configuration.rbi +62 -4
- data/rbi/stripe/resources/charge.rbi +8 -5
- data/rbi/stripe/resources/checkout/session.rbi +42 -7
- data/rbi/stripe/resources/confirmation_token.rbi +3 -3
- data/rbi/stripe/resources/customer.rbi +1 -1
- data/rbi/stripe/resources/dispute.rbi +1 -1
- data/rbi/stripe/resources/event.rbi +14 -26
- data/rbi/stripe/resources/invoice.rbi +27 -11
- data/rbi/stripe/resources/invoice_item.rbi +1 -1
- data/rbi/stripe/resources/payment_intent.rbi +14 -4
- data/rbi/stripe/resources/payment_link.rbi +101 -9
- data/rbi/stripe/resources/payment_method.rbi +4 -4
- data/rbi/stripe/resources/quote.rbi +1 -1
- data/rbi/stripe/resources/radar/value_list.rbi +2 -2
- data/rbi/stripe/resources/refund.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +2 -2
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +6 -6
- data/rbi/stripe/resources/subscription_item.rbi +2 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +33 -5
- data/rbi/stripe/resources/tax/registration.rbi +544 -60
- data/rbi/stripe/resources/terminal/configuration.rbi +210 -2
- data/rbi/stripe/services/account_link_service.rbi +3 -1
- data/rbi/stripe/services/account_service.rbi +3 -3
- data/rbi/stripe/services/account_session_service.rbi +40 -1
- data/rbi/stripe/services/billing/credit_grant_service.rbi +1 -1
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +48 -4
- data/rbi/stripe/services/checkout/session_service.rbi +26 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -1
- data/rbi/stripe/services/invoice_service.rbi +27 -11
- data/rbi/stripe/services/payment_intent_service.rbi +8 -3
- data/rbi/stripe/services/payment_link_service.rbi +98 -9
- data/rbi/stripe/services/payment_method_service.rbi +1 -1
- data/rbi/stripe/services/quote_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +2 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +37 -5
- data/rbi/stripe/services/subscription_service.rbi +6 -6
- data/rbi/stripe/services/tax/registration_service.rbi +480 -60
- data/rbi/stripe/services/terminal/configuration_service.rbi +170 -2
- metadata +2 -2
@@ -56,6 +56,21 @@ module Stripe
|
|
56
56
|
end
|
57
57
|
|
58
58
|
class Tipping < Stripe::RequestParams
|
59
|
+
class Aed < Stripe::RequestParams
|
60
|
+
# Fixed amounts displayed when collecting a tip
|
61
|
+
attr_accessor :fixed_amounts
|
62
|
+
# Percentages displayed when collecting a tip
|
63
|
+
attr_accessor :percentages
|
64
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
65
|
+
attr_accessor :smart_tip_threshold
|
66
|
+
|
67
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
68
|
+
@fixed_amounts = fixed_amounts
|
69
|
+
@percentages = percentages
|
70
|
+
@smart_tip_threshold = smart_tip_threshold
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
59
74
|
class Aud < Stripe::RequestParams
|
60
75
|
# Fixed amounts displayed when collecting a tip
|
61
76
|
attr_accessor :fixed_amounts
|
@@ -71,6 +86,21 @@ module Stripe
|
|
71
86
|
end
|
72
87
|
end
|
73
88
|
|
89
|
+
class Bgn < Stripe::RequestParams
|
90
|
+
# Fixed amounts displayed when collecting a tip
|
91
|
+
attr_accessor :fixed_amounts
|
92
|
+
# Percentages displayed when collecting a tip
|
93
|
+
attr_accessor :percentages
|
94
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
95
|
+
attr_accessor :smart_tip_threshold
|
96
|
+
|
97
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
98
|
+
@fixed_amounts = fixed_amounts
|
99
|
+
@percentages = percentages
|
100
|
+
@smart_tip_threshold = smart_tip_threshold
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
74
104
|
class Cad < Stripe::RequestParams
|
75
105
|
# Fixed amounts displayed when collecting a tip
|
76
106
|
attr_accessor :fixed_amounts
|
@@ -176,6 +206,21 @@ module Stripe
|
|
176
206
|
end
|
177
207
|
end
|
178
208
|
|
209
|
+
class Huf < Stripe::RequestParams
|
210
|
+
# Fixed amounts displayed when collecting a tip
|
211
|
+
attr_accessor :fixed_amounts
|
212
|
+
# Percentages displayed when collecting a tip
|
213
|
+
attr_accessor :percentages
|
214
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
215
|
+
attr_accessor :smart_tip_threshold
|
216
|
+
|
217
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
218
|
+
@fixed_amounts = fixed_amounts
|
219
|
+
@percentages = percentages
|
220
|
+
@smart_tip_threshold = smart_tip_threshold
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
179
224
|
class Jpy < Stripe::RequestParams
|
180
225
|
# Fixed amounts displayed when collecting a tip
|
181
226
|
attr_accessor :fixed_amounts
|
@@ -251,6 +296,21 @@ module Stripe
|
|
251
296
|
end
|
252
297
|
end
|
253
298
|
|
299
|
+
class Ron < Stripe::RequestParams
|
300
|
+
# Fixed amounts displayed when collecting a tip
|
301
|
+
attr_accessor :fixed_amounts
|
302
|
+
# Percentages displayed when collecting a tip
|
303
|
+
attr_accessor :percentages
|
304
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
305
|
+
attr_accessor :smart_tip_threshold
|
306
|
+
|
307
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
308
|
+
@fixed_amounts = fixed_amounts
|
309
|
+
@percentages = percentages
|
310
|
+
@smart_tip_threshold = smart_tip_threshold
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
254
314
|
class Sek < Stripe::RequestParams
|
255
315
|
# Fixed amounts displayed when collecting a tip
|
256
316
|
attr_accessor :fixed_amounts
|
@@ -295,8 +355,12 @@ module Stripe
|
|
295
355
|
@smart_tip_threshold = smart_tip_threshold
|
296
356
|
end
|
297
357
|
end
|
358
|
+
# Tipping configuration for AED
|
359
|
+
attr_accessor :aed
|
298
360
|
# Tipping configuration for AUD
|
299
361
|
attr_accessor :aud
|
362
|
+
# Tipping configuration for BGN
|
363
|
+
attr_accessor :bgn
|
300
364
|
# Tipping configuration for CAD
|
301
365
|
attr_accessor :cad
|
302
366
|
# Tipping configuration for CHF
|
@@ -311,6 +375,8 @@ module Stripe
|
|
311
375
|
attr_accessor :gbp
|
312
376
|
# Tipping configuration for HKD
|
313
377
|
attr_accessor :hkd
|
378
|
+
# Tipping configuration for HUF
|
379
|
+
attr_accessor :huf
|
314
380
|
# Tipping configuration for JPY
|
315
381
|
attr_accessor :jpy
|
316
382
|
# Tipping configuration for MYR
|
@@ -321,6 +387,8 @@ module Stripe
|
|
321
387
|
attr_accessor :nzd
|
322
388
|
# Tipping configuration for PLN
|
323
389
|
attr_accessor :pln
|
390
|
+
# Tipping configuration for RON
|
391
|
+
attr_accessor :ron
|
324
392
|
# Tipping configuration for SEK
|
325
393
|
attr_accessor :sek
|
326
394
|
# Tipping configuration for SGD
|
@@ -329,7 +397,9 @@ module Stripe
|
|
329
397
|
attr_accessor :usd
|
330
398
|
|
331
399
|
def initialize(
|
400
|
+
aed: nil,
|
332
401
|
aud: nil,
|
402
|
+
bgn: nil,
|
333
403
|
cad: nil,
|
334
404
|
chf: nil,
|
335
405
|
czk: nil,
|
@@ -337,16 +407,20 @@ module Stripe
|
|
337
407
|
eur: nil,
|
338
408
|
gbp: nil,
|
339
409
|
hkd: nil,
|
410
|
+
huf: nil,
|
340
411
|
jpy: nil,
|
341
412
|
myr: nil,
|
342
413
|
nok: nil,
|
343
414
|
nzd: nil,
|
344
415
|
pln: nil,
|
416
|
+
ron: nil,
|
345
417
|
sek: nil,
|
346
418
|
sgd: nil,
|
347
419
|
usd: nil
|
348
420
|
)
|
421
|
+
@aed = aed
|
349
422
|
@aud = aud
|
423
|
+
@bgn = bgn
|
350
424
|
@cad = cad
|
351
425
|
@chf = chf
|
352
426
|
@czk = czk
|
@@ -354,11 +428,13 @@ module Stripe
|
|
354
428
|
@eur = eur
|
355
429
|
@gbp = gbp
|
356
430
|
@hkd = hkd
|
431
|
+
@huf = huf
|
357
432
|
@jpy = jpy
|
358
433
|
@myr = myr
|
359
434
|
@nok = nok
|
360
435
|
@nzd = nzd
|
361
436
|
@pln = pln
|
437
|
+
@ron = ron
|
362
438
|
@sek = sek
|
363
439
|
@sgd = sgd
|
364
440
|
@usd = usd
|
@@ -562,6 +638,21 @@ module Stripe
|
|
562
638
|
end
|
563
639
|
|
564
640
|
class Tipping < Stripe::RequestParams
|
641
|
+
class Aed < Stripe::RequestParams
|
642
|
+
# Fixed amounts displayed when collecting a tip
|
643
|
+
attr_accessor :fixed_amounts
|
644
|
+
# Percentages displayed when collecting a tip
|
645
|
+
attr_accessor :percentages
|
646
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
647
|
+
attr_accessor :smart_tip_threshold
|
648
|
+
|
649
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
650
|
+
@fixed_amounts = fixed_amounts
|
651
|
+
@percentages = percentages
|
652
|
+
@smart_tip_threshold = smart_tip_threshold
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
565
656
|
class Aud < Stripe::RequestParams
|
566
657
|
# Fixed amounts displayed when collecting a tip
|
567
658
|
attr_accessor :fixed_amounts
|
@@ -577,6 +668,21 @@ module Stripe
|
|
577
668
|
end
|
578
669
|
end
|
579
670
|
|
671
|
+
class Bgn < Stripe::RequestParams
|
672
|
+
# Fixed amounts displayed when collecting a tip
|
673
|
+
attr_accessor :fixed_amounts
|
674
|
+
# Percentages displayed when collecting a tip
|
675
|
+
attr_accessor :percentages
|
676
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
677
|
+
attr_accessor :smart_tip_threshold
|
678
|
+
|
679
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
680
|
+
@fixed_amounts = fixed_amounts
|
681
|
+
@percentages = percentages
|
682
|
+
@smart_tip_threshold = smart_tip_threshold
|
683
|
+
end
|
684
|
+
end
|
685
|
+
|
580
686
|
class Cad < Stripe::RequestParams
|
581
687
|
# Fixed amounts displayed when collecting a tip
|
582
688
|
attr_accessor :fixed_amounts
|
@@ -682,6 +788,21 @@ module Stripe
|
|
682
788
|
end
|
683
789
|
end
|
684
790
|
|
791
|
+
class Huf < Stripe::RequestParams
|
792
|
+
# Fixed amounts displayed when collecting a tip
|
793
|
+
attr_accessor :fixed_amounts
|
794
|
+
# Percentages displayed when collecting a tip
|
795
|
+
attr_accessor :percentages
|
796
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
797
|
+
attr_accessor :smart_tip_threshold
|
798
|
+
|
799
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
800
|
+
@fixed_amounts = fixed_amounts
|
801
|
+
@percentages = percentages
|
802
|
+
@smart_tip_threshold = smart_tip_threshold
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
685
806
|
class Jpy < Stripe::RequestParams
|
686
807
|
# Fixed amounts displayed when collecting a tip
|
687
808
|
attr_accessor :fixed_amounts
|
@@ -757,6 +878,21 @@ module Stripe
|
|
757
878
|
end
|
758
879
|
end
|
759
880
|
|
881
|
+
class Ron < Stripe::RequestParams
|
882
|
+
# Fixed amounts displayed when collecting a tip
|
883
|
+
attr_accessor :fixed_amounts
|
884
|
+
# Percentages displayed when collecting a tip
|
885
|
+
attr_accessor :percentages
|
886
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
887
|
+
attr_accessor :smart_tip_threshold
|
888
|
+
|
889
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
890
|
+
@fixed_amounts = fixed_amounts
|
891
|
+
@percentages = percentages
|
892
|
+
@smart_tip_threshold = smart_tip_threshold
|
893
|
+
end
|
894
|
+
end
|
895
|
+
|
760
896
|
class Sek < Stripe::RequestParams
|
761
897
|
# Fixed amounts displayed when collecting a tip
|
762
898
|
attr_accessor :fixed_amounts
|
@@ -801,8 +937,12 @@ module Stripe
|
|
801
937
|
@smart_tip_threshold = smart_tip_threshold
|
802
938
|
end
|
803
939
|
end
|
940
|
+
# Tipping configuration for AED
|
941
|
+
attr_accessor :aed
|
804
942
|
# Tipping configuration for AUD
|
805
943
|
attr_accessor :aud
|
944
|
+
# Tipping configuration for BGN
|
945
|
+
attr_accessor :bgn
|
806
946
|
# Tipping configuration for CAD
|
807
947
|
attr_accessor :cad
|
808
948
|
# Tipping configuration for CHF
|
@@ -817,6 +957,8 @@ module Stripe
|
|
817
957
|
attr_accessor :gbp
|
818
958
|
# Tipping configuration for HKD
|
819
959
|
attr_accessor :hkd
|
960
|
+
# Tipping configuration for HUF
|
961
|
+
attr_accessor :huf
|
820
962
|
# Tipping configuration for JPY
|
821
963
|
attr_accessor :jpy
|
822
964
|
# Tipping configuration for MYR
|
@@ -827,6 +969,8 @@ module Stripe
|
|
827
969
|
attr_accessor :nzd
|
828
970
|
# Tipping configuration for PLN
|
829
971
|
attr_accessor :pln
|
972
|
+
# Tipping configuration for RON
|
973
|
+
attr_accessor :ron
|
830
974
|
# Tipping configuration for SEK
|
831
975
|
attr_accessor :sek
|
832
976
|
# Tipping configuration for SGD
|
@@ -835,7 +979,9 @@ module Stripe
|
|
835
979
|
attr_accessor :usd
|
836
980
|
|
837
981
|
def initialize(
|
982
|
+
aed: nil,
|
838
983
|
aud: nil,
|
984
|
+
bgn: nil,
|
839
985
|
cad: nil,
|
840
986
|
chf: nil,
|
841
987
|
czk: nil,
|
@@ -843,16 +989,20 @@ module Stripe
|
|
843
989
|
eur: nil,
|
844
990
|
gbp: nil,
|
845
991
|
hkd: nil,
|
992
|
+
huf: nil,
|
846
993
|
jpy: nil,
|
847
994
|
myr: nil,
|
848
995
|
nok: nil,
|
849
996
|
nzd: nil,
|
850
997
|
pln: nil,
|
998
|
+
ron: nil,
|
851
999
|
sek: nil,
|
852
1000
|
sgd: nil,
|
853
1001
|
usd: nil
|
854
1002
|
)
|
1003
|
+
@aed = aed
|
855
1004
|
@aud = aud
|
1005
|
+
@bgn = bgn
|
856
1006
|
@cad = cad
|
857
1007
|
@chf = chf
|
858
1008
|
@czk = czk
|
@@ -860,11 +1010,13 @@ module Stripe
|
|
860
1010
|
@eur = eur
|
861
1011
|
@gbp = gbp
|
862
1012
|
@hkd = hkd
|
1013
|
+
@huf = huf
|
863
1014
|
@jpy = jpy
|
864
1015
|
@myr = myr
|
865
1016
|
@nok = nok
|
866
1017
|
@nzd = nzd
|
867
1018
|
@pln = pln
|
1019
|
+
@ron = ron
|
868
1020
|
@sek = sek
|
869
1021
|
@sgd = sgd
|
870
1022
|
@usd = usd
|
data/lib/stripe/version.rb
CHANGED
@@ -65,7 +65,7 @@ module Stripe
|
|
65
65
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
66
66
|
sig { returns(T.nilable(String)) }
|
67
67
|
attr_reader :mcc
|
68
|
-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI
|
68
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
69
69
|
sig { returns(T.nilable(T::Array[String])) }
|
70
70
|
attr_reader :minority_owned_business_designation
|
71
71
|
# Attribute for field monthly_estimated_revenue
|
@@ -953,7 +953,7 @@ module Stripe
|
|
953
953
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
954
954
|
sig { returns(T.nilable(String)) }
|
955
955
|
attr_accessor :mcc
|
956
|
-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI
|
956
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
957
957
|
sig { returns(T.nilable(T::Array[String])) }
|
958
958
|
attr_accessor :minority_owned_business_designation
|
959
959
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
@@ -2942,7 +2942,7 @@ module Stripe
|
|
2942
2942
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
2943
2943
|
sig { returns(T.nilable(String)) }
|
2944
2944
|
attr_accessor :mcc
|
2945
|
-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI
|
2945
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
2946
2946
|
sig { returns(T.nilable(T::Array[String])) }
|
2947
2947
|
attr_accessor :minority_owned_business_designation
|
2948
2948
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
@@ -4920,7 +4920,7 @@ module Stripe
|
|
4920
4920
|
#
|
4921
4921
|
# Test-mode accounts can be deleted at any time.
|
4922
4922
|
#
|
4923
|
-
# Live-mode accounts
|
4923
|
+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
4924
4924
|
#
|
4925
4925
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4926
4926
|
sig {
|
@@ -4932,7 +4932,7 @@ module Stripe
|
|
4932
4932
|
#
|
4933
4933
|
# Test-mode accounts can be deleted at any time.
|
4934
4934
|
#
|
4935
|
-
# Live-mode accounts
|
4935
|
+
# Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
4936
4936
|
#
|
4937
4937
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4938
4938
|
sig {
|
@@ -49,7 +49,9 @@ module Stripe
|
|
49
49
|
# The URL that the user will be redirected to upon leaving or completing the linked flow.
|
50
50
|
sig { returns(T.nilable(String)) }
|
51
51
|
attr_accessor :return_url
|
52
|
-
# The type of account link the user is requesting.
|
52
|
+
# The type of account link the user is requesting.
|
53
|
+
#
|
54
|
+
# You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
|
53
55
|
sig { returns(String) }
|
54
56
|
attr_accessor :type
|
55
57
|
sig {
|
@@ -135,6 +135,25 @@ module Stripe
|
|
135
135
|
sig { returns(Features) }
|
136
136
|
attr_reader :features
|
137
137
|
end
|
138
|
+
class InstantPayoutsPromotion < Stripe::StripeObject
|
139
|
+
class Features < Stripe::StripeObject
|
140
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
141
|
+
sig { returns(T::Boolean) }
|
142
|
+
attr_reader :disable_stripe_user_authentication
|
143
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
144
|
+
sig { returns(T::Boolean) }
|
145
|
+
attr_reader :external_account_collection
|
146
|
+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
147
|
+
sig { returns(T::Boolean) }
|
148
|
+
attr_reader :instant_payouts
|
149
|
+
end
|
150
|
+
# Whether the embedded component is enabled.
|
151
|
+
sig { returns(T::Boolean) }
|
152
|
+
attr_reader :enabled
|
153
|
+
# Attribute for field features
|
154
|
+
sig { returns(Features) }
|
155
|
+
attr_reader :features
|
156
|
+
end
|
138
157
|
class IssuingCard < Stripe::StripeObject
|
139
158
|
class Features < Stripe::StripeObject
|
140
159
|
# Whether to allow card management features.
|
@@ -334,6 +353,9 @@ module Stripe
|
|
334
353
|
# Attribute for field financial_account_transactions
|
335
354
|
sig { returns(FinancialAccountTransactions) }
|
336
355
|
attr_reader :financial_account_transactions
|
356
|
+
# Attribute for field instant_payouts_promotion
|
357
|
+
sig { returns(InstantPayoutsPromotion) }
|
358
|
+
attr_reader :instant_payouts_promotion
|
337
359
|
# Attribute for field issuing_card
|
338
360
|
sig { returns(IssuingCard) }
|
339
361
|
attr_reader :issuing_card
|
@@ -598,6 +620,39 @@ module Stripe
|
|
598
620
|
}
|
599
621
|
def initialize(enabled: nil, features: nil); end
|
600
622
|
end
|
623
|
+
class InstantPayoutsPromotion < Stripe::RequestParams
|
624
|
+
class Features < Stripe::RequestParams
|
625
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
626
|
+
sig { returns(T.nilable(T::Boolean)) }
|
627
|
+
attr_accessor :disable_stripe_user_authentication
|
628
|
+
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
629
|
+
sig { returns(T.nilable(T::Boolean)) }
|
630
|
+
attr_accessor :external_account_collection
|
631
|
+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
632
|
+
sig { returns(T.nilable(T::Boolean)) }
|
633
|
+
attr_accessor :instant_payouts
|
634
|
+
sig {
|
635
|
+
params(disable_stripe_user_authentication: T.nilable(T::Boolean), external_account_collection: T.nilable(T::Boolean), instant_payouts: T.nilable(T::Boolean)).void
|
636
|
+
}
|
637
|
+
def initialize(
|
638
|
+
disable_stripe_user_authentication: nil,
|
639
|
+
external_account_collection: nil,
|
640
|
+
instant_payouts: nil
|
641
|
+
); end
|
642
|
+
end
|
643
|
+
# Whether the embedded component is enabled.
|
644
|
+
sig { returns(T::Boolean) }
|
645
|
+
attr_accessor :enabled
|
646
|
+
# The list of features enabled in the embedded component.
|
647
|
+
sig {
|
648
|
+
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion::Features))
|
649
|
+
}
|
650
|
+
attr_accessor :features
|
651
|
+
sig {
|
652
|
+
params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion::Features)).void
|
653
|
+
}
|
654
|
+
def initialize(enabled: nil, features: nil); end
|
655
|
+
end
|
601
656
|
class IssuingCard < Stripe::RequestParams
|
602
657
|
class Features < Stripe::RequestParams
|
603
658
|
# Whether to allow card management features.
|
@@ -927,6 +982,11 @@ module Stripe
|
|
927
982
|
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions))
|
928
983
|
}
|
929
984
|
attr_accessor :financial_account_transactions
|
985
|
+
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
|
986
|
+
sig {
|
987
|
+
returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion))
|
988
|
+
}
|
989
|
+
attr_accessor :instant_payouts_promotion
|
930
990
|
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
|
931
991
|
sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard)) }
|
932
992
|
attr_accessor :issuing_card
|
@@ -968,7 +1028,7 @@ module Stripe
|
|
968
1028
|
sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)) }
|
969
1029
|
attr_accessor :tax_settings
|
970
1030
|
sig {
|
971
|
-
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
|
1031
|
+
params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), instant_payouts_promotion: T.nilable(::Stripe::AccountSession::CreateParams::Components::InstantPayoutsPromotion), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
|
972
1032
|
}
|
973
1033
|
def initialize(
|
974
1034
|
account_management: nil,
|
@@ -978,6 +1038,7 @@ module Stripe
|
|
978
1038
|
documents: nil,
|
979
1039
|
financial_account: nil,
|
980
1040
|
financial_account_transactions: nil,
|
1041
|
+
instant_payouts_promotion: nil,
|
981
1042
|
issuing_card: nil,
|
982
1043
|
issuing_cards_list: nil,
|
983
1044
|
notification_banner: nil,
|
@@ -132,7 +132,7 @@ module Stripe
|
|
132
132
|
# The monetary amount.
|
133
133
|
sig { returns(T.nilable(::Stripe::Billing::CreditGrant::CreateParams::Amount::Monetary)) }
|
134
134
|
attr_accessor :monetary
|
135
|
-
#
|
135
|
+
# The type of this amount. We currently only support `monetary` billing credits.
|
136
136
|
sig { returns(String) }
|
137
137
|
attr_accessor :type
|
138
138
|
sig {
|
@@ -60,6 +60,20 @@ module Stripe
|
|
60
60
|
end
|
61
61
|
class SubscriptionUpdate < Stripe::StripeObject
|
62
62
|
class Product < Stripe::StripeObject
|
63
|
+
class AdjustableQuantity < Stripe::StripeObject
|
64
|
+
# If true, the quantity can be adjusted to any non-negative integer.
|
65
|
+
sig { returns(T::Boolean) }
|
66
|
+
attr_reader :enabled
|
67
|
+
# The maximum quantity that can be set for the product.
|
68
|
+
sig { returns(T.nilable(Integer)) }
|
69
|
+
attr_reader :maximum
|
70
|
+
# The minimum quantity that can be set for the product.
|
71
|
+
sig { returns(Integer) }
|
72
|
+
attr_reader :minimum
|
73
|
+
end
|
74
|
+
# Attribute for field adjustable_quantity
|
75
|
+
sig { returns(AdjustableQuantity) }
|
76
|
+
attr_reader :adjustable_quantity
|
63
77
|
# The list of price IDs which, when subscribed to, a subscription can be updated.
|
64
78
|
sig { returns(T::Array[String]) }
|
65
79
|
attr_reader :prices
|
@@ -271,14 +285,36 @@ module Stripe
|
|
271
285
|
end
|
272
286
|
class SubscriptionUpdate < Stripe::RequestParams
|
273
287
|
class Product < Stripe::RequestParams
|
288
|
+
class AdjustableQuantity < Stripe::RequestParams
|
289
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
290
|
+
sig { returns(T::Boolean) }
|
291
|
+
attr_accessor :enabled
|
292
|
+
# The maximum quantity that can be set for the product.
|
293
|
+
sig { returns(T.nilable(Integer)) }
|
294
|
+
attr_accessor :maximum
|
295
|
+
# The minimum quantity that can be set for the product.
|
296
|
+
sig { returns(T.nilable(Integer)) }
|
297
|
+
attr_accessor :minimum
|
298
|
+
sig {
|
299
|
+
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
|
300
|
+
}
|
301
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil); end
|
302
|
+
end
|
303
|
+
# Control whether the quantity of the product can be adjusted.
|
304
|
+
sig {
|
305
|
+
returns(T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
|
306
|
+
}
|
307
|
+
attr_accessor :adjustable_quantity
|
274
308
|
# The list of price IDs for the product that a subscription can be updated to.
|
275
309
|
sig { returns(T::Array[String]) }
|
276
310
|
attr_accessor :prices
|
277
311
|
# The product id.
|
278
312
|
sig { returns(String) }
|
279
313
|
attr_accessor :product
|
280
|
-
sig {
|
281
|
-
|
314
|
+
sig {
|
315
|
+
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::Configuration::CreateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
|
316
|
+
}
|
317
|
+
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
|
282
318
|
end
|
283
319
|
class ScheduleAtPeriodEnd < Stripe::RequestParams
|
284
320
|
class Condition < Stripe::RequestParams
|
@@ -485,14 +521,36 @@ module Stripe
|
|
485
521
|
end
|
486
522
|
class SubscriptionUpdate < Stripe::RequestParams
|
487
523
|
class Product < Stripe::RequestParams
|
524
|
+
class AdjustableQuantity < Stripe::RequestParams
|
525
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
526
|
+
sig { returns(T::Boolean) }
|
527
|
+
attr_accessor :enabled
|
528
|
+
# The maximum quantity that can be set for the product.
|
529
|
+
sig { returns(T.nilable(Integer)) }
|
530
|
+
attr_accessor :maximum
|
531
|
+
# The minimum quantity that can be set for the product.
|
532
|
+
sig { returns(T.nilable(Integer)) }
|
533
|
+
attr_accessor :minimum
|
534
|
+
sig {
|
535
|
+
params(enabled: T::Boolean, maximum: T.nilable(Integer), minimum: T.nilable(Integer)).void
|
536
|
+
}
|
537
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil); end
|
538
|
+
end
|
539
|
+
# Control whether the quantity of the product can be adjusted.
|
540
|
+
sig {
|
541
|
+
returns(T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity))
|
542
|
+
}
|
543
|
+
attr_accessor :adjustable_quantity
|
488
544
|
# The list of price IDs for the product that a subscription can be updated to.
|
489
545
|
sig { returns(T::Array[String]) }
|
490
546
|
attr_accessor :prices
|
491
547
|
# The product id.
|
492
548
|
sig { returns(String) }
|
493
549
|
attr_accessor :product
|
494
|
-
sig {
|
495
|
-
|
550
|
+
sig {
|
551
|
+
params(adjustable_quantity: T.nilable(::Stripe::BillingPortal::Configuration::UpdateParams::Features::SubscriptionUpdate::Product::AdjustableQuantity), prices: T::Array[String], product: String).void
|
552
|
+
}
|
553
|
+
def initialize(adjustable_quantity: nil, prices: nil, product: nil); end
|
496
554
|
end
|
497
555
|
class ScheduleAtPeriodEnd < Stripe::RequestParams
|
498
556
|
class Condition < Stripe::RequestParams
|
@@ -225,7 +225,7 @@ module Stripe
|
|
225
225
|
class AmazonPay < Stripe::StripeObject
|
226
226
|
class Funding < Stripe::StripeObject
|
227
227
|
class Card < Stripe::StripeObject
|
228
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
228
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
229
229
|
sig { returns(T.nilable(String)) }
|
230
230
|
attr_reader :brand
|
231
231
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
@@ -558,7 +558,7 @@ module Stripe
|
|
558
558
|
# Authorization code on the charge.
|
559
559
|
sig { returns(T.nilable(String)) }
|
560
560
|
attr_reader :authorization_code
|
561
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
561
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
562
562
|
sig { returns(T.nilable(String)) }
|
563
563
|
attr_reader :brand
|
564
564
|
# When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
|
@@ -684,7 +684,7 @@ module Stripe
|
|
684
684
|
# The authorized amount
|
685
685
|
sig { returns(T.nilable(Integer)) }
|
686
686
|
attr_reader :amount_authorized
|
687
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
687
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
688
688
|
sig { returns(T.nilable(String)) }
|
689
689
|
attr_reader :brand
|
690
690
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
@@ -766,6 +766,9 @@ module Stripe
|
|
766
766
|
# A public identifier for buyers using Cash App.
|
767
767
|
sig { returns(T.nilable(String)) }
|
768
768
|
attr_reader :cashtag
|
769
|
+
# A unique and immutable identifier of payments assigned by Cash App
|
770
|
+
sig { returns(T.nilable(String)) }
|
771
|
+
attr_reader :transaction_id
|
769
772
|
end
|
770
773
|
class Crypto < Stripe::StripeObject
|
771
774
|
# The wallet address of the customer.
|
@@ -1114,7 +1117,7 @@ module Stripe
|
|
1114
1117
|
class RevolutPay < Stripe::StripeObject
|
1115
1118
|
class Funding < Stripe::StripeObject
|
1116
1119
|
class Card < Stripe::StripeObject
|
1117
|
-
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa
|
1120
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
1118
1121
|
sig { returns(T.nilable(String)) }
|
1119
1122
|
attr_reader :brand
|
1120
1123
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
@@ -1439,7 +1442,7 @@ module Stripe
|
|
1439
1442
|
attr_reader :zip
|
1440
1443
|
end
|
1441
1444
|
class PresentmentDetails < Stripe::StripeObject
|
1442
|
-
# Amount intended to be collected by this payment, denominated in presentment_currency
|
1445
|
+
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
|
1443
1446
|
sig { returns(Integer) }
|
1444
1447
|
attr_reader :presentment_amount
|
1445
1448
|
# Currency presented to the customer during payment.
|