moov_ruby 26.4.0.pre.dev.8 → 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/billablefee.rb +1 -1
- data/lib/moov/models/components/createfeeplanagreement.rb +1 -1
- data/lib/moov/models/components/createinvoicelineitem.rb +2 -1
- data/lib/moov/models/components/createpaymentlinklineitem.rb +3 -2
- data/lib/moov/models/components/createpaymentlinklineitemoption.rb +1 -1
- data/lib/moov/models/components/createscheduledtransferlineitem.rb +4 -1
- data/lib/moov/models/components/createscheduledtransferlineitemoption.rb +4 -1
- data/lib/moov/models/components/createtransferlineitem.rb +4 -1
- data/lib/moov/models/components/createtransferlineitemoption.rb +4 -1
- data/lib/moov/models/components/feecategory.rb +1 -0
- data/lib/moov/models/components/feeplan.rb +1 -1
- data/lib/moov/models/components/feeplanagreement.rb +3 -3
- data/lib/moov/models/components/generatedby.rb +6 -6
- data/lib/moov/models/components/incurredfee.rb +1 -1
- 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/partnerpricingagreement.rb +3 -3
- 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/wallettransactiontype.rb +0 -1
- data/lib/moov/models/components.rb +4 -3
- data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
- 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
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_terminal_application: Models::Components::CreateTerminalApplication, 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::CreateTerminalApplicationResponse) }
|
|
45
|
+
def create(create_terminal_application:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Create a new terminal application.
|
|
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::ListTerminalApplicationsResponse) }
|
|
200
|
-
def list(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::ListTerminalApplicationsResponse) }
|
|
205
|
+
def list(x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
201
206
|
# list - List all the terminal applications for a Moov 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(terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTerminalApplicationResponse) }
|
|
314
|
-
def get(terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
|
|
321
|
+
sig { params(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::GetTerminalApplicationResponse) }
|
|
322
|
+
def get(terminal_application_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
315
323
|
# get - Fetch a specific terminal application.
|
|
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(terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeleteTerminalApplicationResponse) }
|
|
435
|
-
def delete(terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
|
|
445
|
+
sig { params(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::DeleteTerminalApplicationResponse) }
|
|
446
|
+
def delete(terminal_application_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
436
447
|
# delete - Delete a specific terminal application.
|
|
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(
|
|
@@ -558,8 +572,8 @@ module Moov
|
|
|
558
572
|
end
|
|
559
573
|
|
|
560
574
|
|
|
561
|
-
sig { params(terminal_application_version: Models::Components::TerminalApplicationVersion, terminal_application_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateTerminalApplicationVersionResponse) }
|
|
562
|
-
def create_version(terminal_application_version:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil)
|
|
575
|
+
sig { params(terminal_application_version: Models::Components::TerminalApplicationVersion, 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::CreateTerminalApplicationVersionResponse) }
|
|
576
|
+
def create_version(terminal_application_version:, terminal_application_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
563
577
|
# create_version - Register a new version of a terminal application. For Android applications, this is used to register a new version code of the application.
|
|
564
578
|
#
|
|
565
579
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -620,6 +634,9 @@ module Moov
|
|
|
620
634
|
req.headers.merge!(headers)
|
|
621
635
|
req.options.timeout = timeout unless timeout.nil?
|
|
622
636
|
Utils.configure_request_security(req, security)
|
|
637
|
+
http_headers&.each do |key, value|
|
|
638
|
+
req.headers[key.to_s] = value
|
|
639
|
+
end
|
|
623
640
|
|
|
624
641
|
@sdk_configuration.hooks.before_request(
|
|
625
642
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -720,5 +737,5 @@ module Moov
|
|
|
720
737
|
|
|
721
738
|
end
|
|
722
739
|
end
|
|
723
|
-
|
|
740
|
+
end
|
|
724
741
|
end
|
data/lib/moov/transfers.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_transfer_options: Models::Components::CreateTransferOptions, 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::CreateTransferOptionsResponse) }
|
|
45
|
+
def generate_options(create_transfer_options:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# generate_options - Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
45
47
|
# supply in the request body.
|
|
46
48
|
#
|
|
@@ -106,6 +108,9 @@ module Moov
|
|
|
106
108
|
req.headers.merge!(headers)
|
|
107
109
|
req.options.timeout = timeout unless timeout.nil?
|
|
108
110
|
Utils.configure_request_security(req, security)
|
|
111
|
+
http_headers&.each do |key, value|
|
|
112
|
+
req.headers[key.to_s] = value
|
|
113
|
+
end
|
|
109
114
|
|
|
110
115
|
@sdk_configuration.hooks.before_request(
|
|
111
116
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -208,8 +213,8 @@ module Moov
|
|
|
208
213
|
end
|
|
209
214
|
|
|
210
215
|
|
|
211
|
-
sig { params(request: Models::Operations::CreateTransferRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateTransferResponse) }
|
|
212
|
-
def create(request:, timeout_ms: nil)
|
|
216
|
+
sig { params(request: Models::Operations::CreateTransferRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateTransferResponse) }
|
|
217
|
+
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
213
218
|
# create - Move money by providing the source, destination, and amount in the request body.
|
|
214
219
|
#
|
|
215
220
|
# Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
@@ -267,6 +272,9 @@ module Moov
|
|
|
267
272
|
req.headers.merge!(headers)
|
|
268
273
|
req.options.timeout = timeout unless timeout.nil?
|
|
269
274
|
Utils.configure_request_security(req, security)
|
|
275
|
+
http_headers&.each do |key, value|
|
|
276
|
+
req.headers[key.to_s] = value
|
|
277
|
+
end
|
|
270
278
|
|
|
271
279
|
@sdk_configuration.hooks.before_request(
|
|
272
280
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -428,8 +436,8 @@ module Moov
|
|
|
428
436
|
end
|
|
429
437
|
|
|
430
438
|
|
|
431
|
-
sig { params(request: Models::Operations::ListTransfersRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListTransfersResponse) }
|
|
432
|
-
def list(request:, timeout_ms: nil)
|
|
439
|
+
sig { params(request: Models::Operations::ListTransfersRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListTransfersResponse) }
|
|
440
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
433
441
|
# list - List all the transfers associated with a particular Moov account.
|
|
434
442
|
#
|
|
435
443
|
# Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
@@ -482,6 +490,9 @@ module Moov
|
|
|
482
490
|
req.options.timeout = timeout unless timeout.nil?
|
|
483
491
|
req.params = query_params
|
|
484
492
|
Utils.configure_request_security(req, security)
|
|
493
|
+
http_headers&.each do |key, value|
|
|
494
|
+
req.headers[key.to_s] = value
|
|
495
|
+
end
|
|
485
496
|
|
|
486
497
|
@sdk_configuration.hooks.before_request(
|
|
487
498
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -569,8 +580,8 @@ module Moov
|
|
|
569
580
|
end
|
|
570
581
|
|
|
571
582
|
|
|
572
|
-
sig { params(transfer_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTransferResponse) }
|
|
573
|
-
def get(transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
583
|
+
sig { params(transfer_id: ::String, 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::GetTransferResponse) }
|
|
584
|
+
def get(transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
574
585
|
# get - Retrieve full transfer details for an individual transfer of a particular Moov account.
|
|
575
586
|
#
|
|
576
587
|
# Payment rail-specific details are included in the source and destination. Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/)
|
|
@@ -622,6 +633,9 @@ module Moov
|
|
|
622
633
|
req.headers.merge!(headers)
|
|
623
634
|
req.options.timeout = timeout unless timeout.nil?
|
|
624
635
|
Utils.configure_request_security(req, security)
|
|
636
|
+
http_headers&.each do |key, value|
|
|
637
|
+
req.headers[key.to_s] = value
|
|
638
|
+
end
|
|
625
639
|
|
|
626
640
|
@sdk_configuration.hooks.before_request(
|
|
627
641
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -694,8 +708,8 @@ module Moov
|
|
|
694
708
|
end
|
|
695
709
|
|
|
696
710
|
|
|
697
|
-
sig { params(patch_transfer: Models::Components::PatchTransfer, transfer_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateTransferResponse) }
|
|
698
|
-
def update(patch_transfer:, transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
711
|
+
sig { params(patch_transfer: Models::Components::PatchTransfer, transfer_id: ::String, 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::UpdateTransferResponse) }
|
|
712
|
+
def update(patch_transfer:, transfer_id:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
699
713
|
# update - Update the metadata contained on a transfer.
|
|
700
714
|
#
|
|
701
715
|
# Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
@@ -759,6 +773,9 @@ module Moov
|
|
|
759
773
|
req.headers.merge!(headers)
|
|
760
774
|
req.options.timeout = timeout unless timeout.nil?
|
|
761
775
|
Utils.configure_request_security(req, security)
|
|
776
|
+
http_headers&.each do |key, value|
|
|
777
|
+
req.headers[key.to_s] = value
|
|
778
|
+
end
|
|
762
779
|
|
|
763
780
|
@sdk_configuration.hooks.before_request(
|
|
764
781
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -846,8 +863,8 @@ module Moov
|
|
|
846
863
|
end
|
|
847
864
|
|
|
848
865
|
|
|
849
|
-
sig { params(account_id: ::String, transfer_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateCancellationResponse) }
|
|
850
|
-
def create_cancellation(account_id:, transfer_id:, x_moov_version: nil, timeout_ms: nil)
|
|
866
|
+
sig { params(account_id: ::String, transfer_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::CreateCancellationResponse) }
|
|
867
|
+
def create_cancellation(account_id:, transfer_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
851
868
|
# create_cancellation - Initiate a cancellation for a card, ACH, or queued transfer.
|
|
852
869
|
#
|
|
853
870
|
# To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
@@ -896,6 +913,9 @@ module Moov
|
|
|
896
913
|
req.headers.merge!(headers)
|
|
897
914
|
req.options.timeout = timeout unless timeout.nil?
|
|
898
915
|
Utils.configure_request_security(req, security)
|
|
916
|
+
http_headers&.each do |key, value|
|
|
917
|
+
req.headers[key.to_s] = value
|
|
918
|
+
end
|
|
899
919
|
|
|
900
920
|
@sdk_configuration.hooks.before_request(
|
|
901
921
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -983,8 +1003,8 @@ module Moov
|
|
|
983
1003
|
end
|
|
984
1004
|
|
|
985
1005
|
|
|
986
|
-
sig { params(account_id: ::String, transfer_id: ::String, cancellation_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetCancellationResponse) }
|
|
987
|
-
def get_cancellation(account_id:, transfer_id:, cancellation_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1006
|
+
sig { params(account_id: ::String, transfer_id: ::String, cancellation_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::GetCancellationResponse) }
|
|
1007
|
+
def get_cancellation(account_id:, transfer_id:, cancellation_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
988
1008
|
# get_cancellation - Get details of a cancellation for a transfer.
|
|
989
1009
|
#
|
|
990
1010
|
# To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
@@ -1034,6 +1054,9 @@ module Moov
|
|
|
1034
1054
|
req.headers.merge!(headers)
|
|
1035
1055
|
req.options.timeout = timeout unless timeout.nil?
|
|
1036
1056
|
Utils.configure_request_security(req, security)
|
|
1057
|
+
http_headers&.each do |key, value|
|
|
1058
|
+
req.headers[key.to_s] = value
|
|
1059
|
+
end
|
|
1037
1060
|
|
|
1038
1061
|
@sdk_configuration.hooks.before_request(
|
|
1039
1062
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1106,8 +1129,8 @@ module Moov
|
|
|
1106
1129
|
end
|
|
1107
1130
|
|
|
1108
1131
|
|
|
1109
|
-
sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::InitiateRefundResponse) }
|
|
1110
|
-
def initiate_refund(request:, timeout_ms: nil)
|
|
1132
|
+
sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateRefundResponse) }
|
|
1133
|
+
def initiate_refund(request:, timeout_ms: nil, http_headers: nil)
|
|
1111
1134
|
# initiate_refund - Initiate a refund for a card transfer.
|
|
1112
1135
|
#
|
|
1113
1136
|
# **Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
|
|
@@ -1165,6 +1188,9 @@ module Moov
|
|
|
1165
1188
|
req.headers.merge!(headers)
|
|
1166
1189
|
req.options.timeout = timeout unless timeout.nil?
|
|
1167
1190
|
Utils.configure_request_security(req, security)
|
|
1191
|
+
http_headers&.each do |key, value|
|
|
1192
|
+
req.headers[key.to_s] = value
|
|
1193
|
+
end
|
|
1168
1194
|
|
|
1169
1195
|
@sdk_configuration.hooks.before_request(
|
|
1170
1196
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1304,8 +1330,8 @@ module Moov
|
|
|
1304
1330
|
end
|
|
1305
1331
|
|
|
1306
1332
|
|
|
1307
|
-
sig { params(account_id: ::String, transfer_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListRefundsResponse) }
|
|
1308
|
-
def list_refunds(account_id:, transfer_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1333
|
+
sig { params(account_id: ::String, transfer_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::ListRefundsResponse) }
|
|
1334
|
+
def list_refunds(account_id:, transfer_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
1309
1335
|
# list_refunds - Get a list of refunds for a card transfer.
|
|
1310
1336
|
#
|
|
1311
1337
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -1354,6 +1380,9 @@ module Moov
|
|
|
1354
1380
|
req.headers.merge!(headers)
|
|
1355
1381
|
req.options.timeout = timeout unless timeout.nil?
|
|
1356
1382
|
Utils.configure_request_security(req, security)
|
|
1383
|
+
http_headers&.each do |key, value|
|
|
1384
|
+
req.headers[key.to_s] = value
|
|
1385
|
+
end
|
|
1357
1386
|
|
|
1358
1387
|
@sdk_configuration.hooks.before_request(
|
|
1359
1388
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1426,8 +1455,8 @@ module Moov
|
|
|
1426
1455
|
end
|
|
1427
1456
|
|
|
1428
1457
|
|
|
1429
|
-
sig { params(transfer_id: ::String, account_id: ::String, refund_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetRefundResponse) }
|
|
1430
|
-
def get_refund(transfer_id:, account_id:, refund_id:, x_moov_version: nil, timeout_ms: nil)
|
|
1458
|
+
sig { params(transfer_id: ::String, account_id: ::String, refund_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::GetRefundResponse) }
|
|
1459
|
+
def get_refund(transfer_id:, account_id:, refund_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
1431
1460
|
# get_refund - Get details of a refund for a card transfer.
|
|
1432
1461
|
#
|
|
1433
1462
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -1477,6 +1506,9 @@ module Moov
|
|
|
1477
1506
|
req.headers.merge!(headers)
|
|
1478
1507
|
req.options.timeout = timeout unless timeout.nil?
|
|
1479
1508
|
Utils.configure_request_security(req, security)
|
|
1509
|
+
http_headers&.each do |key, value|
|
|
1510
|
+
req.headers[key.to_s] = value
|
|
1511
|
+
end
|
|
1480
1512
|
|
|
1481
1513
|
@sdk_configuration.hooks.before_request(
|
|
1482
1514
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1549,8 +1581,8 @@ module Moov
|
|
|
1549
1581
|
end
|
|
1550
1582
|
|
|
1551
1583
|
|
|
1552
|
-
sig { params(request: Models::Operations::CreateReversalRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateReversalResponse) }
|
|
1553
|
-
def create_reversal(request:, timeout_ms: nil)
|
|
1584
|
+
sig { params(request: Models::Operations::CreateReversalRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateReversalResponse) }
|
|
1585
|
+
def create_reversal(request:, timeout_ms: nil, http_headers: nil)
|
|
1554
1586
|
# create_reversal - Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
|
|
1555
1587
|
# Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
|
|
1556
1588
|
# to learn more.
|
|
@@ -1607,6 +1639,9 @@ module Moov
|
|
|
1607
1639
|
req.headers.merge!(headers)
|
|
1608
1640
|
req.options.timeout = timeout unless timeout.nil?
|
|
1609
1641
|
Utils.configure_request_security(req, security)
|
|
1642
|
+
http_headers&.each do |key, value|
|
|
1643
|
+
req.headers[key.to_s] = value
|
|
1644
|
+
end
|
|
1610
1645
|
|
|
1611
1646
|
@sdk_configuration.hooks.before_request(
|
|
1612
1647
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -1707,5 +1742,5 @@ module Moov
|
|
|
1707
1742
|
|
|
1708
1743
|
end
|
|
1709
1744
|
end
|
|
1710
|
-
|
|
1745
|
+
end
|
|
1711
1746
|
end
|
data/lib/moov/underwriting.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), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetUnderwritingResponse) }
|
|
45
|
+
def get(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# get - Retrieve underwriting associated with a given Moov account.
|
|
45
47
|
#
|
|
46
48
|
# Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
|
|
@@ -90,6 +92,9 @@ module Moov
|
|
|
90
92
|
req.headers.merge!(headers)
|
|
91
93
|
req.options.timeout = timeout unless timeout.nil?
|
|
92
94
|
Utils.configure_request_security(req, security)
|
|
95
|
+
http_headers&.each do |key, value|
|
|
96
|
+
req.headers[key.to_s] = value
|
|
97
|
+
end
|
|
93
98
|
|
|
94
99
|
@sdk_configuration.hooks.before_request(
|
|
95
100
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -162,8 +167,8 @@ module Moov
|
|
|
162
167
|
end
|
|
163
168
|
|
|
164
169
|
|
|
165
|
-
sig { params(upsert_underwriting: Models::Components::UpsertUnderwriting, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::SaveUnderwritingResponse) }
|
|
166
|
-
def save(upsert_underwriting:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
170
|
+
sig { params(upsert_underwriting: Models::Components::UpsertUnderwriting, 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::SaveUnderwritingResponse) }
|
|
171
|
+
def save(upsert_underwriting:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
167
172
|
# save - Create or update the account's underwriting.
|
|
168
173
|
#
|
|
169
174
|
# Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
|
|
@@ -226,6 +231,9 @@ module Moov
|
|
|
226
231
|
req.headers.merge!(headers)
|
|
227
232
|
req.options.timeout = timeout unless timeout.nil?
|
|
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(
|
|
@@ -328,8 +336,8 @@ module Moov
|
|
|
328
336
|
end
|
|
329
337
|
|
|
330
338
|
|
|
331
|
-
sig { params(update_underwriting: Models::Components::UpdateUnderwriting, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpsertUnderwritingResponse) }
|
|
332
|
-
def upsert(update_underwriting:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
339
|
+
sig { params(update_underwriting: Models::Components::UpdateUnderwriting, 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::UpsertUnderwritingResponse) }
|
|
340
|
+
def upsert(update_underwriting:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
333
341
|
# upsert - Create or update the account's underwriting.
|
|
334
342
|
#
|
|
335
343
|
# Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
|
|
@@ -392,6 +400,9 @@ module Moov
|
|
|
392
400
|
req.headers.merge!(headers)
|
|
393
401
|
req.options.timeout = timeout unless timeout.nil?
|
|
394
402
|
Utils.configure_request_security(req, security)
|
|
403
|
+
http_headers&.each do |key, value|
|
|
404
|
+
req.headers[key.to_s] = value
|
|
405
|
+
end
|
|
395
406
|
|
|
396
407
|
@sdk_configuration.hooks.before_request(
|
|
397
408
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -492,5 +503,5 @@ module Moov
|
|
|
492
503
|
|
|
493
504
|
end
|
|
494
505
|
end
|
|
495
|
-
|
|
506
|
+
end
|
|
496
507
|
end
|
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Operations::ListWalletTransactionsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListWalletTransactionsResponse) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - List all the transactions associated with a particular Moov wallet.
|
|
45
47
|
#
|
|
46
48
|
# Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets/transactions/) to learn more.
|
|
@@ -88,6 +90,9 @@ module Moov
|
|
|
88
90
|
req.options.timeout = timeout unless timeout.nil?
|
|
89
91
|
req.params = query_params
|
|
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(
|
|
@@ -175,8 +180,8 @@ module Moov
|
|
|
175
180
|
end
|
|
176
181
|
|
|
177
182
|
|
|
178
|
-
sig { params(account_id: ::String, wallet_id: ::String, transaction_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetWalletTransactionResponse) }
|
|
179
|
-
def get(account_id:, wallet_id:, transaction_id:, x_moov_version: nil, timeout_ms: nil)
|
|
183
|
+
sig { params(account_id: ::String, wallet_id: ::String, 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::GetWalletTransactionResponse) }
|
|
184
|
+
def get(account_id:, wallet_id:, transaction_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
180
185
|
# get - Get details on a specific wallet transaction.
|
|
181
186
|
#
|
|
182
187
|
# Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets/transactions/) to learn more.
|
|
@@ -228,6 +233,9 @@ module Moov
|
|
|
228
233
|
req.headers.merge!(headers)
|
|
229
234
|
req.options.timeout = timeout unless timeout.nil?
|
|
230
235
|
Utils.configure_request_security(req, security)
|
|
236
|
+
http_headers&.each do |key, value|
|
|
237
|
+
req.headers[key.to_s] = value
|
|
238
|
+
end
|
|
231
239
|
|
|
232
240
|
@sdk_configuration.hooks.before_request(
|
|
233
241
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -298,5 +306,5 @@ module Moov
|
|
|
298
306
|
|
|
299
307
|
end
|
|
300
308
|
end
|
|
301
|
-
|
|
309
|
+
end
|
|
302
310
|
end
|
data/lib/moov/wallets.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_wallet: Models::Components::CreateWallet, 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::CreateWalletResponse) }
|
|
45
|
+
def create(create_wallet:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Create a new wallet for an account. You can specify optional attributes such as a display name and description to specify the intended use of the wallet. This will generate a new moov-wallet payment method.
|
|
45
47
|
#
|
|
46
48
|
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) 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(request: Models::Operations::ListWalletsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListWalletsResponse) }
|
|
209
|
-
def list(request:, timeout_ms: nil)
|
|
213
|
+
sig { params(request: Models::Operations::ListWalletsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListWalletsResponse) }
|
|
214
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
210
215
|
# list - List the wallets associated with a Moov account.
|
|
211
216
|
#
|
|
212
217
|
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
|
@@ -254,6 +259,9 @@ module Moov
|
|
|
254
259
|
req.options.timeout = timeout unless timeout.nil?
|
|
255
260
|
req.params = query_params
|
|
256
261
|
Utils.configure_request_security(req, security)
|
|
262
|
+
http_headers&.each do |key, value|
|
|
263
|
+
req.headers[key.to_s] = value
|
|
264
|
+
end
|
|
257
265
|
|
|
258
266
|
@sdk_configuration.hooks.before_request(
|
|
259
267
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -341,8 +349,8 @@ module Moov
|
|
|
341
349
|
end
|
|
342
350
|
|
|
343
351
|
|
|
344
|
-
sig { params(account_id: ::String, wallet_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetWalletResponse) }
|
|
345
|
-
def get(account_id:, wallet_id:, x_moov_version: nil, timeout_ms: nil)
|
|
352
|
+
sig { params(account_id: ::String, wallet_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::GetWalletResponse) }
|
|
353
|
+
def get(account_id:, wallet_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
346
354
|
# get - Get information on a specific wallet (e.g., the available balance).
|
|
347
355
|
#
|
|
348
356
|
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
|
@@ -393,6 +401,9 @@ module Moov
|
|
|
393
401
|
req.headers.merge!(headers)
|
|
394
402
|
req.options.timeout = timeout unless timeout.nil?
|
|
395
403
|
Utils.configure_request_security(req, security)
|
|
404
|
+
http_headers&.each do |key, value|
|
|
405
|
+
req.headers[key.to_s] = value
|
|
406
|
+
end
|
|
396
407
|
|
|
397
408
|
@sdk_configuration.hooks.before_request(
|
|
398
409
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -465,8 +476,8 @@ module Moov
|
|
|
465
476
|
end
|
|
466
477
|
|
|
467
478
|
|
|
468
|
-
sig { params(patch_wallet: Models::Components::PatchWallet, wallet_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateWalletResponse) }
|
|
469
|
-
def update(patch_wallet:, wallet_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
|
479
|
+
sig { params(patch_wallet: Models::Components::PatchWallet, wallet_id: ::String, 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::UpdateWalletResponse) }
|
|
480
|
+
def update(patch_wallet:, wallet_id:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
470
481
|
# update - Update properties of an existing wallet such as name, description, status, or metadata.
|
|
471
482
|
#
|
|
472
483
|
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
|
@@ -530,6 +541,9 @@ module Moov
|
|
|
530
541
|
req.headers.merge!(headers)
|
|
531
542
|
req.options.timeout = timeout unless timeout.nil?
|
|
532
543
|
Utils.configure_request_security(req, security)
|
|
544
|
+
http_headers&.each do |key, value|
|
|
545
|
+
req.headers[key.to_s] = value
|
|
546
|
+
end
|
|
533
547
|
|
|
534
548
|
@sdk_configuration.hooks.before_request(
|
|
535
549
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -630,5 +644,5 @@ module Moov
|
|
|
630
644
|
|
|
631
645
|
end
|
|
632
646
|
end
|
|
633
|
-
|
|
647
|
+
end
|
|
634
648
|
end
|