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
@@ -39,6 +39,15 @@ module Stripe
|
|
39
39
|
end
|
40
40
|
|
41
41
|
class Tipping < Stripe::StripeObject
|
42
|
+
class Aed < Stripe::StripeObject
|
43
|
+
# Fixed amounts displayed when collecting a tip
|
44
|
+
attr_reader :fixed_amounts
|
45
|
+
# Percentages displayed when collecting a tip
|
46
|
+
attr_reader :percentages
|
47
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
48
|
+
attr_reader :smart_tip_threshold
|
49
|
+
end
|
50
|
+
|
42
51
|
class Aud < Stripe::StripeObject
|
43
52
|
# Fixed amounts displayed when collecting a tip
|
44
53
|
attr_reader :fixed_amounts
|
@@ -48,6 +57,15 @@ module Stripe
|
|
48
57
|
attr_reader :smart_tip_threshold
|
49
58
|
end
|
50
59
|
|
60
|
+
class Bgn < Stripe::StripeObject
|
61
|
+
# Fixed amounts displayed when collecting a tip
|
62
|
+
attr_reader :fixed_amounts
|
63
|
+
# Percentages displayed when collecting a tip
|
64
|
+
attr_reader :percentages
|
65
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
66
|
+
attr_reader :smart_tip_threshold
|
67
|
+
end
|
68
|
+
|
51
69
|
class Cad < Stripe::StripeObject
|
52
70
|
# Fixed amounts displayed when collecting a tip
|
53
71
|
attr_reader :fixed_amounts
|
@@ -111,6 +129,15 @@ module Stripe
|
|
111
129
|
attr_reader :smart_tip_threshold
|
112
130
|
end
|
113
131
|
|
132
|
+
class Huf < Stripe::StripeObject
|
133
|
+
# Fixed amounts displayed when collecting a tip
|
134
|
+
attr_reader :fixed_amounts
|
135
|
+
# Percentages displayed when collecting a tip
|
136
|
+
attr_reader :percentages
|
137
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
138
|
+
attr_reader :smart_tip_threshold
|
139
|
+
end
|
140
|
+
|
114
141
|
class Jpy < Stripe::StripeObject
|
115
142
|
# Fixed amounts displayed when collecting a tip
|
116
143
|
attr_reader :fixed_amounts
|
@@ -156,6 +183,15 @@ module Stripe
|
|
156
183
|
attr_reader :smart_tip_threshold
|
157
184
|
end
|
158
185
|
|
186
|
+
class Ron < Stripe::StripeObject
|
187
|
+
# Fixed amounts displayed when collecting a tip
|
188
|
+
attr_reader :fixed_amounts
|
189
|
+
# Percentages displayed when collecting a tip
|
190
|
+
attr_reader :percentages
|
191
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
192
|
+
attr_reader :smart_tip_threshold
|
193
|
+
end
|
194
|
+
|
159
195
|
class Sek < Stripe::StripeObject
|
160
196
|
# Fixed amounts displayed when collecting a tip
|
161
197
|
attr_reader :fixed_amounts
|
@@ -182,8 +218,12 @@ module Stripe
|
|
182
218
|
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
183
219
|
attr_reader :smart_tip_threshold
|
184
220
|
end
|
221
|
+
# Attribute for field aed
|
222
|
+
attr_reader :aed
|
185
223
|
# Attribute for field aud
|
186
224
|
attr_reader :aud
|
225
|
+
# Attribute for field bgn
|
226
|
+
attr_reader :bgn
|
187
227
|
# Attribute for field cad
|
188
228
|
attr_reader :cad
|
189
229
|
# Attribute for field chf
|
@@ -198,6 +238,8 @@ module Stripe
|
|
198
238
|
attr_reader :gbp
|
199
239
|
# Attribute for field hkd
|
200
240
|
attr_reader :hkd
|
241
|
+
# Attribute for field huf
|
242
|
+
attr_reader :huf
|
201
243
|
# Attribute for field jpy
|
202
244
|
attr_reader :jpy
|
203
245
|
# Attribute for field myr
|
@@ -208,6 +250,8 @@ module Stripe
|
|
208
250
|
attr_reader :nzd
|
209
251
|
# Attribute for field pln
|
210
252
|
attr_reader :pln
|
253
|
+
# Attribute for field ron
|
254
|
+
attr_reader :ron
|
211
255
|
# Attribute for field sek
|
212
256
|
attr_reader :sek
|
213
257
|
# Attribute for field sgd
|
@@ -305,6 +349,21 @@ module Stripe
|
|
305
349
|
end
|
306
350
|
|
307
351
|
class Tipping < Stripe::RequestParams
|
352
|
+
class Aed < Stripe::RequestParams
|
353
|
+
# Fixed amounts displayed when collecting a tip
|
354
|
+
attr_accessor :fixed_amounts
|
355
|
+
# Percentages displayed when collecting a tip
|
356
|
+
attr_accessor :percentages
|
357
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
358
|
+
attr_accessor :smart_tip_threshold
|
359
|
+
|
360
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
361
|
+
@fixed_amounts = fixed_amounts
|
362
|
+
@percentages = percentages
|
363
|
+
@smart_tip_threshold = smart_tip_threshold
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
308
367
|
class Aud < Stripe::RequestParams
|
309
368
|
# Fixed amounts displayed when collecting a tip
|
310
369
|
attr_accessor :fixed_amounts
|
@@ -320,6 +379,21 @@ module Stripe
|
|
320
379
|
end
|
321
380
|
end
|
322
381
|
|
382
|
+
class Bgn < Stripe::RequestParams
|
383
|
+
# Fixed amounts displayed when collecting a tip
|
384
|
+
attr_accessor :fixed_amounts
|
385
|
+
# Percentages displayed when collecting a tip
|
386
|
+
attr_accessor :percentages
|
387
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
388
|
+
attr_accessor :smart_tip_threshold
|
389
|
+
|
390
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
391
|
+
@fixed_amounts = fixed_amounts
|
392
|
+
@percentages = percentages
|
393
|
+
@smart_tip_threshold = smart_tip_threshold
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
323
397
|
class Cad < Stripe::RequestParams
|
324
398
|
# Fixed amounts displayed when collecting a tip
|
325
399
|
attr_accessor :fixed_amounts
|
@@ -425,6 +499,21 @@ module Stripe
|
|
425
499
|
end
|
426
500
|
end
|
427
501
|
|
502
|
+
class Huf < Stripe::RequestParams
|
503
|
+
# Fixed amounts displayed when collecting a tip
|
504
|
+
attr_accessor :fixed_amounts
|
505
|
+
# Percentages displayed when collecting a tip
|
506
|
+
attr_accessor :percentages
|
507
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
508
|
+
attr_accessor :smart_tip_threshold
|
509
|
+
|
510
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
511
|
+
@fixed_amounts = fixed_amounts
|
512
|
+
@percentages = percentages
|
513
|
+
@smart_tip_threshold = smart_tip_threshold
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
428
517
|
class Jpy < Stripe::RequestParams
|
429
518
|
# Fixed amounts displayed when collecting a tip
|
430
519
|
attr_accessor :fixed_amounts
|
@@ -500,6 +589,21 @@ module Stripe
|
|
500
589
|
end
|
501
590
|
end
|
502
591
|
|
592
|
+
class Ron < Stripe::RequestParams
|
593
|
+
# Fixed amounts displayed when collecting a tip
|
594
|
+
attr_accessor :fixed_amounts
|
595
|
+
# Percentages displayed when collecting a tip
|
596
|
+
attr_accessor :percentages
|
597
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
598
|
+
attr_accessor :smart_tip_threshold
|
599
|
+
|
600
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
601
|
+
@fixed_amounts = fixed_amounts
|
602
|
+
@percentages = percentages
|
603
|
+
@smart_tip_threshold = smart_tip_threshold
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
503
607
|
class Sek < Stripe::RequestParams
|
504
608
|
# Fixed amounts displayed when collecting a tip
|
505
609
|
attr_accessor :fixed_amounts
|
@@ -544,8 +648,12 @@ module Stripe
|
|
544
648
|
@smart_tip_threshold = smart_tip_threshold
|
545
649
|
end
|
546
650
|
end
|
651
|
+
# Tipping configuration for AED
|
652
|
+
attr_accessor :aed
|
547
653
|
# Tipping configuration for AUD
|
548
654
|
attr_accessor :aud
|
655
|
+
# Tipping configuration for BGN
|
656
|
+
attr_accessor :bgn
|
549
657
|
# Tipping configuration for CAD
|
550
658
|
attr_accessor :cad
|
551
659
|
# Tipping configuration for CHF
|
@@ -560,6 +668,8 @@ module Stripe
|
|
560
668
|
attr_accessor :gbp
|
561
669
|
# Tipping configuration for HKD
|
562
670
|
attr_accessor :hkd
|
671
|
+
# Tipping configuration for HUF
|
672
|
+
attr_accessor :huf
|
563
673
|
# Tipping configuration for JPY
|
564
674
|
attr_accessor :jpy
|
565
675
|
# Tipping configuration for MYR
|
@@ -570,6 +680,8 @@ module Stripe
|
|
570
680
|
attr_accessor :nzd
|
571
681
|
# Tipping configuration for PLN
|
572
682
|
attr_accessor :pln
|
683
|
+
# Tipping configuration for RON
|
684
|
+
attr_accessor :ron
|
573
685
|
# Tipping configuration for SEK
|
574
686
|
attr_accessor :sek
|
575
687
|
# Tipping configuration for SGD
|
@@ -578,7 +690,9 @@ module Stripe
|
|
578
690
|
attr_accessor :usd
|
579
691
|
|
580
692
|
def initialize(
|
693
|
+
aed: nil,
|
581
694
|
aud: nil,
|
695
|
+
bgn: nil,
|
582
696
|
cad: nil,
|
583
697
|
chf: nil,
|
584
698
|
czk: nil,
|
@@ -586,16 +700,20 @@ module Stripe
|
|
586
700
|
eur: nil,
|
587
701
|
gbp: nil,
|
588
702
|
hkd: nil,
|
703
|
+
huf: nil,
|
589
704
|
jpy: nil,
|
590
705
|
myr: nil,
|
591
706
|
nok: nil,
|
592
707
|
nzd: nil,
|
593
708
|
pln: nil,
|
709
|
+
ron: nil,
|
594
710
|
sek: nil,
|
595
711
|
sgd: nil,
|
596
712
|
usd: nil
|
597
713
|
)
|
714
|
+
@aed = aed
|
598
715
|
@aud = aud
|
716
|
+
@bgn = bgn
|
599
717
|
@cad = cad
|
600
718
|
@chf = chf
|
601
719
|
@czk = czk
|
@@ -603,11 +721,13 @@ module Stripe
|
|
603
721
|
@eur = eur
|
604
722
|
@gbp = gbp
|
605
723
|
@hkd = hkd
|
724
|
+
@huf = huf
|
606
725
|
@jpy = jpy
|
607
726
|
@myr = myr
|
608
727
|
@nok = nok
|
609
728
|
@nzd = nzd
|
610
729
|
@pln = pln
|
730
|
+
@ron = ron
|
611
731
|
@sek = sek
|
612
732
|
@sgd = sgd
|
613
733
|
@usd = usd
|
@@ -811,6 +931,21 @@ module Stripe
|
|
811
931
|
end
|
812
932
|
|
813
933
|
class Tipping < Stripe::RequestParams
|
934
|
+
class Aed < Stripe::RequestParams
|
935
|
+
# Fixed amounts displayed when collecting a tip
|
936
|
+
attr_accessor :fixed_amounts
|
937
|
+
# Percentages displayed when collecting a tip
|
938
|
+
attr_accessor :percentages
|
939
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
940
|
+
attr_accessor :smart_tip_threshold
|
941
|
+
|
942
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
943
|
+
@fixed_amounts = fixed_amounts
|
944
|
+
@percentages = percentages
|
945
|
+
@smart_tip_threshold = smart_tip_threshold
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
814
949
|
class Aud < Stripe::RequestParams
|
815
950
|
# Fixed amounts displayed when collecting a tip
|
816
951
|
attr_accessor :fixed_amounts
|
@@ -826,6 +961,21 @@ module Stripe
|
|
826
961
|
end
|
827
962
|
end
|
828
963
|
|
964
|
+
class Bgn < Stripe::RequestParams
|
965
|
+
# Fixed amounts displayed when collecting a tip
|
966
|
+
attr_accessor :fixed_amounts
|
967
|
+
# Percentages displayed when collecting a tip
|
968
|
+
attr_accessor :percentages
|
969
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
970
|
+
attr_accessor :smart_tip_threshold
|
971
|
+
|
972
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
973
|
+
@fixed_amounts = fixed_amounts
|
974
|
+
@percentages = percentages
|
975
|
+
@smart_tip_threshold = smart_tip_threshold
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
829
979
|
class Cad < Stripe::RequestParams
|
830
980
|
# Fixed amounts displayed when collecting a tip
|
831
981
|
attr_accessor :fixed_amounts
|
@@ -931,6 +1081,21 @@ module Stripe
|
|
931
1081
|
end
|
932
1082
|
end
|
933
1083
|
|
1084
|
+
class Huf < Stripe::RequestParams
|
1085
|
+
# Fixed amounts displayed when collecting a tip
|
1086
|
+
attr_accessor :fixed_amounts
|
1087
|
+
# Percentages displayed when collecting a tip
|
1088
|
+
attr_accessor :percentages
|
1089
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
1090
|
+
attr_accessor :smart_tip_threshold
|
1091
|
+
|
1092
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
1093
|
+
@fixed_amounts = fixed_amounts
|
1094
|
+
@percentages = percentages
|
1095
|
+
@smart_tip_threshold = smart_tip_threshold
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
934
1099
|
class Jpy < Stripe::RequestParams
|
935
1100
|
# Fixed amounts displayed when collecting a tip
|
936
1101
|
attr_accessor :fixed_amounts
|
@@ -1006,6 +1171,21 @@ module Stripe
|
|
1006
1171
|
end
|
1007
1172
|
end
|
1008
1173
|
|
1174
|
+
class Ron < Stripe::RequestParams
|
1175
|
+
# Fixed amounts displayed when collecting a tip
|
1176
|
+
attr_accessor :fixed_amounts
|
1177
|
+
# Percentages displayed when collecting a tip
|
1178
|
+
attr_accessor :percentages
|
1179
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
1180
|
+
attr_accessor :smart_tip_threshold
|
1181
|
+
|
1182
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
1183
|
+
@fixed_amounts = fixed_amounts
|
1184
|
+
@percentages = percentages
|
1185
|
+
@smart_tip_threshold = smart_tip_threshold
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
|
1009
1189
|
class Sek < Stripe::RequestParams
|
1010
1190
|
# Fixed amounts displayed when collecting a tip
|
1011
1191
|
attr_accessor :fixed_amounts
|
@@ -1050,8 +1230,12 @@ module Stripe
|
|
1050
1230
|
@smart_tip_threshold = smart_tip_threshold
|
1051
1231
|
end
|
1052
1232
|
end
|
1233
|
+
# Tipping configuration for AED
|
1234
|
+
attr_accessor :aed
|
1053
1235
|
# Tipping configuration for AUD
|
1054
1236
|
attr_accessor :aud
|
1237
|
+
# Tipping configuration for BGN
|
1238
|
+
attr_accessor :bgn
|
1055
1239
|
# Tipping configuration for CAD
|
1056
1240
|
attr_accessor :cad
|
1057
1241
|
# Tipping configuration for CHF
|
@@ -1066,6 +1250,8 @@ module Stripe
|
|
1066
1250
|
attr_accessor :gbp
|
1067
1251
|
# Tipping configuration for HKD
|
1068
1252
|
attr_accessor :hkd
|
1253
|
+
# Tipping configuration for HUF
|
1254
|
+
attr_accessor :huf
|
1069
1255
|
# Tipping configuration for JPY
|
1070
1256
|
attr_accessor :jpy
|
1071
1257
|
# Tipping configuration for MYR
|
@@ -1076,6 +1262,8 @@ module Stripe
|
|
1076
1262
|
attr_accessor :nzd
|
1077
1263
|
# Tipping configuration for PLN
|
1078
1264
|
attr_accessor :pln
|
1265
|
+
# Tipping configuration for RON
|
1266
|
+
attr_accessor :ron
|
1079
1267
|
# Tipping configuration for SEK
|
1080
1268
|
attr_accessor :sek
|
1081
1269
|
# Tipping configuration for SGD
|
@@ -1084,7 +1272,9 @@ module Stripe
|
|
1084
1272
|
attr_accessor :usd
|
1085
1273
|
|
1086
1274
|
def initialize(
|
1275
|
+
aed: nil,
|
1087
1276
|
aud: nil,
|
1277
|
+
bgn: nil,
|
1088
1278
|
cad: nil,
|
1089
1279
|
chf: nil,
|
1090
1280
|
czk: nil,
|
@@ -1092,16 +1282,20 @@ module Stripe
|
|
1092
1282
|
eur: nil,
|
1093
1283
|
gbp: nil,
|
1094
1284
|
hkd: nil,
|
1285
|
+
huf: nil,
|
1095
1286
|
jpy: nil,
|
1096
1287
|
myr: nil,
|
1097
1288
|
nok: nil,
|
1098
1289
|
nzd: nil,
|
1099
1290
|
pln: nil,
|
1291
|
+
ron: nil,
|
1100
1292
|
sek: nil,
|
1101
1293
|
sgd: nil,
|
1102
1294
|
usd: nil
|
1103
1295
|
)
|
1296
|
+
@aed = aed
|
1104
1297
|
@aud = aud
|
1298
|
+
@bgn = bgn
|
1105
1299
|
@cad = cad
|
1106
1300
|
@chf = chf
|
1107
1301
|
@czk = czk
|
@@ -1109,11 +1303,13 @@ module Stripe
|
|
1109
1303
|
@eur = eur
|
1110
1304
|
@gbp = gbp
|
1111
1305
|
@hkd = hkd
|
1306
|
+
@huf = huf
|
1112
1307
|
@jpy = jpy
|
1113
1308
|
@myr = myr
|
1114
1309
|
@nok = nok
|
1115
1310
|
@nzd = nzd
|
1116
1311
|
@pln = pln
|
1312
|
+
@ron = ron
|
1117
1313
|
@sek = sek
|
1118
1314
|
@sgd = sgd
|
1119
1315
|
@usd = usd
|
@@ -27,7 +27,9 @@ module Stripe
|
|
27
27
|
attr_accessor :refresh_url
|
28
28
|
# The URL that the user will be redirected to upon leaving or completing the linked flow.
|
29
29
|
attr_accessor :return_url
|
30
|
-
# The type of account link the user is requesting.
|
30
|
+
# The type of account link the user is requesting.
|
31
|
+
#
|
32
|
+
# 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.
|
31
33
|
attr_accessor :type
|
32
34
|
|
33
35
|
def initialize(
|
@@ -124,7 +124,7 @@ module Stripe
|
|
124
124
|
attr_accessor :estimated_worker_count
|
125
125
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
126
126
|
attr_accessor :mcc
|
127
|
-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI
|
127
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
128
128
|
attr_accessor :minority_owned_business_designation
|
129
129
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
130
130
|
attr_accessor :monthly_estimated_revenue
|
@@ -2184,7 +2184,7 @@ module Stripe
|
|
2184
2184
|
attr_accessor :estimated_worker_count
|
2185
2185
|
# [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
2186
2186
|
attr_accessor :mcc
|
2187
|
-
# Whether the business is a minority-owned, women-owned, and/or LGBTQI
|
2187
|
+
# Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
|
2188
2188
|
attr_accessor :minority_owned_business_designation
|
2189
2189
|
# An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
|
2190
2190
|
attr_accessor :monthly_estimated_revenue
|
@@ -4176,7 +4176,7 @@ module Stripe
|
|
4176
4176
|
#
|
4177
4177
|
# Test-mode accounts can be deleted at any time.
|
4178
4178
|
#
|
4179
|
-
# Live-mode accounts
|
4179
|
+
# 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.
|
4180
4180
|
#
|
4181
4181
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4182
4182
|
def delete(account, params = {}, opts = {})
|
@@ -196,6 +196,36 @@ module Stripe
|
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
199
|
+
class InstantPayoutsPromotion < Stripe::RequestParams
|
200
|
+
class Features < Stripe::RequestParams
|
201
|
+
# 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`.
|
202
|
+
attr_accessor :disable_stripe_user_authentication
|
203
|
+
# 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`.
|
204
|
+
attr_accessor :external_account_collection
|
205
|
+
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
206
|
+
attr_accessor :instant_payouts
|
207
|
+
|
208
|
+
def initialize(
|
209
|
+
disable_stripe_user_authentication: nil,
|
210
|
+
external_account_collection: nil,
|
211
|
+
instant_payouts: nil
|
212
|
+
)
|
213
|
+
@disable_stripe_user_authentication = disable_stripe_user_authentication
|
214
|
+
@external_account_collection = external_account_collection
|
215
|
+
@instant_payouts = instant_payouts
|
216
|
+
end
|
217
|
+
end
|
218
|
+
# Whether the embedded component is enabled.
|
219
|
+
attr_accessor :enabled
|
220
|
+
# The list of features enabled in the embedded component.
|
221
|
+
attr_accessor :features
|
222
|
+
|
223
|
+
def initialize(enabled: nil, features: nil)
|
224
|
+
@enabled = enabled
|
225
|
+
@features = features
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
199
229
|
class IssuingCard < Stripe::RequestParams
|
200
230
|
class Features < Stripe::RequestParams
|
201
231
|
# Whether to allow card management features.
|
@@ -482,6 +512,8 @@ module Stripe
|
|
482
512
|
attr_accessor :financial_account
|
483
513
|
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
|
484
514
|
attr_accessor :financial_account_transactions
|
515
|
+
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
|
516
|
+
attr_accessor :instant_payouts_promotion
|
485
517
|
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
|
486
518
|
attr_accessor :issuing_card
|
487
519
|
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
|
@@ -511,6 +543,7 @@ module Stripe
|
|
511
543
|
documents: nil,
|
512
544
|
financial_account: nil,
|
513
545
|
financial_account_transactions: nil,
|
546
|
+
instant_payouts_promotion: nil,
|
514
547
|
issuing_card: nil,
|
515
548
|
issuing_cards_list: nil,
|
516
549
|
notification_banner: nil,
|
@@ -529,6 +562,7 @@ module Stripe
|
|
529
562
|
@documents = documents
|
530
563
|
@financial_account = financial_account
|
531
564
|
@financial_account_transactions = financial_account_transactions
|
565
|
+
@instant_payouts_promotion = instant_payouts_promotion
|
532
566
|
@issuing_card = issuing_card
|
533
567
|
@issuing_cards_list = issuing_cards_list
|
534
568
|
@notification_banner = notification_banner
|
@@ -46,7 +46,7 @@ module Stripe
|
|
46
46
|
end
|
47
47
|
# The monetary amount.
|
48
48
|
attr_accessor :monetary
|
49
|
-
#
|
49
|
+
# The type of this amount. We currently only support `monetary` billing credits.
|
50
50
|
attr_accessor :type
|
51
51
|
|
52
52
|
def initialize(monetary: nil, type: nil)
|
@@ -118,12 +118,29 @@ module Stripe
|
|
118
118
|
|
119
119
|
class SubscriptionUpdate < Stripe::RequestParams
|
120
120
|
class Product < Stripe::RequestParams
|
121
|
+
class AdjustableQuantity < Stripe::RequestParams
|
122
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
123
|
+
attr_accessor :enabled
|
124
|
+
# The maximum quantity that can be set for the product.
|
125
|
+
attr_accessor :maximum
|
126
|
+
# The minimum quantity that can be set for the product.
|
127
|
+
attr_accessor :minimum
|
128
|
+
|
129
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
130
|
+
@enabled = enabled
|
131
|
+
@maximum = maximum
|
132
|
+
@minimum = minimum
|
133
|
+
end
|
134
|
+
end
|
135
|
+
# Control whether the quantity of the product can be adjusted.
|
136
|
+
attr_accessor :adjustable_quantity
|
121
137
|
# The list of price IDs for the product that a subscription can be updated to.
|
122
138
|
attr_accessor :prices
|
123
139
|
# The product id.
|
124
140
|
attr_accessor :product
|
125
141
|
|
126
|
-
def initialize(prices: nil, product: nil)
|
142
|
+
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
|
143
|
+
@adjustable_quantity = adjustable_quantity
|
127
144
|
@prices = prices
|
128
145
|
@product = product
|
129
146
|
end
|
@@ -326,12 +343,29 @@ module Stripe
|
|
326
343
|
|
327
344
|
class SubscriptionUpdate < Stripe::RequestParams
|
328
345
|
class Product < Stripe::RequestParams
|
346
|
+
class AdjustableQuantity < Stripe::RequestParams
|
347
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
348
|
+
attr_accessor :enabled
|
349
|
+
# The maximum quantity that can be set for the product.
|
350
|
+
attr_accessor :maximum
|
351
|
+
# The minimum quantity that can be set for the product.
|
352
|
+
attr_accessor :minimum
|
353
|
+
|
354
|
+
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
355
|
+
@enabled = enabled
|
356
|
+
@maximum = maximum
|
357
|
+
@minimum = minimum
|
358
|
+
end
|
359
|
+
end
|
360
|
+
# Control whether the quantity of the product can be adjusted.
|
361
|
+
attr_accessor :adjustable_quantity
|
329
362
|
# The list of price IDs for the product that a subscription can be updated to.
|
330
363
|
attr_accessor :prices
|
331
364
|
# The product id.
|
332
365
|
attr_accessor :product
|
333
366
|
|
334
|
-
def initialize(prices: nil, product: nil)
|
367
|
+
def initialize(adjustable_quantity: nil, prices: nil, product: nil)
|
368
|
+
@adjustable_quantity = adjustable_quantity
|
335
369
|
@prices = prices
|
336
370
|
@product = product
|
337
371
|
end
|
@@ -391,9 +391,12 @@ module Stripe
|
|
391
391
|
class RenderingOptions < Stripe::RequestParams
|
392
392
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
393
393
|
attr_accessor :amount_tax_display
|
394
|
+
# ID of the invoice rendering template to use for this invoice.
|
395
|
+
attr_accessor :template
|
394
396
|
|
395
|
-
def initialize(amount_tax_display: nil)
|
397
|
+
def initialize(amount_tax_display: nil, template: nil)
|
396
398
|
@amount_tax_display = amount_tax_display
|
399
|
+
@template = template
|
397
400
|
end
|
398
401
|
end
|
399
402
|
# The account tax IDs associated with the invoice.
|
@@ -1414,9 +1417,18 @@ module Stripe
|
|
1414
1417
|
class Pix < Stripe::RequestParams
|
1415
1418
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
1416
1419
|
attr_accessor :expires_after_seconds
|
1420
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1421
|
+
#
|
1422
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
1423
|
+
#
|
1424
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
1425
|
+
#
|
1426
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
1427
|
+
attr_accessor :setup_future_usage
|
1417
1428
|
|
1418
|
-
def initialize(expires_after_seconds: nil)
|
1429
|
+
def initialize(expires_after_seconds: nil, setup_future_usage: nil)
|
1419
1430
|
@expires_after_seconds = expires_after_seconds
|
1431
|
+
@setup_future_usage = setup_future_usage
|
1420
1432
|
end
|
1421
1433
|
end
|
1422
1434
|
|
@@ -1895,7 +1907,7 @@ module Stripe
|
|
1895
1907
|
|
1896
1908
|
class SubscriptionData < Stripe::RequestParams
|
1897
1909
|
class BillingMode < Stripe::RequestParams
|
1898
|
-
#
|
1910
|
+
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
1899
1911
|
attr_accessor :type
|
1900
1912
|
|
1901
1913
|
def initialize(type: nil)
|
@@ -2123,6 +2135,8 @@ module Stripe
|
|
2123
2135
|
#
|
2124
2136
|
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
|
2125
2137
|
attr_accessor :optional_items
|
2138
|
+
# Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
|
2139
|
+
attr_accessor :origin_context
|
2126
2140
|
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
|
2127
2141
|
attr_accessor :payment_intent_data
|
2128
2142
|
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
|
@@ -2218,6 +2232,7 @@ module Stripe
|
|
2218
2232
|
metadata: nil,
|
2219
2233
|
mode: nil,
|
2220
2234
|
optional_items: nil,
|
2235
|
+
origin_context: nil,
|
2221
2236
|
payment_intent_data: nil,
|
2222
2237
|
payment_method_collection: nil,
|
2223
2238
|
payment_method_configuration: nil,
|
@@ -2263,6 +2278,7 @@ module Stripe
|
|
2263
2278
|
@metadata = metadata
|
2264
2279
|
@mode = mode
|
2265
2280
|
@optional_items = optional_items
|
2281
|
+
@origin_context = origin_context
|
2266
2282
|
@payment_intent_data = payment_intent_data
|
2267
2283
|
@payment_method_collection = payment_method_collection
|
2268
2284
|
@payment_method_configuration = payment_method_configuration
|
@@ -272,7 +272,7 @@ module Stripe
|
|
272
272
|
attr_accessor :discounts
|
273
273
|
# Specifies which fields in the response should be expanded.
|
274
274
|
attr_accessor :expand
|
275
|
-
# The ID of an existing invoice to add this invoice item to.
|
275
|
+
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
|
276
276
|
attr_accessor :invoice
|
277
277
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
278
278
|
attr_accessor :metadata
|