moov_ruby 24.1.9 → 24.1.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 (47) 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/issuing_transactions.rb +28 -11
  25. data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -1
  26. data/lib/moov/models/components/{rtptransactiondetails.rb → rtpdetails.rb} +4 -2
  27. data/lib/moov/models/components/{rtptransactiondetails.rbi → rtpdetails.rbi} +2 -2
  28. data/lib/moov/models/components/transferdestination.rb +3 -3
  29. data/lib/moov/models/components.rb +1 -1
  30. data/lib/moov/onboarding.rb +23 -9
  31. data/lib/moov/payment_links.rb +33 -13
  32. data/lib/moov/payment_methods.rb +13 -5
  33. data/lib/moov/ping.rb +8 -3
  34. data/lib/moov/products.rb +28 -11
  35. data/lib/moov/receipts.rb +13 -5
  36. data/lib/moov/representatives.rb +28 -11
  37. data/lib/moov/scheduling.rb +33 -13
  38. data/lib/moov/sdkconfiguration.rb +3 -3
  39. data/lib/moov/statements.rb +13 -5
  40. data/lib/moov/sweeps.rb +33 -13
  41. data/lib/moov/terminal_applications.rb +28 -11
  42. data/lib/moov/transfers.rb +58 -23
  43. data/lib/moov/underwriting.rb +13 -5
  44. data/lib/moov/wallet_transactions.rb +13 -5
  45. data/lib/moov/wallets.rb +23 -9
  46. data/lib/moov/webhooks.rb +43 -17
  47. metadata +18 -4
data/lib/moov/images.rb CHANGED
@@ -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), skip: T.nilable(::Integer), count: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListImageMetadataResponse) }
43
- def list(account_id:, x_moov_version: nil, skip: nil, count: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), skip: T.nilable(::Integer), count: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListImageMetadataResponse) }
45
+ def list(account_id:, x_moov_version: nil, skip: nil, count: nil, timeout_ms: nil, http_headers: nil)
44
46
  # list - List metadata for all images in the specified account.
