moov_ruby 26.4.7 → 26.4.8

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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/account_terminal_applications.rb +16 -16
  3. data/lib/moov/accounts.rb +52 -54
  4. data/lib/moov/adjustments.rb +8 -8
  5. data/lib/moov/apple_pay.rb +20 -20
  6. data/lib/moov/authentication.rb +8 -8
  7. data/lib/moov/avatars.rb +4 -4
  8. data/lib/moov/bank_accounts.rb +36 -36
  9. data/lib/moov/branding.rb +12 -12
  10. data/lib/moov/capabilities.rb +20 -20
  11. data/lib/moov/card_issuing.rb +25 -25
  12. data/lib/moov/cards.rb +20 -20
  13. data/lib/moov/disputes.rb +44 -44
  14. data/lib/moov/end_to_end_encryption.rb +8 -8
  15. data/lib/moov/enriched_address.rb +4 -4
  16. data/lib/moov/enriched_profile.rb +4 -4
  17. data/lib/moov/fee_plans.rb +40 -40
  18. data/lib/moov/files.rb +12 -12
  19. data/lib/moov/google_pay.rb +4 -4
  20. data/lib/moov/images.rb +28 -28
  21. data/lib/moov/industries.rb +4 -4
  22. data/lib/moov/institutions.rb +8 -8
  23. data/lib/moov/invoices.rb +28 -28
  24. data/lib/moov/issuing_transactions.rb +20 -20
  25. data/lib/moov/models/components/addcapabilities.rb +5 -1
  26. data/lib/moov/models/components/billingaddress.rb +52 -0
  27. data/lib/moov/models/components/billingaddress.rbi +23 -0
  28. data/lib/moov/models/components/capability.rb +7 -1
  29. data/lib/moov/models/components/capabilityid.rb +7 -1
  30. data/lib/moov/models/components/createaccount.rb +5 -1
  31. data/lib/moov/models/components/createpaymentlink.rb +4 -4
  32. data/lib/moov/models/components/fullissuedcard.rb +22 -10
  33. data/lib/moov/models/components/fullissuedcard.rbi +10 -4
  34. data/lib/moov/models/components/issuedcard.rb +22 -10
  35. data/lib/moov/models/components/issuedcard.rbi +10 -4
  36. data/lib/moov/models/components/onboardinginvite.rb +1 -1
  37. data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
  38. data/lib/moov/models/components/paymentlink.rb +3 -3
  39. data/lib/moov/models/components/requestcard.rb +17 -17
  40. data/lib/moov/models/components/requestcard.rbi +8 -8
  41. data/lib/moov/models/components/updateissuedcard.rb +13 -9
  42. data/lib/moov/models/components/updateissuedcard.rbi +6 -4
  43. data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +44 -0
  44. data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +19 -0
  45. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +7 -1
  46. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +7 -1
  47. data/lib/moov/models/components/webhookdatasweepcreated.rb +6 -2
  48. data/lib/moov/models/components/webhookdatasweepcreated.rbi +2 -0
  49. data/lib/moov/models/components/webhookdatasweepupdated.rb +6 -2
  50. data/lib/moov/models/components/webhookdatasweepupdated.rbi +2 -0
  51. data/lib/moov/models/components/webhookevent.rb +2 -2
  52. data/lib/moov/models/components/webhookeventtype.rb +1 -0
  53. data/lib/moov/models/components.rb +2 -4
  54. data/lib/moov/models/errors/requestcarderror.rb +14 -14
  55. data/lib/moov/models/errors/requestcarderror.rbi +8 -8
  56. data/lib/moov/models/errors/updateissuedcarderror.rb +12 -8
  57. data/lib/moov/models/errors/updateissuedcarderror.rbi +6 -4
  58. data/lib/moov/models/operations/disablecapability_request.rb +7 -1
  59. data/lib/moov/models/operations/getcapability_request.rb +7 -1
  60. data/lib/moov/models/operations/listcancellations_request.rb +36 -0
  61. data/lib/moov/models/operations/listcancellations_request.rbi +15 -0
  62. data/lib/moov/models/operations/listcancellations_response.rb +48 -0
  63. data/lib/moov/models/operations/listcancellations_response.rbi +21 -0
  64. data/lib/moov/models/operations.rb +2 -0
  65. data/lib/moov/onboarding.rb +16 -16
  66. data/lib/moov/payment_links.rb +24 -24
  67. data/lib/moov/payment_methods.rb +8 -8
  68. data/lib/moov/ping.rb +4 -4
  69. data/lib/moov/products.rb +20 -20
  70. data/lib/moov/receipts.rb +8 -8
  71. data/lib/moov/representatives.rb +20 -20
  72. data/lib/moov/resolution_links.rb +16 -16
  73. data/lib/moov/scheduling.rb +24 -24
  74. data/lib/moov/sdkconfiguration.rb +3 -3
  75. data/lib/moov/statements.rb +8 -8
  76. data/lib/moov/support.rb +20 -20
  77. data/lib/moov/sweeps.rb +24 -24
  78. data/lib/moov/terminal_applications.rb +20 -20
  79. data/lib/moov/transfer_config.rb +12 -12
  80. data/lib/moov/transfers.rb +171 -48
  81. data/lib/moov/underwriting.rb +12 -12
  82. data/lib/moov/utils/retries.rb +4 -1
  83. data/lib/moov/wallet_transactions.rb +8 -8
  84. data/lib/moov/wallets.rb +16 -16
  85. data/lib/moov/webhooks.rb +32 -32
  86. metadata +10 -10
  87. data/lib/moov/models/components/authorizeduser.rb +0 -36
  88. data/lib/moov/models/components/authorizeduser.rbi +0 -15
  89. data/lib/moov/models/components/createauthorizeduser.rb +0 -40
  90. data/lib/moov/models/components/createauthorizeduser.rbi +0 -17
  91. data/lib/moov/models/components/createauthorizedusererror.rb +0 -40
  92. data/lib/moov/models/components/createauthorizedusererror.rbi +0 -17
  93. data/lib/moov/models/components/createauthorizeduserupdate.rb +0 -40
  94. data/lib/moov/models/components/createauthorizeduserupdate.rbi +0 -17
