moov_ruby 26.4.0.pre.dev.9 → 26.4.0.pre.dev.10

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/types.rb +11 -3
  3. data/lib/moov/account_terminal_applications.rb +23 -9
  4. data/lib/moov/accounts.rb +58 -23
  5. data/lib/moov/adjustments.rb +13 -5
  6. data/lib/moov/apple_pay.rb +28 -11
  7. data/lib/moov/authentication.rb +13 -5
  8. data/lib/moov/avatars.rb +8 -3
  9. data/lib/moov/bank_accounts.rb +48 -19
  10. data/lib/moov/branding.rb +18 -7
  11. data/lib/moov/capabilities.rb +23 -9
  12. data/lib/moov/card_issuing.rb +28 -11
  13. data/lib/moov/cards.rb +28 -11
  14. data/lib/moov/client.rb +2 -1
  15. data/lib/moov/disputes.rb +58 -23
  16. data/lib/moov/end_to_end_encryption.rb +13 -5
  17. data/lib/moov/enriched_address.rb +8 -3
  18. data/lib/moov/enriched_profile.rb +8 -3
  19. data/lib/moov/fee_plans.rb +53 -21
  20. data/lib/moov/files.rb +18 -7
  21. data/lib/moov/images.rb +39 -19
  22. data/lib/moov/industries.rb +8 -3
  23. data/lib/moov/institutions.rb +13 -5
  24. data/lib/moov/invoices.rb +170 -13
  25. data/lib/moov/issuing_transactions.rb +28 -11
  26. data/lib/moov/models/components/createinvoicelineitem.rb +2 -1
  27. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -1
  28. data/lib/moov/models/components/feecategory.rb +1 -0
  29. data/lib/moov/models/components/{rtpfailurecode.rb → instantbankfailurecode.rb} +3 -2
  30. data/lib/moov/models/components/instantbankfailurecode.rbi +11 -0
  31. data/lib/moov/models/components/instantbanknetwork.rb +19 -0
  32. data/lib/moov/models/components/{rtpfailurecode.rbi → instantbanknetwork.rbi} +2 -2
  33. data/lib/moov/models/components/{rtptransactiondetails.rb → instantbanktransactiondetails.rb} +16 -8
  34. data/lib/moov/models/components/{rtptransactiondetails.rbi → instantbanktransactiondetails.rbi} +6 -2
  35. data/lib/moov/models/components/{rtptransactionstatus.rb → instantbanktransactionstatus.rb} +2 -2
  36. data/lib/moov/models/components/instantbanktransactionstatus.rbi +11 -0
  37. data/lib/moov/models/components/invoice.rb +14 -2
  38. data/lib/moov/models/components/invoice.rbi +6 -0
  39. data/lib/moov/models/components/invoicelineitem.rb +2 -1
  40. data/lib/moov/models/components/transferdestination.rb +6 -6
  41. data/lib/moov/models/components/transferdestination.rbi +2 -2
  42. data/lib/moov/models/components/updateinvoice.rb +4 -1
  43. data/lib/moov/models/components.rb +4 -3
  44. data/lib/moov/models/operations/deleteinvoice_request.rb +49 -0
  45. data/lib/moov/models/operations/deleteinvoice_request.rbi +17 -0
  46. data/lib/moov/models/operations/deleteinvoice_response.rb +44 -0
  47. data/lib/moov/models/operations/deleteinvoice_response.rbi +19 -0
  48. data/lib/moov/models/operations.rb +2 -0
  49. data/lib/moov/onboarding.rb +23 -9
  50. data/lib/moov/payment_links.rb +33 -13
  51. data/lib/moov/payment_methods.rb +13 -5
  52. data/lib/moov/ping.rb +8 -3
  53. data/lib/moov/products.rb +28 -11
  54. data/lib/moov/receipts.rb +13 -5
  55. data/lib/moov/representatives.rb +28 -11
  56. data/lib/moov/scheduling.rb +33 -13
  57. data/lib/moov/sdkconfiguration.rb +3 -3
  58. data/lib/moov/statements.rb +13 -5
  59. data/lib/moov/support.rb +28 -11
  60. data/lib/moov/sweeps.rb +33 -13
  61. data/lib/moov/terminal_applications.rb +28 -11
  62. data/lib/moov/transfers.rb +58 -23
  63. data/lib/moov/underwriting.rb +18 -7
  64. data/lib/moov/wallet_transactions.rb +13 -5
  65. data/lib/moov/wallets.rb +23 -9
  66. data/lib/moov/webhooks.rb +43 -17
  67. metadata +28 -8
  68. data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(link_bank_account: T.any(Models::Components::BankAccountPayload, Models::Components::PlaidPayload, Models::Components::PlaidLinkPayload, Models::Components::MxPayload), account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LinkBankAccountResponse) }