45
47
  request = Models::Operations::ListImageMetadataRequest.new(
46
48
  account_id: account_id,
@@ -89,6 +91,9 @@ module Moov
89
91
  req.options.timeout = timeout unless timeout.nil?
90
92
  req.params = query_params
91
93
  Utils.configure_request_security(req, security)
94
+ http_headers&.each do |key, value|
95
+ req.headers[key.to_s] = value
96
+ end
92
97
 
93
98
  @sdk_configuration.hooks.before_request(
94
99
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -161,8 +166,8 @@ module Moov
161
166
  end
162
167
 
163
168
 
164
- sig { params(image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UploadImageResponse) }
165
- def upload(image_upload_request_multi_part:, account_id:, x_moov_version: nil, timeout_ms: nil)
169
+ sig { params(image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, 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::UploadImageResponse) }
170
+ def upload(image_upload_request_multi_part:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
166
171
  # upload - Upload a new PNG, JPEG, or WebP image with optional metadata.
167
172
  # Duplicate images, and requests larger than 16MB will be rejected.
168
173
  request = Models::Operations::UploadImageRequest.new(
@@ -221,6 +226,9 @@ module Moov
221
226
  req.headers.merge!(headers)
222
227
  req.options.timeout = timeout unless timeout.nil?
223
228
  Utils.configure_request_security(req, security)
229
+ http_headers&.each do |key, value|
230
+ req.headers[key.to_s] = value
231
+ end
224
232
 
225
233
  @sdk_configuration.hooks.before_request(
226
234
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -323,8 +331,8 @@ module Moov
323
331
  end
324
332
 
325
333
 
326
- sig { params(account_id: ::String, image_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetImageMetadataResponse) }
327
- def get_metadata(account_id:, image_id:, x_moov_version: nil, timeout_ms: nil)
334
+ sig { params(account_id: ::String, image_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::GetImageMetadataResponse) }
335
+ def get_metadata(account_id:, image_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
328
336
  # get_metadata - Retrieve metadata for a specific image by its ID.
329
337
  request = Models::Operations::GetImageMetadataRequest.new(
330
338
  account_id: account_id,
@@ -370,6 +378,9 @@ module Moov
370
378
  req.headers.merge!(headers)
371
379
  req.options.timeout = timeout unless timeout.nil?
372
380
  Utils.configure_request_security(req, security)
381
+ http_headers&.each do |key, value|
382
+ req.headers[key.to_s] = value
383
+ end
373
384
 
374
385
  @sdk_configuration.hooks.before_request(
375
386
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -442,8 +453,8 @@ module Moov
442
453
  end
443
454
 
444
455
 
445
- sig { params(image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, account_id: ::String, image_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateImageResponse) }
446
- def update(image_upload_request_multi_part:, account_id:, image_id:, x_moov_version: nil, timeout_ms: nil)
456
+ sig { params(image_upload_request_multi_part: Models::Components::ImageUploadRequestMultiPart, account_id: ::String, image_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::UpdateImageResponse) }
457
+ def update(image_upload_request_multi_part:, account_id:, image_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
447
458
  # update - Replace an existing image and, optionally, its metadata.
448
459
  #
449
460
  # This endpoint replaces the existing image with the new PNG, JPEG, or WebP. Omit
@@ -505,6 +516,9 @@ module Moov
505
516
  req.headers.merge!(headers)
506
517
  req.options.timeout = timeout unless timeout.nil?
507
518
  Utils.configure_request_security(req, security)
519
+ http_headers&.each do |key, value|
520
+ req.headers[key.to_s] = value
521
+ end
508
522
 
509
523
  @sdk_configuration.hooks.before_request(
510
524
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -607,8 +621,8 @@ module Moov
607
621
  end
608
622
 
609
623
 
610
- sig { params(account_id: ::String, image_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteImageResponse) }
611
- def delete(account_id:, image_id:, x_moov_version: nil, timeout_ms: nil)
624
+ sig { params(account_id: ::String, image_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::DeleteImageResponse) }
625
+ def delete(account_id:, image_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
612
626
  # delete - Disable an image by its ID.
613
627
  #
614
628
  # Disabled images are still be accessible via their public URL, and cannot be assigned
@@ -657,6 +671,9 @@ module Moov
657
671
  req.headers.merge!(headers)
658
672
  req.options.timeout = timeout unless timeout.nil?
659
673
  Utils.configure_request_security(req, security)
674
+ http_headers&.each do |key, value|
675
+ req.headers[key.to_s] = value
676
+ end
660
677
 
661
678
  @sdk_configuration.hooks.before_request(
662
679
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -735,8 +752,8 @@ module Moov
735
752
  end
736
753
 
737
754
 
738
- sig { params(image_metadata_request: Models::Components::ImageMetadataRequest, account_id: ::String, image_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateImageMetadataResponse) }
739
- def update_metadata(image_metadata_request:, account_id:, image_id:, x_moov_version: nil, timeout_ms: nil)
755
+ sig { params(image_metadata_request: Models::Components::ImageMetadataRequest, account_id: ::String, image_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::UpdateImageMetadataResponse) }
756
+ def update_metadata(image_metadata_request:, account_id:, image_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
740
757
  # update_metadata - Replace the metadata for an existing image.
741
758
  request = Models::Operations::UpdateImageMetadataRequest.new(
742
759
  account_id: account_id,
@@ -795,6 +812,9 @@ module Moov
795
812
  req.headers.merge!(headers)
796
813
  req.options.timeout = timeout unless timeout.nil?
797
814
  Utils.configure_request_security(req, security)
815
+ http_headers&.each do |key, value|
816
+ req.headers[key.to_s] = value
817
+ end
798
818
 
799
819
  @sdk_configuration.hooks.before_request(
800
820
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -897,8 +917,8 @@ module Moov
897
917
  end
898
918
 
899
919
 
900
- sig { params(public_id: ::String, if_none_match: T.nilable(::String), size: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String)).returns(Models::Operations::GetPublicImageResponse) }
901
- def get_public(public_id:, if_none_match: nil, size: nil, timeout_ms: nil, accept_header_override: nil)
920
+ sig { params(public_id: ::String, if_none_match: T.nilable(::String), size: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetPublicImageResponse) }
921
+ def get_public(public_id:, if_none_match: nil, size: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
902
922
  # get_public - Get an image by its public ID.
903
923
  request = Models::Operations::GetPublicImageRequest.new(
904
924
  public_id: public_id,
@@ -920,8 +940,6 @@ module Moov
920
940
  headers['Accept'] = accept_header_override || 'image/jpeg;q=1, image/png;q=0.7, image/webp;q=0'
921
941
  headers['user-agent'] = @sdk_configuration.user_agent
922
942
 
923
- security = @sdk_configuration.security_source&.call
924
-
925
943
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
926
944
  timeout ||= @sdk_configuration.timeout
927
945
 
@@ -933,7 +951,7 @@ module Moov
933
951
  base_url: base_url,
934
952
  oauth2_scopes: nil,
935
953
  operation_id: 'getPublicImage',
936
- security_source: @sdk_configuration.security_source
954
+ security_source: nil
937
955
  )
938
956
 
939
957
  error = T.let(nil, T.nilable(StandardError))
@@ -945,7 +963,9 @@ module Moov
945
963
  req.headers.merge!(headers)
946
964
  req.options.timeout = timeout unless timeout.nil?
947
965
  req.params = query_params
948
- Utils.configure_request_security(req, security)
966
+ http_headers&.each do |key, value|
967
+ req.headers[key.to_s] = value
968
+ end
949
969
 
950
970
  @sdk_configuration.hooks.before_request(
951
971
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -1059,5 +1079,5 @@ module Moov
1059
1079
 
1060
1080
  end
1061
1081
  end
1062
- end
1082
+ end
1063
1083
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListIndustriesResponse) }
43
- def list(x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(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::ListIndustriesResponse) }
45
+ def list(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # list - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
@@ -81,6 +83,9 @@ module Moov
81
83
  req.headers.merge!(headers)
82
84
  req.options.timeout = timeout unless timeout.nil?
83
85
  Utils.configure_request_security(req, security)
86
+ http_headers&.each do |key, value|
87
+ req.headers[key.to_s] = value
88
+ end
84
89
 
85
90
  @sdk_configuration.hooks.before_request(
86
91
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -151,5 +156,5 @@ module Moov
151
156
 
152
157
  end
153
158
  end
154
- end
159
+ end
155
160
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(x_moov_version: T.nilable(::String), name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::SearchInstitutionsResponse) }
43
- def search_institutions(x_moov_version: nil, name: nil, routing_number: nil, limit: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(x_moov_version: T.nilable(::String), name: T.nilable(::String), routing_number: T.nilable(::String), limit: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::SearchInstitutionsResponse) }
45
+ def search_institutions(x_moov_version: nil, name: nil, routing_number: nil, limit: nil, timeout_ms: nil, http_headers: nil)
44
46
  # search_institutions - Search for financial institutions by name or routing number.
45
47
  #
46
48
  # This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
@@ -90,6 +92,9 @@ module Moov
90
92
  req.options.timeout = timeout unless timeout.nil?
91
93
  req.params = query_params
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(request: Models::Operations::ListInstitutionsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListInstitutionsResponse) }
166
- def search(request:, timeout_ms: nil)
170
+ sig { params(request: Models::Operations::ListInstitutionsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListInstitutionsResponse) }
171
+ def search(request:, timeout_ms: nil, http_headers: nil)
167
172
  # search - This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/form-shortening/institutions/get/).
168
173
  #
169
174
  # Search for institutions by either their name or routing number.
@@ -207,6 +212,9 @@ module Moov
207
212
  req.options.timeout = timeout unless timeout.nil?
208
213
  req.params = query_params
209
214
  Utils.configure_request_security(req, security)
215
+ http_headers&.each do |key, value|
216
+ req.headers[key.to_s] = value
217
+ end
210
218
 
211
219
  @sdk_configuration.hooks.before_request(
212
220
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -292,5 +300,5 @@ module Moov
292
300
 
293
301
  end
294
302
  end
295
- end
303
+ end
296
304
  end
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(request: Models::Operations::ListIssuedCardAuthorizationsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListIssuedCardAuthorizationsResponse) }
43
- def list_authorizations(request:, timeout_ms: nil)
42
+
43
+
44
+ sig { params(request: Models::Operations::ListIssuedCardAuthorizationsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuedCardAuthorizationsResponse) }
45
+ def list_authorizations(request:, timeout_ms: nil, http_headers: nil)
44
46
  # list_authorizations - List issued card authorizations associated with a Moov account.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -86,6 +88,9 @@ module Moov
86
88
  req.options.timeout = timeout unless timeout.nil?
87
89
  req.params = query_params
88
90
  Utils.configure_request_security(req, security)
91
+ http_headers&.each do |key, value|
92
+ req.headers[key.to_s] = value
93
+ end
89
94
 
90
95
  @sdk_configuration.hooks.before_request(
91
96
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -158,8 +163,8 @@ module Moov
158
163
  end
159
164
 
160
165
 
161
- sig { params(account_id: ::String, authorization_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetIssuedCardAuthorizationResponse) }
162
- def get_authorization(account_id:, authorization_id:, x_moov_version: nil, timeout_ms: nil)
166
+ sig { params(account_id: ::String, authorization_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::GetIssuedCardAuthorizationResponse) }
167
+ def get_authorization(account_id:, authorization_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
163
168
  # get_authorization - Retrieves details of an authorization associated with a specific Moov account.
164
169
  #
165
170
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -208,6 +213,9 @@ module Moov
208
213
  req.headers.merge!(headers)
209
214
  req.options.timeout = timeout unless timeout.nil?
210
215
  Utils.configure_request_security(req, security)
216
+ http_headers&.each do |key, value|
217
+ req.headers[key.to_s] = value
218
+ end
211
219
 
212
220
  @sdk_configuration.hooks.before_request(
213
221
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -280,8 +288,8 @@ module Moov
280
288
  end
281
289
 
282
290
 
283
- sig { params(request: Models::Operations::ListIssuedCardAuthorizationEventsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListIssuedCardAuthorizationEventsResponse) }
284
- def list_authorization_events(request:, timeout_ms: nil)
291
+ sig { params(request: Models::Operations::ListIssuedCardAuthorizationEventsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuedCardAuthorizationEventsResponse) }
292
+ def list_authorization_events(request:, timeout_ms: nil, http_headers: nil)
285
293
  # list_authorization_events - List card network and Moov platform events that affect the authorization and its hold on a wallet balance.
286
294
  #
287
295
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -327,6 +335,9 @@ module Moov
327
335
  req.options.timeout = timeout unless timeout.nil?
328
336
  req.params = query_params
329
337
  Utils.configure_request_security(req, security)
338
+ http_headers&.each do |key, value|
339
+ req.headers[key.to_s] = value
340
+ end
330
341
 
331
342
  @sdk_configuration.hooks.before_request(
332
343
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -399,8 +410,8 @@ module Moov
399
410
  end
400
411
 
401
412
 
402
- sig { params(request: Models::Operations::ListIssuedCardTransactionsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListIssuedCardTransactionsResponse) }
403
- def list(request:, timeout_ms: nil)
413
+ sig { params(request: Models::Operations::ListIssuedCardTransactionsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListIssuedCardTransactionsResponse) }
414
+ def list(request:, timeout_ms: nil, http_headers: nil)
404
415
  # list - List issued card transactions associated with a Moov account.
405
416
  #
406
417
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -446,6 +457,9 @@ module Moov
446
457
  req.options.timeout = timeout unless timeout.nil?
447
458
  req.params = query_params
448
459
  Utils.configure_request_security(req, security)
460
+ http_headers&.each do |key, value|
461
+ req.headers[key.to_s] = value
462
+ end
449
463
 
450
464
  @sdk_configuration.hooks.before_request(
451
465
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -518,8 +532,8 @@ module Moov
518
532
  end
519
533
 
520
534
 
521
- sig { params(account_id: ::String, card_transaction_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetIssuedCardTransactionResponse) }
522
- def get(account_id:, card_transaction_id:, x_moov_version: nil, timeout_ms: nil)
535
+ sig { params(account_id: ::String, card_transaction_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::GetIssuedCardTransactionResponse) }
536
+ def get(account_id:, card_transaction_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
523
537
  # get - Retrieves details of an issued card transaction associated with a specific Moov account.
524
538
  #
525
539
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -568,6 +582,9 @@ module Moov
568
582
  req.headers.merge!(headers)
569
583
  req.options.timeout = timeout unless timeout.nil?
570
584
  Utils.configure_request_security(req, security)
585
+ http_headers&.each do |key, value|
586
+ req.headers[key.to_s] = value
587
+ end
571
588
 
572
589
  @sdk_configuration.hooks.before_request(
573
590
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -638,5 +655,5 @@ module Moov
638
655
 
639
656
  end
640
657
  end
641
- end
658
+ end
642
659
  end
@@ -26,7 +26,8 @@ module Moov
26
26
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
27
27
  field :image_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('imageIDs') } }
28
28
  # Optional unique identifier associating the line item with a product.
29
- # This is for reporting or tracking purposes, and does not populate other details of the line item.
29
+ # When provided, images associated with the product will be included on the line item.
30
+ # This does not populate other details of the line item.
30
31
  field :product_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('productID') } }
31
32
 
32
33
  sig { params(name: ::String, base_price: Models::Components::AmountDecimal, quantity: ::Integer, options: T.nilable(T::Array[Models::Components::CreatePaymentLinkLineItemOption]), image_i_ds: T.nilable(T::Array[::String]), product_id: T.nilable(::String)).void }
@@ -7,8 +7,10 @@
7
7
  module Moov
8
8
  module Models
9
9
  module Components
10
- # RTP specific details about the transaction.
11
- class RTPTransactionDetails
10
+ # DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
11
+ #
12
+ # @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
13
+ class RtpDetails
12
14
  extend T::Sig
13
15
  include Crystalline::MetadataFields
14
16
 
@@ -2,12 +2,12 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- class Moov::Models::Components::RTPTransactionDetails
5
+ class Moov::Models::Components::RtpDetails
6
6
  extend ::Crystalline::MetadataFields::ClassMethods
7
7
  end
8
8
 
9
9
 
10
- class Moov::Models::Components::RTPTransactionDetails
10
+ class Moov::Models::Components::RtpDetails
11
11
  def status(); end
12
12
  def status=(str_); end
13
13
  def network_response_code(); end
@@ -30,10 +30,10 @@ module Moov
30
30
  field :apple_pay, Crystalline::Nilable.new(Models::Components::ApplePayResponse), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('applePay') } }
31
31
  # Card-specific details about the transaction.
32
32
  field :card_details, Crystalline::Nilable.new(Models::Components::CardTransactionDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('cardDetails') } }
33
- # RTP specific details about the transaction.
34
- field :rtp_details, Crystalline::Nilable.new(Models::Components::RTPTransactionDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('rtpDetails') } }
33
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
34
+ field :rtp_details, Crystalline::Nilable.new(Models::Components::RtpDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('rtpDetails') } }
35
35
 
36
- sig { params(payment_method_id: ::String, payment_method_type: Models::Components::TransferPaymentMethodType, account: Models::Components::TransferAccount, bank_account: T.nilable(Models::Components::TransferPaymentMethodsBankAccount), wallet: T.nilable(Models::Components::TransferPaymentMethodsWallet), card: T.nilable(Models::Components::TransferPaymentMethodsCard), ach_details: T.nilable(Models::Components::ACHTransactionDetails), apple_pay: T.nilable(Models::Components::ApplePayResponse), card_details: T.nilable(Models::Components::CardTransactionDetails), rtp_details: T.nilable(Models::Components::RTPTransactionDetails)).void }
36
+ sig { params(payment_method_id: ::String, payment_method_type: Models::Components::TransferPaymentMethodType, account: Models::Components::TransferAccount, bank_account: T.nilable(Models::Components::TransferPaymentMethodsBankAccount), wallet: T.nilable(Models::Components::TransferPaymentMethodsWallet), card: T.nilable(Models::Components::TransferPaymentMethodsCard), ach_details: T.nilable(Models::Components::ACHTransactionDetails), apple_pay: T.nilable(Models::Components::ApplePayResponse), card_details: T.nilable(Models::Components::CardTransactionDetails), rtp_details: T.nilable(Models::Components::RtpDetails)).void }
37
37
  def initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, rtp_details: nil)
38
38
  @payment_method_id = payment_method_id
39
39
  @payment_method_type = payment_method_type
@@ -381,7 +381,6 @@ module Moov
381
381
  autoload :RTPInstitution, 'moov/models/components/rtpinstitution.rb'
382
382
  autoload :RTPRejectionCode, 'moov/models/components/rtprejectioncode.rb'
383
383
  autoload :RTPServices, 'moov/models/components/rtpservices.rb'
384
- autoload :RTPTransactionDetails, 'moov/models/components/rtptransactiondetails.rb'
385
384
  autoload :RTPTransactionStatus, 'moov/models/components/rtptransactionstatus.rb'
386
385
  autoload :ReceiptKind, 'moov/models/components/receiptkind.rb'
387
386
  autoload :ReceiptRequest, 'moov/models/components/receiptrequest.rb'
@@ -561,6 +560,7 @@ module Moov
561
560
  autoload :OtherFees, 'moov/models/components/otherfees.rb'
562
561
  autoload :Phone, 'moov/models/components/phone.rb'
563
562
  autoload :Responsibilities, 'moov/models/components/responsibilities.rb'
563
+ autoload :RtpDetails, 'moov/models/components/rtpdetails.rb'
564
564
  autoload :Status, 'moov/models/components/status.rb'
565
565
  autoload :TokenTypeHint, 'moov/models/components/token_type_hint.rb'
566
566
  autoload :Use, 'moov/models/components/use.rb'
@@ -39,8 +39,10 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(onboarding_invite_request: Models::Components::OnboardingInviteRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateOnboardingInviteResponse) }
43
- def create_invite(onboarding_invite_request:, x_moov_version: nil, timeout_ms: nil)
42
+
43
+
44
+ sig { params(onboarding_invite_request: Models::Components::OnboardingInviteRequest, 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::CreateOnboardingInviteResponse) }
45
+ def create_invite(onboarding_invite_request:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
44
46
  # create_invite - Create an invitation containing a unique link that allows the recipient to onboard their organization with Moov.
45
47
  #
46
48
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -94,6 +96,9 @@ module Moov
94
96
  req.headers.merge!(headers)
95
97
  req.options.timeout = timeout unless timeout.nil?
96
98
  Utils.configure_request_security(req, security)
99
+ http_headers&.each do |key, value|
100
+ req.headers[key.to_s] = value
101
+ end
97
102
 
98
103
  @sdk_configuration.hooks.before_request(
99
104
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -196,8 +201,8 @@ module Moov
196
201
  end
197
202
 
198
203
 
199
- sig { params(x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListOnboardingInvitesResponse) }
200
- def list_invites(x_moov_version: nil, timeout_ms: nil)
204
+ sig { params(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::ListOnboardingInvitesResponse) }
205
+ def list_invites(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
201
206
  # list_invites - List all the onboarding invites created by the caller's account.
202
207
  #
203
208
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -238,6 +243,9 @@ module Moov
238
243
  req.headers.merge!(headers)
239
244
  req.options.timeout = timeout unless timeout.nil?
240
245
  Utils.configure_request_security(req, security)
246
+ http_headers&.each do |key, value|
247
+ req.headers[key.to_s] = value
248
+ end
241
249
 
242
250
  @sdk_configuration.hooks.before_request(
243
251
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -310,8 +318,8 @@ module Moov
310
318
  end
311
319
 
312
320
 
313
- sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetOnboardingInviteResponse) }
314
- def get_invite(code:, x_moov_version: nil, timeout_ms: nil)
321
+ sig { params(code: ::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::GetOnboardingInviteResponse) }
322
+ def get_invite(code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
315
323
  # get_invite - Retrieve details about an onboarding invite.
316
324
  #
317
325
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -359,6 +367,9 @@ module Moov
359
367
  req.headers.merge!(headers)
360
368
  req.options.timeout = timeout unless timeout.nil?
361
369
  Utils.configure_request_security(req, security)
370
+ http_headers&.each do |key, value|
371
+ req.headers[key.to_s] = value
372
+ end
362
373
 
363
374
  @sdk_configuration.hooks.before_request(
364
375
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -431,8 +442,8 @@ module Moov
431
442
  end
432
443
 
433
444
 
434
- sig { params(code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::RevokeOnboardingInviteResponse) }
435
- def revoke_invite(code:, x_moov_version: nil, timeout_ms: nil)
445
+ sig { params(code: ::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::RevokeOnboardingInviteResponse) }
446
+ def revoke_invite(code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
436
447
  # revoke_invite - Revoke an onboarding invite, rendering the invitation link unusable.
437
448
  #
438
449
  # To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
@@ -480,6 +491,9 @@ module Moov
480
491
  req.headers.merge!(headers)
481
492
  req.options.timeout = timeout unless timeout.nil?
482
493
  Utils.configure_request_security(req, security)
494
+ http_headers&.each do |key, value|
495
+ req.headers[key.to_s] = value
496
+ end
483
497
 
484
498
  @sdk_configuration.hooks.before_request(
485
499
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -537,5 +551,5 @@ module Moov
537
551
 
538
552
  end
539
553
  end
540
- end
554
+ end
541
555
  end