stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.4

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.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +31 -1
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/object_types.rb +3 -0
  5. data/lib/stripe/params/charge_capture_params.rb +0 -169
  6. data/lib/stripe/params/charge_update_params.rb +0 -169
  7. data/lib/stripe/params/checkout/session_create_params.rb +13 -0
  8. data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
  9. data/lib/stripe/params/gift_card_activate_params.rb +30 -0
  10. data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
  11. data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
  12. data/lib/stripe/params/gift_card_create_params.rb +28 -0
  13. data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
  14. data/lib/stripe/params/gift_card_reload_params.rb +22 -0
  15. data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
  16. data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
  17. data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
  18. data/lib/stripe/params/order_create_params.rb +4 -1
  19. data/lib/stripe/params/order_update_params.rb +4 -1
  20. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
  21. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +38 -0
  22. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +20 -0
  23. data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
  24. data/lib/stripe/params/payment_intent_confirm_params.rb +197 -211
  25. data/lib/stripe/params/payment_intent_create_params.rb +197 -211
  26. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
  27. data/lib/stripe/params/payment_intent_update_params.rb +197 -211
  28. data/lib/stripe/params/payment_method_create_params.rb +5 -0
  29. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
  30. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +38 -0
  31. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +27 -1
  32. data/lib/stripe/params/payment_record_report_payment_params.rb +27 -1
  33. data/lib/stripe/params/payment_record_report_refund_params.rb +20 -0
  34. data/lib/stripe/params/radar/account_evaluation_create_params.rb +38 -4
  35. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +19 -2
  36. data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
  37. data/lib/stripe/params/refund_create_params.rb +4 -0
  38. data/lib/stripe/params/refund_list_params.rb +8 -0
  39. data/lib/stripe/params/setup_intent_confirm_params.rb +5 -0
  40. data/lib/stripe/params/setup_intent_create_params.rb +5 -0
  41. data/lib/stripe/params/setup_intent_update_params.rb +5 -0
  42. data/lib/stripe/params/tax/calculation_create_params.rb +42 -0
  43. data/lib/stripe/params/tax_fund_list_params.rb +42 -0
  44. data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
  45. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +5 -0
  46. data/lib/stripe/params/v2/billing/contract_create_params.rb +1 -1
  47. data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
  48. data/lib/stripe/params/v2/core/account_create_params.rb +1620 -81
  49. data/lib/stripe/params/v2/core/account_update_params.rb +1620 -81
  50. data/lib/stripe/params.rb +25 -0
  51. data/lib/stripe/resources/account_session.rb +2 -0
  52. data/lib/stripe/resources/charge.rb +49 -3
  53. data/lib/stripe/resources/checkout/session.rb +16 -2
  54. data/lib/stripe/resources/confirmation_token.rb +29 -2
  55. data/lib/stripe/resources/gift_card.rb +146 -0
  56. data/lib/stripe/resources/gift_card_operation.rb +289 -0
  57. data/lib/stripe/resources/issuing/authorization.rb +1 -1
  58. data/lib/stripe/resources/issuing/dispute.rb +24 -0
  59. data/lib/stripe/resources/issuing/token.rb +1 -1
  60. data/lib/stripe/resources/mandate.rb +18 -0
  61. data/lib/stripe/resources/order.rb +2 -0
  62. data/lib/stripe/resources/payment_attempt_record.rb +83 -1
  63. data/lib/stripe/resources/payment_intent.rb +281 -82
  64. data/lib/stripe/resources/payment_method.rb +29 -2
  65. data/lib/stripe/resources/payment_record.rb +83 -1
  66. data/lib/stripe/resources/product.rb +32 -0
  67. data/lib/stripe/resources/setup_intent.rb +18 -0
  68. data/lib/stripe/resources/shared_payment/granted_token.rb +13 -2
  69. data/lib/stripe/resources/tax/calculation_line_item.rb +41 -1
  70. data/lib/stripe/resources/tax/transaction_line_item.rb +41 -1
  71. data/lib/stripe/resources/tax_fund.rb +179 -0
  72. data/lib/stripe/resources/v2/core/account.rb +11540 -326
  73. data/lib/stripe/resources/v2/core/fee_batch.rb +86 -3
  74. data/lib/stripe/resources/v2/core/fee_entry.rb +40 -2
  75. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
  76. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  77. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  78. data/lib/stripe/resources.rb +6 -0
  79. data/lib/stripe/services/gift_card_operation_service.rb +17 -0
  80. data/lib/stripe/services/gift_card_service.rb +77 -0
  81. data/lib/stripe/services/payment_intent_service.rb +11 -0
  82. data/lib/stripe/services/radar/customer_evaluation_service.rb +11 -0
  83. data/lib/stripe/services/tax_fund_service.rb +22 -0
  84. data/lib/stripe/services/v1_services.rb +4 -1
  85. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
  86. data/lib/stripe/services.rb +6 -0
  87. data/lib/stripe/version.rb +1 -1
  88. data/rbi/stripe.rbi +19043 -2521
  89. metadata +23 -5
@@ -11,19 +11,57 @@ module Stripe
11
11
  class Commercial < ::Stripe::RequestParams
12
12
  class Celtic < ::Stripe::RequestParams
13
13
  class ChargeCard < ::Stripe::RequestParams
14
+ class Protections < ::Stripe::RequestParams
15
+ class PspMigration < ::Stripe::RequestParams
16
+ # To request a protection, pass true.
17
+ attr_accessor :requested
18
+
19
+ def initialize(requested: nil)
20
+ @requested = requested
21
+ end
22
+ end
23
+ # Parameter to request psp_migration protection.
24
+ attr_accessor :psp_migration
25
+
26
+ def initialize(psp_migration: nil)
27
+ @psp_migration = psp_migration
28
+ end
29
+ end
30
+ # Protection types to request for this capability (e.g. "psp_migration").
31
+ attr_accessor :protections
14
32
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
15
33
  attr_accessor :requested
16
34
 
17
- def initialize(requested: nil)
35
+ def initialize(protections: nil, requested: nil)
36
+ @protections = protections
18
37
  @requested = requested
19
38
  end
20
39
  end
21
40
 
22
41
  class SpendCard < ::Stripe::RequestParams
42
+ class Protections < ::Stripe::RequestParams
43
+ class PspMigration < ::Stripe::RequestParams
44
+ # To request a protection, pass true.
45
+ attr_accessor :requested
46
+
47
+ def initialize(requested: nil)
48
+ @requested = requested
49
+ end
50
+ end
51
+ # Parameter to request psp_migration protection.
52
+ attr_accessor :psp_migration
53
+
54
+ def initialize(psp_migration: nil)
55
+ @psp_migration = psp_migration
56
+ end
57
+ end
58
+ # Protection types to request for this capability (e.g. "psp_migration").
59
+ attr_accessor :protections
23
60
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
24
61
  attr_accessor :requested
25
62
 
26
- def initialize(requested: nil)
63
+ def initialize(protections: nil, requested: nil)
64
+ @protections = protections
27
65
  @requested = requested
28
66
  end
29
67
  end
@@ -40,28 +78,85 @@ module Stripe
40
78
 
41
79
  class CrossRiverBank < ::Stripe::RequestParams
42
80
  class ChargeCard < ::Stripe::RequestParams
81
+ class Protections < ::Stripe::RequestParams
82
+ class PspMigration < ::Stripe::RequestParams
83
+ # To request a protection, pass true.
84
+ attr_accessor :requested
85
+
86
+ def initialize(requested: nil)
87
+ @requested = requested
88
+ end
89
+ end
90
+ # Parameter to request psp_migration protection.
91
+ attr_accessor :psp_migration
92
+
93
+ def initialize(psp_migration: nil)
94
+ @psp_migration = psp_migration
95
+ end
96
+ end
97
+ # Protection types to request for this capability (e.g. "psp_migration").
98
+ attr_accessor :protections
43
99
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
44
100
  attr_accessor :requested
45
101
 
46
- def initialize(requested: nil)
102
+ def initialize(protections: nil, requested: nil)
103
+ @protections = protections
47
104
  @requested = requested
48
105
  end
49
106
  end
50
107
 
51
108
  class PrepaidCard < ::Stripe::RequestParams
109
+ class Protections < ::Stripe::RequestParams
110
+ class PspMigration < ::Stripe::RequestParams
111
+ # To request a protection, pass true.
112
+ attr_accessor :requested
113
+
114
+ def initialize(requested: nil)
115
+ @requested = requested
116
+ end
117
+ end
118
+ # Parameter to request psp_migration protection.
119
+ attr_accessor :psp_migration
120
+
121
+ def initialize(psp_migration: nil)
122
+ @psp_migration = psp_migration
123
+ end
124
+ end
125
+ # Protection types to request for this capability (e.g. "psp_migration").
126
+ attr_accessor :protections
52
127
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
53
128
  attr_accessor :requested
54
129
 
55
- def initialize(requested: nil)
130
+ def initialize(protections: nil, requested: nil)
131
+ @protections = protections
56
132
  @requested = requested
57
133
  end
58
134
  end
59
135
 
60
136
  class SpendCard < ::Stripe::RequestParams
137
+ class Protections < ::Stripe::RequestParams
138
+ class PspMigration < ::Stripe::RequestParams
139
+ # To request a protection, pass true.
140
+ attr_accessor :requested
141
+
142
+ def initialize(requested: nil)
143
+ @requested = requested
144
+ end
145
+ end
146
+ # Parameter to request psp_migration protection.
147
+ attr_accessor :psp_migration
148
+
149
+ def initialize(psp_migration: nil)
150
+ @psp_migration = psp_migration
151
+ end
152
+ end
153
+ # Protection types to request for this capability (e.g. "psp_migration").
154
+ attr_accessor :protections
61
155
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
62
156
  attr_accessor :requested
63
157
 
64
- def initialize(requested: nil)
158
+ def initialize(protections: nil, requested: nil)
159
+ @protections = protections
65
160
  @requested = requested
66
161
  end
67
162
  end
@@ -81,10 +176,29 @@ module Stripe
81
176
 
82
177
  class FifthThird < ::Stripe::RequestParams
83
178
  class ChargeCard < ::Stripe::RequestParams
179
+ class Protections < ::Stripe::RequestParams
180
+ class PspMigration < ::Stripe::RequestParams
181
+ # To request a protection, pass true.
182
+ attr_accessor :requested
183
+
184
+ def initialize(requested: nil)
185
+ @requested = requested
186
+ end
187
+ end
188
+ # Parameter to request psp_migration protection.
189
+ attr_accessor :psp_migration
190
+
191
+ def initialize(psp_migration: nil)
192
+ @psp_migration = psp_migration
193
+ end
194
+ end
195
+ # Protection types to request for this capability (e.g. "psp_migration").
196
+ attr_accessor :protections
84
197
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
85
198
  attr_accessor :requested
86
199
 
87
- def initialize(requested: nil)
200
+ def initialize(protections: nil, requested: nil)
201
+ @protections = protections
88
202
  @requested = requested
89
203
  end
90
204
  end
@@ -98,10 +212,29 @@ module Stripe
98
212
 
