moov_ruby 26.4.8 → 26.7.0.pre.dev.0
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/moov/account_terminal_applications.rb +16 -16
- data/lib/moov/accounts.rb +54 -52
- data/lib/moov/adjustments.rb +8 -8
- data/lib/moov/apple_pay.rb +20 -20
- data/lib/moov/authentication.rb +8 -8
- data/lib/moov/avatars.rb +4 -4
- data/lib/moov/bank_accounts.rb +36 -36
- data/lib/moov/branding.rb +12 -12
- data/lib/moov/capabilities.rb +20 -20
- data/lib/moov/card_issuing.rb +25 -25
- data/lib/moov/cards.rb +178 -20
- data/lib/moov/disputes.rb +44 -44
- data/lib/moov/end_to_end_encryption.rb +8 -8
- data/lib/moov/enriched_address.rb +4 -4
- data/lib/moov/enriched_profile.rb +4 -4
- data/lib/moov/fee_plans.rb +40 -40
- data/lib/moov/files.rb +12 -12
- data/lib/moov/google_pay.rb +4 -4
- data/lib/moov/images.rb +28 -28
- data/lib/moov/industries.rb +4 -4
- data/lib/moov/institutions.rb +8 -8
- data/lib/moov/invoices.rb +28 -28
- data/lib/moov/issuing_transactions.rb +20 -20
- data/lib/moov/models/components/addcapabilities.rb +1 -5
- data/lib/moov/models/components/amountdecimalrange.rb +36 -0
- data/lib/moov/models/components/amountdecimalrange.rbi +15 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rb +36 -0
- data/lib/moov/models/components/amountdecimalrangeupdate.rbi +15 -0
- data/lib/moov/models/components/authorizeduser.rb +36 -0
- data/lib/moov/models/components/authorizeduser.rbi +15 -0
- data/lib/moov/models/components/capability.rb +1 -7
- data/lib/moov/models/components/capabilityid.rb +1 -7
- data/lib/moov/models/components/cardmetadata.rb +79 -0
- data/lib/moov/models/components/cardmetadata.rbi +35 -0
- data/lib/moov/models/components/cardmetadatarequest.rb +38 -0
- data/lib/moov/models/components/cardmetadatarequest.rbi +15 -0
- data/lib/moov/models/components/createaccount.rb +1 -5
- data/lib/moov/models/components/createauthorizeduser.rb +40 -0
- data/lib/moov/models/components/createauthorizeduser.rbi +17 -0
- data/lib/moov/models/components/createauthorizedusererror.rb +40 -0
- data/lib/moov/models/components/createauthorizedusererror.rbi +17 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rb +40 -0
- data/lib/moov/models/components/createauthorizeduserupdate.rbi +17 -0
- data/lib/moov/models/components/createdtransfer.rb +2 -6
- data/lib/moov/models/components/createdtransfer.rbi +0 -2
- data/lib/moov/models/components/createpaymentlink.rb +15 -15
- data/lib/moov/models/components/createpaymentlink.rbi +4 -4
- data/lib/moov/models/components/createpaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/createpaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/createpaymentlinkamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/createpaymentlinkamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/createtransfer.rb +2 -6
- data/lib/moov/models/components/createtransfer.rbi +0 -2
- data/lib/moov/models/components/createtransferamountdetails.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetails.rbi +2 -0
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rb +6 -2
- data/lib/moov/models/components/createtransferamountdetailsvalidationerror.rbi +2 -0
- data/lib/moov/models/components/fullissuedcard.rb +10 -22
- data/lib/moov/models/components/fullissuedcard.rbi +4 -10
- data/lib/moov/models/components/invoice.rb +1 -1
- data/lib/moov/models/components/issuedcard.rb +10 -22
- data/lib/moov/models/components/issuedcard.rbi +4 -10
- data/lib/moov/models/components/onboardinginvite.rb +1 -1
- data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
- data/lib/moov/models/components/paymentlink.rb +15 -15
- data/lib/moov/models/components/paymentlink.rbi +4 -4
- data/lib/moov/models/components/paymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/paymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetails.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetails_amounttype.rbi +11 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +14 -2
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rbi +6 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rb +19 -0
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate_amounttype.rbi +11 -0
- data/lib/moov/models/components/requestcard.rb +17 -17
- data/lib/moov/models/components/requestcard.rbi +8 -8
- data/lib/moov/models/components/transfer.rb +2 -6
- data/lib/moov/models/components/transfer.rbi +0 -2
- data/lib/moov/models/components/transferamountdetails.rb +6 -2
- data/lib/moov/models/components/transferamountdetails.rbi +2 -0
- data/lib/moov/models/components/transferconfig.rb +2 -6
- data/lib/moov/models/components/transferconfig.rbi +0 -2
- data/lib/moov/models/components/transferdestination.rb +2 -8
- data/lib/moov/models/components/transferdestination.rbi +0 -2
- data/lib/moov/models/components/updateinvoice.rb +6 -6
- data/lib/moov/models/components/updateissuedcard.rb +9 -13
- data/lib/moov/models/components/updateissuedcard.rbi +4 -6
- data/lib/moov/models/components/updatepaymentlink.rb +6 -6
- data/lib/moov/models/components/updatepaymentlink.rbi +2 -2
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetails.rbi +13 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rb +32 -0
- data/lib/moov/models/components/updatepaymentlinkamountdetailsvalidationerror.rbi +13 -0
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +2 -6
- data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +0 -2
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +1 -7
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +1 -7
- data/lib/moov/models/components/webhookdatasweepcreated.rb +2 -6
- data/lib/moov/models/components/webhookdatasweepcreated.rbi +0 -2
- data/lib/moov/models/components/webhookdatasweepupdated.rb +2 -6
- data/lib/moov/models/components/webhookdatasweepupdated.rbi +0 -2
- data/lib/moov/models/components/webhookevent.rb +2 -2
- data/lib/moov/models/components/webhookeventtype.rb +0 -1
- data/lib/moov/models/components.rb +15 -6
- data/lib/moov/models/errors/cardmetadatarequesterror.rb +44 -0
- data/lib/moov/models/errors/cardmetadatarequesterror.rbi +19 -0
- data/lib/moov/models/errors/createpaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/createpaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors/requestcarderror.rb +14 -14
- data/lib/moov/models/errors/requestcarderror.rbi +8 -8
- data/lib/moov/models/errors/transfer_error.rb +2 -6
- data/lib/moov/models/errors/transfer_error.rbi +0 -2
- data/lib/moov/models/errors/transfervalidationerror.rb +2 -6
- data/lib/moov/models/errors/transfervalidationerror.rbi +0 -2
- data/lib/moov/models/errors/updateissuedcarderror.rb +8 -12
- data/lib/moov/models/errors/updateissuedcarderror.rbi +4 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rb +6 -6
- data/lib/moov/models/errors/updatepaymentlinkerror.rbi +2 -2
- data/lib/moov/models/errors.rb +1 -0
- data/lib/moov/models/operations/disablecapability_request.rb +1 -7
- data/lib/moov/models/operations/getcapability_request.rb +1 -7
- data/lib/moov/models/operations/{listcancellations_response.rb → getcardmetadata_response.rb} +6 -6
- data/lib/moov/models/operations/{listcancellations_response.rbi → getcardmetadata_response.rbi} +4 -4
- data/lib/moov/models/operations.rb +1 -2
- data/lib/moov/onboarding.rb +16 -16
- data/lib/moov/payment_links.rb +24 -24
- data/lib/moov/payment_methods.rb +8 -8
- data/lib/moov/ping.rb +4 -4
- data/lib/moov/products.rb +20 -20
- data/lib/moov/receipts.rb +8 -8
- data/lib/moov/representatives.rb +20 -20
- data/lib/moov/resolution_links.rb +16 -16
- data/lib/moov/scheduling.rb +24 -24
- data/lib/moov/sdkconfiguration.rb +4 -4
- data/lib/moov/statements.rb +8 -8
- data/lib/moov/support.rb +20 -20
- data/lib/moov/sweeps.rb +24 -24
- data/lib/moov/terminal_applications.rb +20 -20
- data/lib/moov/transfer_config.rb +12 -12
- data/lib/moov/transfers.rb +48 -171
- data/lib/moov/underwriting.rb +12 -12
- data/lib/moov/utils/retries.rb +1 -4
- data/lib/moov/wallet_transactions.rb +8 -8
- data/lib/moov/wallets.rb +16 -16
- data/lib/moov/webhooks.rb +32 -32
- metadata +38 -20
- data/lib/moov/models/components/billingaddress.rb +0 -52
- data/lib/moov/models/components/billingaddress.rbi +0 -23
- data/lib/moov/models/components/rtpfailurecode.rb +0 -27
- data/lib/moov/models/components/rtpfailurecode.rbi +0 -11
- data/lib/moov/models/components/rtptransactiondetails.rb +0 -58
- data/lib/moov/models/components/rtptransactiondetails.rbi +0 -25
- data/lib/moov/models/components/rtptransactionstatus.rb +0 -21
- data/lib/moov/models/components/rtptransactionstatus.rbi +0 -11
- data/lib/moov/models/components/transfercontrols.rb +0 -48
- data/lib/moov/models/components/transfercontrols.rbi +0 -21
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +0 -44
- data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +0 -19
- data/lib/moov/models/operations/listcancellations_request.rb +0 -36
- data/lib/moov/models/operations/listcancellations_request.rbi +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df138c1c80fb9cfc6a98d215e8ac3c8f5057a4afa79fcb0428d0e0df9212151d
|
|
4
|
+
data.tar.gz: cc146dc34e5d9d14b468dbe2ef8098685911d82d06aa8a75a087d1e0c3b9b332
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4f94f4f8fa0813206bd66e23885d2334de8222819863a3efc34dbee90f2e3d1dc29607e29ae1cd7ea2255607655ad5d00b9a57a1cbd2cd30204d08f3912e772
|
|
7
|
+
data.tar.gz: c05db1ad16db61462be7a198224d8d2927b8e295380a1a4d2d3f087c72f6d220082a8e1672b49d357ac9182ee5932a72a3497f4910a7729588484e3dc0c3da1a
|
|
@@ -79,7 +79,7 @@ module Moov
|
|
|
79
79
|
|
|
80
80
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
81
81
|
timeout ||= @sdk_configuration.timeout
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
|
|
84
84
|
connection = @sdk_configuration.client
|
|
85
85
|
|
|
@@ -94,7 +94,7 @@ module Moov
|
|
|
94
94
|
error = T.let(nil, T.nilable(StandardError))
|
|
95
95
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
begin
|
|
99
99
|
http_response = T.must(connection).post(url) do |req|
|
|
100
100
|
req.body = body
|
|
@@ -131,13 +131,13 @@ module Moov
|
|
|
131
131
|
response: http_response
|
|
132
132
|
)
|
|
133
133
|
end
|
|
134
|
-
|
|
134
|
+
|
|
135
135
|
if http_response.nil?
|
|
136
136
|
raise error if !error.nil?
|
|
137
137
|
raise 'no response'
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
142
142
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
143
143
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -232,7 +232,7 @@ module Moov
|
|
|
232
232
|
|
|
233
233
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
234
234
|
timeout ||= @sdk_configuration.timeout
|
|
235
|
-
|
|
235
|
+
|
|
236
236
|
|
|
237
237
|
connection = @sdk_configuration.client
|
|
238
238
|
|
|
@@ -247,7 +247,7 @@ module Moov
|
|
|
247
247
|
error = T.let(nil, T.nilable(StandardError))
|
|
248
248
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
|
|
251
251
|
begin
|
|
252
252
|
http_response = T.must(connection).get(url) do |req|
|
|
253
253
|
req.headers.merge!(headers)
|
|
@@ -283,13 +283,13 @@ module Moov
|
|
|
283
283
|
response: http_response
|
|
284
284
|
)
|
|
285
285
|
end
|
|
286
|
-
|
|
286
|
+
|
|
287
287
|
if http_response.nil?
|
|
288
288
|
raise error if !error.nil?
|
|
289
289
|
raise 'no response'
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
|
-
|
|
292
|
+
|
|
293
293
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
294
294
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
295
295
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -355,7 +355,7 @@ module Moov
|
|
|
355
355
|
|
|
356
356
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
357
357
|
timeout ||= @sdk_configuration.timeout
|
|
358
|
-
|
|
358
|
+
|
|
359
359
|
|
|
360
360
|
connection = @sdk_configuration.client
|
|
361
361
|
|
|
@@ -370,7 +370,7 @@ module Moov
|
|
|
370
370
|
error = T.let(nil, T.nilable(StandardError))
|
|
371
371
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
|
|
374
374
|
begin
|
|
375
375
|
http_response = T.must(connection).get(url) do |req|
|
|
376
376
|
req.headers.merge!(headers)
|
|
@@ -406,13 +406,13 @@ module Moov
|
|
|
406
406
|
response: http_response
|
|
407
407
|
)
|
|
408
408
|
end
|
|
409
|
-
|
|
409
|
+
|
|
410
410
|
if http_response.nil?
|
|
411
411
|
raise error if !error.nil?
|
|
412
412
|
raise 'no response'
|
|
413
413
|
end
|
|
414
414
|
end
|
|
415
|
-
|
|
415
|
+
|
|
416
416
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
417
417
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
418
418
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -478,7 +478,7 @@ module Moov
|
|
|
478
478
|
|
|
479
479
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
480
480
|
timeout ||= @sdk_configuration.timeout
|
|
481
|
-
|
|
481
|
+
|
|
482
482
|
|
|
483
483
|
connection = @sdk_configuration.client
|
|
484
484
|
|
|
@@ -493,7 +493,7 @@ module Moov
|
|
|
493
493
|
error = T.let(nil, T.nilable(StandardError))
|
|
494
494
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
495
495
|
|
|
496
|
-
|
|
496
|
+
|
|
497
497
|
begin
|
|
498
498
|
http_response = T.must(connection).get(url) do |req|
|
|
499
499
|
req.headers.merge!(headers)
|
|
@@ -529,13 +529,13 @@ module Moov
|
|
|
529
529
|
response: http_response
|
|
530
530
|
)
|
|
531
531
|
end
|
|
532
|
-
|
|
532
|
+
|
|
533
533
|
if http_response.nil?
|
|
534
534
|
raise error if !error.nil?
|
|
535
535
|
raise 'no response'
|
|
536
536
|
end
|
|
537
537
|
end
|
|
538
|
-
|
|
538
|
+
|
|
539
539
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
540
540
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
541
541
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/moov/accounts.rb
CHANGED
|
@@ -43,19 +43,21 @@ module Moov
|
|
|
43
43
|
|
|
44
44
|
sig { params(request: Models::Components::CreateAccount, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateAccountResponse) }
|
|
45
45
|
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
46
|
-
# create - You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required
|
|
46
|
+
# create - You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
|
|
47
|
+
# information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
|
|
47
48
|
#
|
|
48
|
-
#
|
|
49
|
-
# + Send Moov the user
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
# If you're creating a business account, depending on the business type, you'll also need to:
|
|
49
|
+
# If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
|
|
50
|
+
# + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
|
|
51
|
+
# This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
|
|
52
|
+
# If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
|
|
53
53
|
# + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
|
|
54
54
|
# + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
|
|
55
55
|
#
|
|
56
|
-
# Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
56
|
+
# Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
|
|
57
|
+
# Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
|
|
57
58
|
#
|
|
58
|
-
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
59
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
60
|
+
# to specify the `/accounts.write` scope.
|
|
59
61
|
url, params = @sdk_configuration.get_server_details
|
|
60
62
|
base_url = Utils.template_url(url, params)
|
|
61
63
|
url = "#{base_url}/accounts"
|
|
@@ -79,7 +81,7 @@ module Moov
|
|
|
79
81
|
|
|
80
82
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
81
83
|
timeout ||= @sdk_configuration.timeout
|
|
82
|
-
|
|
84
|
+
|
|
83
85
|
|
|
84
86
|
connection = @sdk_configuration.client
|
|
85
87
|
|
|
@@ -94,7 +96,7 @@ module Moov
|
|
|
94
96
|
error = T.let(nil, T.nilable(StandardError))
|
|
95
97
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
96
98
|
|
|
97
|
-
|
|
99
|
+
|
|
98
100
|
begin
|
|
99
101
|
http_response = T.must(connection).post(url) do |req|
|
|
100
102
|
req.body = body
|
|
@@ -131,13 +133,13 @@ module Moov
|
|
|
131
133
|
response: http_response
|
|
132
134
|
)
|
|
133
135
|
end
|
|
134
|
-
|
|
136
|
+
|
|
135
137
|
if http_response.nil?
|
|
136
138
|
raise error if !error.nil?
|
|
137
139
|
raise 'no response'
|
|
138
140
|
end
|
|
139
141
|
end
|
|
140
|
-
|
|
142
|
+
|
|
141
143
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
142
144
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
143
145
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -229,7 +231,7 @@ module Moov
|
|
|
229
231
|
|
|
230
232
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
231
233
|
timeout ||= @sdk_configuration.timeout
|
|
232
|
-
|
|
234
|
+
|
|
233
235
|
|
|
234
236
|
connection = @sdk_configuration.client
|
|
235
237
|
|
|
@@ -244,7 +246,7 @@ module Moov
|
|
|
244
246
|
error = T.let(nil, T.nilable(StandardError))
|
|
245
247
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
246
248
|
|
|
247
|
-
|
|
249
|
+
|
|
248
250
|
begin
|
|
249
251
|
http_response = T.must(connection).get(url) do |req|
|
|
250
252
|
req.headers.merge!(headers)
|
|
@@ -281,13 +283,13 @@ module Moov
|
|
|
281
283
|
response: http_response
|
|
282
284
|
)
|
|
283
285
|
end
|
|
284
|
-
|
|
286
|
+
|
|
285
287
|
if http_response.nil?
|
|
286
288
|
raise error if !error.nil?
|
|
287
289
|
raise 'no response'
|
|
288
290
|
end
|
|
289
291
|
end
|
|
290
|
-
|
|
292
|
+
|
|
291
293
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
292
294
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
293
295
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -352,7 +354,7 @@ module Moov
|
|
|
352
354
|
|
|
353
355
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
354
356
|
timeout ||= @sdk_configuration.timeout
|
|
355
|
-
|
|
357
|
+
|
|
356
358
|
|
|
357
359
|
connection = @sdk_configuration.client
|
|
358
360
|
|
|
@@ -367,7 +369,7 @@ module Moov
|
|
|
367
369
|
error = T.let(nil, T.nilable(StandardError))
|
|
368
370
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
369
371
|
|
|
370
|
-
|
|
372
|
+
|
|
371
373
|
begin
|
|
372
374
|
http_response = T.must(connection).get(url) do |req|
|
|
373
375
|
req.headers.merge!(headers)
|
|
@@ -403,13 +405,13 @@ module Moov
|
|
|
403
405
|
response: http_response
|
|
404
406
|
)
|
|
405
407
|
end
|
|
406
|
-
|
|
408
|
+
|
|
407
409
|
if http_response.nil?
|
|
408
410
|
raise error if !error.nil?
|
|
409
411
|
raise 'no response'
|
|
410
412
|
end
|
|
411
413
|
end
|
|
412
|
-
|
|
414
|
+
|
|
413
415
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
414
416
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
415
417
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -494,7 +496,7 @@ module Moov
|
|
|
494
496
|
|
|
495
497
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
496
498
|
timeout ||= @sdk_configuration.timeout
|
|
497
|
-
|
|
499
|
+
|
|
498
500
|
|
|
499
501
|
connection = @sdk_configuration.client
|
|
500
502
|
|
|
@@ -509,7 +511,7 @@ module Moov
|
|
|
509
511
|
error = T.let(nil, T.nilable(StandardError))
|
|
510
512
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
511
513
|
|
|
512
|
-
|
|
514
|
+
|
|
513
515
|
begin
|
|
514
516
|
http_response = T.must(connection).patch(url) do |req|
|
|
515
517
|
req.body = body
|
|
@@ -546,13 +548,13 @@ module Moov
|
|
|
546
548
|
response: http_response
|
|
547
549
|
)
|
|
548
550
|
end
|
|
549
|
-
|
|
551
|
+
|
|
550
552
|
if http_response.nil?
|
|
551
553
|
raise error if !error.nil?
|
|
552
554
|
raise 'no response'
|
|
553
555
|
end
|
|
554
556
|
end
|
|
555
|
-
|
|
557
|
+
|
|
556
558
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
557
559
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
558
560
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -649,7 +651,7 @@ module Moov
|
|
|
649
651
|
|
|
650
652
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
651
653
|
timeout ||= @sdk_configuration.timeout
|
|
652
|
-
|
|
654
|
+
|
|
653
655
|
|
|
654
656
|
connection = @sdk_configuration.client
|
|
655
657
|
|
|
@@ -664,7 +666,7 @@ module Moov
|
|
|
664
666
|
error = T.let(nil, T.nilable(StandardError))
|
|
665
667
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
666
668
|
|
|
667
|
-
|
|
669
|
+
|
|
668
670
|
begin
|
|
669
671
|
http_response = T.must(connection).delete(url) do |req|
|
|
670
672
|
req.headers.merge!(headers)
|
|
@@ -700,13 +702,13 @@ module Moov
|
|
|
700
702
|
response: http_response
|
|
701
703
|
)
|
|
702
704
|
end
|
|
703
|
-
|
|
705
|
+
|
|
704
706
|
if http_response.nil?
|
|
705
707
|
raise error if !error.nil?
|
|
706
708
|
raise 'no response'
|
|
707
709
|
end
|
|
708
710
|
end
|
|
709
|
-
|
|
711
|
+
|
|
710
712
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
711
713
|
if Utils.match_status_code(http_response.status, ['204'])
|
|
712
714
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -779,7 +781,7 @@ module Moov
|
|
|
779
781
|
|
|
780
782
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
781
783
|
timeout ||= @sdk_configuration.timeout
|
|
782
|
-
|
|
784
|
+
|
|
783
785
|
|
|
784
786
|
connection = @sdk_configuration.client
|
|
785
787
|
|
|
@@ -794,7 +796,7 @@ module Moov
|
|
|
794
796
|
error = T.let(nil, T.nilable(StandardError))
|
|
795
797
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
796
798
|
|
|
797
|
-
|
|
799
|
+
|
|
798
800
|
begin
|
|
799
801
|
http_response = T.must(connection).get(url) do |req|
|
|
800
802
|
req.headers.merge!(headers)
|
|
@@ -831,13 +833,13 @@ module Moov
|
|
|
831
833
|
response: http_response
|
|
832
834
|
)
|
|
833
835
|
end
|
|
834
|
-
|
|
836
|
+
|
|
835
837
|
if http_response.nil?
|
|
836
838
|
raise error if !error.nil?
|
|
837
839
|
raise 'no response'
|
|
838
840
|
end
|
|
839
841
|
end
|
|
840
|
-
|
|
842
|
+
|
|
841
843
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
842
844
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
843
845
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -912,7 +914,7 @@ module Moov
|
|
|
912
914
|
|
|
913
915
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
914
916
|
timeout ||= @sdk_configuration.timeout
|
|
915
|
-
|
|
917
|
+
|
|
916
918
|
|
|
917
919
|
connection = @sdk_configuration.client
|
|
918
920
|
|
|
@@ -927,7 +929,7 @@ module Moov
|
|
|
927
929
|
error = T.let(nil, T.nilable(StandardError))
|
|
928
930
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
929
931
|
|
|
930
|
-
|
|
932
|
+
|
|
931
933
|
begin
|
|
932
934
|
http_response = T.must(connection).post(url) do |req|
|
|
933
935
|
req.body = body
|
|
@@ -964,13 +966,13 @@ module Moov
|
|
|
964
966
|
response: http_response
|
|
965
967
|
)
|
|
966
968
|
end
|
|
967
|
-
|
|
969
|
+
|
|
968
970
|
if http_response.nil?
|
|
969
971
|
raise error if !error.nil?
|
|
970
972
|
raise 'no response'
|
|
971
973
|
end
|
|
972
974
|
end
|
|
973
|
-
|
|
975
|
+
|
|
974
976
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
975
977
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
976
978
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -1056,7 +1058,7 @@ module Moov
|
|
|
1056
1058
|
|
|
1057
1059
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1058
1060
|
timeout ||= @sdk_configuration.timeout
|
|
1059
|
-
|
|
1061
|
+
|
|
1060
1062
|
|
|
1061
1063
|
connection = @sdk_configuration.client
|
|
1062
1064
|
|
|
@@ -1071,7 +1073,7 @@ module Moov
|
|
|
1071
1073
|
error = T.let(nil, T.nilable(StandardError))
|
|
1072
1074
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1073
1075
|
|
|
1074
|
-
|
|
1076
|
+
|
|
1075
1077
|
begin
|
|
1076
1078
|
http_response = T.must(connection).get(url) do |req|
|
|
1077
1079
|
req.headers.merge!(headers)
|
|
@@ -1107,13 +1109,13 @@ module Moov
|
|
|
1107
1109
|
response: http_response
|
|
1108
1110
|
)
|
|
1109
1111
|
end
|
|
1110
|
-
|
|
1112
|
+
|
|
1111
1113
|
if http_response.nil?
|
|
1112
1114
|
raise error if !error.nil?
|
|
1113
1115
|
raise 'no response'
|
|
1114
1116
|
end
|
|
1115
1117
|
end
|
|
1116
|
-
|
|
1118
|
+
|
|
1117
1119
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1118
1120
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1119
1121
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1192,7 +1194,7 @@ module Moov
|
|
|
1192
1194
|
|
|
1193
1195
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1194
1196
|
timeout ||= @sdk_configuration.timeout
|
|
1195
|
-
|
|
1197
|
+
|
|
1196
1198
|
|
|
1197
1199
|
connection = @sdk_configuration.client
|
|
1198
1200
|
|
|
@@ -1207,7 +1209,7 @@ module Moov
|
|
|
1207
1209
|
error = T.let(nil, T.nilable(StandardError))
|
|
1208
1210
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1209
1211
|
|
|
1210
|
-
|
|
1212
|
+
|
|
1211
1213
|
begin
|
|
1212
1214
|
http_response = T.must(connection).put(url) do |req|
|
|
1213
1215
|
req.body = body
|
|
@@ -1244,13 +1246,13 @@ module Moov
|
|
|
1244
1246
|
response: http_response
|
|
1245
1247
|
)
|
|
1246
1248
|
end
|
|
1247
|
-
|
|
1249
|
+
|
|
1248
1250
|
if http_response.nil?
|
|
1249
1251
|
raise error if !error.nil?
|
|
1250
1252
|
raise 'no response'
|
|
1251
1253
|
end
|
|
1252
1254
|
end
|
|
1253
|
-
|
|
1255
|
+
|
|
1254
1256
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1255
1257
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1256
1258
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1345,7 +1347,7 @@ module Moov
|
|
|
1345
1347
|
|
|
1346
1348
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1347
1349
|
timeout ||= @sdk_configuration.timeout
|
|
1348
|
-
|
|
1350
|
+
|
|
1349
1351
|
|
|
1350
1352
|
connection = @sdk_configuration.client
|
|
1351
1353
|
|
|
@@ -1360,7 +1362,7 @@ module Moov
|
|
|
1360
1362
|
error = T.let(nil, T.nilable(StandardError))
|
|
1361
1363
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1362
1364
|
|
|
1363
|
-
|
|
1365
|
+
|
|
1364
1366
|
begin
|
|
1365
1367
|
http_response = T.must(connection).get(url) do |req|
|
|
1366
1368
|
req.headers.merge!(headers)
|
|
@@ -1396,13 +1398,13 @@ module Moov
|
|
|
1396
1398
|
response: http_response
|
|
1397
1399
|
)
|
|
1398
1400
|
end
|
|
1399
|
-
|
|
1401
|
+
|
|
1400
1402
|
if http_response.nil?
|
|
1401
1403
|
raise error if !error.nil?
|
|
1402
1404
|
raise 'no response'
|
|
1403
1405
|
end
|
|
1404
1406
|
end
|
|
1405
|
-
|
|
1407
|
+
|
|
1406
1408
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1407
1409
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1408
1410
|
if Utils.match_content_type(content_type, 'application/pdf')
|
|
@@ -1462,7 +1464,7 @@ module Moov
|
|
|
1462
1464
|
|
|
1463
1465
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1464
1466
|
timeout ||= @sdk_configuration.timeout
|
|
1465
|
-
|
|
1467
|
+
|
|
1466
1468
|
|
|
1467
1469
|
connection = @sdk_configuration.client
|
|
1468
1470
|
|
|
@@ -1477,7 +1479,7 @@ module Moov
|
|
|
1477
1479
|
error = T.let(nil, T.nilable(StandardError))
|
|
1478
1480
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1479
1481
|
|
|
1480
|
-
|
|
1482
|
+
|
|
1481
1483
|
begin
|
|
1482
1484
|
http_response = T.must(connection).get(url) do |req|
|
|
1483
1485
|
req.headers.merge!(headers)
|
|
@@ -1513,13 +1515,13 @@ module Moov
|
|
|
1513
1515
|
response: http_response
|
|
1514
1516
|
)
|
|
1515
1517
|
end
|
|
1516
|
-
|
|
1518
|
+
|
|
1517
1519
|
if http_response.nil?
|
|
1518
1520
|
raise error if !error.nil?
|
|
1519
1521
|
raise 'no response'
|
|
1520
1522
|
end
|
|
1521
1523
|
end
|
|
1522
|
-
|
|
1524
|
+
|
|
1523
1525
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1524
1526
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1525
1527
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/moov/adjustments.rb
CHANGED
|
@@ -69,7 +69,7 @@ module Moov
|
|
|
69
69
|
|
|
70
70
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
71
71
|
timeout ||= @sdk_configuration.timeout
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
|
|
74
74
|
connection = @sdk_configuration.client
|
|
75
75
|
|
|
@@ -84,7 +84,7 @@ module Moov
|
|
|
84
84
|
error = T.let(nil, T.nilable(StandardError))
|
|
85
85
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
begin
|
|
89
89
|
http_response = T.must(connection).get(url) do |req|
|
|
90
90
|
req.headers.merge!(headers)
|
|
@@ -121,13 +121,13 @@ module Moov
|
|
|
121
121
|
response: http_response
|
|
122
122
|
)
|
|
123
123
|
end
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
if http_response.nil?
|
|
126
126
|
raise error if !error.nil?
|
|
127
127
|
raise 'no response'
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
132
132
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
133
133
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -193,7 +193,7 @@ module Moov
|
|
|
193
193
|
|
|
194
194
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
195
195
|
timeout ||= @sdk_configuration.timeout
|
|
196
|
-
|
|
196
|
+
|
|
197
197
|
|
|
198
198
|
connection = @sdk_configuration.client
|
|
199
199
|
|
|
@@ -208,7 +208,7 @@ module Moov
|
|
|
208
208
|
error = T.let(nil, T.nilable(StandardError))
|
|
209
209
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
begin
|
|
213
213
|
http_response = T.must(connection).get(url) do |req|
|
|
214
214
|
req.headers.merge!(headers)
|
|
@@ -244,13 +244,13 @@ module Moov
|
|
|
244
244
|
response: http_response
|
|
245
245
|
)
|
|
246
246
|
end
|
|
247
|
-
|
|
247
|
+
|
|
248
248
|
if http_response.nil?
|
|
249
249
|
raise error if !error.nil?
|
|
250
250
|
raise 'no response'
|
|
251
251
|
end
|
|
252
252
|
end
|
|
253
|
-
|
|
253
|
+
|
|
254
254
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
255
255
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
256
256
|
if Utils.match_content_type(content_type, 'application/json')
|