@@ -59,7 +59,7 @@ module Moov
59
59
 
60
60
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
61
61
  timeout ||= @sdk_configuration.timeout
62
-
62
+
63
63
 
64
64
  connection = @sdk_configuration.client
65
65
 
@@ -74,7 +74,7 @@ module Moov
74
74
  error = T.let(nil, T.nilable(StandardError))
75
75
  http_response = T.let(nil, T.nilable(Faraday::Response))
76
76
 
77
-
77
+
78
78
  begin
79
79
  http_response = T.must(connection).get(url) do |req|
80
80
  req.headers.merge!(headers)
@@ -110,13 +110,13 @@ module Moov
110
110
  response: http_response
111
111
  )
112
112
  end
113
-
113
+
114
114
  if http_response.nil?
115
115
  raise error if !error.nil?
116
116
  raise 'no response'
117
117
  end
118
118
  end
119
-
119
+
120
120
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
121
121
  if Utils.match_status_code(http_response.status, ['200'])
122
122
  if Utils.match_content_type(content_type, 'application/json')
@@ -69,7 +69,7 @@ module Moov
69
69
 
70
70
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
71
71
  timeout ||= @sdk_configuration.timeout
72
-
72
+
73
73
 
74
74
  connection = @sdk_configuration.client
75
75
 
@@ -84,7 +84,7 @@ module Moov
84
84
  error = T.let(nil, T.nilable(StandardError))
85
85
  http_response = T.let(nil, T.nilable(Faraday::Response))
86
86
 
87
-
87
+
88
88
  begin
89
89
  http_response = T.must(connection).get(url) do |req|
90
90
  req.headers.merge!(headers)