99
213
  class Lead < ::Stripe::RequestParams
100
214
  class PrepaidCard < ::Stripe::RequestParams
215
+ class Protections < ::Stripe::RequestParams
216
+ class PspMigration < ::Stripe::RequestParams
217
+ # To request a protection, pass true.
218
+ attr_accessor :requested
219
+
220
+ def initialize(requested: nil)
221
+ @requested = requested
222
+ end
223
+ end
224
+ # Parameter to request psp_migration protection.
225
+ attr_accessor :psp_migration
226
+
227
+ def initialize(psp_migration: nil)
228
+ @psp_migration = psp_migration
229
+ end
230
+ end
231
+ # Protection types to request for this capability (e.g. "psp_migration").
232
+ attr_accessor :protections
101
233
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
102
234
  attr_accessor :requested
103
235
 
104
- def initialize(requested: nil)
236
+ def initialize(protections: nil, requested: nil)
237
+ @protections = protections
105
238
  @requested = requested
106
239
  end
107
240
  end
@@ -115,19 +248,57 @@ module Stripe
115
248
 
116
249
  class Stripe < ::Stripe::RequestParams
117
250
  class ChargeCard < ::Stripe::RequestParams
251
+ class Protections < ::Stripe::RequestParams
252
+ class PspMigration < ::Stripe::RequestParams
253
+ # To request a protection, pass true.
254
+ attr_accessor :requested
255
+
256
+ def initialize(requested: nil)
257
+ @requested = requested
258
+ end
259
+ end
260
+ # Parameter to request psp_migration protection.
261
+ attr_accessor :psp_migration
262
+
263
+ def initialize(psp_migration: nil)
264
+ @psp_migration = psp_migration
265
+ end
266
+ end
267
+ # Protection types to request for this capability (e.g. "psp_migration").
268
+ attr_accessor :protections
118
269
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
119
270
  attr_accessor :requested
120
271
 
121
- def initialize(requested: nil)
272
+ def initialize(protections: nil, requested: nil)
273
+ @protections = protections
122
274
  @requested = requested
123
275
  end
124
276
  end
125
277
 
126
278
  class PrepaidCard < ::Stripe::RequestParams
279
+ class Protections < ::Stripe::RequestParams
280
+ class PspMigration < ::Stripe::RequestParams
281
+ # To request a protection, pass true.
282
+ attr_accessor :requested
283
+
284
+ def initialize(requested: nil)
285
+ @requested = requested
286
+ end
287
+ end
288
+ # Parameter to request psp_migration protection.
289
+ attr_accessor :psp_migration
290
+
291
+ def initialize(psp_migration: nil)
292
+ @psp_migration = psp_migration
293
+ end
294
+ end
295
+ # Protection types to request for this capability (e.g. "psp_migration").
296
+ attr_accessor :protections
127
297
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
128
298
  attr_accessor :requested
129
299
 
130
- def initialize(requested: nil)
300
+ def initialize(protections: nil, requested: nil)
301
+ @protections = protections
131
302
  @requested = requested
132
303
  end
133
304
  end
@@ -170,10 +341,29 @@ module Stripe
170
341
  class Consumer < ::Stripe::RequestParams
171
342
  class Celtic < ::Stripe::RequestParams
172
343
  class RevolvingCreditCard < ::Stripe::RequestParams
344
+ class Protections < ::Stripe::RequestParams
345
+ class PspMigration < ::Stripe::RequestParams
346
+ # To request a protection, pass true.
347
+ attr_accessor :requested
348
+
349
+ def initialize(requested: nil)
350
+ @requested = requested
351
+ end
352
+ end
353
+ # Parameter to request psp_migration protection.
354
+ attr_accessor :psp_migration
355
+
356
+ def initialize(psp_migration: nil)
357
+ @psp_migration = psp_migration
358
+ end
359
+ end
360
+ # Protection types to request for this capability (e.g. "psp_migration").
361
+ attr_accessor :protections
173
362
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
174
363
  attr_accessor :requested
175
364
 
176
- def initialize(requested: nil)
365
+ def initialize(protections: nil, requested: nil)
366
+ @protections = protections
177
367
  @requested = requested
178
368
  end
179
369
  end
@@ -187,10 +377,29 @@ module Stripe
187
377
 
188
378
  class CrossRiverBank < ::Stripe::RequestParams
189
379
  class PrepaidCard < ::Stripe::RequestParams
380
+ class Protections < ::Stripe::RequestParams
381
+ class PspMigration < ::Stripe::RequestParams
382
+ # To request a protection, pass true.
383
+ attr_accessor :requested
384
+
385
+ def initialize(requested: nil)
386
+ @requested = requested
387
+ end
388
+ end
389
+ # Parameter to request psp_migration protection.
390
+ attr_accessor :psp_migration
391
+
392
+ def initialize(psp_migration: nil)
393
+ @psp_migration = psp_migration
394
+ end
395
+ end
396
+ # Protection types to request for this capability (e.g. "psp_migration").
397
+ attr_accessor :protections
190
398
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
191
399
  attr_accessor :requested
192
400
 
193
- def initialize(requested: nil)
401
+ def initialize(protections: nil, requested: nil)
402
+ @protections = protections
194
403
  @requested = requested
195
404
  end
196
405
  end
@@ -204,19 +413,57 @@ module Stripe
204
413
 
205
414
  class Lead < ::Stripe::RequestParams
206
415
  class DebitCard < ::Stripe::RequestParams
416
+ class Protections < ::Stripe::RequestParams
417
+ class PspMigration < ::Stripe::RequestParams
418
+ # To request a protection, pass true.
419
+ attr_accessor :requested
420
+
421
+ def initialize(requested: nil)
422
+ @requested = requested
423
+ end
424
+ end
425
+ # Parameter to request psp_migration protection.
426
+ attr_accessor :psp_migration
427
+
428
+ def initialize(psp_migration: nil)
429
+ @psp_migration = psp_migration
430
+ end
431
+ end
432
+ # Protection types to request for this capability (e.g. "psp_migration").
433
+ attr_accessor :protections
207
434
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
208
435
  attr_accessor :requested
209
436
 
210
- def initialize(requested: nil)
437
+ def initialize(protections: nil, requested: nil)
438
+ @protections = protections
211
439
  @requested = requested
212
440
  end
213
441
  end
214
442
 
215
443
  class PrepaidCard < ::Stripe::RequestParams
444
+ class Protections < ::Stripe::RequestParams
445
+ class PspMigration < ::Stripe::RequestParams
446
+ # To request a protection, pass true.
447
+ attr_accessor :requested
448
+
449
+ def initialize(requested: nil)
450
+ @requested = requested
451
+ end
452
+ end
453
+ # Parameter to request psp_migration protection.
454
+ attr_accessor :psp_migration
455
+
456
+ def initialize(psp_migration: nil)
457
+ @psp_migration = psp_migration
458
+ end
459
+ end
460
+ # Protection types to request for this capability (e.g. "psp_migration").
461
+ attr_accessor :protections
216
462
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
217
463
  attr_accessor :requested
218
464
 
219
- def initialize(requested: nil)
465
+ def initialize(protections: nil, requested: nil)
466
+ @protections = protections
220
467
  @requested = requested
221
468
  end
222
469
  end
@@ -337,10 +584,29 @@ module Stripe
337
584
 
338
585
  class Capabilities < ::Stripe::RequestParams
339
586
  class AutomaticIndirectTax < ::Stripe::RequestParams
587
+ class Protections < ::Stripe::RequestParams
588
+ class PspMigration < ::Stripe::RequestParams
589
+ # To request a protection, pass true.
590
+ attr_accessor :requested
591
+
592
+ def initialize(requested: nil)
593
+ @requested = requested
594
+ end
595
+ end
596
+ # Parameter to request psp_migration protection.
597
+ attr_accessor :psp_migration
598
+
599
+ def initialize(psp_migration: nil)
600
+ @psp_migration = psp_migration
601
+ end
602
+ end
603
+ # Protection types to request for this capability (e.g. "psp_migration").
604
+ attr_accessor :protections
340
605
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
341
606
  attr_accessor :requested
342
607
 
343
- def initialize(requested: nil)
608
+ def initialize(protections: nil, requested: nil)
609
+ @protections = protections
344
610
  @requested = requested
345
611
  end
346
612
  end
@@ -452,397 +718,1233 @@ module Stripe
452
718
 
453
719
  class Capabilities < ::Stripe::RequestParams
454
720
  class AchDebitPayments < ::Stripe::RequestParams
721
+ class Protections < ::Stripe::RequestParams
722
+ class PspMigration < ::Stripe::RequestParams
723
+ # To request a protection, pass true.
724
+ attr_accessor :requested
725
+
726
+ def initialize(requested: nil)
727
+ @requested = requested
728
+ end
729
+ end
730
+ # Parameter to request psp_migration protection.
731
+ attr_accessor :psp_migration
732
+
733
+ def initialize(psp_migration: nil)
734
+ @psp_migration = psp_migration
735
+ end
736
+ end
737
+ # Protection types to request for this capability (e.g. "psp_migration").
738
+ attr_accessor :protections
455
739
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
456
740
  attr_accessor :requested
457
741
 
458
- def initialize(requested: nil)
742
+ def initialize(protections: nil, requested: nil)
743
+ @protections = protections
459
744
  @requested = requested
460
745
  end
461
746
  end
462
747
 
463
748
  class AcssDebitPayments < ::Stripe::RequestParams
749
+ class Protections < ::Stripe::RequestParams
750
+ class PspMigration < ::Stripe::RequestParams
751
+ # To request a protection, pass true.
752
+ attr_accessor :requested
753
+
754
+ def initialize(requested: nil)
755
+ @requested = requested
756
+ end
757
+ end
758
+ # Parameter to request psp_migration protection.
759
+ attr_accessor :psp_migration
760
+
761
+ def initialize(psp_migration: nil)
762
+ @psp_migration = psp_migration
763
+ end
764
+ end
765
+ # Protection types to request for this capability (e.g. "psp_migration").
766
+ attr_accessor :protections
464
767
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
465
768
  attr_accessor :requested
466
769
 
467
- def initialize(requested: nil)
770
+ def initialize(protections: nil, requested: nil)
771
+ @protections = protections
468
772
  @requested = requested
469
773
  end
470
774
  end
471
775
 
472
776
  class AffirmPayments < ::Stripe::RequestParams
777
+ class Protections < ::Stripe::RequestParams
778
+ class PspMigration < ::Stripe::RequestParams
779
+ # To request a protection, pass true.
780
+ attr_accessor :requested
781
+
782
+ def initialize(requested: nil)
783
+ @requested = requested
784
+ end
785
+ end
786
+ # Parameter to request psp_migration protection.
787
+ attr_accessor :psp_migration
788
+
789
+ def initialize(psp_migration: nil)
790
+ @psp_migration = psp_migration
791
+ end
792
+ end
793
+ # Protection types to request for this capability (e.g. "psp_migration").
794
+ attr_accessor :protections
473
795
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
474
796
  attr_accessor :requested