43
- def link(link_bank_account:, account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(link_bank_account: T.any(Models::Components::BankAccountPayload, Models::Components::PlaidPayload, Models::Components::PlaidLinkPayload, Models::Components::MxPayload), account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::LinkBankAccountResponse) }
45
+ def link(link_bank_account:, account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil, http_headers: nil)
44
46
  # link - Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
45
47
  #
46
48
  # It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
@@ -107,6 +109,9 @@ module Moov
107
109
  req.headers.merge!(headers)
108
110
  req.options.timeout = timeout unless timeout.nil?
109
111
  Utils.configure_request_security(req, security)
112
+ http_headers&.each do |key, value|
113
+ req.headers[key.to_s] = value
114
+ end
110
115
 
111
116
  @sdk_configuration.hooks.before_request(
112
117
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -209,8 +214,8 @@ module Moov
209
214
  end
210
215
 
211
216
 
212
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListBankAccountsResponse) }
213
- def list(account_id:, x_moov_version: nil, timeout_ms: nil)
217
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListBankAccountsResponse) }
218
+ def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
214
219
  # list - List all the bank accounts associated with a particular Moov account.
215
220
  #
216
221
  # Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
@@ -260,6 +265,9 @@ module Moov
260
265
  req.headers.merge!(headers)
261
266
  req.options.timeout = timeout unless timeout.nil?
262
267
  Utils.configure_request_security(req, security)
268
+ http_headers&.each do |key, value|
269
+ req.headers[key.to_s] = value
270
+ end
263
271
 