@@ -121,13 +121,13 @@ module Moov
121
121
  response: http_response
122
122
  )
123
123
  end
124
-
124
+
125
125
  if http_response.nil?
126
126
  raise error if !error.nil?
127
127
  raise 'no response'
128
128
  end
129
129
  end
130
-
130
+
131
131
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
132
132
  if Utils.match_status_code(http_response.status, ['200'])
133
133
  if Utils.match_content_type(content_type, 'application/json')
@@ -195,7 +195,7 @@ module Moov
195
195
 
196
196
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
197
197
  timeout ||= @sdk_configuration.timeout
198
-
198
+
199
199
 
200
200
  connection = @sdk_configuration.client
201
201
 
@@ -210,7 +210,7 @@ module Moov
210
210
  error = T.let(nil, T.nilable(StandardError))
211
211
  http_response = T.let(nil, T.nilable(Faraday::Response))
212
212
 
213
-
213
+
214
214
  begin
215
215
  http_response = T.must(connection).get(url) do |req|
216
216
  req.headers.merge!(headers)
@@ -247,13 +247,13 @@ module Moov
247
247
  response: http_response
248
248
  )
249
249
  end
250
-
250
+
251
251
  if http_response.nil?
252
252
  raise error if !error.nil?
253
253
  raise 'no response'
254
254
  end
255
255
  end
256
-
256
+
257
257
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
258
258
  if Utils.match_status_code(http_response.status, ['200'])
259
259
  if Utils.match_content_type(content_type, 'application/json')
data/lib/moov/invoices.rb CHANGED
@@ -79,7 +79,7 @@ module Moov
79
79
 
80
80
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
81
81
  timeout ||= @sdk_configuration.timeout
82
-
82
+
83
83
 
84
84
  connection = @sdk_configuration.client
85
85
 
@@ -94,7 +94,7 @@ module Moov
94
94
  error = T.let(nil, T.nilable(StandardError))
95
95
  http_response = T.let(nil, T.nilable(Faraday::Response))
96
96
 
97
-
97
+
98
98
  begin
99
99
  http_response = T.must(connection).post(url) do |req|
100
100
  req.body = body
@@ -131,13 +131,13 @@ module Moov
131
131
  response: http_response
132
132
  )
133
133
  end
134
-
134
+
135
135
  if http_response.nil?
136
136
  raise error if !error.nil?
137
137
  raise 'no response'
138
138
  end
139
139
  end
140
-
140
+
141
141
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
142
142
  if Utils.match_status_code(http_response.status, ['201'])
143
143
  if Utils.match_content_type(content_type, 'application/json')
@@ -230,7 +230,7 @@ module Moov
230
230
 
231
231
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
232
232
  timeout ||= @sdk_configuration.timeout
233
-
233
+
234
234
 
235
235
  connection = @sdk_configuration.client
236
236
 
@@ -245,7 +245,7 @@ module Moov
245
245
  error = T.let(nil, T.nilable(StandardError))
246
246
  http_response = T.let(nil, T.nilable(Faraday::Response))
247
247
 
248
-
248
+
249
249
  begin
250
250
  http_response = T.must(connection).get(url) do |req|
251
251
  req.headers.merge!(headers)
@@ -282,13 +282,13 @@ module Moov
282
282
  response: http_response
283
283
  )
284
284
  end
285
-
285
+
286
286
  if http_response.nil?
287
287
  raise error if !error.nil?
288
288
  raise 'no response'
289
289
  end
290
290
  end
291
-
291
+
292
292
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
293
293
  if Utils.match_status_code(http_response.status, ['200'])
294
294
  if Utils.match_content_type(content_type, 'application/json')
@@ -369,7 +369,7 @@ module Moov
369
369
 
370
370
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
371
371
  timeout ||= @sdk_configuration.timeout
372
-
372
+
373
373
 
374
374
  connection = @sdk_configuration.client
375
375
 
