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.
- 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 +2 -1
- 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/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/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 +4 -3
- 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.rb +2 -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/scheduling.rb +33 -13
- 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
- metadata +28 -8
- data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94478ced3884bdd6e30a3a06dc1a10eb6cfe0d9cef225253c96e87c16ecb5d01
|
|
4
|
+
data.tar.gz: 46fc4d5de3b84133f3690f519376a40712b3ca5b8975ecbae546b62d3ce451c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95bee40c0197138fcb97273aa650b4995f264c79837b4d53481ca0e194488aec48ce4e5bfeac0e0262da4e48dde30ad7eb8b65d07ed080747805d385d7dcdaef
|
|
7
|
+
data.tar.gz: 54b8fe72067f86bceb2c1fe687a32eb4e2930990a40df29e8162bcf0a81e5854b9ab9343c9b5a57d1aabc5e794b611db706c32aa3c49b11ab1eab6f86d6f1547
|
data/lib/crystalline/types.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Crystalline
|
|
|
14
14
|
|
|
15
15
|
class Hash
|
|
16
16
|
attr_accessor :key_type, :value_type
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
def initialize(key_type, value_type)
|
|
19
19
|
@key_type = key_type
|
|
20
20
|
@value_type = value_type
|
|
@@ -23,7 +23,7 @@ module Crystalline
|
|
|
23
23
|
|
|
24
24
|
class Union
|
|
25
25
|
attr_accessor :types
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
def initialize(*types)
|
|
28
28
|
@types = types
|
|
29
29
|
end
|
|
@@ -31,7 +31,7 @@ module Crystalline
|
|
|
31
31
|
|
|
32
32
|
class Nilable
|
|
33
33
|
attr_accessor :inner_type
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
def initialize(inner_type)
|
|
36
36
|
@inner_type = inner_type
|
|
37
37
|
end
|
|
@@ -142,6 +142,14 @@ module Crystalline
|
|
|
142
142
|
@val
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
def to_s
|
|
146
|
+
serialize.to_s
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def inspect
|
|
150
|
+
"#<#{self.class} #{serialize.inspect}>"
|
|
151
|
+
end
|
|
152
|
+
|
|
145
153
|
def known?
|
|
146
154
|
self.class.instance_variable_get(:@mapping)&.value?(self) || false
|
|
147
155
|
end
|
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(link_account_terminal_application: Models::Components::LinkAccountTerminalApplication, 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::LinkAccountTerminalApplicationResponse) }
|
|
45
|
+
def link(link_account_terminal_application:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# link - Link an account with a terminal application.
|
|
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(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAccountTerminalApplicationsResponse) }
|
|
207
|
-
def list(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
211
|
+
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::ListAccountTerminalApplicationsResponse) }
|
|
212
|
+
def list(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
208
213
|
# list - Retrieve all terminal applications linked to a specific account.
|
|
209
214
|
#
|
|
210
215
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -252,6 +257,9 @@ module Moov
|
|
|
252
257
|
req.headers.merge!(headers)
|
|
253
258
|
req.options.timeout = timeout unless timeout.nil?
|
|
254
259
|
Utils.configure_request_security(req, security)
|
|
260
|
+
http_headers&.each do |key, value|
|
|
261
|
+
req.headers[key.to_s] = value
|
|
262
|
+
end
|
|
255
263
|
|
|
256
264
|
@sdk_configuration.hooks.before_request(
|
|
257
265
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -324,8 +332,8 @@ module Moov
|
|
|
324
332
|
end
|
|
325
333
|
|
|
326
334
|
|
|
327
|
-
sig { params(account_id: ::String, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountTerminalApplicationResponse) }
|
|
328
|
-
def get(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
|
|
335
|
+
sig { params(account_id: ::String, terminal_application_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::GetAccountTerminalApplicationResponse) }
|
|
336
|
+
def get(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
329
337
|
# get - Verifies if a specific Terminal Application is linked to an Account. This endpoint acts as a validation check for the link's existence.
|
|
330
338
|
#
|
|
331
339
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -374,6 +382,9 @@ module Moov
|
|
|
374
382
|
req.headers.merge!(headers)
|
|
375
383
|
req.options.timeout = timeout unless timeout.nil?
|
|
376
384
|
Utils.configure_request_security(req, security)
|
|
385
|
+
http_headers&.each do |key, value|
|
|
386
|
+
req.headers[key.to_s] = value
|
|
387
|
+
end
|
|
377
388
|
|
|
378
389
|
@sdk_configuration.hooks.before_request(
|
|
379
390
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -446,8 +457,8 @@ module Moov
|
|
|
446
457
|
end
|
|
447
458
|
|
|
448
459
|
|
|
449
|
-
sig { params(account_id: ::String, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTerminalConfigurationResponse) }
|
|
450
|
-
def get_configuration(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
|
|
460
|
+
sig { params(account_id: ::String, terminal_application_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::GetTerminalConfigurationResponse) }
|
|
461
|
+
def get_configuration(account_id:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
451
462
|
# get_configuration - Fetch the configuration for a given Terminal Application linked to a specific Account.
|
|
452
463
|
#
|
|
453
464
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -496,6 +507,9 @@ module Moov
|
|
|
496
507
|
req.headers.merge!(headers)
|
|
497
508
|
req.options.timeout = timeout unless timeout.nil?
|
|
498
509
|
Utils.configure_request_security(req, security)
|
|
510
|
+
http_headers&.each do |key, value|
|
|
511
|
+
req.headers[key.to_s] = value
|
|
512
|
+
end
|
|
499
513
|
|
|
500
514
|
@sdk_configuration.hooks.before_request(
|
|
501
515
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -566,5 +580,5 @@ module Moov
|
|
|
566
580
|
|
|
567
581
|
end
|
|
568
582
|
end
|
|
569
|
-
|
|
583
|
+
end
|
|
570
584
|
end
|
data/lib/moov/accounts.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_account: Models::Components::CreateAccount, 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::CreateAccountResponse) }
|
|
45
|
+
def create(create_account:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
|
|
45
47
|
# information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
46
48
|
#
|
|
@@ -105,6 +107,9 @@ module Moov
|
|
|
105
107
|
req.headers.merge!(headers)
|
|
106
108
|
req.options.timeout = timeout unless timeout.nil?
|
|
107
109
|
Utils.configure_request_security(req, security)
|
|
110
|
+
http_headers&.each do |key, value|
|
|
111
|
+
req.headers[key.to_s] = value
|
|
112
|
+
end
|
|
108
113
|
|
|
109
114
|
@sdk_configuration.hooks.before_request(
|
|
110
115
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -207,8 +212,8 @@ module Moov
|
|
|
207
212
|
end
|
|
208
213
|
|
|
209
214
|
|
|
210
|
-
sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListAccountsResponse) }
|
|
211
|
-
def list(request:, timeout_ms: nil)
|
|
215
|
+
sig { params(request: Models::Operations::ListAccountsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListAccountsResponse) }
|
|
216
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
212
217
|
# list - List or search accounts to which the caller is connected.
|
|
213
218
|
#
|
|
214
219
|
# All supported query parameters are optional. If none are provided the response will include all connected accounts.
|
|
@@ -252,6 +257,9 @@ module Moov
|
|
|
252
257
|
req.options.timeout = timeout unless timeout.nil?
|
|
253
258
|
req.params = query_params
|
|
254
259
|
Utils.configure_request_security(req, security)
|
|
260
|
+
http_headers&.each do |key, value|
|
|
261
|
+
req.headers[key.to_s] = value
|
|
262
|
+
end
|
|
255
263
|
|
|
256
264
|
@sdk_configuration.hooks.before_request(
|
|
257
265
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -324,8 +332,8 @@ module Moov
|
|
|
324
332
|
end
|
|
325
333
|
|
|
326
334
|
|
|
327
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountResponse) }
|
|
328
|
-
def get(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
335
|
+
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::GetAccountResponse) }
|
|
336
|
+
def get(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
329
337
|
# get - Retrieves details for the account with the specified ID.
|
|
330
338
|
#
|
|
331
339
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
@@ -373,6 +381,9 @@ module Moov
|
|
|
373
381
|
req.headers.merge!(headers)
|
|
374
382
|
req.options.timeout = timeout unless timeout.nil?
|
|
375
383
|
Utils.configure_request_security(req, security)
|
|
384
|
+
http_headers&.each do |key, value|
|
|
385
|
+
req.headers[key.to_s] = value
|
|
386
|
+
end
|
|
376
387
|
|
|
377
388
|
@sdk_configuration.hooks.before_request(
|
|
378
389
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -445,8 +456,8 @@ module Moov
|
|
|
445
456
|
end
|
|
446
457
|
|
|
447
458
|
|
|
448
|
-
sig { params(patch_account: Models::Components::PatchAccount, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateAccountResponse) }
|
|
449
|
-
def update(patch_account:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
459
|
+
sig { params(patch_account: Models::Components::PatchAccount, 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::UpdateAccountResponse) }
|
|
460
|
+
def update(patch_account:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
450
461
|
# update - When **can** profile data be updated:
|
|
451
462
|
# + For unverified accounts, all profile data can be edited.
|
|
452
463
|
# + During the verification process, missing or incomplete profile data can be edited.
|
|
@@ -515,6 +526,9 @@ module Moov
|
|
|
515
526
|
req.headers.merge!(headers)
|
|
516
527
|
req.options.timeout = timeout unless timeout.nil?
|
|
517
528
|
Utils.configure_request_security(req, security)
|
|
529
|
+
http_headers&.each do |key, value|
|
|
530
|
+
req.headers[key.to_s] = value
|
|
531
|
+
end
|
|
518
532
|
|
|
519
533
|
@sdk_configuration.hooks.before_request(
|
|
520
534
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -617,8 +631,8 @@ module Moov
|
|
|
617
631
|
end
|
|
618
632
|
|
|
619
633
|
|
|
620
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DisconnectAccountResponse) }
|
|
621
|
-
def disconnect(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
634
|
+
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::DisconnectAccountResponse) }
|
|
635
|
+
def disconnect(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
622
636
|
# disconnect - This will sever the connection between you and the account specified and it will no longer be listed as
|
|
623
637
|
# active in the list of accounts. This also means you'll only have read-only access to the account going
|
|
624
638
|
# forward for reporting purposes.
|
|
@@ -668,6 +682,9 @@ module Moov
|
|
|
668
682
|
req.headers.merge!(headers)
|
|
669
683
|
req.options.timeout = timeout unless timeout.nil?
|
|
670
684
|
Utils.configure_request_security(req, security)
|
|
685
|
+
http_headers&.each do |key, value|
|
|
686
|
+
req.headers[key.to_s] = value
|
|
687
|
+
end
|
|
671
688
|
|
|
672
689
|
@sdk_configuration.hooks.before_request(
|
|
673
690
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -746,8 +763,8 @@ module Moov
|
|
|
746
763
|
end
|
|
747
764
|
|
|
748
765
|
|
|
749
|
-
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
|
|
750
|
-
def list_connected(request:, timeout_ms: nil)
|
|
766
|
+
sig { params(request: Models::Operations::ListConnectedAccountsForAccountRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListConnectedAccountsForAccountResponse) }
|
|
767
|
+
def list_connected(request:, timeout_ms: nil, http_headers: nil)
|
|
751
768
|
# list_connected - List or search accounts to which the caller is connected.
|
|
752
769
|
#
|
|
753
770
|
# All supported query parameters are optional. If none are provided the response will include all connected accounts.
|
|
@@ -797,6 +814,9 @@ module Moov
|
|
|
797
814
|
req.options.timeout = timeout unless timeout.nil?
|
|
798
815
|
req.params = query_params
|
|
799
816
|
Utils.configure_request_security(req, security)
|
|
817
|
+
http_headers&.each do |key, value|
|
|
818
|
+
req.headers[key.to_s] = value
|
|
819
|
+
end
|
|
800
820
|
|
|
801
821
|
@sdk_configuration.hooks.before_request(
|
|
802
822
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -869,8 +889,8 @@ module Moov
|
|
|
869
889
|
end
|
|
870
890
|
|
|
871
891
|
|
|
872
|
-
sig { params(share_scopes: Models::Components::ShareScopes, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ConnectAccountResponse) }
|
|
873
|
-
def connect(share_scopes:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
892
|
+
sig { params(share_scopes: Models::Components::ShareScopes, 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::ConnectAccountResponse) }
|
|
893
|
+
def connect(share_scopes:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
874
894
|
# connect - Shares access scopes from the account specified to the caller, establishing a connection
|
|
875
895
|
# between the two accounts with the specified permissions.
|
|
876
896
|
request = Models::Operations::ConnectAccountRequest.new(
|
|
@@ -929,6 +949,9 @@ module Moov
|
|
|
929
949
|
req.headers.merge!(headers)
|
|
930
950
|
req.options.timeout = timeout unless timeout.nil?
|
|
931
951
|
Utils.configure_request_security(req, security)
|
|
952
|
+
http_headers&.each do |key, value|
|
|
953
|
+
req.headers[key.to_s] = value
|
|
954
|
+
end
|
|
932
955
|
|
|
933
956
|
@sdk_configuration.hooks.before_request(
|
|
934
957
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1022,8 +1045,8 @@ module Moov
|
|
|
1022
1045
|
end
|
|
1023
1046
|
|
|
1024
1047
|
|
|
1025
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAccountCountriesResponse) }
|
|
1026
|
-
def get_countries(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1048
|
+
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::GetAccountCountriesResponse) }
|
|
1049
|
+
def get_countries(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
1027
1050
|
# get_countries - Retrieve the specified countries of operation for an account.
|
|
1028
1051
|
#
|
|
1029
1052
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -1071,6 +1094,9 @@ module Moov
|
|
|
1071
1094
|
req.headers.merge!(headers)
|
|
1072
1095
|
req.options.timeout = timeout unless timeout.nil?
|
|
1073
1096
|
Utils.configure_request_security(req, security)
|
|
1097
|
+
http_headers&.each do |key, value|
|
|
1098
|
+
req.headers[key.to_s] = value
|
|
1099
|
+
end
|
|
1074
1100
|
|
|
1075
1101
|
@sdk_configuration.hooks.before_request(
|
|
1076
1102
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1143,8 +1169,8 @@ module Moov
|
|
|
1143
1169
|
end
|
|
1144
1170
|
|
|
1145
1171
|
|
|
1146
|
-
sig { params(account_countries: Models::Components::AccountCountries, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::AssignAccountCountriesResponse) }
|
|
1147
|
-
def assign_countries(account_countries:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1172
|
+
sig { params(account_countries: Models::Components::AccountCountries, 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::AssignAccountCountriesResponse) }
|
|
1173
|
+
def assign_countries(account_countries:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
1148
1174
|
# assign_countries - Assign the countries of operation for an account.
|
|
1149
1175
|
#
|
|
1150
1176
|
# This endpoint will always overwrite the previously assigned values.
|
|
@@ -1207,6 +1233,9 @@ module Moov
|
|
|
1207
1233
|
req.headers.merge!(headers)
|
|
1208
1234
|
req.options.timeout = timeout unless timeout.nil?
|
|
1209
1235
|
Utils.configure_request_security(req, security)
|
|
1236
|
+
http_headers&.each do |key, value|
|
|
1237
|
+
req.headers[key.to_s] = value
|
|
1238
|
+
end
|
|
1210
1239
|
|
|
1211
1240
|
@sdk_configuration.hooks.before_request(
|
|
1212
1241
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1309,8 +1338,8 @@ module Moov
|
|
|
1309
1338
|
end
|
|
1310
1339
|
|
|
1311
1340
|
|
|
1312
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetMerchantProcessingAgreementResponse) }
|
|
1313
|
-
def get_merchant_processing_agreement(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1341
|
+
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::GetMerchantProcessingAgreementResponse) }
|
|
1342
|
+
def get_merchant_processing_agreement(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
1314
1343
|
# get_merchant_processing_agreement - Retrieve a merchant account's processing agreement.
|
|
1315
1344
|
#
|
|
1316
1345
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -1358,6 +1387,9 @@ module Moov
|
|
|
1358
1387
|
req.headers.merge!(headers)
|
|
1359
1388
|
req.options.timeout = timeout unless timeout.nil?
|
|
1360
1389
|
Utils.configure_request_security(req, security)
|
|
1390
|
+
http_headers&.each do |key, value|
|
|
1391
|
+
req.headers[key.to_s] = value
|
|
1392
|
+
end
|
|
1361
1393
|
|
|
1362
1394
|
@sdk_configuration.hooks.before_request(
|
|
1363
1395
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1428,8 +1460,8 @@ module Moov
|
|
|
1428
1460
|
end
|
|
1429
1461
|
|
|
1430
1462
|
|
|
1431
|
-
sig { params(x_moov_version: T.nilable(::String), origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
|
|
1432
|
-
def get_terms_of_service_token(x_moov_version: nil, origin: nil, referer: nil, timeout_ms: nil)
|
|
1463
|
+
sig { params(x_moov_version: T.nilable(::String), origin: T.nilable(::String), referer: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetTermsOfServiceTokenResponse) }
|
|
1464
|
+
def get_terms_of_service_token(x_moov_version: nil, origin: nil, referer: nil, timeout_ms: nil, http_headers: nil)
|
|
1433
1465
|
# get_terms_of_service_token - Generates a non-expiring token that can then be used to accept Moov's terms of service.
|
|
1434
1466
|
#
|
|
1435
1467
|
# This token can only be generated via API. Any Moov account requesting the collect funds, send funds, wallet,
|
|
@@ -1473,6 +1505,9 @@ module Moov
|
|
|
1473
1505
|
req.headers.merge!(headers)
|
|
1474
1506
|
req.options.timeout = timeout unless timeout.nil?
|
|
1475
1507
|
Utils.configure_request_security(req, security)
|
|
1508
|
+
http_headers&.each do |key, value|
|
|
1509
|
+
req.headers[key.to_s] = value
|
|
1510
|
+
end
|
|
1476
1511
|
|
|
1477
1512
|
@sdk_configuration.hooks.before_request(
|
|
1478
1513
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1543,5 +1578,5 @@ module Moov
|
|
|
1543
1578
|
|
|
1544
1579
|
end
|
|
1545
1580
|
end
|
|
1546
|
-
|
|
1581
|
+
end
|
|
1547
1582
|
end
|
data/lib/moov/adjustments.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), wallet_id: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListAdjustmentsResponse) }
|
|
45
|
+
def list(account_id:, x_moov_version: nil, wallet_id: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - List adjustments 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/)
|
|
@@ -91,6 +93,9 @@ module Moov
|
|
|
91
93
|
req.options.timeout = timeout unless timeout.nil?
|
|
92
94
|
req.params = query_params
|
|
93
95
|
Utils.configure_request_security(req, security)
|
|
96
|
+
http_headers&.each do |key, value|
|
|
97
|
+
req.headers[key.to_s] = value
|
|
98
|
+
end
|
|
94
99
|
|
|
95
100
|
@sdk_configuration.hooks.before_request(
|
|
96
101
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -163,8 +168,8 @@ module Moov
|
|
|
163
168
|
end
|
|
164
169
|
|
|
165
170
|
|
|
166
|
-
sig { params(account_id: ::String, adjustment_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetAdjustmentResponse) }
|
|
167
|
-
def get(account_id:, adjustment_id:, x_moov_version: nil, timeout_ms: nil)
|
|
171
|
+
sig { params(account_id: ::String, adjustment_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::GetAdjustmentResponse) }
|
|
172
|
+
def get(account_id:, adjustment_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
168
173
|
# get - Retrieve a specific adjustment associated with a Moov account.
|
|
169
174
|
#
|
|
170
175
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -213,6 +218,9 @@ module Moov
|
|
|
213
218
|
req.headers.merge!(headers)
|
|
214
219
|
req.options.timeout = timeout unless timeout.nil?
|
|
215
220
|
Utils.configure_request_security(req, security)
|
|
221
|
+
http_headers&.each do |key, value|
|
|
222
|
+
req.headers[key.to_s] = value
|
|
223
|
+
end
|
|
216
224
|
|
|
217
225
|
@sdk_configuration.hooks.before_request(
|
|
218
226
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -283,5 +291,5 @@ module Moov
|
|
|
283
291
|
|
|
284
292
|
end
|
|
285
293
|
end
|
|
286
|
-
|
|
294
|
+
end
|
|
287
295
|
end
|
data/lib/moov/apple_pay.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(register_apple_pay_merchant_domains: Models::Components::RegisterApplePayMerchantDomains, 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::RegisterApplePayMerchantDomainsResponse) }
|
|
45
|
+
def register_merchant_domains(register_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# register_merchant_domains - Add domains to be registered with Apple Pay.
|
|
45
47
|
#
|
|
46
48
|
# Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
@@ -104,6 +106,9 @@ module Moov
|
|
|
104
106
|
req.headers.merge!(headers)
|
|
105
107
|
req.options.timeout = timeout unless timeout.nil?
|
|
106
108
|
Utils.configure_request_security(req, security)
|
|
109
|
+
http_headers&.each do |key, value|
|
|
110
|
+
req.headers[key.to_s] = value
|
|
111
|
+
end
|
|
107
112
|
|
|
108
113
|
@sdk_configuration.hooks.before_request(
|
|
109
114
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -191,8 +196,8 @@ module Moov
|
|
|
191
196
|
end
|
|
192
197
|
|
|
193
198
|
|
|
194
|
-
sig { params(update_apple_pay_merchant_domains: Models::Components::UpdateApplePayMerchantDomains, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateApplePayMerchantDomainsResponse) }
|
|
195
|
-
def update_merchant_domains(update_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
199
|
+
sig { params(update_apple_pay_merchant_domains: Models::Components::UpdateApplePayMerchantDomains, 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::UpdateApplePayMerchantDomainsResponse) }
|
|
200
|
+
def update_merchant_domains(update_apple_pay_merchant_domains:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
196
201
|
# update_merchant_domains - Add or remove domains to be registered with Apple Pay.
|
|
197
202
|
#
|
|
198
203
|
# Any domains that will be used to accept payments must first be [verified](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains)
|
|
@@ -256,6 +261,9 @@ module Moov
|
|
|
256
261
|
req.headers.merge!(headers)
|
|
257
262
|
req.options.timeout = timeout unless timeout.nil?
|
|
258
263
|
Utils.configure_request_security(req, security)
|
|
264
|
+
http_headers&.each do |key, value|
|
|
265
|
+
req.headers[key.to_s] = value
|
|
266
|
+
end
|
|
259
267
|
|
|
260
268
|
@sdk_configuration.hooks.before_request(
|
|
261
269
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -334,8 +342,8 @@ module Moov
|
|
|
334
342
|
end
|
|
335
343
|
|
|
336
344
|
|
|
337
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetApplePayMerchantDomainsResponse) }
|
|
338
|
-
def get_merchant_domains(account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
345
|
+
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::GetApplePayMerchantDomainsResponse) }
|
|
346
|
+
def get_merchant_domains(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
339
347
|
# get_merchant_domains - Get domains registered with Apple Pay.
|
|
340
348
|
#
|
|
341
349
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
@@ -385,6 +393,9 @@ module Moov
|
|
|
385
393
|
req.headers.merge!(headers)
|
|
386
394
|
req.options.timeout = timeout unless timeout.nil?
|
|
387
395
|
Utils.configure_request_security(req, security)
|
|
396
|
+
http_headers&.each do |key, value|
|
|
397
|
+
req.headers[key.to_s] = value
|
|
398
|
+
end
|
|
388
399
|
|
|
389
400
|
@sdk_configuration.hooks.before_request(
|
|
390
401
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -457,8 +468,8 @@ module Moov
|
|
|
457
468
|
end
|
|
458
469
|
|
|
459
470
|
|
|
460
|
-
sig { params(create_apple_pay_session: Models::Components::CreateApplePaySession, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateApplePaySessionResponse) }
|
|
461
|
-
def create_session(create_apple_pay_session:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
471
|
+
sig { params(create_apple_pay_session: Models::Components::CreateApplePaySession, 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::CreateApplePaySessionResponse) }
|
|
472
|
+
def create_session(create_apple_pay_session:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
462
473
|
# create_session - Create a session with Apple Pay to facilitate a payment.
|
|
463
474
|
#
|
|
464
475
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
@@ -522,6 +533,9 @@ module Moov
|
|
|
522
533
|
req.headers.merge!(headers)
|
|
523
534
|
req.options.timeout = timeout unless timeout.nil?
|
|
524
535
|
Utils.configure_request_security(req, security)
|
|
536
|
+
http_headers&.each do |key, value|
|
|
537
|
+
req.headers[key.to_s] = value
|
|
538
|
+
end
|
|
525
539
|
|
|
526
540
|
@sdk_configuration.hooks.before_request(
|
|
527
541
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -609,8 +623,8 @@ module Moov
|
|
|
609
623
|
end
|
|
610
624
|
|
|
611
625
|
|
|
612
|
-
sig { params(link_apple_pay: Models::Components::LinkApplePay, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::LinkApplePayTokenResponse) }
|
|
613
|
-
def link_token(link_apple_pay:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
626
|
+
sig { params(link_apple_pay: Models::Components::LinkApplePay, 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::LinkApplePayTokenResponse) }
|
|
627
|
+
def link_token(link_apple_pay:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
614
628
|
# link_token - Connect an Apple Pay token to the specified account.
|
|
615
629
|
#
|
|
616
630
|
# Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
@@ -674,6 +688,9 @@ module Moov
|
|
|
674
688
|
req.headers.merge!(headers)
|
|
675
689
|
req.options.timeout = timeout unless timeout.nil?
|
|
676
690
|
Utils.configure_request_security(req, security)
|
|
691
|
+
http_headers&.each do |key, value|
|
|
692
|
+
req.headers[key.to_s] = value
|
|
693
|
+
end
|
|
677
694
|
|
|
678
695
|
@sdk_configuration.hooks.before_request(
|
|
679
696
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -774,5 +791,5 @@ module Moov
|
|
|
774
791
|
|
|
775
792
|
end
|
|
776
793
|
end
|
|
777
|
-
|
|
794
|
+
end
|
|
778
795
|
end
|
data/lib/moov/authentication.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(revoke_token_request: Models::Components::RevokeTokenRequest, 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::RevokeAccessTokenResponse) }
|
|
45
|
+
def revoke_access_token(revoke_token_request:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# revoke_access_token - Revoke an auth token.
|
|
45
47
|
#
|
|
46
48
|
# Allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed.
|
|
@@ -93,6 +95,9 @@ module Moov
|
|
|
93
95
|
req.headers.merge!(headers)
|
|
94
96
|
req.options.timeout = timeout unless timeout.nil?
|
|
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(
|
|
@@ -186,8 +191,8 @@ module Moov
|
|
|
186
191
|
end
|
|
187
192
|
|
|
188
193
|
|
|
189
|
-
sig { params(auth_token_request: Models::Components::AuthTokenRequest, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateAccessTokenResponse) }
|
|
190
|
-
def create_access_token(auth_token_request:, x_moov_version: nil, timeout_ms: nil)
|
|
194
|
+
sig { params(auth_token_request: Models::Components::AuthTokenRequest, 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::CreateAccessTokenResponse) }
|
|
195
|
+
def create_access_token(auth_token_request:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
191
196
|
# create_access_token - Create or refresh an access token.
|
|
192
197
|
request = Models::Operations::CreateAccessTokenRequest.new(
|
|
193
198
|
auth_token_request: auth_token_request,
|
|
@@ -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(
|
|
@@ -338,5 +346,5 @@ module Moov
|
|
|
338
346
|
|
|
339
347
|
end
|
|
340
348
|
end
|
|
341
|
-
|
|
349
|
+
end
|
|
342
350
|
end
|
data/lib/moov/avatars.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(unique_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::GetAvatarResponse) }
|
|
45
|
+
def get(unique_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# get - Get avatar image for an account using a unique ID.
|
|
45
47
|
#
|
|
46
48
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -88,6 +90,9 @@ module Moov
|
|
|
88
90
|
req.headers.merge!(headers)
|
|
89
91
|
req.options.timeout = timeout unless timeout.nil?
|
|
90
92
|
Utils.configure_request_security(req, security)
|
|
93
|
+
http_headers&.each do |key, value|
|
|
94
|
+
req.headers[key.to_s] = value
|
|
95
|
+
end
|
|
91
96
|
|
|
92
97
|
@sdk_configuration.hooks.before_request(
|
|
93
98
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -156,5 +161,5 @@ module Moov
|
|
|
156
161
|
|
|
157
162
|
end
|
|
158
163
|
end
|
|
159
|
-
|
|
164
|
+
end
|
|
160
165
|
end
|