264
272
  @sdk_configuration.hooks.before_request(
265
273
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -332,8 +340,8 @@ module Moov
332
340
  end
333
341
 
334
342
 
335
- sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetBankAccountResponse) }
336
- def get(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
343
+ sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBankAccountResponse) }
344
+ def get(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
337
345
  # get - Retrieve bank account details (i.e. routing number or account type) associated with a specific Moov account.
338
346
  #
339
347
  # Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
@@ -384,6 +392,9 @@ module Moov
384
392
  req.headers.merge!(headers)
385
393
  req.options.timeout = timeout unless timeout.nil?
386
394
  Utils.configure_request_security(req, security)
395
+ http_headers&.each do |key, value|
396
+ req.headers[key.to_s] = value
397
+ end
387
398
 
388
399
  @sdk_configuration.hooks.before_request(
389
400
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -456,8 +467,8 @@ module Moov
456
467
  end
457
468
 
458
469
 
459
- sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisableBankAccountResponse) }
460
- def disable(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
470
+ sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableBankAccountResponse) }
471
+ def disable(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
461
472
  # disable - Discontinue using a specified bank account linked to a Moov account.
462
473
  #
463
474
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -506,6 +517,9 @@ module Moov
506
517
  req.headers.merge!(headers)
507
518
  req.options.timeout = timeout unless timeout.nil?
508
519
  Utils.configure_request_security(req, security)
520
+ http_headers&.each do |key, value|
521
+ req.headers[key.to_s] = value
522
+ end
509
523
 
510
524
  @sdk_configuration.hooks.before_request(
511
525
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -584,8 +598,8 @@ module Moov
584
598
  end
585
599
 
586
600
 
587
- sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::InitiateMicroDepositsResponse) }
588
- def initiate_micro_deposits(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
601
+ sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateMicroDepositsResponse) }
602
+ def initiate_micro_deposits(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
589
603
  # initiate_micro_deposits - Micro-deposits help confirm bank account ownership, helping reduce fraud and the risk of unauthorized activity.
590
604
  # Use this method to initiate the micro-deposit verification, sending two small credit transfers to the bank account
591
605
  # you want to confirm.
@@ -645,6 +659,9 @@ module Moov
645
659
  req.headers.merge!(headers)
646
660
  req.options.timeout = timeout unless timeout.nil?
647
661
  Utils.configure_request_security(req, security)
662
+ http_headers&.each do |key, value|
663
+ req.headers[key.to_s] = value
664
+ end
648
665
 
649
666
  @sdk_configuration.hooks.before_request(
650
667
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -723,8 +740,8 @@ module Moov
723
740
  end
724
741
 
725
742
 
726
- sig { params(complete_micro_deposits: Models::Components::CompleteMicroDeposits, account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CompleteMicroDepositsResponse) }
727
- def complete_micro_deposits(complete_micro_deposits:, account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
743
+ sig { params(complete_micro_deposits: Models::Components::CompleteMicroDeposits, account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CompleteMicroDepositsResponse) }
744
+ def complete_micro_deposits(complete_micro_deposits:, account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
728
745
  # complete_micro_deposits - Complete the micro-deposit validation process by passing the amounts of the two transfers within three tries.
729
746
  #
730
747
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -786,6 +803,9 @@ module Moov
786
803
  req.headers.merge!(headers)
787
804
  req.options.timeout = timeout unless timeout.nil?
788
805
  Utils.configure_request_security(req, security)
806
+ http_headers&.each do |key, value|
807
+ req.headers[key.to_s] = value
808
+ end
789
809
 
790
810
  @sdk_configuration.hooks.before_request(
791
811
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -888,8 +908,8 @@ module Moov
888
908
  end
889
909
 
890
910
 
891
- sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetBankAccountVerificationResponse) }
892
- def get_verification(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
911
+ sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBankAccountVerificationResponse) }
912
+ def get_verification(account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
893
913
  # get_verification - Retrieve the current status and details of an instant verification, including whether the verification method was instant (RTP or FedNow) or same-day
894
914
  # ACH. This helps track the verification process in real-time and provides details in case of exceptions.
895
915
  #
@@ -947,6 +967,9 @@ module Moov
947
967
  req.headers.merge!(headers)
948
968
  req.options.timeout = timeout unless timeout.nil?
949
969
  Utils.configure_request_security(req, security)
970
+ http_headers&.each do |key, value|
971
+ req.headers[key.to_s] = value
972
+ end
950
973
 
951
974
  @sdk_configuration.hooks.before_request(
952
975
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -1019,8 +1042,8 @@ module Moov
1019
1042
  end
1020
1043
 
1021
1044
 
1022
- sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer)).returns(Models::Operations::InitiateBankAccountVerificationResponse) }
1023
- def initiate_verification(account_id:, bank_account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil)
1045
+ sig { params(account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateBankAccountVerificationResponse) }
1046
+ def initiate_verification(account_id:, bank_account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil, http_headers: nil)
1024
1047
  # initiate_verification - Instant micro-deposit verification offers a quick and efficient way to verify bank account ownership.
1025
1048
  #
1026
1049
  # Send a $0.01 credit with a unique verification code via RTP, FedNow, or same-day ACH, depending on the receiving bank's capabilities. This
@@ -1085,6 +1108,9 @@ module Moov
1085
1108
  req.headers.merge!(headers)
1086
1109
  req.options.timeout = timeout unless timeout.nil?
1087
1110
  Utils.configure_request_security(req, security)
1111
+ http_headers&.each do |key, value|
1112
+ req.headers[key.to_s] = value
1113
+ end
1088
1114
 
1089
1115
  @sdk_configuration.hooks.before_request(
1090
1116
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -1172,8 +1198,8 @@ module Moov
1172
1198
  end
1173
1199
 
1174
1200
 
1175
- sig { params(complete_bank_account_verification: Models::Components::CompleteBankAccountVerification, account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CompleteBankAccountVerificationResponse) }
1176
- def complete_verification(complete_bank_account_verification:, account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil)
1201
+ sig { params(complete_bank_account_verification: Models::Components::CompleteBankAccountVerification, account_id: ::String, bank_account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CompleteBankAccountVerificationResponse) }
1202
+ def complete_verification(complete_bank_account_verification:, account_id:, bank_account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
1177
1203
  # complete_verification - Finalize the instant micro-deposit verification by submitting the verification code displayed in the user's bank account.
1178
1204
  #
1179
1205
  # Upon successful verification, the bank account status will be updated to `verified` and eligible for ACH debit transactions.
@@ -1242,6 +1268,9 @@ module Moov
1242
1268
  req.headers.merge!(headers)
1243
1269
  req.options.timeout = timeout unless timeout.nil?
1244
1270
  Utils.configure_request_security(req, security)
1271
+ http_headers&.each do |key, value|
1272
+ req.headers[key.to_s] = value
1273
+ end
1245
1274
 
1246
1275
  @sdk_configuration.hooks.before_request(
1247
1276
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -1327,5 +1356,5 @@ module Moov
1327
1356
 
1328
1357
  end
1329
1358
  end
1330
- end
1359
+ end
1331
1360
  end
data/lib/moov/branding.rb CHANGED
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateBrandResponse) }
43
- def create(brand_properties:, account_id:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateBrandResponse) }
45
+ def create(brand_properties:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # create - Create brand properties for the specified account.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -101,6 +103,9 @@ module Moov
101
103
  req.headers.merge!(headers)
102
104
  req.options.timeout = timeout unless timeout.nil?
103
105
  Utils.configure_request_security(req, security)
106
+ http_headers&.each do |key, value|
107
+ req.headers[key.to_s] = value
108
+ end
104
109
 
105
110
  @sdk_configuration.hooks.before_request(
106
111
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -203,8 +208,8 @@ module Moov
203
208
  end
204
209
 
205
210
 
206
- sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpsertBrandResponse) }
207
- def upsert(brand_properties:, account_id:, x_moov_version: nil, timeout_ms: nil)
211
+ sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpsertBrandResponse) }
212
+ def upsert(brand_properties:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
208
213
  # upsert - Create or replace brand properties for the specified account.
209
214
  #
210
215
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -265,6 +270,9 @@ module Moov
265
270
  req.headers.merge!(headers)
266
271
  req.options.timeout = timeout unless timeout.nil?
267
272
  Utils.configure_request_security(req, security)
273
+ http_headers&.each do |key, value|
274
+ req.headers[key.to_s] = value
275
+ end
268
276
 
269
277
  @sdk_configuration.hooks.before_request(
270
278
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -367,8 +375,8 @@ module Moov
367
375
  end
368
376
 
369
377
 
370
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetBrandResponse) }
371
- def get(account_id:, x_moov_version: nil, timeout_ms: nil)
378
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBrandResponse) }
379
+ def get(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
372
380
  # get - Get brand properties for the specified account.
373
381
  #
374
382
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -416,6 +424,9 @@ module Moov
416
424
  req.headers.merge!(headers)
417
425
  req.options.timeout = timeout unless timeout.nil?
418
426
  Utils.configure_request_security(req, security)
427
+ http_headers&.each do |key, value|
428
+ req.headers[key.to_s] = value
429
+ end
419
430
 
420
431
  @sdk_configuration.hooks.before_request(
421
432
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -486,5 +497,5 @@ module Moov
486
497
 
487
498
  end
488
499
  end
489
- end
500
+ end
490
501
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListCapabilitiesResponse) }
43
- def list(account_id:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListCapabilitiesResponse) }
45
+ def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # list - Retrieve all the capabilities an account has requested.
45
47
  #