@@ -384,7 +384,7 @@ module Moov
384
384
  error = T.let(nil, T.nilable(StandardError))
385
385
  http_response = T.let(nil, T.nilable(Faraday::Response))
386
386
 
387
-
387
+
388
388
  begin
389
389
  http_response = T.must(connection).get(url) do |req|
390
390
  req.headers.merge!(headers)
@@ -420,13 +420,13 @@ module Moov
420
420
  response: http_response
421
421
  )
422
422
  end
423
-
423
+
424
424
  if http_response.nil?
425
425
  raise error if !error.nil?
426
426
  raise 'no response'
427
427
  end
428
428
  end
429
-
429
+
430
430
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
431
431
  if Utils.match_status_code(http_response.status, ['200'])
432
432
  if Utils.match_content_type(content_type, 'application/json')
@@ -504,7 +504,7 @@ module Moov
504
504
 
505
505
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
506
506
  timeout ||= @sdk_configuration.timeout
507
-
507
+
508
508
 
509
509
  connection = @sdk_configuration.client
510
510
 
@@ -519,7 +519,7 @@ module Moov
519
519
  error = T.let(nil, T.nilable(StandardError))
520
520
  http_response = T.let(nil, T.nilable(Faraday::Response))
521
521
 
522
-
522
+
523
523
  begin
524
524
  http_response = T.must(connection).patch(url) do |req|
525
525
  req.body = body
@@ -556,13 +556,13 @@ module Moov
556
556
  response: http_response
557
557
  )
558
558
  end
559
-
559
+
560
560
  if http_response.nil?
561
561
  raise error if !error.nil?
562
562
  raise 'no response'
563
563
  end
564
564
  end
565
-
565
+
566
566
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
567
567
  if Utils.match_status_code(http_response.status, ['200'])
568
568
  if Utils.match_content_type(content_type, 'application/json')
@@ -664,7 +664,7 @@ module Moov
664
664
 
665
665
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
666
666
  timeout ||= @sdk_configuration.timeout
667
-
667
+
668
668
 
669
669
  connection = @sdk_configuration.client
670
670
 
@@ -679,7 +679,7 @@ module Moov
679
679
  error = T.let(nil, T.nilable(StandardError))
680
680
  http_response = T.let(nil, T.nilable(Faraday::Response))
681
681
 
682
-
682
+
683
683
  begin
684
684
  http_response = T.must(connection).delete(url) do |req|
685
685
  req.headers.merge!(headers)
@@ -715,13 +715,13 @@ module Moov
715
715
  response: http_response
716
716
  )
717
717
  end
718
-
718
+
719
719
  if http_response.nil?
720
720
  raise error if !error.nil?
721
721
  raise 'no response'
722
722
  end
723
723
  end
724
-
724
+
725
725
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
726
726
  if Utils.match_status_code(http_response.status, ['204'])
727
727
  http_response = @sdk_configuration.hooks.after_success(
@@ -806,7 +806,7 @@ module Moov
806
806
 
807
807
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
808
808
  timeout ||= @sdk_configuration.timeout
809
-
809
+
810
810
 
811
811
  connection = @sdk_configuration.client
812
812
 
@@ -821,7 +821,7 @@ module Moov
821
821
  error = T.let(nil, T.nilable(StandardError))
822
822
  http_response = T.let(nil, T.nilable(Faraday::Response))
823
823
 
824
-
824
+
825
825
  begin
826
826
  http_response = T.must(connection).post(url) do |req|
827
827
  req.body = body
@@ -858,13 +858,13 @@ module Moov
858
858
  response: http_response
859
859
  )
860
860
  end
861
-
861
+
862
862
  if http_response.nil?
863
863
  raise error if !error.nil?
864
864
  raise 'no response'
865
865
  end
866
866
  end
867
-
867
+
868
868
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
869
869
  if Utils.match_status_code(http_response.status, ['200'])
870
870
  if Utils.match_content_type(content_type, 'application/json')
@@ -960,7 +960,7 @@ module Moov
960
960
 