475
797
 
476
- def initialize(requested: nil)
798
+ def initialize(protections: nil, requested: nil)
799
+ @protections = protections
477
800
  @requested = requested
478
801
  end
479
802
  end
480
803
 
481
804
  class AfterpayClearpayPayments < ::Stripe::RequestParams
805
+ class Protections < ::Stripe::RequestParams
806
+ class PspMigration < ::Stripe::RequestParams
807
+ # To request a protection, pass true.
808
+ attr_accessor :requested
809
+
810
+ def initialize(requested: nil)
811
+ @requested = requested
812
+ end
813
+ end
814
+ # Parameter to request psp_migration protection.
815
+ attr_accessor :psp_migration
816
+
817
+ def initialize(psp_migration: nil)
818
+ @psp_migration = psp_migration
819
+ end
820
+ end
821
+ # Protection types to request for this capability (e.g. "psp_migration").
822
+ attr_accessor :protections
482
823
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
483
824
  attr_accessor :requested
484
825
 
485
- def initialize(requested: nil)
826
+ def initialize(protections: nil, requested: nil)
827
+ @protections = protections
486
828
  @requested = requested
487
829
  end
488
830
  end
489
831
 
490
832
  class AlmaPayments < ::Stripe::RequestParams
833
+ class Protections < ::Stripe::RequestParams
834
+ class PspMigration < ::Stripe::RequestParams
835
+ # To request a protection, pass true.
836
+ attr_accessor :requested
837
+
838
+ def initialize(requested: nil)
839
+ @requested = requested
840
+ end
841
+ end
842
+ # Parameter to request psp_migration protection.
843
+ attr_accessor :psp_migration
844
+
845
+ def initialize(psp_migration: nil)
846
+ @psp_migration = psp_migration
847
+ end
848
+ end
849
+ # Protection types to request for this capability (e.g. "psp_migration").
850
+ attr_accessor :protections
491
851
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
492
852
  attr_accessor :requested
493
853
 
494
- def initialize(requested: nil)
854
+ def initialize(protections: nil, requested: nil)
855
+ @protections = protections
495
856
  @requested = requested
496
857
  end
497
858
  end
498
859
 
499
860
  class AmazonPayPayments < ::Stripe::RequestParams
861
+ class Protections < ::Stripe::RequestParams
862
+ class PspMigration < ::Stripe::RequestParams
863
+ # To request a protection, pass true.
864
+ attr_accessor :requested
865
+
866
+ def initialize(requested: nil)
867
+ @requested = requested
868
+ end
869
+ end
870
+ # Parameter to request psp_migration protection.
871
+ attr_accessor :psp_migration
872
+
873
+ def initialize(psp_migration: nil)
874
+ @psp_migration = psp_migration
875
+ end
876
+ end
877
+ # Protection types to request for this capability (e.g. "psp_migration").
878
+ attr_accessor :protections
500
879
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
501
880
  attr_accessor :requested
502
881
 
503
- def initialize(requested: nil)
882
+ def initialize(protections: nil, requested: nil)
883
+ @protections = protections
504
884
  @requested = requested
505
885
  end
506
886
  end
507
887
 
508
888
  class AuBecsDebitPayments < ::Stripe::RequestParams
889
+ class Protections < ::Stripe::RequestParams
890
+ class PspMigration < ::Stripe::RequestParams
891
+ # To request a protection, pass true.
892
+ attr_accessor :requested
893
+
894
+ def initialize(requested: nil)
895
+ @requested = requested
896
+ end
897
+ end
898
+ # Parameter to request psp_migration protection.
899
+ attr_accessor :psp_migration
900
+
901
+ def initialize(psp_migration: nil)
902
+ @psp_migration = psp_migration
903
+ end
904
+ end
905
+ # Protection types to request for this capability (e.g. "psp_migration").
906
+ attr_accessor :protections
509
907
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
510
908
  attr_accessor :requested
511
909
 
512
- def initialize(requested: nil)
910
+ def initialize(protections: nil, requested: nil)
911
+ @protections = protections
513
912
  @requested = requested
514
913
  end
515
914
  end
516
915
 
517
916
  class BacsDebitPayments < ::Stripe::RequestParams
917
+ class Protections < ::Stripe::RequestParams
918
+ class PspMigration < ::Stripe::RequestParams
919
+ # To request a protection, pass true.
920
+ attr_accessor :requested
921
+
922
+ def initialize(requested: nil)
923
+ @requested = requested
924
+ end
925
+ end
926
+ # Parameter to request psp_migration protection.
927
+ attr_accessor :psp_migration
928
+
929
+ def initialize(psp_migration: nil)
930
+ @psp_migration = psp_migration
931
+ end
932
+ end
933
+ # Protection types to request for this capability (e.g. "psp_migration").
934
+ attr_accessor :protections
518
935
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
519
936
  attr_accessor :requested
520
937
 
521
- def initialize(requested: nil)
938
+ def initialize(protections: nil, requested: nil)
939
+ @protections = protections
522
940
  @requested = requested
523
941
  end
524
942
  end
525
943
 
526
944
  class BancontactPayments < ::Stripe::RequestParams
945
+ class Protections < ::Stripe::RequestParams
946
+ class PspMigration < ::Stripe::RequestParams
947
+ # To request a protection, pass true.
948
+ attr_accessor :requested
949
+
950
+ def initialize(requested: nil)
951
+ @requested = requested
952
+ end
953
+ end
954
+ # Parameter to request psp_migration protection.
955
+ attr_accessor :psp_migration
956
+
957
+ def initialize(psp_migration: nil)
958
+ @psp_migration = psp_migration
959
+ end
960
+ end
961
+ # Protection types to request for this capability (e.g. "psp_migration").
962
+ attr_accessor :protections
527
963
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
528
964
  attr_accessor :requested
529
965
 
530
- def initialize(requested: nil)
966
+ def initialize(protections: nil, requested: nil)
967
+ @protections = protections
531
968
  @requested = requested
532
969
  end
533
970
  end
534
971
 
535
972
  class BlikPayments < ::Stripe::RequestParams
973
+ class Protections < ::Stripe::RequestParams
974
+ class PspMigration < ::Stripe::RequestParams
975
+ # To request a protection, pass true.
976
+ attr_accessor :requested
977
+
978
+ def initialize(requested: nil)
979
+ @requested = requested
980
+ end
981
+ end
982
+ # Parameter to request psp_migration protection.
983
+ attr_accessor :psp_migration
984
+
985
+ def initialize(psp_migration: nil)
986
+ @psp_migration = psp_migration
987
+ end
988
+ end
989
+ # Protection types to request for this capability (e.g. "psp_migration").
990
+ attr_accessor :protections
536
991
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
537
992
  attr_accessor :requested
538
993
 
539
- def initialize(requested: nil)
994
+ def initialize(protections: nil, requested: nil)
995
+ @protections = protections
540
996
  @requested = requested
541
997
  end
542
998
  end
543
999
 
544
1000
  class BoletoPayments < ::Stripe::RequestParams
1001
+ class Protections < ::Stripe::RequestParams
1002
+ class PspMigration < ::Stripe::RequestParams
1003
+ # To request a protection, pass true.
1004
+ attr_accessor :requested
1005
+
1006
+ def initialize(requested: nil)
1007
+ @requested = requested
1008
+ end
1009
+ end
1010
+ # Parameter to request psp_migration protection.
1011
+ attr_accessor :psp_migration
1012
+
1013
+ def initialize(psp_migration: nil)
1014
+ @psp_migration = psp_migration
1015
+ end
1016
+ end
1017
+ # Protection types to request for this capability (e.g. "psp_migration").
1018
+ attr_accessor :protections
545
1019
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
546
1020
  attr_accessor :requested
547
1021
 
548
- def initialize(requested: nil)
1022
+ def initialize(protections: nil, requested: nil)
1023
+ @protections = protections
549
1024
  @requested = requested
550
1025
  end
551
1026
  end
552
1027
 
553
1028
  class CardPayments < ::Stripe::RequestParams
1029
+ class Protections < ::Stripe::RequestParams
1030
+ class PspMigration < ::Stripe::RequestParams
1031
+ # To request a protection, pass true.
1032
+ attr_accessor :requested
1033
+
1034
+ def initialize(requested: nil)
1035
+ @requested = requested
1036
+ end
1037
+ end
1038
+ # Parameter to request psp_migration protection.
1039
+ attr_accessor :psp_migration
1040
+
1041
+ def initialize(psp_migration: nil)
1042
+ @psp_migration = psp_migration
1043
+ end
1044
+ end
1045
+ # Protection types to request for this capability (e.g. "psp_migration").
1046
+ attr_accessor :protections
554
1047
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
555
1048
  attr_accessor :requested
556
1049
 
557
- def initialize(requested: nil)
1050
+ def initialize(protections: nil, requested: nil)
1051
+ @protections = protections
558
1052
  @requested = requested
559
1053
  end
560
1054
  end
561
1055
 
562
1056
  class CartesBancairesPayments < ::Stripe::RequestParams
1057
+ class Protections < ::Stripe::RequestParams
1058
+ class PspMigration < ::Stripe::RequestParams
1059
+ # To request a protection, pass true.
1060
+ attr_accessor :requested
1061
+
1062
+ def initialize(requested: nil)
1063
+ @requested = requested
1064
+ end
1065
+ end
1066
+ # Parameter to request psp_migration protection.
1067
+ attr_accessor :psp_migration
1068
+
1069
+ def initialize(psp_migration: nil)
1070
+ @psp_migration = psp_migration
1071
+ end
1072
+ end
1073
+ # Protection types to request for this capability (e.g. "psp_migration").
1074
+ attr_accessor :protections
563
1075
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
564
1076
  attr_accessor :requested
565
1077
 
566
- def initialize(requested: nil)
1078
+ def initialize(protections: nil, requested: nil)
1079
+ @protections = protections
567
1080
  @requested = requested
568
1081
  end
569
1082
  end
570
1083
 
571
1084
  class CashappPayments < ::Stripe::RequestParams
1085
+ class Protections < ::Stripe::RequestParams
1086
+ class PspMigration < ::Stripe::RequestParams
1087
+ # To request a protection, pass true.
1088
+ attr_accessor :requested
1089
+
1090
+ def initialize(requested: nil)
1091
+ @requested = requested
1092
+ end
1093
+ end
1094
+ # Parameter to request psp_migration protection.
1095
+ attr_accessor :psp_migration
1096
+
1097
+ def initialize(psp_migration: nil)
1098
+ @psp_migration = psp_migration
1099
+ end
1100
+ end
1101
+ # Protection types to request for this capability (e.g. "psp_migration").
1102
+ attr_accessor :protections
572
1103
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
573
1104
  attr_accessor :requested
574
1105
 
575
- def initialize(requested: nil)
1106
+ def initialize(protections: nil, requested: nil)
1107
+ @protections = protections
576
1108
  @requested = requested
577
1109
  end
578
1110
  end
579
1111
 
580
1112
  class EpsPayments < ::Stripe::RequestParams
