moov_ruby 26.4.0.pre.dev.9 → 26.4.0.pre.dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/crystalline/types.rb +11 -3
- data/lib/moov/account_terminal_applications.rb +23 -9
- data/lib/moov/accounts.rb +58 -23
- data/lib/moov/adjustments.rb +13 -5
- data/lib/moov/apple_pay.rb +28 -11
- data/lib/moov/authentication.rb +13 -5
- data/lib/moov/avatars.rb +8 -3
- data/lib/moov/bank_accounts.rb +48 -19
- data/lib/moov/branding.rb +18 -7
- data/lib/moov/capabilities.rb +23 -9
- data/lib/moov/card_issuing.rb +28 -11
- data/lib/moov/cards.rb +28 -11
- data/lib/moov/client.rb +4 -2
- data/lib/moov/disputes.rb +58 -23
- data/lib/moov/end_to_end_encryption.rb +13 -5
- data/lib/moov/enriched_address.rb +8 -3
- data/lib/moov/enriched_profile.rb +8 -3
- data/lib/moov/fee_plans.rb +53 -21
- data/lib/moov/files.rb +18 -7
- data/lib/moov/images.rb +39 -19
- data/lib/moov/industries.rb +8 -3
- data/lib/moov/institutions.rb +13 -5
- data/lib/moov/invoices.rb +170 -13
- data/lib/moov/issuing_transactions.rb +28 -11
- data/lib/moov/models/components/createinvoicelineitem.rb +2 -1
- data/lib/moov/models/components/createpaymentlinklineitem.rb +2 -1
- data/lib/moov/models/components/createresolutionlink.rb +32 -0
- data/lib/moov/models/components/createresolutionlink.rbi +13 -0
- data/lib/moov/models/components/feecategory.rb +1 -0
- data/lib/moov/models/components/{rtpfailurecode.rb → instantbankfailurecode.rb} +3 -2
- data/lib/moov/models/components/instantbankfailurecode.rbi +11 -0
- data/lib/moov/models/components/instantbanknetwork.rb +19 -0
- data/lib/moov/models/components/{rtpfailurecode.rbi → instantbanknetwork.rbi} +2 -2
- data/lib/moov/models/components/{rtptransactiondetails.rb → instantbanktransactiondetails.rb} +16 -8
- data/lib/moov/models/components/{rtptransactiondetails.rbi → instantbanktransactiondetails.rbi} +6 -2
- data/lib/moov/models/components/{rtptransactionstatus.rb → instantbanktransactionstatus.rb} +2 -2
- data/lib/moov/models/components/instantbanktransactionstatus.rbi +11 -0
- data/lib/moov/models/components/invoice.rb +14 -2
- data/lib/moov/models/components/invoice.rbi +6 -0
- data/lib/moov/models/components/invoicelineitem.rb +2 -1
- data/lib/moov/models/components/resolutionlink.rb +64 -0
- data/lib/moov/models/components/resolutionlink.rbi +29 -0
- data/lib/moov/models/components/resolutionlinkrecipient.rb +36 -0
- data/lib/moov/models/components/resolutionlinkrecipient.rbi +15 -0
- data/lib/moov/models/components/transferdestination.rb +6 -6
- data/lib/moov/models/components/transferdestination.rbi +2 -2
- data/lib/moov/models/components/updateinvoice.rb +4 -1
- data/lib/moov/models/components.rb +7 -3
- data/lib/moov/models/errors/createresolutionlinkerror.rb +40 -0
- data/lib/moov/models/errors/createresolutionlinkerror.rbi +17 -0
- data/lib/moov/models/errors.rb +1 -0
- data/lib/moov/models/operations/createresolutionlink_request.rb +49 -0
- data/lib/moov/models/operations/createresolutionlink_request.rbi +17 -0
- data/lib/moov/models/operations/createresolutionlink_response.rb +48 -0
- data/lib/moov/models/operations/createresolutionlink_response.rbi +21 -0
- data/lib/moov/models/operations/deleteinvoice_request.rb +49 -0
- data/lib/moov/models/operations/deleteinvoice_request.rbi +17 -0
- data/lib/moov/models/operations/deleteinvoice_response.rb +44 -0
- data/lib/moov/models/operations/deleteinvoice_response.rbi +19 -0
- data/lib/moov/models/operations/disableresolutionlink_request.rb +49 -0
- data/lib/moov/models/operations/disableresolutionlink_request.rbi +17 -0
- data/lib/moov/models/operations/disableresolutionlink_response.rb +44 -0
- data/lib/moov/models/operations/disableresolutionlink_response.rbi +19 -0
- data/lib/moov/models/operations/getresolutionlink_request.rb +49 -0
- data/lib/moov/models/operations/getresolutionlink_request.rbi +17 -0
- data/lib/moov/models/operations/getresolutionlink_response.rb +48 -0
- data/lib/moov/models/operations/getresolutionlink_response.rbi +21 -0
- data/lib/moov/models/operations/listresolutionlinks_request.rb +45 -0
- data/lib/moov/models/operations/listresolutionlinks_request.rbi +15 -0
- data/lib/moov/models/operations/listresolutionlinks_response.rb +48 -0
- data/lib/moov/models/operations/listresolutionlinks_response.rbi +21 -0
- data/lib/moov/models/operations.rb +10 -0
- data/lib/moov/onboarding.rb +23 -9
- data/lib/moov/payment_links.rb +33 -13
- data/lib/moov/payment_methods.rb +13 -5
- data/lib/moov/ping.rb +8 -3
- data/lib/moov/products.rb +28 -11
- data/lib/moov/receipts.rb +13 -5
- data/lib/moov/representatives.rb +28 -11
- data/lib/moov/resolution_links.rb +592 -0
- data/lib/moov/scheduling.rb +33 -13
- data/lib/moov/sdk_hooks/moov_version.rb +6 -7
- data/lib/moov/sdk_hooks/registration.rb +1 -1
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/statements.rb +13 -5
- data/lib/moov/support.rb +28 -11
- data/lib/moov/sweeps.rb +33 -13
- data/lib/moov/terminal_applications.rb +28 -11
- data/lib/moov/transfers.rb +58 -23
- data/lib/moov/underwriting.rb +18 -7
- data/lib/moov/wallet_transactions.rb +13 -5
- data/lib/moov/wallets.rb +23 -9
- data/lib/moov/webhooks.rb +43 -17
- data/lib/moov_ruby.rb +1 -0
- metadata +53 -8
- data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Operations::ListResolutionLinksResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Operations::ListResolutionLinksResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def headers(); end
|
|
18
|
+
def headers=(str_); end
|
|
19
|
+
def resolution_links(); end
|
|
20
|
+
def resolution_links=(str_); end
|
|
21
|
+
end
|
|
@@ -44,6 +44,8 @@ module Moov
|
|
|
44
44
|
autoload :CreateReceiptsResponse, 'moov/models/operations/createreceipts_response.rb'
|
|
45
45
|
autoload :CreateRepresentativeRequest, 'moov/models/operations/createrepresentative_request.rb'
|
|
46
46
|
autoload :CreateRepresentativeResponse, 'moov/models/operations/createrepresentative_response.rb'
|
|
47
|
+
autoload :CreateResolutionLinkRequest, 'moov/models/operations/createresolutionlink_request.rb'
|
|
48
|
+
autoload :CreateResolutionLinkResponse, 'moov/models/operations/createresolutionlink_response.rb'
|
|
47
49
|
autoload :CreateReversalRequest, 'moov/models/operations/createreversal_request.rb'
|
|
48
50
|
autoload :CreateReversalResponse, 'moov/models/operations/createreversal_response.rb'
|
|
49
51
|
autoload :CreateScheduleRequest, 'moov/models/operations/createschedule_request.rb'
|
|
@@ -68,6 +70,8 @@ module Moov
|
|
|
68
70
|
autoload :DeleteDisputeEvidenceFileResponse, 'moov/models/operations/deletedisputeevidencefile_response.rb'
|
|
69
71
|
autoload :DeleteImageRequest, 'moov/models/operations/deleteimage_request.rb'
|
|
70
72
|
autoload :DeleteImageResponse, 'moov/models/operations/deleteimage_response.rb'
|
|
73
|
+
autoload :DeleteInvoiceRequest, 'moov/models/operations/deleteinvoice_request.rb'
|
|
74
|
+
autoload :DeleteInvoiceResponse, 'moov/models/operations/deleteinvoice_response.rb'
|
|
71
75
|
autoload :DeleteRepresentativeRequest, 'moov/models/operations/deleterepresentative_request.rb'
|
|
72
76
|
autoload :DeleteRepresentativeResponse, 'moov/models/operations/deleterepresentative_response.rb'
|
|
73
77
|
autoload :DeleteTerminalApplicationRequest, 'moov/models/operations/deleteterminalapplication_request.rb'
|
|
@@ -82,6 +86,8 @@ module Moov
|
|
|
82
86
|
autoload :DisablePaymentLinkResponse, 'moov/models/operations/disablepaymentlink_response.rb'
|
|
83
87
|
autoload :DisableProductRequest, 'moov/models/operations/disableproduct_request.rb'
|
|
84
88
|
autoload :DisableProductResponse, 'moov/models/operations/disableproduct_response.rb'
|
|
89
|
+
autoload :DisableResolutionLinkRequest, 'moov/models/operations/disableresolutionlink_request.rb'
|
|
90
|
+
autoload :DisableResolutionLinkResponse, 'moov/models/operations/disableresolutionlink_response.rb'
|
|
85
91
|
autoload :DisableWebhookRequest, 'moov/models/operations/disablewebhook_request.rb'
|
|
86
92
|
autoload :DisableWebhookResponse, 'moov/models/operations/disablewebhook_response.rb'
|
|
87
93
|
autoload :DisconnectAccountRequest, 'moov/models/operations/disconnectaccount_request.rb'
|
|
@@ -156,6 +162,8 @@ module Moov
|
|
|
156
162
|
autoload :GetRepresentativeResponse, 'moov/models/operations/getrepresentative_response.rb'
|
|
157
163
|
autoload :GetResidualRequest, 'moov/models/operations/getresidual_request.rb'
|
|
158
164
|
autoload :GetResidualResponse, 'moov/models/operations/getresidual_response.rb'
|
|
165
|
+
autoload :GetResolutionLinkRequest, 'moov/models/operations/getresolutionlink_request.rb'
|
|
166
|
+
autoload :GetResolutionLinkResponse, 'moov/models/operations/getresolutionlink_response.rb'
|
|
159
167
|
autoload :GetScheduledOccurrenceRequest, 'moov/models/operations/getscheduledoccurrence_request.rb'
|
|
160
168
|
autoload :GetScheduledOccurrenceResponse, 'moov/models/operations/getscheduledoccurrence_response.rb'
|
|
161
169
|
autoload :GetSchedulesRequest, 'moov/models/operations/getschedules_request.rb'
|
|
@@ -269,6 +277,8 @@ module Moov
|
|
|
269
277
|
autoload :ListResidualFeesResponse, 'moov/models/operations/listresidualfees_response.rb'
|
|
270
278
|
autoload :ListResidualsRequest, 'moov/models/operations/listresiduals_request.rb'
|
|
271
279
|
autoload :ListResidualsResponse, 'moov/models/operations/listresiduals_response.rb'
|
|
280
|
+
autoload :ListResolutionLinksRequest, 'moov/models/operations/listresolutionlinks_request.rb'
|
|
281
|
+
autoload :ListResolutionLinksResponse, 'moov/models/operations/listresolutionlinks_response.rb'
|
|
272
282
|
autoload :ListSchedulesRequest, 'moov/models/operations/listschedules_request.rb'
|
|
273
283
|
autoload :ListSchedulesResponse, 'moov/models/operations/listschedules_response.rb'
|
|
274
284
|
autoload :ListStatementsRequest, 'moov/models/operations/liststatements_request.rb'
|
data/lib/moov/onboarding.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
554
|
+
end
|
|
541
555
|
end
|
data/lib/moov/payment_links.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_payment_link: Models::Components::CreatePaymentLink, 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::CreatePaymentLinkResponse) }
|
|
45
|
+
def create(create_payment_link:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Create a payment link that allows an end user to make a payment on Moov's hosted payment link page.
|
|
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::ListPaymentLinksRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListPaymentLinksResponse) }
|
|
207
|
-
def list(request:, timeout_ms: nil)
|
|
211
|
+
sig { params(request: Models::Operations::ListPaymentLinksRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListPaymentLinksResponse) }
|
|
212
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
208
213
|
# list - List all the payment links created under a Moov 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, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetPaymentLinkResponse) }
|
|
326
|
-
def get(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
|
|
333
|
+
sig { params(account_id: ::String, payment_link_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::GetPaymentLinkResponse) }
|
|
334
|
+
def get(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
327
335
|
# get - Retrieve a payment link by code.
|
|
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_payment_link: Models::Components::UpdatePaymentLink, account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdatePaymentLinkResponse) }
|
|
448
|
-
def update(update_payment_link:, account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
|
|
458
|
+
sig { params(update_payment_link: Models::Components::UpdatePaymentLink, account_id: ::String, payment_link_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::UpdatePaymentLinkResponse) }
|
|
459
|
+
def update(update_payment_link:, account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
449
460
|
# update - Update a payment link.
|
|
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(
|
|
@@ -609,8 +623,8 @@ module Moov
|
|
|
609
623
|
end
|
|
610
624
|
|
|
611
625
|
|
|
612
|
-
sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisablePaymentLinkResponse) }
|
|
613
|
-
def disable(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil)
|
|
626
|
+
sig { params(account_id: ::String, payment_link_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::DisablePaymentLinkResponse) }
|
|
627
|
+
def disable(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
614
628
|
# disable - Disable a payment link.
|
|
615
629
|
#
|
|
616
630
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -659,6 +673,9 @@ module Moov
|
|
|
659
673
|
req.headers.merge!(headers)
|
|
660
674
|
req.options.timeout = timeout unless timeout.nil?
|
|
661
675
|
Utils.configure_request_security(req, security)
|
|
676
|
+
http_headers&.each do |key, value|
|
|
677
|
+
req.headers[key.to_s] = value
|
|
678
|
+
end
|
|
662
679
|
|
|
663
680
|
@sdk_configuration.hooks.before_request(
|
|
664
681
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -722,8 +739,8 @@ module Moov
|
|
|
722
739
|
end
|
|
723
740
|
|
|
724
741
|
|
|
725
|
-
sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String)).returns(Models::Operations::GetPaymentLinkQRCodeResponse) }
|
|
726
|
-
def get_qr_code(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil)
|
|
742
|
+
sig { params(account_id: ::String, payment_link_code: ::String, x_moov_version: 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::GetPaymentLinkQRCodeResponse) }
|
|
743
|
+
def get_qr_code(account_id:, payment_link_code:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
|
|
727
744
|
# get_qr_code - Retrieve the payment link encoded in a QR code.
|
|
728
745
|
#
|
|
729
746
|
# Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `image/png`.
|
|
@@ -774,6 +791,9 @@ module Moov
|
|
|
774
791
|
req.headers.merge!(headers)
|
|
775
792
|
req.options.timeout = timeout unless timeout.nil?
|
|
776
793
|
Utils.configure_request_security(req, security)
|
|
794
|
+
http_headers&.each do |key, value|
|
|
795
|
+
req.headers[key.to_s] = value
|
|
796
|
+
end
|
|
777
797
|
|
|
778
798
|
@sdk_configuration.hooks.before_request(
|
|
779
799
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -860,5 +880,5 @@ module Moov
|
|
|
860
880
|
|
|
861
881
|
end
|
|
862
882
|
end
|
|
863
|
-
|
|
883
|
+
end
|
|
864
884
|
end
|
data/lib/moov/payment_methods.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), source_id: T.nilable(::String), payment_method_type: T.nilable(Models::Components::PaymentMethodType), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListPaymentMethodsResponse) }
|
|
45
|
+
def list(account_id:, x_moov_version: nil, source_id: nil, payment_method_type: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - Retrieve a list of payment methods associated with a Moov account. Read our [payment methods
|
|
45
47
|
# guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more.
|
|
46
48
|
#
|
|
@@ -93,6 +95,9 @@ module Moov
|
|
|
93
95
|
req.options.timeout = timeout unless timeout.nil?
|
|
94
96
|
req.params = query_params
|
|
95
97
|
Utils.configure_request_security(req, security)
|
|
98
|
+
http_headers&.each do |key, value|
|
|
99
|
+
req.headers[key.to_s] = value
|
|
100
|
+
end
|
|
96
101
|
|
|
97
102
|
@sdk_configuration.hooks.before_request(
|
|
98
103
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -165,8 +170,8 @@ module Moov
|
|
|
165
170
|
end
|
|
166
171
|
|
|
167
172
|
|
|
168
|
-
sig { params(account_id: ::String, payment_method_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetPaymentMethodResponse) }
|
|
169
|
-
def get(account_id:, payment_method_id:, x_moov_version: nil, timeout_ms: nil)
|
|
173
|
+
sig { params(account_id: ::String, payment_method_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::GetPaymentMethodResponse) }
|
|
174
|
+
def get(account_id:, payment_method_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
170
175
|
# get - Get the specified payment method associated with a Moov account. Read our [payment methods guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more.
|
|
171
176
|
#
|
|
172
177
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -215,6 +220,9 @@ module Moov
|
|
|
215
220
|
req.headers.merge!(headers)
|
|
216
221
|
req.options.timeout = timeout unless timeout.nil?
|
|
217
222
|
Utils.configure_request_security(req, security)
|
|
223
|
+
http_headers&.each do |key, value|
|
|
224
|
+
req.headers[key.to_s] = value
|
|
225
|
+
end
|
|
218
226
|
|
|
219
227
|
@sdk_configuration.hooks.before_request(
|
|
220
228
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -285,5 +293,5 @@ module Moov
|
|
|
285
293
|
|
|
286
294
|
end
|
|
287
295
|
end
|
|
288
|
-
|
|
296
|
+
end
|
|
289
297
|
end
|
data/lib/moov/ping.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
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::PingResponse) }
|
|
45
|
+
def ping(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# ping - A simple endpoint to check auth.
|
|
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(
|
|
@@ -142,5 +147,5 @@ module Moov
|
|
|
142
147
|
|
|
143
148
|
end
|
|
144
149
|
end
|
|
145
|
-
|
|
150
|
+
end
|
|
146
151
|
end
|
data/lib/moov/products.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Operations::ListProductsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListProductsResponse) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - List active (non-disabled) products for an account.
|
|
45
47
|
url, params = @sdk_configuration.get_server_details
|
|
46
48
|
base_url = Utils.template_url(url, params)
|
|
@@ -83,6 +85,9 @@ module Moov
|
|
|
83
85
|
req.options.timeout = timeout unless timeout.nil?
|
|
84
86
|
req.params = query_params
|
|
85
87
|
Utils.configure_request_security(req, security)
|
|
88
|
+
http_headers&.each do |key, value|
|
|
89
|
+
req.headers[key.to_s] = value
|
|
90
|
+
end
|
|
86
91
|
|
|
87
92
|
@sdk_configuration.hooks.before_request(
|
|
88
93
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -155,8 +160,8 @@ module Moov
|
|
|
155
160
|
end
|
|
156
161
|
|
|
157
162
|
|
|
158
|
-
sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateProductResponse) }
|
|
159
|
-
def create(product_request:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
163
|
+
sig { params(product_request: Models::Components::ProductRequest, 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::CreateProductResponse) }
|
|
164
|
+
def create(product_request:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
160
165
|
# create - Creates a new product for the specified account.
|
|
161
166
|
request = Models::Operations::CreateProductRequest.new(
|
|
162
167
|
account_id: account_id,
|
|
@@ -214,6 +219,9 @@ module Moov
|
|
|
214
219
|
req.headers.merge!(headers)
|
|
215
220
|
req.options.timeout = timeout unless timeout.nil?
|
|
216
221
|
Utils.configure_request_security(req, security)
|
|
222
|
+
http_headers&.each do |key, value|
|
|
223
|
+
req.headers[key.to_s] = value
|
|
224
|
+
end
|
|
217
225
|
|
|
218
226
|
@sdk_configuration.hooks.before_request(
|
|
219
227
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -316,8 +324,8 @@ module Moov
|
|
|
316
324
|
end
|
|
317
325
|
|
|
318
326
|
|
|
319
|
-
sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetProductResponse) }
|
|
320
|
-
def get(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
|
|
327
|
+
sig { params(account_id: ::String, product_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::GetProductResponse) }
|
|
328
|
+
def get(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
321
329
|
# get - Retrieve a product by ID.
|
|
322
330
|
request = Models::Operations::GetProductRequest.new(
|
|
323
331
|
account_id: account_id,
|
|
@@ -363,6 +371,9 @@ module Moov
|
|
|
363
371
|
req.headers.merge!(headers)
|
|
364
372
|
req.options.timeout = timeout unless timeout.nil?
|
|
365
373
|
Utils.configure_request_security(req, security)
|
|
374
|
+
http_headers&.each do |key, value|
|
|
375
|
+
req.headers[key.to_s] = value
|
|
376
|
+
end
|
|
366
377
|
|
|
367
378
|
@sdk_configuration.hooks.before_request(
|
|
368
379
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -435,8 +446,8 @@ module Moov
|
|
|
435
446
|
end
|
|
436
447
|
|
|
437
448
|
|
|
438
|
-
sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateProductResponse) }
|
|
439
|
-
def update(product_request:, account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
|
|
449
|
+
sig { params(product_request: Models::Components::ProductRequest, account_id: ::String, product_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::UpdateProductResponse) }
|
|
450
|
+
def update(product_request:, account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
440
451
|
# update - Update a product and its options.
|
|
441
452
|
request = Models::Operations::UpdateProductRequest.new(
|
|
442
453
|
account_id: account_id,
|
|
@@ -495,6 +506,9 @@ module Moov
|
|
|
495
506
|
req.headers.merge!(headers)
|
|
496
507
|
req.options.timeout = timeout unless timeout.nil?
|
|
497
508
|
Utils.configure_request_security(req, security)
|
|
509
|
+
http_headers&.each do |key, value|
|
|
510
|
+
req.headers[key.to_s] = value
|
|
511
|
+
end
|
|
498
512
|
|
|
499
513
|
@sdk_configuration.hooks.before_request(
|
|
500
514
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -597,8 +611,8 @@ module Moov
|
|
|
597
611
|
end
|
|
598
612
|
|
|
599
613
|
|
|
600
|
-
sig { params(account_id: ::String, product_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisableProductResponse) }
|
|
601
|
-
def disable(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil)
|
|
614
|
+
sig { params(account_id: ::String, product_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::DisableProductResponse) }
|
|
615
|
+
def disable(account_id:, product_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
602
616
|
# disable - Disable a product by ID.
|
|
603
617
|
#
|
|
604
618
|
# The product will no longer be available, but will remain in the system for historical and reporting purposes.
|
|
@@ -646,6 +660,9 @@ module Moov
|
|
|
646
660
|
req.headers.merge!(headers)
|
|
647
661
|
req.options.timeout = timeout unless timeout.nil?
|
|
648
662
|
Utils.configure_request_security(req, security)
|
|
663
|
+
http_headers&.each do |key, value|
|
|
664
|
+
req.headers[key.to_s] = value
|
|
665
|
+
end
|
|
649
666
|
|
|
650
667
|
@sdk_configuration.hooks.before_request(
|
|
651
668
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -722,5 +739,5 @@ module Moov
|
|
|
722
739
|
|
|
723
740
|
end
|
|
724
741
|
end
|
|
725
|
-
|
|
742
|
+
end
|
|
726
743
|
end
|
data/lib/moov/receipts.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request_body: T::Array[Models::Components::ReceiptRequest], 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::CreateReceiptsResponse) }
|
|
45
|
+
def create(request_body:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Create receipts for transfers and scheduled transfers.
|
|
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(
|
|
@@ -181,8 +186,8 @@ module Moov
|
|
|
181
186
|
end
|
|
182
187
|
|
|
183
188
|
|
|
184
|
-
sig { params(id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListReceiptsResponse) }
|
|
185
|
-
def list(id:, x_moov_version: nil, timeout_ms: nil)
|
|
189
|
+
sig { params(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::ListReceiptsResponse) }
|
|
190
|
+
def list(id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
186
191
|
# list - List receipts by transferID, scheduleID, or occurrenceID.
|
|
187
192
|
#
|
|
188
193
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -226,6 +231,9 @@ module Moov
|
|
|
226
231
|
req.options.timeout = timeout unless timeout.nil?
|
|
227
232
|
req.params = query_params
|
|
228
233
|
Utils.configure_request_security(req, security)
|
|
234
|
+
http_headers&.each do |key, value|
|
|
235
|
+
req.headers[key.to_s] = value
|
|
236
|
+
end
|
|
229
237
|
|
|
230
238
|
@sdk_configuration.hooks.before_request(
|
|
231
239
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -296,5 +304,5 @@ module Moov
|
|
|
296
304
|
|
|
297
305
|
end
|
|
298
306
|
end
|
|
299
|
-
|
|
307
|
+
end
|
|
300
308
|
end
|
data/lib/moov/representatives.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_representative: Models::Components::CreateRepresentative, 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::CreateRepresentativeResponse) }
|
|
45
|
+
def create(create_representative:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Moov accounts associated with businesses require information regarding individuals who represent the business.
|
|
45
47
|
# You can provide this information by creating a representative. Each account is allowed a maximum of 7 representatives.
|
|
46
48
|
# Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
|
|
@@ -103,6 +105,9 @@ module Moov
|
|
|
103
105
|
req.headers.merge!(headers)
|
|
104
106
|
req.options.timeout = timeout unless timeout.nil?
|
|
105
107
|
Utils.configure_request_security(req, security)
|
|
108
|
+
http_headers&.each do |key, value|
|
|
109
|
+
req.headers[key.to_s] = value
|
|
110
|
+
end
|
|
106
111
|
|
|
107
112
|
@sdk_configuration.hooks.before_request(
|
|
108
113
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -205,8 +210,8 @@ module Moov
|
|
|
205
210
|
end
|
|
206
211
|
|
|
207
212
|
|
|
208
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListRepresentativesResponse) }
|
|
209
|
-
def list(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
213
|
+
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::ListRepresentativesResponse) }
|
|
214
|
+
def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
210
215
|
# list - A Moov account may have multiple representatives depending on the associated business's ownership and management structure.
|
|
211
216
|
# You can use this method to list all the representatives for a given Moov account.
|
|
212
217
|
# Note that Moov accounts associated with an individual do not have representatives.
|
|
@@ -257,6 +262,9 @@ module Moov
|
|
|
257
262
|
req.headers.merge!(headers)
|
|
258
263
|
req.options.timeout = timeout unless timeout.nil?
|
|
259
264
|
Utils.configure_request_security(req, security)
|
|
265
|
+
http_headers&.each do |key, value|
|
|
266
|
+
req.headers[key.to_s] = value
|
|
267
|
+
end
|
|
260
268
|
|
|
261
269
|
@sdk_configuration.hooks.before_request(
|
|
262
270
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -329,8 +337,8 @@ module Moov
|
|
|
329
337
|
end
|
|
330
338
|
|
|
331
339
|
|
|
332
|
-
sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteRepresentativeResponse) }
|
|
333
|
-
def delete(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
|
|
340
|
+
sig { params(account_id: ::String, representative_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::DeleteRepresentativeResponse) }
|
|
341
|
+
def delete(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
334
342
|
# delete - Deletes a business representative associated with a Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
|
|
335
343
|
#
|
|
336
344
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -379,6 +387,9 @@ module Moov
|
|
|
379
387
|
req.headers.merge!(headers)
|
|
380
388
|
req.options.timeout = timeout unless timeout.nil?
|
|
381
389
|
Utils.configure_request_security(req, security)
|
|
390
|
+
http_headers&.each do |key, value|
|
|
391
|
+
req.headers[key.to_s] = value
|
|
392
|
+
end
|
|
382
393
|
|
|
383
394
|
@sdk_configuration.hooks.before_request(
|
|
384
395
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -457,8 +468,8 @@ module Moov
|
|
|
457
468
|
end
|
|
458
469
|
|
|
459
470
|
|
|
460
|
-
sig { params(account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRepresentativeResponse) }
|
|
461
|
-
def get(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
|
|
471
|
+
sig { params(account_id: ::String, representative_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::GetRepresentativeResponse) }
|
|
472
|
+
def get(account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
462
473
|
# get - Retrieve a specific representative associated with a given Moov account. Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
|
|
463
474
|
#
|
|
464
475
|
# 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(
|
|
@@ -579,8 +593,8 @@ module Moov
|
|
|
579
593
|
end
|
|
580
594
|
|
|
581
595
|
|
|
582
|
-
sig { params(update_representative: Models::Components::UpdateRepresentative, account_id: ::String, representative_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateRepresentativeResponse) }
|
|
583
|
-
def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil)
|
|
596
|
+
sig { params(update_representative: Models::Components::UpdateRepresentative, account_id: ::String, representative_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::UpdateRepresentativeResponse) }
|
|
597
|
+
def update(update_representative:, account_id:, representative_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
584
598
|
# update - If a representative's information has changed you can patch the information associated with a specific representative ID.
|
|
585
599
|
# Read our [business representatives guide](https://docs.moov.io/guides/accounts/requirements/business-representatives/) to learn more.
|
|
586
600
|
#
|
|
@@ -655,6 +669,9 @@ module Moov
|
|
|
655
669
|
req.headers.merge!(headers)
|
|
656
670
|
req.options.timeout = timeout unless timeout.nil?
|
|
657
671
|
Utils.configure_request_security(req, security)
|
|
672
|
+
http_headers&.each do |key, value|
|
|
673
|
+
req.headers[key.to_s] = value
|
|
674
|
+
end
|
|
658
675
|
|
|
659
676
|
@sdk_configuration.hooks.before_request(
|
|
660
677
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -740,5 +757,5 @@ module Moov
|
|
|
740
757
|
|
|
741
758
|
end
|
|
742
759
|
end
|
|
743
|
-
|
|
760
|
+
end
|
|
744
761
|
end
|