961
961
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
962
962
  timeout ||= @sdk_configuration.timeout
963
-
963
+
964
964
 
965
965
  connection = @sdk_configuration.client
966
966
 
@@ -975,7 +975,7 @@ module Moov
975
975
  error = T.let(nil, T.nilable(StandardError))
976
976
  http_response = T.let(nil, T.nilable(Faraday::Response))
977
977
 
978
-
978
+
979
979
  begin
980
980
  http_response = T.must(connection).get(url) do |req|
981
981
  req.headers.merge!(headers)
@@ -1011,13 +1011,13 @@ module Moov
1011
1011
  response: http_response
1012
1012
  )
1013
1013
  end
1014
-
1014
+
1015
1015
  if http_response.nil?
1016
1016
  raise error if !error.nil?
1017
1017
  raise 'no response'
1018
1018
  end
1019
1019
  end
1020
-
1020
+
1021
1021
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1022
1022
  if Utils.match_status_code(http_response.status, ['200'])
1023
1023
  if Utils.match_content_type(content_type, 'application/json')
@@ -65,7 +65,7 @@ module Moov
65
65
 
66
66
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
67
67
  timeout ||= @sdk_configuration.timeout
68
-
68
+
69
69
 
70
70
  connection = @sdk_configuration.client
71
71
 
@@ -80,7 +80,7 @@ module Moov
80
80
  error = T.let(nil, T.nilable(StandardError))
81
81
  http_response = T.let(nil, T.nilable(Faraday::Response))
82
82
 
83
-
83
+
84
84
  begin
85
85
  http_response = T.must(connection).get(url) do |req|
86
86
  req.headers.merge!(headers)
@@ -117,13 +117,13 @@ module Moov
117
117
  response: http_response
118
118
  )
119
119
  end
120
-
120
+
121
121
  if http_response.nil?
122
122
  raise error if !error.nil?
123
123
  raise 'no response'
124
124
  end
125
125
  end
126
-
126
+
127
127
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
128
128
  if Utils.match_status_code(http_response.status, ['200'])
129
129
  if Utils.match_content_type(content_type, 'application/json')
@@ -189,7 +189,7 @@ module Moov
189
189
 
190
190
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
191
191
  timeout ||= @sdk_configuration.timeout
192
-
192
+
193
193
 
194
194
  connection = @sdk_configuration.client
195
195
 
@@ -204,7 +204,7 @@ module Moov
204
204
  error = T.let(nil, T.nilable(StandardError))
205
205
  http_response = T.let(nil, T.nilable(Faraday::Response))
206
206
 
207
-
207
+
208
208
  begin
209
209
  http_response = T.must(connection).get(url) do |req|
210
210
  req.headers.merge!(headers)
@@ -240,13 +240,13 @@ module Moov
240
240
  response: http_response
241
241
  )
242
242
  end
243
-
243
+
244
244
  if http_response.nil?
245
245
  raise error if !error.nil?
246
246
  raise 'no response'
247
247
  end
248
248
  end
249
-
249
+
250
250
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
251
251
  if Utils.match_status_code(http_response.status, ['200'])
252
252
  if Utils.match_content_type(content_type, 'application/json')
@@ -315,7 +315,7 @@ module Moov
315
315
 
316
316
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
317
317
  timeout ||= @sdk_configuration.timeout
318
-
318
+
319
319
 
320
320
  connection = @sdk_configuration.client
321
321
 
@@ -330,7 +330,7 @@ module Moov
330
330
  error = T.let(nil, T.nilable(StandardError))
331
331
  http_response = T.let(nil, T.nilable(Faraday::Response))
332
332
 
333
-
333
+
334
334
  begin
335
335
  http_response = T.must(connection).get(url) do |req|
336
336
  req.headers.merge!(headers)
@@ -367,13 +367,13 @@ module Moov
367
367
  response: http_response
368
368
  )
369
369
  end
370
-
370
+
371
371
  if http_response.nil?