1113
+ class Protections < ::Stripe::RequestParams
1114
+ class PspMigration < ::Stripe::RequestParams
1115
+ # To request a protection, pass true.
1116
+ attr_accessor :requested
1117
+
1118
+ def initialize(requested: nil)
1119
+ @requested = requested
1120
+ end
1121
+ end
1122
+ # Parameter to request psp_migration protection.
1123
+ attr_accessor :psp_migration
1124
+
1125
+ def initialize(psp_migration: nil)
1126
+ @psp_migration = psp_migration
1127
+ end
1128
+ end
1129
+ # Protection types to request for this capability (e.g. "psp_migration").
1130
+ attr_accessor :protections
581
1131
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
582
1132
  attr_accessor :requested
583
1133
 
584
- def initialize(requested: nil)
1134
+ def initialize(protections: nil, requested: nil)
1135
+ @protections = protections
585
1136
  @requested = requested
586
1137
  end
587
1138
  end
588
1139
 
589
1140
  class FpxPayments < ::Stripe::RequestParams
1141
+ class Protections < ::Stripe::RequestParams
1142
+ class PspMigration < ::Stripe::RequestParams
1143
+ # To request a protection, pass true.
1144
+ attr_accessor :requested
1145
+
1146
+ def initialize(requested: nil)
1147
+ @requested = requested
1148
+ end
1149
+ end
1150
+ # Parameter to request psp_migration protection.
1151
+ attr_accessor :psp_migration
1152
+
1153
+ def initialize(psp_migration: nil)
1154
+ @psp_migration = psp_migration
1155
+ end
1156
+ end
1157
+ # Protection types to request for this capability (e.g. "psp_migration").
1158
+ attr_accessor :protections
590
1159
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
591
1160
  attr_accessor :requested
592
1161
 
593
- def initialize(requested: nil)
1162
+ def initialize(protections: nil, requested: nil)
1163
+ @protections = protections
594
1164
  @requested = requested
595
1165
  end
596
1166
  end
597
1167
 
598
1168
  class GbBankTransferPayments < ::Stripe::RequestParams
1169
+ class Protections < ::Stripe::RequestParams
1170
+ class PspMigration < ::Stripe::RequestParams
1171
+ # To request a protection, pass true.
1172
+ attr_accessor :requested
1173
+
1174
+ def initialize(requested: nil)
1175
+ @requested = requested
1176
+ end
1177
+ end
1178
+ # Parameter to request psp_migration protection.
1179
+ attr_accessor :psp_migration
1180
+
1181
+ def initialize(psp_migration: nil)
1182
+ @psp_migration = psp_migration
1183
+ end
1184
+ end
1185
+ # Protection types to request for this capability (e.g. "psp_migration").
1186
+ attr_accessor :protections
599
1187
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
600
1188
  attr_accessor :requested
601
1189
 
602
- def initialize(requested: nil)
1190
+ def initialize(protections: nil, requested: nil)
1191
+ @protections = protections
603
1192
  @requested = requested
604
1193
  end
605
1194
  end
606
1195
 
607
1196
  class GrabpayPayments < ::Stripe::RequestParams
1197
+ class Protections < ::Stripe::RequestParams
1198
+ class PspMigration < ::Stripe::RequestParams
1199
+ # To request a protection, pass true.
1200
+ attr_accessor :requested
1201
+
1202
+ def initialize(requested: nil)
1203
+ @requested = requested
1204
+ end
1205
+ end
1206
+ # Parameter to request psp_migration protection.
1207
+ attr_accessor :psp_migration
1208
+
1209
+ def initialize(psp_migration: nil)
1210
+ @psp_migration = psp_migration
1211
+ end
1212
+ end
1213
+ # Protection types to request for this capability (e.g. "psp_migration").
1214
+ attr_accessor :protections
608
1215
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
609
1216
  attr_accessor :requested
610
1217
 
611
- def initialize(requested: nil)
1218
+ def initialize(protections: nil, requested: nil)
1219
+ @protections = protections
612
1220
  @requested = requested
613
1221
  end
614
1222
  end
615
1223
 
616
1224
  class IdealPayments < ::Stripe::RequestParams
1225
+ class Protections < ::Stripe::RequestParams
1226
+ class PspMigration < ::Stripe::RequestParams
1227
+ # To request a protection, pass true.
1228
+ attr_accessor :requested
1229
+
1230
+ def initialize(requested: nil)
1231
+ @requested = requested
1232
+ end
1233
+ end
1234
+ # Parameter to request psp_migration protection.
1235
+ attr_accessor :psp_migration
1236
+
1237
+ def initialize(psp_migration: nil)
1238
+ @psp_migration = psp_migration
1239
+ end
1240
+ end
1241
+ # Protection types to request for this capability (e.g. "psp_migration").
1242
+ attr_accessor :protections
617
1243
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
618
1244
  attr_accessor :requested
619
1245
 
620
- def initialize(requested: nil)
1246
+ def initialize(protections: nil, requested: nil)
1247
+ @protections = protections
621
1248
  @requested = requested
622
1249
  end
623
1250
  end
624
1251
 
625
1252
  class JcbPayments < ::Stripe::RequestParams
1253
+ class Protections < ::Stripe::RequestParams
1254
+ class PspMigration < ::Stripe::RequestParams
1255
+ # To request a protection, pass true.
1256
+ attr_accessor :requested
1257
+
1258
+ def initialize(requested: nil)
1259
+ @requested = requested
1260
+ end
1261
+ end
1262
+ # Parameter to request psp_migration protection.
1263
+ attr_accessor :psp_migration
1264
+
1265
+ def initialize(psp_migration: nil)
1266
+ @psp_migration = psp_migration
1267
+ end
1268
+ end
1269
+ # Protection types to request for this capability (e.g. "psp_migration").
1270
+ attr_accessor :protections
626
1271
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
627
1272
  attr_accessor :requested
628
1273
 
629
- def initialize(requested: nil)
1274
+ def initialize(protections: nil, requested: nil)
1275
+ @protections = protections
630
1276
  @requested = requested
631
1277
  end
632
1278
  end
633
1279
 
634
1280
  class JpBankTransferPayments < ::Stripe::RequestParams
1281
+ class Protections < ::Stripe::RequestParams
1282
+ class PspMigration < ::Stripe::RequestParams
1283
+ # To request a protection, pass true.
1284
+ attr_accessor :requested
1285
+
1286
+ def initialize(requested: nil)
1287
+ @requested = requested
1288
+ end
1289
+ end
1290
+ # Parameter to request psp_migration protection.
1291
+ attr_accessor :psp_migration
1292
+
1293
+ def initialize(psp_migration: nil)
1294
+ @psp_migration = psp_migration
1295
+ end
1296
+ end
1297
+ # Protection types to request for this capability (e.g. "psp_migration").
1298
+ attr_accessor :protections
635
1299
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
636
1300
  attr_accessor :requested
637
1301
 
638
- def initialize(requested: nil)
1302
+ def initialize(protections: nil, requested: nil)
1303
+ @protections = protections
639
1304
  @requested = requested
640
1305
  end
641
1306
  end
642
1307
 
643
1308
  class KakaoPayPayments < ::Stripe::RequestParams
1309
+ class Protections < ::Stripe::RequestParams
1310
+ class PspMigration < ::Stripe::RequestParams
1311
+ # To request a protection, pass true.
1312
+ attr_accessor :requested
1313
+
1314
+ def initialize(requested: nil)
1315
+ @requested = requested
1316
+ end
1317
+ end
1318
+ # Parameter to request psp_migration protection.
1319
+ attr_accessor :psp_migration
1320
+
1321
+ def initialize(psp_migration: nil)
1322
+ @psp_migration = psp_migration
1323
+ end
1324
+ end
1325
+ # Protection types to request for this capability (e.g. "psp_migration").
1326
+ attr_accessor :protections
644
1327
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
645
1328
  attr_accessor :requested
646
1329
 
647
- def initialize(requested: nil)
1330
+ def initialize(protections: nil, requested: nil)
1331
+ @protections = protections
648
1332
  @requested = requested
649
1333
  end
650
1334
  end
651
1335
 
652
1336
  class KlarnaPayments < ::Stripe::RequestParams
1337
+ class Protections < ::Stripe::RequestParams
1338
+ class PspMigration < ::Stripe::RequestParams
1339
+ # To request a protection, pass true.
1340
+ attr_accessor :requested
1341
+
1342
+ def initialize(requested: nil)
1343
+ @requested = requested
1344
+ end
1345
+ end
1346
+ # Parameter to request psp_migration protection.
1347
+ attr_accessor :psp_migration
1348
+
1349
+ def initialize(psp_migration: nil)
1350
+ @psp_migration = psp_migration
1351
+ end
1352
+ end
1353
+ # Protection types to request for this capability (e.g. "psp_migration").
1354
+ attr_accessor :protections
653
1355
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
654
1356
  attr_accessor :requested
655
1357
 
656
- def initialize(requested: nil)
1358
+ def initialize(protections: nil, requested: nil)
1359
+ @protections = protections
657
1360
  @requested = requested
658
1361
  end
659
1362
  end
660
1363
 
661
1364
  class KonbiniPayments < ::Stripe::RequestParams
1365
+ class Protections < ::Stripe::RequestParams
1366
+ class PspMigration < ::Stripe::RequestParams
1367
+ # To request a protection, pass true.
1368
+ attr_accessor :requested
1369
+
1370
+ def initialize(requested: nil)
1371
+ @requested = requested
1372
+ end
1373
+ end
1374
+ # Parameter to request psp_migration protection.
1375
+ attr_accessor :psp_migration
1376
+
1377
+ def initialize(psp_migration: nil)
1378
+ @psp_migration = psp_migration
1379
+ end
1380
+ end
1381
+ # Protection types to request for this capability (e.g. "psp_migration").
1382
+ attr_accessor :protections
662
1383
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
663
1384
  attr_accessor :requested
664
1385
 
665
- def initialize(requested: nil)
1386
+ def initialize(protections: nil, requested: nil)
1387
+ @protections = protections
666
1388
  @requested = requested
667
1389
  end
668
1390
  end
669
1391
 
670
1392
  class KrCardPayments < ::Stripe::RequestParams
1393
+ class Protections < ::Stripe::RequestParams
1394
+ class PspMigration < ::Stripe::RequestParams
1395
+ # To request a protection, pass true.
1396
+ attr_accessor :requested
1397
+
1398
+ def initialize(requested: nil)
1399
+ @requested = requested
1400
+ end
1401
+ end
1402
+ # Parameter to request psp_migration protection.
1403
+ attr_accessor :psp_migration
1404
+
1405
+ def initialize(psp_migration: nil)
1406
+ @psp_migration = psp_migration
1407
+ end
1408
+ end
1409
+ # Protection types to request for this capability (e.g. "psp_migration").
1410
+ attr_accessor :protections
671
1411
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
672
1412
  attr_accessor :requested
673
1413
 
674
- def initialize(requested: nil)
1414
+ def initialize(protections: nil, requested: nil)
1415
+ @protections = protections
675
1416
  @requested = requested
676
1417
  end
677
1418
  end