46
48
  # Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
@@ -90,6 +92,9 @@ module Moov
90
92
  req.headers.merge!(headers)
91
93
  req.options.timeout = timeout unless timeout.nil?
92
94
  Utils.configure_request_security(req, security)
95
+ http_headers&.each do |key, value|
96
+ req.headers[key.to_s] = value
97
+ end
93
98
 
94
99
  @sdk_configuration.hooks.before_request(
95
100
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -162,8 +167,8 @@ module Moov
162
167
  end
163
168
 
164
169
 
165
- sig { params(add_capabilities: Models::Components::AddCapabilities, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RequestCapabilitiesResponse) }
166
- def request(add_capabilities:, account_id:, x_moov_version: nil, timeout_ms: nil)
170
+ sig { params(add_capabilities: Models::Components::AddCapabilities, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCapabilitiesResponse) }
171
+ def request(add_capabilities:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
167
172
  # request - Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
168
173
  #
169
174
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -224,6 +229,9 @@ module Moov
224
229
  req.headers.merge!(headers)
225
230
  req.options.timeout = timeout unless timeout.nil?
226
231
  Utils.configure_request_security(req, security)
232
+ http_headers&.each do |key, value|
233
+ req.headers[key.to_s] = value
234
+ end
227
235
 
228
236
  @sdk_configuration.hooks.before_request(
229
237
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -326,8 +334,8 @@ module Moov
326
334
  end
327
335
 
328
336
 
329
- sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetCapabilityResponse) }
330
- def get(account_id:, capability_id:, x_moov_version: nil, timeout_ms: nil)
337
+ sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetCapabilityResponse) }
338
+ def get(account_id:, capability_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
331
339
  # get - Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
332
340
  #
333
341
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -376,6 +384,9 @@ module Moov
376
384
  req.headers.merge!(headers)
377
385
  req.options.timeout = timeout unless timeout.nil?
378
386
  Utils.configure_request_security(req, security)
387
+ http_headers&.each do |key, value|
388
+ req.headers[key.to_s] = value
389
+ end
379
390
 
380
391
  @sdk_configuration.hooks.before_request(
381
392
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -448,8 +459,8 @@ module Moov
448
459
  end
449
460
 
450
461
 
451
- sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisableCapabilityResponse) }
452
- def disable(account_id:, capability_id:, x_moov_version: nil, timeout_ms: nil)
462
+ sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableCapabilityResponse) }
463
+ def disable(account_id:, capability_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
453
464
  # disable - Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
454
465
  #
455
466
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -498,6 +509,9 @@ module Moov
498
509
  req.headers.merge!(headers)
499
510
  req.options.timeout = timeout unless timeout.nil?
500
511
  Utils.configure_request_security(req, security)
512
+ http_headers&.each do |key, value|
513
+ req.headers[key.to_s] = value
514
+ end
501
515
 
502
516
  @sdk_configuration.hooks.before_request(
503
517
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -574,5 +588,5 @@ module Moov
574
588
 
575
589
  end
576
590
  end
577
- end
591
+ end
578
592
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(request_card: Models::Components::RequestCard, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RequestCardResponse) }
43
- def request(request_card:, account_id:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(request_card: Models::Components::RequestCard, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCardResponse) }
45
+ def request(request_card:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # request - Request a virtual card be issued.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -101,6 +103,9 @@ module Moov
101
103
  req.headers.merge!(headers)
102
104
  req.options.timeout = timeout unless timeout.nil?
103
105
  Utils.configure_request_security(req, security)
106
+ http_headers&.each do |key, value|
107
+ req.headers[key.to_s] = value
108
+ end
104
109
 
105
110
  @sdk_configuration.hooks.before_request(
106
111
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -203,8 +208,8 @@ module Moov
203
208
  end
204
209
 
205
210
 
206
- sig { params(request: Models::Operations::ListIssuedCardsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListIssuedCardsResponse) }
207
- def list(request:, timeout_ms: nil)
211
+ sig { params(request: Models::Operations::ListIssuedCardsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuedCardsResponse) }
212
+ def list(request:, timeout_ms: nil, http_headers: nil)
208
213
  # list - List Moov issued cards existing for the account.
209
214
  #
210
215
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -250,6 +255,9 @@ module Moov
250
255
  req.options.timeout = timeout unless timeout.nil?
251
256
  req.params = query_params
252
257
  Utils.configure_request_security(req, security)
258
+ http_headers&.each do |key, value|
259
+ req.headers[key.to_s] = value
260
+ end
253
261
 
254
262
  @sdk_configuration.hooks.before_request(
255
263
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -322,8 +330,8 @@ module Moov
322
330
  end
323
331
 
324
332
 
325
- sig { params(account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetIssuedCardResponse) }
326
- def get(account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil)
333
+ sig { params(account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetIssuedCardResponse) }
334
+ def get(account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
327
335
  # get - Retrieve a single issued card associated with a Moov account.
328
336
  #
329
337
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -372,6 +380,9 @@ module Moov
372
380
  req.headers.merge!(headers)
373
381
  req.options.timeout = timeout unless timeout.nil?
374
382
  Utils.configure_request_security(req, security)
383
+ http_headers&.each do |key, value|
384
+ req.headers[key.to_s] = value
385
+ end
375
386
 
376
387
  @sdk_configuration.hooks.before_request(
377
388
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -444,8 +455,8 @@ module Moov
444
455
  end
445
456
 
446
457
 
447
- sig { params(update_issued_card: Models::Components::UpdateIssuedCard, account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateIssuedCardResponse) }
448
- def update(update_issued_card:, account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil)
458
+ sig { params(update_issued_card: Models::Components::UpdateIssuedCard, account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateIssuedCardResponse) }
459
+ def update(update_issued_card:, account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
449
460
  # update - Update a Moov issued card.
450
461
  #
451
462
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -507,6 +518,9 @@ module Moov
507
518
  req.headers.merge!(headers)
508
519
  req.options.timeout = timeout unless timeout.nil?
509
520
  Utils.configure_request_security(req, security)
521
+ http_headers&.each do |key, value|
522
+ req.headers[key.to_s] = value
523
+ end
510
524
 
511
525
  @sdk_configuration.hooks.before_request(
512
526
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -600,8 +614,8 @@ module Moov
600
614
  end
601
615
 
602
616
 
603
- sig { params(account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetFullIssuedCardResponse) }
604
- def get_full(account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil)
617
+ sig { params(account_id: ::String, issued_card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetFullIssuedCardResponse) }
618
+ def get_full(account_id:, issued_card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
605
619
  # get_full - Get issued card with PAN, CVV, and expiration.
606
620
  #
607
621
  # Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
@@ -652,6 +666,9 @@ module Moov
652
666
  req.headers.merge!(headers)
653
667
  req.options.timeout = timeout unless timeout.nil?
654
668
  Utils.configure_request_security(req, security)
669
+ http_headers&.each do |key, value|
670
+ req.headers[key.to_s] = value
671
+ end
655
672
 
656
673
  @sdk_configuration.hooks.before_request(
657
674
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -722,5 +739,5 @@ module Moov
722
739
 
723
740
  end
724
741
  end
725
- end
742
+ end
726
743
  end
data/lib/moov/cards.rb CHANGED
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(link_card: Models::Components::LinkCard, account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::LinkCardWaitFor), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LinkCardResponse) }
43
- def link(link_card:, account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(link_card: Models::Components::LinkCard, account_id: ::String, x_moov_version: T.nilable(::String), x_wait_for: T.nilable(Models::Components::LinkCardWaitFor), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::LinkCardResponse) }
45
+ def link(link_card:, account_id:, x_moov_version: nil, x_wait_for: nil, timeout_ms: nil, http_headers: nil)
44
46
  # link - Link a card to an existing Moov account.
45
47
  #
46
48
  # Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/#link-a-card) to learn more.
@@ -116,6 +118,9 @@ module Moov
116
118
  req.headers.merge!(headers)
117
119
  req.options.timeout = timeout unless timeout.nil?
118
120
  Utils.configure_request_security(req, security)
121
+ http_headers&.each do |key, value|
122
+ req.headers[key.to_s] = value
123
+ end
119
124
 
120
125
  @sdk_configuration.hooks.before_request(
121
126
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -233,8 +238,8 @@ module Moov
233
238
  end
234
239
 
235
240
 
236
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListCardsResponse) }
237
- def list(account_id:, x_moov_version: nil, timeout_ms: nil)
241
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListCardsResponse) }
242
+ def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
238
243
  # list - List all the active cards associated with a Moov account.
239
244
  #
240
245
  # Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/) to learn more.
@@ -284,6 +289,9 @@ module Moov
284
289
  req.headers.merge!(headers)
285
290
  req.options.timeout = timeout unless timeout.nil?
286
291
  Utils.configure_request_security(req, security)
292
+ http_headers&.each do |key, value|
293
+ req.headers[key.to_s] = value
294
+ end
287
295
 
288
296
  @sdk_configuration.hooks.before_request(
289
297
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -356,8 +364,8 @@ module Moov
356
364
  end
357
365
 
358
366
 
359
- sig { params(account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetCardResponse) }
360
- def get(account_id:, card_id:, x_moov_version: nil, timeout_ms: nil)
367
+ sig { params(account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetCardResponse) }
368
+ def get(account_id:, card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
361
369
  # get - Fetch a specific card associated with a Moov account.
362
370
  #
363
371
  # Read our [accept card payments guide](https://docs.moov.io/guides/sources/cards/accept-card-payments/) to learn more.
@@ -408,6 +416,9 @@ module Moov
408
416
  req.headers.merge!(headers)
409
417
  req.options.timeout = timeout unless timeout.nil?
410
418
  Utils.configure_request_security(req, security)
419
+ http_headers&.each do |key, value|
420
+ req.headers[key.to_s] = value
421
+ end
411
422
 
412
423
  @sdk_configuration.hooks.before_request(
413
424
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -480,8 +491,8 @@ module Moov
480
491
  end
481
492
 
482
493
 
483
- sig { params(update_card: Models::Components::UpdateCard, account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateCardResponse) }
484
- def update(update_card:, account_id:, card_id:, x_moov_version: nil, timeout_ms: nil)
494
+ sig { params(update_card: Models::Components::UpdateCard, account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateCardResponse) }
495
+ def update(update_card:, account_id:, card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
485
496
  # update - Update a linked card and/or resubmit it for verification.
486
497
  #
487
498
  # If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration
@@ -552,6 +563,9 @@ module Moov
552
563
  req.headers.merge!(headers)
553
564
  req.options.timeout = timeout unless timeout.nil?
554
565
  Utils.configure_request_security(req, security)
566
+ http_headers&.each do |key, value|
567
+ req.headers[key.to_s] = value
568
+ end
555
569
 
556
570
  @sdk_configuration.hooks.before_request(
557
571
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -654,8 +668,8 @@ module Moov
654
668
  end
655
669
 
656
670
 
657
- sig { params(account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisableCardResponse) }
658
- def disable(account_id:, card_id:, x_moov_version: nil, timeout_ms: nil)
671
+ sig { params(account_id: ::String, card_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableCardResponse) }
672
+ def disable(account_id:, card_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
659
673
  # disable - Disables a card associated with a Moov account.
660
674
  #
661
675
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -704,6 +718,9 @@ module Moov
704
718
  req.headers.merge!(headers)
705
719
  req.options.timeout = timeout unless timeout.nil?
706
720
  Utils.configure_request_security(req, security)
721
+ http_headers&.each do |key, value|
722
+ req.headers[key.to_s] = value
723
+ end
707
724
 
708
725
  @sdk_configuration.hooks.before_request(
709
726
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -780,5 +797,5 @@ module Moov
780
797
 
781
798
  end
782
799
  end
783
- end
800
+ end
784
801
  end
data/lib/moov/client.rb CHANGED
@@ -148,5 +148,6 @@ module Moov
148
148
 
149
149
  return Utils.template_url base_url, url_variables
150
150
  end
151
- end
151
+
152
+ end
152
153
  end