372
372
  raise error if !error.nil?
373
373
  raise 'no response'
374
374
  end
375
375
  end
376
-
376
+
377
377
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
378
378
  if Utils.match_status_code(http_response.status, ['200'])
379
379
  if Utils.match_content_type(content_type, 'application/json')
@@ -436,7 +436,7 @@ module Moov
436
436
 
437
437
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
438
438
  timeout ||= @sdk_configuration.timeout
439
-
439
+
440
440
 
441
441
  connection = @sdk_configuration.client
442
442
 
@@ -451,7 +451,7 @@ module Moov
451
451
  error = T.let(nil, T.nilable(StandardError))
452
452
  http_response = T.let(nil, T.nilable(Faraday::Response))
453
453
 
454
-
454
+
455
455
  begin
456
456
  http_response = T.must(connection).get(url) do |req|
457
457
  req.headers.merge!(headers)
@@ -488,13 +488,13 @@ module Moov
488
488
  response: http_response
489
489
  )
490
490
  end
491
-
491
+
492
492
  if http_response.nil?
493
493
  raise error if !error.nil?
494
494
  raise 'no response'
495
495
  end
496
496
  end
497
-
497
+
498
498
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
499
499
  if Utils.match_status_code(http_response.status, ['200'])
500
500
  if Utils.match_content_type(content_type, 'application/json')
@@ -560,7 +560,7 @@ module Moov
560
560
 
561
561
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
562
562
  timeout ||= @sdk_configuration.timeout
563
-
563
+
564
564
 
565
565
  connection = @sdk_configuration.client
566
566
 
@@ -575,7 +575,7 @@ module Moov
575
575
  error = T.let(nil, T.nilable(StandardError))
576
576
  http_response = T.let(nil, T.nilable(Faraday::Response))
577
577
 
578
-
578
+
579
579
  begin
580
580
  http_response = T.must(connection).get(url) do |req|
581
581
  req.headers.merge!(headers)
@@ -611,13 +611,13 @@ module Moov
611
611
  response: http_response
612
612
  )
613
613
  end
614
-
614
+
615
615
  if http_response.nil?
616
616
  raise error if !error.nil?
617
617
  raise 'no response'
618
618
  end
619
619
  end
620
-
620
+
621
621
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
622
622
  if Utils.match_status_code(http_response.status, ['200'])
623
623
  if Utils.match_content_type(content_type, 'application/json')
@@ -12,7 +12,11 @@ module Moov
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
-
15
+ # Capabilities to request for the account. Request granular capability IDs that match your use case.
16
+ #
17
+ # Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
18
+ #
19
+ # The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
16
20
  field :capabilities, Crystalline::Array.new(Models::Components::CapabilityID), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capabilities'), required: true } }
17
21
 
18
22
  sig { params(capabilities: T::Array[Models::Components::CapabilityID]).void }
@@ -0,0 +1,52 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Components
10
+
11
+ class BillingAddress
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+ field :address_line1, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('addressLine1') } }
17
+
18
+ field :address_line2, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('addressLine2') } }
19
+
20
+ field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('city') } }
21
+
22
+ field :state_or_province, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('stateOrProvince') } }
23
+
24
+ field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('postalCode') } }
25
+
26
+ field :country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('country') } }
27
+
28
+ sig { params(address_line1: T.nilable(::String), address_line2: T.nilable(::String), city: T.nilable(::String), state_or_province: T.nilable(::String), postal_code: T.nilable(::String), country: T.nilable(::String)).void }
29
+ def initialize(address_line1: nil, address_line2: nil, city: nil, state_or_province: nil, postal_code: nil, country: nil)
30
+ @address_line1 = address_line1
31
+ @address_line2 = address_line2
32
+ @city = city
33
+ @state_or_province = state_or_province
34
+ @postal_code = postal_code
35
+ @country = country
36
+ end
37
+
38
+ sig { params(other: T.untyped).returns(T::Boolean) }
39
+ def ==(other)
40
+ return false unless other.is_a? self.class
41
+ return false unless @address_line1 == other.address_line1
42
+ return false unless @address_line2 == other.address_line2
43
+ return false unless @city == other.city
44
+ return false unless @state_or_province == other.state_or_province
45
+ return false unless @postal_code == other.postal_code
46
+ return false unless @country == other.country
47
+ true
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,23 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Components::BillingAddress
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Components::BillingAddress
11
+ def address_line1(); end
12
+ def address_line1=(str_); end
13
+ def address_line2(); end
14
+ def address_line2=(str_); end
15
+ def city(); end
16
+ def city=(str_); end
17
+ def state_or_province(); end
18
+ def state_or_province=(str_); end
19
+ def postal_code(); end
20
+ def postal_code=(str_); end
21
+ def country(); end
22
+ def country=(str_); end
23
+ end
@@ -14,7 +14,13 @@ module Moov
14
14
 