678
1419
 
679
1420
  class LinkPayments < ::Stripe::RequestParams
1421
+ class Protections < ::Stripe::RequestParams
1422
+ class PspMigration < ::Stripe::RequestParams
1423
+ # To request a protection, pass true.
1424
+ attr_accessor :requested
1425
+
1426
+ def initialize(requested: nil)
1427
+ @requested = requested
1428
+ end
1429
+ end
1430
+ # Parameter to request psp_migration protection.
1431
+ attr_accessor :psp_migration
1432
+
1433
+ def initialize(psp_migration: nil)
1434
+ @psp_migration = psp_migration
1435
+ end
1436
+ end
1437
+ # Protection types to request for this capability (e.g. "psp_migration").
1438
+ attr_accessor :protections
680
1439
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
681
1440
  attr_accessor :requested
682
1441
 
683
- def initialize(requested: nil)
1442
+ def initialize(protections: nil, requested: nil)
1443
+ @protections = protections
684
1444
  @requested = requested
685
1445
  end
686
1446
  end
687
1447
 
688
1448
  class MobilepayPayments < ::Stripe::RequestParams
1449
+ class Protections < ::Stripe::RequestParams
1450
+ class PspMigration < ::Stripe::RequestParams
1451
+ # To request a protection, pass true.
1452
+ attr_accessor :requested
1453
+
1454
+ def initialize(requested: nil)
1455
+ @requested = requested
1456
+ end
1457
+ end
1458
+ # Parameter to request psp_migration protection.
1459
+ attr_accessor :psp_migration
1460
+
1461
+ def initialize(psp_migration: nil)
1462
+ @psp_migration = psp_migration
1463
+ end
1464
+ end
1465
+ # Protection types to request for this capability (e.g. "psp_migration").
1466
+ attr_accessor :protections
689
1467
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
690
1468
  attr_accessor :requested
691
1469
 
692
- def initialize(requested: nil)
1470
+ def initialize(protections: nil, requested: nil)
1471
+ @protections = protections
693
1472
  @requested = requested
694
1473
  end
695
1474
  end
696
1475
 
697
1476
  class MultibancoPayments < ::Stripe::RequestParams
1477
+ class Protections < ::Stripe::RequestParams
1478
+ class PspMigration < ::Stripe::RequestParams
1479
+ # To request a protection, pass true.
1480
+ attr_accessor :requested
1481
+
1482
+ def initialize(requested: nil)
1483
+ @requested = requested
1484
+ end
1485
+ end
1486
+ # Parameter to request psp_migration protection.
1487
+ attr_accessor :psp_migration
1488
+
1489
+ def initialize(psp_migration: nil)
1490
+ @psp_migration = psp_migration
1491
+ end
1492
+ end
1493
+ # Protection types to request for this capability (e.g. "psp_migration").
1494
+ attr_accessor :protections
698
1495
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
699
1496
  attr_accessor :requested
700
1497
 
701
- def initialize(requested: nil)
1498
+ def initialize(protections: nil, requested: nil)
1499
+ @protections = protections
702
1500
  @requested = requested
703
1501
  end
704
1502
  end
705
1503
 
706
1504
  class MxBankTransferPayments < ::Stripe::RequestParams
1505
+ class Protections < ::Stripe::RequestParams
1506
+ class PspMigration < ::Stripe::RequestParams
1507
+ # To request a protection, pass true.
1508
+ attr_accessor :requested
1509
+
1510
+ def initialize(requested: nil)
1511
+ @requested = requested
1512
+ end
1513
+ end
1514
+ # Parameter to request psp_migration protection.
1515
+ attr_accessor :psp_migration
1516
+
1517
+ def initialize(psp_migration: nil)
1518
+ @psp_migration = psp_migration
1519
+ end
1520
+ end
1521
+ # Protection types to request for this capability (e.g. "psp_migration").
1522
+ attr_accessor :protections
707
1523
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
708
1524
  attr_accessor :requested
709
1525
 
710
- def initialize(requested: nil)
1526
+ def initialize(protections: nil, requested: nil)
1527
+ @protections = protections
711
1528
  @requested = requested
712
1529
  end
713
1530
  end
714
1531
 
715
1532
  class NaverPayPayments < ::Stripe::RequestParams
1533
+ class Protections < ::Stripe::RequestParams
1534
+ class PspMigration < ::Stripe::RequestParams
1535
+ # To request a protection, pass true.
1536
+ attr_accessor :requested
1537
+
1538
+ def initialize(requested: nil)
1539
+ @requested = requested
1540
+ end
1541
+ end
1542
+ # Parameter to request psp_migration protection.
1543
+ attr_accessor :psp_migration
1544
+
1545
+ def initialize(psp_migration: nil)
1546
+ @psp_migration = psp_migration
1547
+ end
1548
+ end
1549
+ # Protection types to request for this capability (e.g. "psp_migration").
1550
+ attr_accessor :protections
716
1551
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
717
1552
  attr_accessor :requested
718
1553
 
719
- def initialize(requested: nil)
1554
+ def initialize(protections: nil, requested: nil)
1555
+ @protections = protections
720
1556
  @requested = requested
721
1557
  end
722
1558
  end
723
1559
 
724
1560
  class OxxoPayments < ::Stripe::RequestParams
1561
+ class Protections < ::Stripe::RequestParams
1562
+ class PspMigration < ::Stripe::RequestParams
1563
+ # To request a protection, pass true.
1564
+ attr_accessor :requested
1565
+
1566
+ def initialize(requested: nil)
1567
+ @requested = requested
1568
+ end
1569
+ end
1570
+ # Parameter to request psp_migration protection.
1571
+ attr_accessor :psp_migration
1572
+
1573
+ def initialize(psp_migration: nil)
1574
+ @psp_migration = psp_migration
1575
+ end
1576
+ end
1577
+ # Protection types to request for this capability (e.g. "psp_migration").
1578
+ attr_accessor :protections
725
1579
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
726
1580
  attr_accessor :requested
727
1581
 
728
- def initialize(requested: nil)
1582
+ def initialize(protections: nil, requested: nil)
1583
+ @protections = protections
729
1584
  @requested = requested
730
1585
  end
731
1586
  end
732
1587
 
733
1588
  class P24Payments < ::Stripe::RequestParams
1589
+ class Protections < ::Stripe::RequestParams
1590
+ class PspMigration < ::Stripe::RequestParams
1591
+ # To request a protection, pass true.
1592
+ attr_accessor :requested
1593
+
1594
+ def initialize(requested: nil)
1595
+ @requested = requested
1596
+ end
1597
+ end
1598
+ # Parameter to request psp_migration protection.
1599
+ attr_accessor :psp_migration
1600
+
1601
+ def initialize(psp_migration: nil)
1602
+ @psp_migration = psp_migration
1603
+ end
1604
+ end
1605
+ # Protection types to request for this capability (e.g. "psp_migration").
1606
+ attr_accessor :protections
734
1607
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
735
1608
  attr_accessor :requested
736
1609
 
737
- def initialize(requested: nil)
1610
+ def initialize(protections: nil, requested: nil)
1611
+ @protections = protections
738
1612
  @requested = requested
739
1613
  end
740
1614
  end
741
1615
 
742
1616
  class PayByBankPayments < ::Stripe::RequestParams
1617
+ class Protections < ::Stripe::RequestParams
1618
+ class PspMigration < ::Stripe::RequestParams
1619
+ # To request a protection, pass true.
1620
+ attr_accessor :requested
1621
+
1622
+ def initialize(requested: nil)
1623
+ @requested = requested
1624
+ end
1625
+ end
1626
+ # Parameter to request psp_migration protection.
1627
+ attr_accessor :psp_migration
1628
+
1629
+ def initialize(psp_migration: nil)
1630
+ @psp_migration = psp_migration
1631
+ end
1632
+ end
1633
+ # Protection types to request for this capability (e.g. "psp_migration").
1634
+ attr_accessor :protections
743
1635
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
744
1636
  attr_accessor :requested
745
1637
 
746
- def initialize(requested: nil)
1638
+ def initialize(protections: nil, requested: nil)
1639
+ @protections = protections
747
1640
  @requested = requested
748
1641
  end
749
1642
  end
750
1643
 
751
1644
  class PaycoPayments < ::Stripe::RequestParams
1645
+ class Protections < ::Stripe::RequestParams
1646
+ class PspMigration < ::Stripe::RequestParams
1647
+ # To request a protection, pass true.
1648
+ attr_accessor :requested
1649
+
1650
+ def initialize(requested: nil)
1651
+ @requested = requested
1652
+ end
1653
+ end
1654
+ # Parameter to request psp_migration protection.
1655
+ attr_accessor :psp_migration
1656
+
1657
+ def initialize(psp_migration: nil)
1658
+ @psp_migration = psp_migration
1659
+ end
1660
+ end
1661
+ # Protection types to request for this capability (e.g. "psp_migration").
1662
+ attr_accessor :protections
752
1663
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
753
1664
  attr_accessor :requested
754
1665
 
755
- def initialize(requested: nil)
1666
+ def initialize(protections: nil, requested: nil)
1667
+ @protections = protections
756
1668
  @requested = requested
757
1669
  end
758
1670
  end
759
1671
 
760
1672
  class PaynowPayments < ::Stripe::RequestParams
1673
+ class Protections < ::Stripe::RequestParams
1674
+ class PspMigration < ::Stripe::RequestParams
1675
+ # To request a protection, pass true.
1676
+ attr_accessor :requested
1677
+
1678
+ def initialize(requested: nil)
1679
+ @requested = requested
1680
+ end
1681
+ end
1682
+ # Parameter to request psp_migration protection.
1683
+ attr_accessor :psp_migration
1684
+
1685
+ def initialize(psp_migration: nil)
1686
+ @psp_migration = psp_migration
1687
+ end
1688
+ end
1689
+ # Protection types to request for this capability (e.g. "psp_migration").
1690
+ attr_accessor :protections
761
1691
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
762
1692
  attr_accessor :requested
763
1693
 
764
- def initialize(requested: nil)
1694
+ def initialize(protections: nil, requested: nil)
1695
+ @protections = protections
765
1696
  @requested = requested
766
1697
  end
767
1698
  end
768
1699
 
769
1700
  class PromptpayPayments < ::Stripe::RequestParams
1701
+ class Protections < ::Stripe::RequestParams
1702
+ class PspMigration < ::Stripe::RequestParams
1703
+ # To request a protection, pass true.
1704
+ attr_accessor :requested
1705
+
1706
+ def initialize(requested: nil)
1707
+ @requested = requested
1708
+ end
1709
+ end
1710
+ # Parameter to request psp_migration protection.
1711
+ attr_accessor :psp_migration
1712
+
1713
+ def initialize(psp_migration: nil)
1714
+ @psp_migration = psp_migration
1715
+ end
1716
+ end
1717
+ # Protection types to request for this capability (e.g. "psp_migration").
1718
+ attr_accessor :protections
770
1719
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
771
1720
  attr_accessor :requested
772
1721
 
