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
data/lib/moov/statements.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::ListStatementsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListStatementsResponse) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - Retrieve all statements associated with an account.
|
|
45
47
|
#
|
|
46
48
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -86,6 +88,9 @@ module Moov
|
|
|
86
88
|
req.options.timeout = timeout unless timeout.nil?
|
|
87
89
|
req.params = query_params
|
|
88
90
|
Utils.configure_request_security(req, security)
|
|
91
|
+
http_headers&.each do |key, value|
|
|
92
|
+
req.headers[key.to_s] = value
|
|
93
|
+
end
|
|
89
94
|
|
|
90
95
|
@sdk_configuration.hooks.before_request(
|
|
91
96
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -173,8 +178,8 @@ module Moov
|
|
|
173
178
|
end
|
|
174
179
|
|
|
175
180
|
|
|
176
|
-
sig { params(account_id: ::String, statement_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String)).returns(Models::Operations::GetStatementResponse) }
|
|
177
|
-
def get(account_id:, statement_id:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil)
|
|
181
|
+
sig { params(account_id: ::String, statement_id: ::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::GetStatementResponse) }
|
|
182
|
+
def get(account_id:, statement_id:, x_moov_version: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil)
|
|
178
183
|
# get - Retrieve a statement by its ID.
|
|
179
184
|
#
|
|
180
185
|
# Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`.
|
|
@@ -225,6 +230,9 @@ module Moov
|
|
|
225
230
|
req.headers.merge!(headers)
|
|
226
231
|
req.options.timeout = timeout unless timeout.nil?
|
|
227
232
|
Utils.configure_request_security(req, security)
|
|
233
|
+
http_headers&.each do |key, value|
|
|
234
|
+
req.headers[key.to_s] = value
|
|
235
|
+
end
|
|
228
236
|
|
|
229
237
|
@sdk_configuration.hooks.before_request(
|
|
230
238
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -311,5 +319,5 @@ module Moov
|
|
|
311
319
|
|
|
312
320
|
end
|
|
313
321
|
end
|
|
314
|
-
|
|
322
|
+
end
|
|
315
323
|
end
|
data/lib/moov/support.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_ticket: Models::Components::CreateTicket, 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::CreateTicketResponse) }
|
|
45
|
+
def create_ticket(create_ticket:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create_ticket - Create a support ticket for a Moov account.
|
|
45
47
|
#
|
|
46
48
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -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(
|
|
@@ -206,8 +211,8 @@ module Moov
|
|
|
206
211
|
end
|
|
207
212
|
|
|
208
213
|
|
|
209
|
-
sig { params(request: Models::Operations::ListTicketsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListTicketsResponse) }
|
|
210
|
-
def list_tickets(request:, timeout_ms: nil)
|
|
214
|
+
sig { params(request: Models::Operations::ListTicketsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListTicketsResponse) }
|
|
215
|
+
def list_tickets(request:, timeout_ms: nil, http_headers: nil)
|
|
211
216
|
# list_tickets - List all the support tickets created under a Moov account.
|
|
212
217
|
#
|
|
213
218
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -256,6 +261,9 @@ module Moov
|
|
|
256
261
|
req.options.timeout = timeout unless timeout.nil?
|
|
257
262
|
req.params = query_params
|
|
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(
|
|
@@ -328,8 +336,8 @@ module Moov
|
|
|
328
336
|
end
|
|
329
337
|
|
|
330
338
|
|
|
331
|
-
sig { params(account_id: ::String, ticket_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetTicketResponse) }
|
|
332
|
-
def get_ticket(account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil)
|
|
339
|
+
sig { params(account_id: ::String, ticket_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::GetTicketResponse) }
|
|
340
|
+
def get_ticket(account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
333
341
|
# get_ticket - Retrieve a support ticket by ID.
|
|
334
342
|
#
|
|
335
343
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -381,6 +389,9 @@ module Moov
|
|
|
381
389
|
req.headers.merge!(headers)
|
|
382
390
|
req.options.timeout = timeout unless timeout.nil?
|
|
383
391
|
Utils.configure_request_security(req, security)
|
|
392
|
+
http_headers&.each do |key, value|
|
|
393
|
+
req.headers[key.to_s] = value
|
|
394
|
+
end
|
|
384
395
|
|
|
385
396
|
@sdk_configuration.hooks.before_request(
|
|
386
397
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -453,8 +464,8 @@ module Moov
|
|
|
453
464
|
end
|
|
454
465
|
|
|
455
466
|
|
|
456
|
-
sig { params(update_ticket: Models::Components::UpdateTicket, account_id: ::String, ticket_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateTicketResponse) }
|
|
457
|
-
def update_ticket(update_ticket:, account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil)
|
|
467
|
+
sig { params(update_ticket: Models::Components::UpdateTicket, account_id: ::String, ticket_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::UpdateTicketResponse) }
|
|
468
|
+
def update_ticket(update_ticket:, account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
458
469
|
# update_ticket - Updates a support ticket.
|
|
459
470
|
#
|
|
460
471
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -519,6 +530,9 @@ module Moov
|
|
|
519
530
|
req.headers.merge!(headers)
|
|
520
531
|
req.options.timeout = timeout unless timeout.nil?
|
|
521
532
|
Utils.configure_request_security(req, security)
|
|
533
|
+
http_headers&.each do |key, value|
|
|
534
|
+
req.headers[key.to_s] = value
|
|
535
|
+
end
|
|
522
536
|
|
|
523
537
|
@sdk_configuration.hooks.before_request(
|
|
524
538
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -621,8 +635,8 @@ module Moov
|
|
|
621
635
|
end
|
|
622
636
|
|
|
623
637
|
|
|
624
|
-
sig { params(account_id: ::String, ticket_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListTicketMessagesResponse) }
|
|
625
|
-
def list_ticket_messages(account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil)
|
|
638
|
+
sig { params(account_id: ::String, ticket_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::ListTicketMessagesResponse) }
|
|
639
|
+
def list_ticket_messages(account_id:, ticket_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
626
640
|
# list_ticket_messages - List all the messages for a support ticket.
|
|
627
641
|
#
|
|
628
642
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -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(
|
|
@@ -744,5 +761,5 @@ module Moov
|
|
|
744
761
|
|
|
745
762
|
end
|
|
746
763
|
end
|
|
747
|
-
|
|
764
|
+
end
|
|
748
765
|
end
|
data/lib/moov/sweeps.rb
CHANGED
|
@@ -39,8 +39,10 @@ module Moov
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(create_sweep_config: Models::Components::CreateSweepConfig, 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::CreateSweepConfigResponse) }
|
|
45
|
+
def create_config(create_sweep_config:, account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create_config - Create a sweep config for a wallet.
|
|
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::ListSweepConfigsResponse) }
|
|
207
|
-
def list_configs(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::ListSweepConfigsResponse) }
|
|
212
|
+
def list_configs(account_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
208
213
|
# list_configs - List sweep configs associated with an 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, sweep_config_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSweepConfigResponse) }
|
|
328
|
-
def get_config(account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil)
|
|
335
|
+
sig { params(account_id: ::String, sweep_config_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::GetSweepConfigResponse) }
|
|
336
|
+
def get_config(account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
329
337
|
# get_config - Get a sweep config associated with a wallet.
|
|
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(patch_sweep_config: Models::Components::PatchSweepConfig, account_id: ::String, sweep_config_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateSweepConfigResponse) }
|
|
450
|
-
def update_config(patch_sweep_config:, account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil)
|
|
460
|
+
sig { params(patch_sweep_config: Models::Components::PatchSweepConfig, account_id: ::String, sweep_config_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::UpdateSweepConfigResponse) }
|
|
461
|
+
def update_config(patch_sweep_config:, account_id:, sweep_config_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
451
462
|
# update_config - Update settings on a sweep config.
|
|
452
463
|
#
|
|
453
464
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -509,6 +520,9 @@ module Moov
|
|
|
509
520
|
req.headers.merge!(headers)
|
|
510
521
|
req.options.timeout = timeout unless timeout.nil?
|
|
511
522
|
Utils.configure_request_security(req, security)
|
|
523
|
+
http_headers&.each do |key, value|
|
|
524
|
+
req.headers[key.to_s] = value
|
|
525
|
+
end
|
|
512
526
|
|
|
513
527
|
@sdk_configuration.hooks.before_request(
|
|
514
528
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -611,8 +625,8 @@ module Moov
|
|
|
611
625
|
end
|
|
612
626
|
|
|
613
627
|
|
|
614
|
-
sig { params(request: Models::Operations::ListSweepsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListSweepsResponse) }
|
|
615
|
-
def list(request:, timeout_ms: nil)
|
|
628
|
+
sig { params(request: Models::Operations::ListSweepsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListSweepsResponse) }
|
|
629
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
616
630
|
# list - List sweeps associated with a wallet.
|
|
617
631
|
#
|
|
618
632
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -658,6 +672,9 @@ module Moov
|
|
|
658
672
|
req.options.timeout = timeout unless timeout.nil?
|
|
659
673
|
req.params = query_params
|
|
660
674
|
Utils.configure_request_security(req, security)
|
|
675
|
+
http_headers&.each do |key, value|
|
|
676
|
+
req.headers[key.to_s] = value
|
|
677
|
+
end
|
|
661
678
|
|
|
662
679
|
@sdk_configuration.hooks.before_request(
|
|
663
680
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -730,8 +747,8 @@ module Moov
|
|
|
730
747
|
end
|
|
731
748
|
|
|
732
749
|
|
|
733
|
-
sig { params(account_id: ::String, wallet_id: ::String, sweep_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::GetSweepResponse) }
|
|
734
|
-
def get(account_id:, wallet_id:, sweep_id:, x_moov_version: nil, timeout_ms: nil)
|
|
750
|
+
sig { params(account_id: ::String, wallet_id: ::String, sweep_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::GetSweepResponse) }
|
|
751
|
+
def get(account_id:, wallet_id:, sweep_id:, x_moov_version: nil, timeout_ms: nil, http_headers: nil)
|
|
735
752
|
# get - Get details on a specific sweep.
|
|
736
753
|
#
|
|
737
754
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -781,6 +798,9 @@ module Moov
|
|
|
781
798
|
req.headers.merge!(headers)
|
|
782
799
|
req.options.timeout = timeout unless timeout.nil?
|
|
783
800
|
Utils.configure_request_security(req, security)
|
|
801
|
+
http_headers&.each do |key, value|
|
|
802
|
+
req.headers[key.to_s] = value
|
|
803
|
+
end
|
|
784
804
|
|
|
785
805
|
@sdk_configuration.hooks.before_request(
|
|
786
806
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -851,5 +871,5 @@ module Moov
|
|
|
851
871
|
|
|
852
872
|
end
|
|
853
873
|
end
|
|
854
|
-
|
|
874
|
+
end
|
|
855
875
|
end
|
|
@@ -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
|