15
15
  # Moov account capabilities.
16
16
  #
17
- # The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
17
+ # **Deprecated capabilities**
18
+ #
19
+ # The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
20
+ #
21
+ # Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
22
+ #
23
+ # The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
18
24
  field :capability, Models::Components::CapabilityID, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capability'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::CapabilityID, false) } }
19
25
 
20
26
  field :account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('accountID'), required: true } }
@@ -9,7 +9,13 @@ module Moov
9
9
  module Components
10
10
  # CapabilityID - Moov account capabilities.
11
11
  #
12
- # The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
12
+ # **Deprecated capabilities**
13
+ #
14
+ # The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
15
+ #
16
+ # Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
17
+ #
18
+ # The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
13
19
  class CapabilityID < T::Enum
14
20
  enums do
15
21
  TRANSFERS = new('transfers')
@@ -27,7 +27,11 @@ module Moov
27
27
  field :customer_support, Crystalline::Nilable.new(Models::Components::CustomerSupport), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('customerSupport') } }
28
28
  # User provided settings to manage an account.
29
29
  field :settings, Crystalline::Nilable.new(Models::Components::Settings), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('settings') } }
30
-
30
+ # Capabilities to request when the account is created. Request granular capability IDs that match your use case.
31
+ #
32
+ # Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
33
+ #
34
+ # The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
31
35
  field :capabilities, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CapabilityID)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('capabilities') } }
32
36
  # The operating mode for an account.
33
37
  field :mode, Crystalline::Nilable.new(Models::Components::Mode), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('mode'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::Mode, true) } }
@@ -9,7 +9,7 @@ module Moov
9
9
  module Components
10
10
  # Request to create a new payment link.
11
11
  #
12
- # A payment link must include either `payment` or `payout` details, but not both. For payout payment links,
12
+ # A payment link must include exactly one of `payment`, `payout`, or `customAmountPayment` details. For payout payment links,
13
13
  # `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
14
14
  # to a specific recipient.
15
15
  #
@@ -21,12 +21,12 @@ module Moov
21
21
  field :partner_account_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('partnerAccountID'), required: true } }
22
22
  # The merchant's preferred payment method ID. Must be a wallet payment method.
23
23
  field :merchant_payment_method_id, ::String, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('merchantPaymentMethodID'), required: true } }
24
- # The fixed amount of the payment link.
24
+ # The fixed amount of the payment link.
25
25
  #
26
26
  # In API versions before `2026.07.00`, this was a required field.
27
27
  #
28
- # In API version `2026.07.00` and beyond, this field is required for `fixed` payment amount types and omitted
29
- # for `open` payment amount types.
28
+ # In API version `2026.07.00` and beyond, this field is required for `payment` and `payout` links and must be
29
+ # omitted for `customAmountPayment` links, where the payor chooses the amount.
30
30
  field :amount, Models::Components::Amount, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
31
31
  # Customizable display options for a payment link.
32
32
  field :display, Models::Components::PaymentLinkDisplayOptions, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('display'), required: true } }