773
- def initialize(requested: nil)
1722
+ def initialize(protections: nil, requested: nil)
1723
+ @protections = protections
774
1724
  @requested = requested
775
1725
  end
776
1726
  end
777
1727
 
778
1728
  class RevolutPayPayments < ::Stripe::RequestParams
1729
+ class Protections < ::Stripe::RequestParams
1730
+ class PspMigration < ::Stripe::RequestParams
1731
+ # To request a protection, pass true.
1732
+ attr_accessor :requested
1733
+
1734
+ def initialize(requested: nil)
1735
+ @requested = requested
1736
+ end
1737
+ end
1738
+ # Parameter to request psp_migration protection.
1739
+ attr_accessor :psp_migration
1740
+
1741
+ def initialize(psp_migration: nil)
1742
+ @psp_migration = psp_migration
1743
+ end
1744
+ end
1745
+ # Protection types to request for this capability (e.g. "psp_migration").
1746
+ attr_accessor :protections
779
1747
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
780
1748
  attr_accessor :requested
781
1749
 
782
- def initialize(requested: nil)
1750
+ def initialize(protections: nil, requested: nil)
1751
+ @protections = protections
783
1752
  @requested = requested
784
1753
  end
785
1754
  end
786
1755
 
787
1756
  class SamsungPayPayments < ::Stripe::RequestParams
1757
+ class Protections < ::Stripe::RequestParams
1758
+ class PspMigration < ::Stripe::RequestParams
1759
+ # To request a protection, pass true.
1760
+ attr_accessor :requested
1761
+
1762
+ def initialize(requested: nil)
1763
+ @requested = requested
1764
+ end
1765
+ end
1766
+ # Parameter to request psp_migration protection.
1767
+ attr_accessor :psp_migration
1768
+
1769
+ def initialize(psp_migration: nil)
1770
+ @psp_migration = psp_migration
1771
+ end
1772
+ end
1773
+ # Protection types to request for this capability (e.g. "psp_migration").
1774
+ attr_accessor :protections
788
1775
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
789
1776
  attr_accessor :requested
790
1777
 
791
- def initialize(requested: nil)
1778
+ def initialize(protections: nil, requested: nil)
1779
+ @protections = protections
792
1780
  @requested = requested
793
1781
  end
794
1782
  end
795
1783
 
796
1784
  class SepaBankTransferPayments < ::Stripe::RequestParams
1785
+ class Protections < ::Stripe::RequestParams
1786
+ class PspMigration < ::Stripe::RequestParams
1787
+ # To request a protection, pass true.
1788
+ attr_accessor :requested
1789
+
1790
+ def initialize(requested: nil)
1791
+ @requested = requested
1792
+ end
1793
+ end
1794
+ # Parameter to request psp_migration protection.
1795
+ attr_accessor :psp_migration
1796
+
1797
+ def initialize(psp_migration: nil)
1798
+ @psp_migration = psp_migration
1799
+ end
1800
+ end
1801
+ # Protection types to request for this capability (e.g. "psp_migration").
1802
+ attr_accessor :protections
797
1803
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
798
1804
  attr_accessor :requested
799
1805
 
800
- def initialize(requested: nil)
1806
+ def initialize(protections: nil, requested: nil)
1807
+ @protections = protections
801
1808
  @requested = requested
802
1809
  end
803
1810
  end
804
1811
 
805
1812
  class SepaDebitPayments < ::Stripe::RequestParams
1813
+ class Protections < ::Stripe::RequestParams
1814
+ class PspMigration < ::Stripe::RequestParams
1815
+ # To request a protection, pass true.
1816
+ attr_accessor :requested
1817
+
1818
+ def initialize(requested: nil)
1819
+ @requested = requested
1820
+ end
1821
+ end
1822
+ # Parameter to request psp_migration protection.
1823
+ attr_accessor :psp_migration
1824
+
1825
+ def initialize(psp_migration: nil)
1826
+ @psp_migration = psp_migration
1827
+ end
1828
+ end
1829
+ # Protection types to request for this capability (e.g. "psp_migration").
1830
+ attr_accessor :protections
806
1831
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
807
1832
  attr_accessor :requested
808
1833
 
809
- def initialize(requested: nil)
1834
+ def initialize(protections: nil, requested: nil)
1835
+ @protections = protections
810
1836
  @requested = requested
811
1837
  end
812
1838
  end
813
1839
 
814
1840
  class SwishPayments < ::Stripe::RequestParams
1841
+ class Protections < ::Stripe::RequestParams
1842
+ class PspMigration < ::Stripe::RequestParams
1843
+ # To request a protection, pass true.
1844
+ attr_accessor :requested
1845
+
1846
+ def initialize(requested: nil)
1847
+ @requested = requested
1848
+ end
1849
+ end
1850
+ # Parameter to request psp_migration protection.
1851
+ attr_accessor :psp_migration
1852
+
1853
+ def initialize(psp_migration: nil)
1854
+ @psp_migration = psp_migration
1855
+ end
1856
+ end
1857
+ # Protection types to request for this capability (e.g. "psp_migration").
1858
+ attr_accessor :protections
815
1859
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
816
1860
  attr_accessor :requested
817
1861
 
818
- def initialize(requested: nil)
1862
+ def initialize(protections: nil, requested: nil)
1863
+ @protections = protections
819
1864
  @requested = requested
820
1865
  end
821
1866
  end
822
1867
 
823
1868
  class TwintPayments < ::Stripe::RequestParams
1869
+ class Protections < ::Stripe::RequestParams
1870
+ class PspMigration < ::Stripe::RequestParams
1871
+ # To request a protection, pass true.
1872
+ attr_accessor :requested
1873
+
1874
+ def initialize(requested: nil)
1875
+ @requested = requested
1876
+ end
1877
+ end
1878
+ # Parameter to request psp_migration protection.
1879
+ attr_accessor :psp_migration
1880
+
1881
+ def initialize(psp_migration: nil)
1882
+ @psp_migration = psp_migration
1883
+ end
1884
+ end
1885
+ # Protection types to request for this capability (e.g. "psp_migration").
1886
+ attr_accessor :protections
824
1887
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
825
1888
  attr_accessor :requested
826
1889
 
827
- def initialize(requested: nil)
1890
+ def initialize(protections: nil, requested: nil)
1891
+ @protections = protections
828
1892
  @requested = requested
829
1893
  end
830
1894
  end
831
1895
 
832
1896
  class UsBankTransferPayments < ::Stripe::RequestParams
1897
+ class Protections < ::Stripe::RequestParams
1898
+ class PspMigration < ::Stripe::RequestParams
1899
+ # To request a protection, pass true.
1900
+ attr_accessor :requested
1901
+
1902
+ def initialize(requested: nil)
1903
+ @requested = requested
1904
+ end
1905
+ end
1906
+ # Parameter to request psp_migration protection.
1907
+ attr_accessor :psp_migration
1908
+
1909
+ def initialize(psp_migration: nil)
1910
+ @psp_migration = psp_migration
1911
+ end
1912
+ end
1913
+ # Protection types to request for this capability (e.g. "psp_migration").
1914
+ attr_accessor :protections
833
1915
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
834
1916
  attr_accessor :requested
835
1917
 
836
- def initialize(requested: nil)
1918
+ def initialize(protections: nil, requested: nil)
1919
+ @protections = protections
837
1920
  @requested = requested
838
1921
  end
839
1922
  end
840
1923
 
841
1924
  class ZipPayments < ::Stripe::RequestParams
1925
+ class Protections < ::Stripe::RequestParams
1926
+ class PspMigration < ::Stripe::RequestParams
1927
+ # To request a protection, pass true.
1928
+ attr_accessor :requested
1929
+
1930
+ def initialize(requested: nil)
1931
+ @requested = requested
1932
+ end
1933
+ end
1934
+ # Parameter to request psp_migration protection.
1935
+ attr_accessor :psp_migration
1936
+
1937
+ def initialize(psp_migration: nil)
1938
+ @psp_migration = psp_migration
1939
+ end
1940
+ end
1941
+ # Protection types to request for this capability (e.g. "psp_migration").
1942
+ attr_accessor :protections
842
1943
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
843
1944
  attr_accessor :requested
844
1945
 
845
- def initialize(requested: nil)
1946
+ def initialize(protections: nil, requested: nil)
1947
+ @protections = protections
846
1948
  @requested = requested
847
1949
  end
848
1950
  end
@@ -1247,28 +2349,85 @@ module Stripe
1247
2349
  class Capabilities < ::Stripe::RequestParams
1248
2350
  class BankAccounts < ::Stripe::RequestParams
1249
2351
  class Instant < ::Stripe::RequestParams
2352
+ class Protections < ::Stripe::RequestParams
2353
+ class PspMigration < ::Stripe::RequestParams
2354
+ # To request a protection, pass true.
2355
+ attr_accessor :requested
2356
+
2357
+ def initialize(requested: nil)
2358
+ @requested = requested
2359
+ end
2360
+ end
2361
+ # Parameter to request psp_migration protection.
2362
+ attr_accessor :psp_migration
2363
+
2364
+ def initialize(psp_migration: nil)
2365
+ @psp_migration = psp_migration
2366
+ end
2367
+ end
2368
+ # Protection types to request for this capability (e.g. "psp_migration").
2369
+ attr_accessor :protections
1250
2370
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1251
2371
  attr_accessor :requested
1252
2372
 
1253
- def initialize(requested: nil)
2373
+ def initialize(protections: nil, requested: nil)
2374
+ @protections = protections
1254
2375
  @requested = requested
1255
2376
  end
1256
2377
  end
1257
2378
 
1258
2379
  class Local < ::Stripe::RequestParams
2380
+ class Protections < ::Stripe::RequestParams
2381
+ class PspMigration < ::Stripe::RequestParams
2382
+ # To request a protection, pass true.
2383
+ attr_accessor :requested
2384
+
2385
+ def initialize(requested: nil)
2386
+ @requested = requested
2387
+ end
2388
+ end
2389
+ # Parameter to request psp_migration protection.
2390
+ attr_accessor :psp_migration
2391
+
2392
+ def initialize(psp_migration: nil)
2393
+ @psp_migration = psp_migration
2394
+ end
2395
+ end
2396
+ # Protection types to request for this capability (e.g. "psp_migration").
2397
+ attr_accessor :protections
1259
2398
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1260
2399
  attr_accessor :requested
1261
2400
 
1262
- def initialize(requested: nil)
2401
+ def initialize(protections: nil, requested: nil)
2402
+ @protections = protections
1263
2403
  @requested = requested
1264
2404
  end
1265
2405
  end
1266
2406
 
1267
2407
  class Wire < ::Stripe::RequestParams
2408
+ class Protections < ::Stripe::RequestParams
2409
+ class PspMigration < ::Stripe::RequestParams
2410
+ # To request a protection, pass true.
2411
+ attr_accessor :requested
2412
+
2413
+ def initialize(requested: nil)
2414
+ @requested = requested
2415
+ end
2416
+ end
2417
+ # Parameter to request psp_migration protection.
2418
+ attr_accessor :psp_migration
2419
+
2420
+ def initialize(psp_migration: nil)
2421
+ @psp_migration = psp_migration
2422
+ end
2423
+ end
2424
+ # Protection types to request for this capability (e.g. "psp_migration").
2425
+ attr_accessor :protections
1268
2426
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1269
2427
  attr_accessor :requested
1270
2428
 
1271
- def initialize(requested: nil)
2429
+ def initialize(protections: nil, requested: nil)
2430
+ @protections = protections
1272
2431
  @requested = requested
1273
2432
  end
1274
2433
  end
@@ -1287,38 +2446,114 @@ module Stripe
1287
2446
  end
1288
2447
 
1289
2448
  class Cards < ::Stripe::RequestParams
2449
+ class Protections < ::Stripe::RequestParams
2450
+ class PspMigration < ::Stripe::RequestParams
2451
+ # To request a protection, pass true.
2452
+ attr_accessor :requested
2453
+
2454
+ def initialize(requested: nil)
2455
+ @requested = requested
2456
+ end
2457
+ end
2458
+ # Parameter to request psp_migration protection.
2459
+ attr_accessor :psp_migration
2460
+
2461
+ def initialize(psp_migration: nil)
2462
+ @psp_migration = psp_migration
2463
+ end
2464
+ end
2465
+ # Protection types to request for this capability (e.g. "psp_migration").
2466
+ attr_accessor :protections
1290
2467
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1291
2468
  attr_accessor :requested
1292
2469
 
1293
- def initialize(requested: nil)
2470
+ def initialize(protections: nil, requested: nil)
2471
+ @protections = protections
1294
2472
  @requested = requested
1295
2473
  end
1296
2474
  end
1297
2475
 
1298
2476
  class CryptoWallets < ::Stripe::RequestParams
2477
+ class Protections < ::Stripe::RequestParams
2478
+ class PspMigration < ::Stripe::RequestParams
2479
+ # To request a protection, pass true.
2480
+ attr_accessor :requested
2481
+
2482
+ def initialize(requested: nil)
2483
+ @requested = requested
2484
+ end
2485
+ end
2486
+ # Parameter to request psp_migration protection.
2487
+ attr_accessor :psp_migration
2488
+
2489
+ def initialize(psp_migration: nil)
2490
+ @psp_migration = psp_migration
2491
+ end
2492
+ end
2493
+ # Protection types to request for this capability (e.g. "psp_migration").
2494
+ attr_accessor :protections
1299
2495
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1300
2496
  attr_accessor :requested
1301
2497
 
1302
- def initialize(requested: nil)
2498
+ def initialize(protections: nil, requested: nil)
2499
+ @protections = protections
1303
2500
  @requested = requested
1304
2501
  end
1305
2502
  end
1306
2503
 
1307
2504
  class PaperChecks < ::Stripe::RequestParams
2505
+ class Protections < ::Stripe::RequestParams
2506
+ class PspMigration < ::Stripe::RequestParams
2507
+ # To request a protection, pass true.
2508
+ attr_accessor :requested
2509
+
2510
+ def initialize(requested: nil)
2511
+ @requested = requested
2512
+ end
2513
+ end
2514
+ # Parameter to request psp_migration protection.
2515
+ attr_accessor :psp_migration
2516
+
2517
+ def initialize(psp_migration: nil)
2518
+ @psp_migration = psp_migration
2519
+ end
2520
+ end
2521
+ # Protection types to request for this capability (e.g. "psp_migration").
2522
+ attr_accessor :protections
1308
2523
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1309
2524
  attr_accessor :requested
1310
2525
 
1311
- def initialize(requested: nil)
2526
+ def initialize(protections: nil, requested: nil)
2527
+ @protections = protections
1312
2528
  @requested = requested
1313
2529
  end
1314
2530
  end
1315
2531
 
1316
2532
  class StripeBalance < ::Stripe::RequestParams
1317
2533
  class StripeTransfers < ::Stripe::RequestParams
2534
+ class Protections < ::Stripe::RequestParams
2535
+ class PspMigration < ::Stripe::RequestParams
2536
+ # To request a protection, pass true.
2537
+ attr_accessor :requested
2538
+
2539
+ def initialize(requested: nil)
2540
+ @requested = requested
2541
+ end
2542
+ end
2543
+ # Parameter to request psp_migration protection.
2544
+ attr_accessor :psp_migration
2545
+
2546
+ def initialize(psp_migration: nil)
2547
+ @psp_migration = psp_migration
2548
+ end
2549
+ end
2550
+ # Protection types to request for this capability (e.g. "psp_migration").
2551
+ attr_accessor :protections
1318
2552
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1319
2553
  attr_accessor :requested
1320
2554
 
1321
- def initialize(requested: nil)
2555
+ def initialize(protections: nil, requested: nil)
2556
+ @protections = protections
1322
2557
  @requested = requested
1323
2558
  end
1324
2559
  end
@@ -1367,10 +2602,29 @@ module Stripe
1367
2602
  class Consumer < ::Stripe::RequestParams
1368
2603
  class HoldsCurrencies < ::Stripe::RequestParams
1369
2604
  class Usd < ::Stripe::RequestParams
2605
+ class Protections < ::Stripe::RequestParams
2606
+ class PspMigration < ::Stripe::RequestParams
2607
+ # To request a protection, pass true.
2608
+ attr_accessor :requested
2609
+
2610
+ def initialize(requested: nil)
2611
+ @requested = requested
2612
+ end
2613
+ end
2614
+ # Parameter to request psp_migration protection.
2615
+ attr_accessor :psp_migration
2616
+
2617
+ def initialize(psp_migration: nil)
2618
+ @psp_migration = psp_migration
2619
+ end
2620
+ end
2621
+ # Protection types to request for this capability (e.g. "psp_migration").
2622
+ attr_accessor :protections
1370
2623
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1371
2624
  attr_accessor :requested
1372
2625
 
1373
- def initialize(requested: nil)
2626
+ def initialize(protections: nil, requested: nil)
2627
+ @protections = protections
1374
2628
  @requested = requested
1375
2629
  end
1376
2630
  end
@@ -1391,19 +2645,57 @@ module Stripe
1391
2645
 
1392
2646
  class FinancialAddresses < ::Stripe::RequestParams
1393
2647
  class BankAccounts < ::Stripe::RequestParams
2648
+ class Protections < ::Stripe::RequestParams
2649
+ class PspMigration < ::Stripe::RequestParams
2650
+ # To request a protection, pass true.
2651
+ attr_accessor :requested
2652
+
2653
+ def initialize(requested: nil)
2654
+ @requested = requested
2655
+ end
2656
+ end
2657
+ # Parameter to request psp_migration protection.
2658
+ attr_accessor :psp_migration
2659
+
2660
+ def initialize(psp_migration: nil)
2661
+ @psp_migration = psp_migration
2662
+ end
2663
+ end
2664
+ # Protection types to request for this capability (e.g. "psp_migration").
2665
+ attr_accessor :protections
1394
2666
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1395
2667
  attr_accessor :requested
1396
2668
 
1397
- def initialize(requested: nil)
2669
+ def initialize(protections: nil, requested: nil)
2670
+ @protections = protections
1398
2671
  @requested = requested
1399
2672
  end
1400
2673
  end
1401
2674
 
1402
2675
  class CryptoWallets < ::Stripe::RequestParams
2676
+ class Protections < ::Stripe::RequestParams
2677
+ class PspMigration < ::Stripe::RequestParams
2678
+ # To request a protection, pass true.
2679
+ attr_accessor :requested
2680
+
2681
+ def initialize(requested: nil)
2682
+ @requested = requested
2683
+ end
2684
+ end
2685
+ # Parameter to request psp_migration protection.
2686
+ attr_accessor :psp_migration
2687
+
2688
+ def initialize(psp_migration: nil)
2689
+ @psp_migration = psp_migration
2690
+ end
2691
+ end
2692
+ # Protection types to request for this capability (e.g. "psp_migration").
2693
+ attr_accessor :protections
1403
2694
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1404
2695
  attr_accessor :requested
1405
2696
 
1406
- def initialize(requested: nil)
2697
+ def initialize(protections: nil, requested: nil)
2698
+ @protections = protections
1407
2699
  @requested = requested
1408
2700
  end
1409
2701
  end
@@ -1420,37 +2712,113 @@ module Stripe
1420
2712
 
1421
2713
  class HoldsCurrencies < ::Stripe::RequestParams
1422
2714
  class Eur < ::Stripe::RequestParams
2715
+ class Protections < ::Stripe::RequestParams
2716
+ class PspMigration < ::Stripe::RequestParams
2717
+ # To request a protection, pass true.
2718
+ attr_accessor :requested
2719
+
2720
+ def initialize(requested: nil)
2721
+ @requested = requested
2722
+ end
2723
+ end
2724
+ # Parameter to request psp_migration protection.
2725
+ attr_accessor :psp_migration
2726
+
2727
+ def initialize(psp_migration: nil)
2728
+ @psp_migration = psp_migration
2729
+ end
2730
+ end
2731
+ # Protection types to request for this capability (e.g. "psp_migration").
2732
+ attr_accessor :protections
1423
2733
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1424
2734
  attr_accessor :requested
1425
2735
 
1426
- def initialize(requested: nil)
2736
+ def initialize(protections: nil, requested: nil)
2737
+ @protections = protections
1427
2738
  @requested = requested
1428
2739
  end
1429
2740
  end
1430
2741
 
1431
2742
  class Gbp < ::Stripe::RequestParams
2743
+ class Protections < ::Stripe::RequestParams
2744
+ class PspMigration < ::Stripe::RequestParams
2745
+ # To request a protection, pass true.
2746
+ attr_accessor :requested
2747
+
2748
+ def initialize(requested: nil)
2749
+ @requested = requested
2750
+ end
2751
+ end
2752
+ # Parameter to request psp_migration protection.
2753
+ attr_accessor :psp_migration
2754
+
2755
+ def initialize(psp_migration: nil)
2756
+ @psp_migration = psp_migration
2757
+ end
2758
+ end
2759
+ # Protection types to request for this capability (e.g. "psp_migration").
2760
+ attr_accessor :protections
1432
2761
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1433
2762
  attr_accessor :requested
1434
2763
 
1435
- def initialize(requested: nil)
2764
+ def initialize(protections: nil, requested: nil)
2765
+ @protections = protections
1436
2766
  @requested = requested
1437
2767
  end
1438
2768
  end
1439
2769
 
1440
2770
  class Usd < ::Stripe::RequestParams
2771
+ class Protections < ::Stripe::RequestParams
2772
+ class PspMigration < ::Stripe::RequestParams
2773
+ # To request a protection, pass true.
2774
+ attr_accessor :requested
2775
+
2776
+ def initialize(requested: nil)
2777
+ @requested = requested
2778
+ end
2779
+ end
2780
+ # Parameter to request psp_migration protection.
2781
+ attr_accessor :psp_migration
2782
+
2783
+ def initialize(psp_migration: nil)
2784
+ @psp_migration = psp_migration
2785
+ end
2786
+ end
2787
+ # Protection types to request for this capability (e.g. "psp_migration").
2788
+ attr_accessor :protections
1441
2789
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1442
2790
  attr_accessor :requested
1443
2791
 
1444
- def initialize(requested: nil)
2792
+ def initialize(protections: nil, requested: nil)
2793
+ @protections = protections
1445
2794
  @requested = requested
1446
2795
  end
1447
2796
  end
1448
2797
 
1449
2798
  class Usdc < ::Stripe::RequestParams
2799
+ class Protections < ::Stripe::RequestParams
2800
+ class PspMigration < ::Stripe::RequestParams
2801
+ # To request a protection, pass true.
2802
+ attr_accessor :requested
2803
+
2804
+ def initialize(requested: nil)
2805
+ @requested = requested
2806
+ end
2807
+ end
2808
+ # Parameter to request psp_migration protection.
2809
+ attr_accessor :psp_migration
2810
+
2811
+ def initialize(psp_migration: nil)
2812
+ @psp_migration = psp_migration
2813
+ end
2814
+ end
2815
+ # Protection types to request for this capability (e.g. "psp_migration").
2816
+ attr_accessor :protections
1450
2817
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1451
2818
  attr_accessor :requested
1452
2819
 
1453
- def initialize(requested: nil)
2820
+ def initialize(protections: nil, requested: nil)
2821
+ @protections = protections
1454
2822
  @requested = requested
1455
2823
  end
1456
2824
  end
@@ -1473,10 +2841,29 @@ module Stripe
1473
2841
 
1474
2842
  class InboundTransfers < ::Stripe::RequestParams
1475
2843
  class BankAccounts < ::Stripe::RequestParams
2844
+ class Protections < ::Stripe::RequestParams
2845
+ class PspMigration < ::Stripe::RequestParams
2846
+ # To request a protection, pass true.
2847
+ attr_accessor :requested
2848
+
2849
+ def initialize(requested: nil)
2850
+ @requested = requested
2851
+ end
2852
+ end
2853
+ # Parameter to request psp_migration protection.
2854
+ attr_accessor :psp_migration
2855
+
2856
+ def initialize(psp_migration: nil)
2857
+ @psp_migration = psp_migration
2858
+ end
2859
+ end
2860
+ # Protection types to request for this capability (e.g. "psp_migration").
2861
+ attr_accessor :protections
1476
2862
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1477
2863
  attr_accessor :requested
1478
2864
 
1479
- def initialize(requested: nil)
2865
+ def initialize(protections: nil, requested: nil)
2866
+ @protections = protections
1480
2867
  @requested = requested
1481
2868
  end
1482
2869
  end
@@ -1490,46 +2877,141 @@ module Stripe
1490
2877
 
1491
2878
  class OutboundPayments < ::Stripe::RequestParams
1492
2879
  class BankAccounts < ::Stripe::RequestParams
2880
+ class Protections < ::Stripe::RequestParams
2881
+ class PspMigration < ::Stripe::RequestParams
2882
+ # To request a protection, pass true.
2883
+ attr_accessor :requested
2884
+
2885
+ def initialize(requested: nil)
2886
+ @requested = requested
2887
+ end
2888
+ end
2889
+ # Parameter to request psp_migration protection.
2890
+ attr_accessor :psp_migration
2891
+
2892
+ def initialize(psp_migration: nil)
2893
+ @psp_migration = psp_migration
2894
+ end
2895
+ end
2896
+ # Protection types to request for this capability (e.g. "psp_migration").
2897
+ attr_accessor :protections
1493
2898
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1494
2899
  attr_accessor :requested
1495
2900
 
1496
- def initialize(requested: nil)
2901
+ def initialize(protections: nil, requested: nil)
2902
+ @protections = protections
1497
2903
  @requested = requested
1498
2904
  end
1499
2905
  end
1500
2906
 
1501
2907
  class Cards < ::Stripe::RequestParams
2908
+ class Protections < ::Stripe::RequestParams
2909
+ class PspMigration < ::Stripe::RequestParams
2910
+ # To request a protection, pass true.
2911
+ attr_accessor :requested
2912
+
2913
+ def initialize(requested: nil)
2914
+ @requested = requested
2915
+ end
2916
+ end
2917
+ # Parameter to request psp_migration protection.
2918
+ attr_accessor :psp_migration
2919
+
2920
+ def initialize(psp_migration: nil)
2921
+ @psp_migration = psp_migration
2922
+ end
2923
+ end
2924
+ # Protection types to request for this capability (e.g. "psp_migration").
2925
+ attr_accessor :protections
1502
2926
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1503
2927
  attr_accessor :requested
1504
2928
 
1505
- def initialize(requested: nil)
2929
+ def initialize(protections: nil, requested: nil)
2930
+ @protections = protections
1506
2931
  @requested = requested
1507
2932
  end
1508
2933
  end
1509
2934
 
1510
2935
  class CryptoWallets < ::Stripe::RequestParams
2936
+ class Protections < ::Stripe::RequestParams
2937
+ class PspMigration < ::Stripe::RequestParams
2938
+ # To request a protection, pass true.
2939
+ attr_accessor :requested
2940
+
2941
+ def initialize(requested: nil)
2942
+ @requested = requested
2943
+ end
2944
+ end
2945
+ # Parameter to request psp_migration protection.
2946
+ attr_accessor :psp_migration
2947
+
2948
+ def initialize(psp_migration: nil)
2949
+ @psp_migration = psp_migration
2950
+ end
2951
+ end
2952
+ # Protection types to request for this capability (e.g. "psp_migration").
2953
+ attr_accessor :protections
1511
2954
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1512
2955
  attr_accessor :requested
1513
2956
 
1514
- def initialize(requested: nil)
2957
+ def initialize(protections: nil, requested: nil)
2958
+ @protections = protections
1515
2959
  @requested = requested
1516
2960
  end
1517
2961
  end
1518
2962
 
1519
2963
  class FinancialAccounts < ::Stripe::RequestParams
2964
+ class Protections < ::Stripe::RequestParams
2965
+ class PspMigration < ::Stripe::RequestParams
2966
+ # To request a protection, pass true.
2967
+ attr_accessor :requested
2968
+
2969
+ def initialize(requested: nil)
2970
+ @requested = requested
2971
+ end
2972
+ end
2973
+ # Parameter to request psp_migration protection.
2974
+ attr_accessor :psp_migration
2975
+
2976
+ def initialize(psp_migration: nil)
2977
+ @psp_migration = psp_migration
2978
+ end
2979
+ end
2980
+ # Protection types to request for this capability (e.g. "psp_migration").
2981
+ attr_accessor :protections
1520
2982
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1521
2983
  attr_accessor :requested
1522
2984
 
1523
- def initialize(requested: nil)
2985
+ def initialize(protections: nil, requested: nil)
2986
+ @protections = protections
1524
2987
  @requested = requested
1525
2988
  end
1526
2989
  end
1527
2990
 
1528
2991
  class PaperChecks < ::Stripe::RequestParams
2992
+ class Protections < ::Stripe::RequestParams
2993
+ class PspMigration < ::Stripe::RequestParams
2994
+ # To request a protection, pass true.
2995
+ attr_accessor :requested
2996
+
2997
+ def initialize(requested: nil)
2998
+ @requested = requested
2999
+ end
3000
+ end
3001
+ # Parameter to request psp_migration protection.
3002
+ attr_accessor :psp_migration
3003
+
3004
+ def initialize(psp_migration: nil)
3005
+ @psp_migration = psp_migration
3006
+ end
3007
+ end
3008
+ # Protection types to request for this capability (e.g. "psp_migration").
3009
+ attr_accessor :protections
1529
3010
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1530
3011
  attr_accessor :requested
1531
3012
 
1532
- def initialize(requested: nil)
3013
+ def initialize(protections: nil, requested: nil)
3014
+ @protections = protections
1533
3015
  @requested = requested
1534
3016
  end
1535
3017
  end
@@ -1561,28 +3043,85 @@ module Stripe
1561
3043
 
1562
3044
  class OutboundTransfers < ::Stripe::RequestParams
1563
3045
  class BankAccounts < ::Stripe::RequestParams
3046
+ class Protections < ::Stripe::RequestParams
3047
+ class PspMigration < ::Stripe::RequestParams
3048
+ # To request a protection, pass true.
3049
+ attr_accessor :requested
3050
+
3051
+ def initialize(requested: nil)
3052
+ @requested = requested
3053
+ end
3054
+ end
3055
+ # Parameter to request psp_migration protection.
3056
+ attr_accessor :psp_migration
3057
+
3058
+ def initialize(psp_migration: nil)
3059
+ @psp_migration = psp_migration
3060
+ end
3061
+ end
3062
+ # Protection types to request for this capability (e.g. "psp_migration").
3063
+ attr_accessor :protections
1564
3064
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1565
3065
  attr_accessor :requested
1566
3066
 
1567
- def initialize(requested: nil)
3067
+ def initialize(protections: nil, requested: nil)
3068
+ @protections = protections
1568
3069
  @requested = requested
1569
3070
  end
1570
3071
  end
1571
3072
 
1572
3073
  class CryptoWallets < ::Stripe::RequestParams
3074
+ class Protections < ::Stripe::RequestParams
3075
+ class PspMigration < ::Stripe::RequestParams
3076
+ # To request a protection, pass true.
3077
+ attr_accessor :requested
3078
+
3079
+ def initialize(requested: nil)
3080
+ @requested = requested
3081
+ end
3082
+ end
3083
+ # Parameter to request psp_migration protection.
3084
+ attr_accessor :psp_migration
3085
+
3086
+ def initialize(psp_migration: nil)
3087
+ @psp_migration = psp_migration
3088
+ end
3089
+ end
3090
+ # Protection types to request for this capability (e.g. "psp_migration").
3091
+ attr_accessor :protections
1573
3092
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1574
3093
  attr_accessor :requested
1575
3094
 
1576
- def initialize(requested: nil)
3095
+ def initialize(protections: nil, requested: nil)
3096
+ @protections = protections
1577
3097
  @requested = requested
1578
3098
  end
1579
3099
  end
1580
3100
 
1581
3101
  class FinancialAccounts < ::Stripe::RequestParams
3102
+ class Protections < ::Stripe::RequestParams
3103
+ class PspMigration < ::Stripe::RequestParams
3104
+ # To request a protection, pass true.
3105
+ attr_accessor :requested
3106
+
3107
+ def initialize(requested: nil)
3108
+ @requested = requested
3109
+ end
3110
+ end
3111
+ # Parameter to request psp_migration protection.
3112
+ attr_accessor :psp_migration
3113
+
3114
+ def initialize(psp_migration: nil)
3115
+ @psp_migration = psp_migration
3116
+ end
3117
+ end
3118
+ # Protection types to request for this capability (e.g. "psp_migration").
3119
+ attr_accessor :protections
1582
3120
  # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1583
3121
  attr_accessor :requested
1584
3122
 
1585
- def initialize(requested: nil)
3123
+ def initialize(protections: nil, requested: nil)
3124
+ @protections = protections
1586
3125
  @requested = requested
1587
3126
  end
1588
3127
  end