moov_ruby 24.2.21 → 24.2.22
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 +25 -25
- data/lib/moov/accounts.rb +70 -70
- data/lib/moov/adjustments.rb +11 -11
- data/lib/moov/apple_pay.rb +38 -38
- data/lib/moov/authentication.rb +18 -18
- data/lib/moov/avatars.rb +5 -5
- data/lib/moov/bank_accounts.rb +58 -58
- data/lib/moov/branding.rb +24 -24
- data/lib/moov/capabilities.rb +25 -25
- data/lib/moov/card_issuing.rb +34 -34
- data/lib/moov/cards.rb +35 -35
- data/lib/moov/client.rb +5 -5
- data/lib/moov/disputes.rb +68 -68
- data/lib/moov/end_to_end_encryption.rb +13 -13
- data/lib/moov/enriched_address.rb +6 -6
- data/lib/moov/enriched_profile.rb +6 -6
- data/lib/moov/fee_plans.rb +56 -56
- data/lib/moov/files.rb +20 -20
- data/lib/moov/images.rb +47 -47
- data/lib/moov/industries.rb +6 -6
- data/lib/moov/institutions.rb +12 -12
- data/lib/moov/issuing_transactions.rb +26 -26
- data/lib/moov/models/components/account.rb +2 -2
- data/lib/moov/models/components/achfees.rb +6 -2
- data/lib/moov/models/components/achfees.rbi +2 -0
- data/lib/moov/models/components/billablefee.rb +2 -2
- data/lib/moov/models/components/createaccount.rb +2 -2
- data/lib/moov/models/components/createdtransfer.rb +2 -2
- data/lib/moov/models/components/createpaymentlinklineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/createpaymentlinklineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/createreversal.rb +1 -1
- data/lib/moov/models/components/createtransfer.rb +3 -3
- data/lib/moov/models/components/createtransferachaddendarecord.rb +1 -1
- data/lib/moov/models/components/createtransferlineitemsvalidationerror.rb +2 -2
- data/lib/moov/models/components/createtransferlineitemvalidationerror.rb +2 -2
- data/lib/moov/models/components/createtransfersource.rb +1 -1
- data/lib/moov/models/components/createwallet.rb +2 -2
- data/lib/moov/models/components/fullissuedcard.rb +2 -2
- data/lib/moov/models/components/issuedcard.rb +2 -2
- data/lib/moov/models/components/issuingcontrolserror.rb +2 -2
- data/lib/moov/models/components/patchaccount.rb +2 -2
- data/lib/moov/models/components/patchtransfer.rb +2 -2
- data/lib/moov/models/components/patchwallet.rb +2 -2
- data/lib/moov/models/components/paymentlinkcustomeroptions.rb +2 -2
- data/lib/moov/models/components/paymentlinkpaymentdetails.rb +2 -2
- data/lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb +2 -2
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +2 -2
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +2 -2
- data/lib/moov/models/components/pingresponse.rb +2 -2
- data/lib/moov/models/components/productoptiongroupvalidationerror.rb +2 -2
- data/lib/moov/models/components/productoptionvalidationerror.rb +2 -2
- data/lib/moov/models/components/requestcard.rb +2 -2
- data/lib/moov/models/components/transfer.rb +2 -2
- data/lib/moov/models/components/updateissuedcard.rb +2 -2
- data/lib/moov/models/components/wallet.rb +2 -2
- data/lib/moov/models/errors/accountterminalapplicationerror.rb +1 -1
- data/lib/moov/models/errors/addcapabilitieserror.rb +3 -3
- data/lib/moov/models/errors/apierror.rb +1 -1
- data/lib/moov/models/errors/assigncountrieserror.rb +3 -3
- data/lib/moov/models/errors/authtokenrequesterror.rb +1 -1
- data/lib/moov/models/errors/bankaccountvalidationerror.rb +1 -1
- data/lib/moov/models/errors/brandvalidationerror.rb +1 -1
- data/lib/moov/models/errors/cardacquiringrefund_error.rb +1 -1
- data/lib/moov/models/errors/connectaccountrequestvalidationerror.rb +3 -3
- data/lib/moov/models/errors/createaccounterror.rb +3 -3
- data/lib/moov/models/errors/createpaymentlinkerror.rb +1 -1
- data/lib/moov/models/errors/createsweepconfigerror.rb +1 -1
- data/lib/moov/models/errors/createwalletvalidationerror.rb +1 -1
- data/lib/moov/models/errors/createwebhookvalidationerror.rb +1 -1
- data/lib/moov/models/errors/duplicatecarderror.rb +1 -1
- data/lib/moov/models/errors/feeplanagreementerror.rb +1 -1
- data/lib/moov/models/errors/fileuploadvalidationerror.rb +1 -1
- data/lib/moov/models/errors/filevalidationerror.rb +1 -1
- data/lib/moov/models/errors/genericerror.rb +1 -1
- data/lib/moov/models/errors/imagemetadatavalidationerror.rb +1 -1
- data/lib/moov/models/errors/imagerequestvalidationerror.rb +1 -1
- data/lib/moov/models/errors/linkapplepayerror.rb +1 -1
- data/lib/moov/models/errors/linkcarderror.rb +1 -1
- data/lib/moov/models/errors/listtransfersvalidationerror.rb +1 -1
- data/lib/moov/models/errors/listwalletsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/listwallettransactionsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/microdepositvalidationerror.rb +1 -1
- data/lib/moov/models/errors/onboardinginviteerror.rb +5 -5
- data/lib/moov/models/errors/patchaccounterror.rb +1 -1
- data/lib/moov/models/errors/patchsweepconfigerror.rb +1 -1
- data/lib/moov/models/errors/patchtransfervalidationerror.rb +1 -1
- data/lib/moov/models/errors/patchwalletvalidationerror.rb +1 -1
- data/lib/moov/models/errors/productrequestvalidationerror.rb +4 -4
- data/lib/moov/models/errors/refundvalidationerror.rb +1 -1
- data/lib/moov/models/errors/representativevalidationerror.rb +1 -1
- data/lib/moov/models/errors/requestcarderror.rb +1 -1
- data/lib/moov/models/errors/reversalvalidationerror.rb +1 -1
- data/lib/moov/models/errors/revoketokenrequesterror.rb +1 -1
- data/lib/moov/models/errors/schedulevalidationerror.rb +3 -3
- data/lib/moov/models/errors/terminalapplicationerror.rb +1 -1
- data/lib/moov/models/errors/transfer_error.rb +3 -3
- data/lib/moov/models/errors/transferoptionsvalidationerror.rb +1 -1
- data/lib/moov/models/errors/transfervalidationerror.rb +1 -1
- data/lib/moov/models/errors/updatecarderror.rb +1 -1
- data/lib/moov/models/errors/updateissuedcarderror.rb +1 -1
- data/lib/moov/models/errors/updatepaymentlinkerror.rb +1 -1
- data/lib/moov/models/errors/updateunderwritingerror.rb +1 -1
- data/lib/moov/models/errors/updatewebhookvalidationerror.rb +1 -1
- data/lib/moov/models/operations/acceptdispute_response.rb +2 -2
- data/lib/moov/models/operations/assignaccountcountries_response.rb +2 -2
- data/lib/moov/models/operations/batchgettransfers_response.rb +3 -3
- data/lib/moov/models/operations/cancelschedule_response.rb +2 -2
- data/lib/moov/models/operations/completebankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/completemicrodeposits_response.rb +2 -2
- data/lib/moov/models/operations/connectaccount_response.rb +2 -2
- data/lib/moov/models/operations/createaccesstoken_response.rb +2 -2
- data/lib/moov/models/operations/createaccount_response.rb +2 -2
- data/lib/moov/models/operations/createapplepaysession_response.rb +2 -2
- data/lib/moov/models/operations/createbrand_response.rb +2 -2
- data/lib/moov/models/operations/createcancellation_response.rb +2 -2
- data/lib/moov/models/operations/createfeeplanagreements_response.rb +2 -2
- data/lib/moov/models/operations/createonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/createpaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/createproduct_response.rb +2 -2
- data/lib/moov/models/operations/createreceipts_response.rb +2 -2
- data/lib/moov/models/operations/createrepresentative_response.rb +2 -2
- data/lib/moov/models/operations/createreversal_response.rb +2 -2
- data/lib/moov/models/operations/createschedule_response.rb +2 -2
- data/lib/moov/models/operations/createsweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/createterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/createterminalapplicationversion_response.rb +2 -2
- data/lib/moov/models/operations/createtransfer_response.rb +2 -2
- data/lib/moov/models/operations/createtransferoptions_response.rb +2 -2
- data/lib/moov/models/operations/createwallet_response.rb +2 -2
- data/lib/moov/models/operations/createwebhook_response.rb +2 -2
- data/lib/moov/models/operations/deletedisputeevidencefile_response.rb +2 -2
- data/lib/moov/models/operations/deleteimage_response.rb +2 -2
- data/lib/moov/models/operations/deleterepresentative_response.rb +2 -2
- data/lib/moov/models/operations/deleteterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/disablebankaccount_response.rb +2 -2
- data/lib/moov/models/operations/disablecapability_response.rb +2 -2
- data/lib/moov/models/operations/disablecard_response.rb +2 -2
- data/lib/moov/models/operations/disablepaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/disableproduct_response.rb +2 -2
- data/lib/moov/models/operations/disablewebhook_response.rb +2 -2
- data/lib/moov/models/operations/disconnectaccount_response.rb +2 -2
- data/lib/moov/models/operations/generateendtoendkey_response.rb +2 -2
- data/lib/moov/models/operations/getaccount_response.rb +2 -2
- data/lib/moov/models/operations/getaccountcountries_response.rb +2 -2
- data/lib/moov/models/operations/getaccountterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/getadjustment_response.rb +2 -2
- data/lib/moov/models/operations/getapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/getavatar_response.rb +2 -2
- data/lib/moov/models/operations/getbankaccount_response.rb +2 -2
- data/lib/moov/models/operations/getbankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/getbrand_response.rb +2 -2
- data/lib/moov/models/operations/getcancellation_response.rb +2 -2
- data/lib/moov/models/operations/getcapability_response.rb +2 -2
- data/lib/moov/models/operations/getcard_response.rb +2 -2
- data/lib/moov/models/operations/getdispute_response.rb +2 -2
- data/lib/moov/models/operations/getdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/getdisputeevidencedata_response.rb +2 -2
- data/lib/moov/models/operations/getenrichmentaddress_response.rb +2 -2
- data/lib/moov/models/operations/getenrichmentprofile_response.rb +2 -2
- data/lib/moov/models/operations/getfiledetails_response.rb +2 -2
- data/lib/moov/models/operations/getfullissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/getimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/getissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/getissuedcardauthorization_response.rb +2 -2
- data/lib/moov/models/operations/getissuedcardtransaction_response.rb +2 -2
- data/lib/moov/models/operations/getmerchantprocessingagreement_response.rb +2 -2
- data/lib/moov/models/operations/getonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentlinkqrcode_response.rb +2 -2
- data/lib/moov/models/operations/getpaymentmethod_response.rb +2 -2
- data/lib/moov/models/operations/getproduct_response.rb +2 -2
- data/lib/moov/models/operations/getpublicimage_response.rb +2 -2
- data/lib/moov/models/operations/getrefund_response.rb +2 -2
- data/lib/moov/models/operations/getrepresentative_response.rb +2 -2
- data/lib/moov/models/operations/getresidual_response.rb +2 -2
- data/lib/moov/models/operations/getscheduledoccurrence_response.rb +2 -2
- data/lib/moov/models/operations/getschedules_response.rb +2 -2
- data/lib/moov/models/operations/getstatement_response.rb +2 -2
- data/lib/moov/models/operations/getsweep_response.rb +2 -2
- data/lib/moov/models/operations/getsweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/getterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/getterminalconfiguration_response.rb +2 -2
- data/lib/moov/models/operations/gettermsofservicetoken_response.rb +2 -2
- data/lib/moov/models/operations/gettransfer_response.rb +2 -2
- data/lib/moov/models/operations/getunderwriting_response.rb +2 -2
- data/lib/moov/models/operations/getwallet_response.rb +2 -2
- data/lib/moov/models/operations/getwallettransaction_response.rb +2 -2
- data/lib/moov/models/operations/getwebhook_response.rb +2 -2
- data/lib/moov/models/operations/getwebhooksecret_response.rb +2 -2
- data/lib/moov/models/operations/initiatebankaccountverification_response.rb +2 -2
- data/lib/moov/models/operations/initiatemicrodeposits_response.rb +2 -2
- data/lib/moov/models/operations/initiaterefund_response.rb +2 -2
- data/lib/moov/models/operations/linkaccountterminalapplication_response.rb +2 -2
- data/lib/moov/models/operations/linkapplepaytoken_response.rb +2 -2
- data/lib/moov/models/operations/linkbankaccount_response.rb +2 -2
- data/lib/moov/models/operations/linkcard_response.rb +2 -2
- data/lib/moov/models/operations/listaccounts_response.rb +2 -2
- data/lib/moov/models/operations/listaccountterminalapplications_response.rb +2 -2
- data/lib/moov/models/operations/listadjustments_response.rb +2 -2
- data/lib/moov/models/operations/listbankaccounts_response.rb +2 -2
- data/lib/moov/models/operations/listcancellations_response.rb +2 -2
- data/lib/moov/models/operations/listcapabilities_response.rb +2 -2
- data/lib/moov/models/operations/listcards_response.rb +2 -2
- data/lib/moov/models/operations/listconnectedaccountsforaccount_response.rb +2 -2
- data/lib/moov/models/operations/listdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/listdisputes_response.rb +2 -2
- data/lib/moov/models/operations/listeventtypes_response.rb +2 -2
- data/lib/moov/models/operations/listfeeplanagreements_response.rb +2 -2
- data/lib/moov/models/operations/listfeeplans_response.rb +2 -2
- data/lib/moov/models/operations/listfeerevenue_response.rb +2 -2
- data/lib/moov/models/operations/listfeesfetch_response.rb +2 -2
- data/lib/moov/models/operations/listfiles_response.rb +2 -2
- data/lib/moov/models/operations/listimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/listindustries_response.rb +2 -2
- data/lib/moov/models/operations/listinstitutions_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizationevents_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcards_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_response.rb +2 -2
- data/lib/moov/models/operations/listonboardinginvites_response.rb +2 -2
- data/lib/moov/models/operations/listpartnerpricingagreements_response.rb +2 -2
- data/lib/moov/models/operations/listpaymentlinks_response.rb +2 -2
- data/lib/moov/models/operations/listpaymentmethods_response.rb +2 -2
- data/lib/moov/models/operations/listproducts_response.rb +2 -2
- data/lib/moov/models/operations/listreceipts_response.rb +2 -2
- data/lib/moov/models/operations/listrefunds_response.rb +2 -2
- data/lib/moov/models/operations/listrepresentatives_response.rb +2 -2
- data/lib/moov/models/operations/listresidualfees_response.rb +2 -2
- data/lib/moov/models/operations/listresiduals_response.rb +2 -2
- data/lib/moov/models/operations/listschedules_response.rb +2 -2
- data/lib/moov/models/operations/liststatements_response.rb +2 -2
- data/lib/moov/models/operations/listsweepconfigs_response.rb +2 -2
- data/lib/moov/models/operations/listsweeps_response.rb +2 -2
- data/lib/moov/models/operations/listterminalapplications_response.rb +2 -2
- data/lib/moov/models/operations/listtransfers_response.rb +2 -2
- data/lib/moov/models/operations/listwallets_response.rb +2 -2
- data/lib/moov/models/operations/listwallettransactions_response.rb +2 -2
- data/lib/moov/models/operations/listwebhooks_response.rb +2 -2
- data/lib/moov/models/operations/ping_response.rb +2 -2
- data/lib/moov/models/operations/pingwebhook_response.rb +2 -2
- data/lib/moov/models/operations/registerapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/requestcapabilities_response.rb +2 -2
- data/lib/moov/models/operations/requestcard_response.rb +2 -2
- data/lib/moov/models/operations/retrievefees_response.rb +2 -2
- data/lib/moov/models/operations/revokeaccesstoken_response.rb +2 -2
- data/lib/moov/models/operations/revokeonboardinginvite_response.rb +2 -2
- data/lib/moov/models/operations/searchinstitutions_response.rb +2 -2
- data/lib/moov/models/operations/submitdisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/testendtoendtoken_response.rb +2 -2
- data/lib/moov/models/operations/updateaccount_response.rb +2 -2
- data/lib/moov/models/operations/updateapplepaymerchantdomains_response.rb +2 -2
- data/lib/moov/models/operations/updatecard_response.rb +2 -2
- data/lib/moov/models/operations/updatedisputeevidence_response.rb +2 -2
- data/lib/moov/models/operations/updateimage_response.rb +2 -2
- data/lib/moov/models/operations/updateimagemetadata_response.rb +2 -2
- data/lib/moov/models/operations/updateissuedcard_response.rb +2 -2
- data/lib/moov/models/operations/updatepaymentlink_response.rb +2 -2
- data/lib/moov/models/operations/updateproduct_response.rb +2 -2
- data/lib/moov/models/operations/updaterepresentative_response.rb +2 -2
- data/lib/moov/models/operations/updateschedule_response.rb +2 -2
- data/lib/moov/models/operations/updatesweepconfig_response.rb +2 -2
- data/lib/moov/models/operations/updatetransfer_response.rb +2 -2
- data/lib/moov/models/operations/updatewallet_response.rb +2 -2
- data/lib/moov/models/operations/updatewebhook_response.rb +2 -2
- data/lib/moov/models/operations/uploaddisputeevidencefile_response.rb +2 -2
- data/lib/moov/models/operations/uploaddisputeevidencetext_response.rb +2 -2
- data/lib/moov/models/operations/uploadfile_response.rb +2 -2
- data/lib/moov/models/operations/uploadimage_response.rb +2 -2
- data/lib/moov/models/operations/upsertbrand_response.rb +2 -2
- data/lib/moov/models/operations/upsertunderwriting_response.rb +2 -2
- data/lib/moov/onboarding.rb +24 -24
- data/lib/moov/payment_links.rb +38 -38
- data/lib/moov/payment_methods.rb +11 -11
- data/lib/moov/ping.rb +5 -5
- data/lib/moov/products.rb +34 -34
- data/lib/moov/receipts.rb +14 -14
- data/lib/moov/representatives.rb +33 -33
- data/lib/moov/scheduling.rb +39 -39
- data/lib/moov/sdk_hooks/hooks.rb +1 -1
- data/lib/moov/sdk_hooks/types.rb +14 -14
- data/lib/moov/sdkconfiguration.rb +17 -17
- data/lib/moov/statements.rb +12 -12
- data/lib/moov/sweeps.rb +39 -39
- data/lib/moov/terminal_applications.rb +34 -34
- data/lib/moov/transfers.rb +92 -92
- data/lib/moov/underwriting.rb +15 -15
- data/lib/moov/utils/forms.rb +23 -23
- data/lib/moov/utils/headers.rb +4 -4
- data/lib/moov/utils/query_params.rb +14 -14
- data/lib/moov/utils/request_bodies.rb +7 -7
- data/lib/moov/utils/retries.rb +5 -5
- data/lib/moov/utils/security.rb +16 -16
- data/lib/moov/utils/url.rb +6 -6
- data/lib/moov/utils/utils.rb +31 -31
- data/lib/moov/wallet_transactions.rb +12 -12
- data/lib/moov/wallets.rb +30 -30
- data/lib/moov/webhooks.rb +49 -49
- metadata +2 -2
data/lib/moov/bank_accounts.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
26
|
+
sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
|
|
27
27
|
def get_url(base_url:, url_variables: nil)
|
|
28
28
|
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ module Moov
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
sig { params(link_bank_account: T.any(Models::Components::BankAccountPayload, Models::Components::PlaidPayload, Models::Components::PlaidLinkPayload, Models::Components::MxPayload), account_id: ::String, x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::LinkBankAccountResponse) }
|
|
44
|
+
sig { params(link_bank_account: T.any(Models::Components::BankAccountPayload, Models::Components::PlaidPayload, Models::Components::PlaidLinkPayload, Models::Components::MxPayload), account_id: ::String, x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::LinkBankAccountResponse) }
|
|
45
45
|
def link(link_bank_account:, account_id:, x_wait_for: nil, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# link - Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
|
|
47
47
|
#
|
|
@@ -66,15 +66,15 @@ module Moov
|
|
|
66
66
|
request
|
|
67
67
|
)
|
|
68
68
|
headers = Utils.get_headers(request)
|
|
69
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
69
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
70
70
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :link_bank_account, :json)
|
|
71
71
|
headers['content-type'] = req_content_type
|
|
72
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
72
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
73
73
|
|
|
74
74
|
if form && !form.empty?
|
|
75
75
|
body = Utils.encode_form(form)
|
|
76
76
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
77
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
77
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
78
78
|
else
|
|
79
79
|
body = data
|
|
80
80
|
end
|
|
@@ -97,7 +97,7 @@ module Moov
|
|
|
97
97
|
security_source: @sdk_configuration.security_source
|
|
98
98
|
)
|
|
99
99
|
|
|
100
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
100
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
101
101
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
102
102
|
|
|
103
103
|
|
|
@@ -118,7 +118,7 @@ module Moov
|
|
|
118
118
|
request: req
|
|
119
119
|
)
|
|
120
120
|
end
|
|
121
|
-
rescue StandardError => e
|
|
121
|
+
rescue ::StandardError => e
|
|
122
122
|
error = e
|
|
123
123
|
ensure
|
|
124
124
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -154,7 +154,7 @@ module Moov
|
|
|
154
154
|
response: http_response
|
|
155
155
|
)
|
|
156
156
|
response_data = http_response.env.response_body
|
|
157
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccount)
|
|
157
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BankAccount)
|
|
158
158
|
response = Models::Operations::LinkBankAccountResponse.new(
|
|
159
159
|
status_code: http_response.status,
|
|
160
160
|
content_type: content_type,
|
|
@@ -176,7 +176,7 @@ module Moov
|
|
|
176
176
|
response: http_response
|
|
177
177
|
)
|
|
178
178
|
response_data = http_response.env.response_body
|
|
179
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
179
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
180
180
|
obj.raw_response = http_response
|
|
181
181
|
raise obj
|
|
182
182
|
else
|
|
@@ -191,7 +191,7 @@ module Moov
|
|
|
191
191
|
response: http_response
|
|
192
192
|
)
|
|
193
193
|
response_data = http_response.env.response_body
|
|
194
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BankAccountValidationError)
|
|
194
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BankAccountValidationError)
|
|
195
195
|
obj.raw_response = http_response
|
|
196
196
|
raise obj
|
|
197
197
|
else
|
|
@@ -212,7 +212,7 @@ module Moov
|
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
|
|
215
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListBankAccountsResponse) }
|
|
215
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListBankAccountsResponse) }
|
|
216
216
|
def list(account_id:, timeout_ms: nil, http_headers: nil)
|
|
217
217
|
# list - List all the bank accounts associated with a particular Moov account.
|
|
218
218
|
#
|
|
@@ -232,7 +232,7 @@ module Moov
|
|
|
232
232
|
request
|
|
233
233
|
)
|
|
234
234
|
headers = {}
|
|
235
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
235
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
236
236
|
headers['Accept'] = 'application/json'
|
|
237
237
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
238
238
|
|
|
@@ -252,7 +252,7 @@ module Moov
|
|
|
252
252
|
security_source: @sdk_configuration.security_source
|
|
253
253
|
)
|
|
254
254
|
|
|
255
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
255
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
256
256
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
257
257
|
|
|
258
258
|
|
|
@@ -272,7 +272,7 @@ module Moov
|
|
|
272
272
|
request: req
|
|
273
273
|
)
|
|
274
274
|
end
|
|
275
|
-
rescue StandardError => e
|
|
275
|
+
rescue ::StandardError => e
|
|
276
276
|
error = e
|
|
277
277
|
ensure
|
|
278
278
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -308,7 +308,7 @@ module Moov
|
|
|
308
308
|
response: http_response
|
|
309
309
|
)
|
|
310
310
|
response_data = http_response.env.response_body
|
|
311
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::BankAccount))
|
|
311
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::BankAccount))
|
|
312
312
|
response = Models::Operations::ListBankAccountsResponse.new(
|
|
313
313
|
status_code: http_response.status,
|
|
314
314
|
content_type: content_type,
|
|
@@ -336,7 +336,7 @@ module Moov
|
|
|
336
336
|
end
|
|
337
337
|
|
|
338
338
|
|
|
339
|
-
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBankAccountResponse) }
|
|
339
|
+
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetBankAccountResponse) }
|
|
340
340
|
def get(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
341
341
|
# get - Retrieve bank account details (i.e. routing number or account type) associated with a specific Moov account.
|
|
342
342
|
#
|
|
@@ -357,7 +357,7 @@ module Moov
|
|
|
357
357
|
request
|
|
358
358
|
)
|
|
359
359
|
headers = {}
|
|
360
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
360
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
361
361
|
headers['Accept'] = 'application/json'
|
|
362
362
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
363
363
|
|
|
@@ -377,7 +377,7 @@ module Moov
|
|
|
377
377
|
security_source: @sdk_configuration.security_source
|
|
378
378
|
)
|
|
379
379
|
|
|
380
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
380
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
381
381
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
382
382
|
|
|
383
383
|
|
|
@@ -397,7 +397,7 @@ module Moov
|
|
|
397
397
|
request: req
|
|
398
398
|
)
|
|
399
399
|
end
|
|
400
|
-
rescue StandardError => e
|
|
400
|
+
rescue ::StandardError => e
|
|
401
401
|
error = e
|
|
402
402
|
ensure
|
|
403
403
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -433,7 +433,7 @@ module Moov
|
|
|
433
433
|
response: http_response
|
|
434
434
|
)
|
|
435
435
|
response_data = http_response.env.response_body
|
|
436
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccount)
|
|
436
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BankAccount)
|
|
437
437
|
response = Models::Operations::GetBankAccountResponse.new(
|
|
438
438
|
status_code: http_response.status,
|
|
439
439
|
content_type: content_type,
|
|
@@ -461,7 +461,7 @@ module Moov
|
|
|
461
461
|
end
|
|
462
462
|
|
|
463
463
|
|
|
464
|
-
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableBankAccountResponse) }
|
|
464
|
+
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::DisableBankAccountResponse) }
|
|
465
465
|
def disable(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
466
466
|
# disable - Discontinue using a specified bank account linked to a Moov account.
|
|
467
467
|
#
|
|
@@ -480,7 +480,7 @@ module Moov
|
|
|
480
480
|
request
|
|
481
481
|
)
|
|
482
482
|
headers = {}
|
|
483
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
483
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
484
484
|
headers['Accept'] = 'application/json'
|
|
485
485
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
486
486
|
|
|
@@ -500,7 +500,7 @@ module Moov
|
|
|
500
500
|
security_source: @sdk_configuration.security_source
|
|
501
501
|
)
|
|
502
502
|
|
|
503
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
503
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
504
504
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
505
505
|
|
|
506
506
|
|
|
@@ -520,7 +520,7 @@ module Moov
|
|
|
520
520
|
request: req
|
|
521
521
|
)
|
|
522
522
|
end
|
|
523
|
-
rescue StandardError => e
|
|
523
|
+
rescue ::StandardError => e
|
|
524
524
|
error = e
|
|
525
525
|
ensure
|
|
526
526
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -569,7 +569,7 @@ module Moov
|
|
|
569
569
|
response: http_response
|
|
570
570
|
)
|
|
571
571
|
response_data = http_response.env.response_body
|
|
572
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
572
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
573
573
|
obj.raw_response = http_response
|
|
574
574
|
raise obj
|
|
575
575
|
else
|
|
@@ -590,7 +590,7 @@ module Moov
|
|
|
590
590
|
end
|
|
591
591
|
|
|
592
592
|
|
|
593
|
-
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateMicroDepositsResponse) }
|
|
593
|
+
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::InitiateMicroDepositsResponse) }
|
|
594
594
|
def initiate_micro_deposits(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
595
595
|
# initiate_micro_deposits - Micro-deposits help confirm bank account ownership, helping reduce fraud and the risk of unauthorized activity.
|
|
596
596
|
# Use this method to initiate the micro-deposit verification, sending two small credit transfers to the bank account
|
|
@@ -620,7 +620,7 @@ module Moov
|
|
|
620
620
|
request
|
|
621
621
|
)
|
|
622
622
|
headers = {}
|
|
623
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
623
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
624
624
|
headers['Accept'] = 'application/json'
|
|
625
625
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
626
626
|
|
|
@@ -640,7 +640,7 @@ module Moov
|
|
|
640
640
|
security_source: @sdk_configuration.security_source
|
|
641
641
|
)
|
|
642
642
|
|
|
643
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
643
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
644
644
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
645
645
|
|
|
646
646
|
|
|
@@ -660,7 +660,7 @@ module Moov
|
|
|
660
660
|
request: req
|
|
661
661
|
)
|
|
662
662
|
end
|
|
663
|
-
rescue StandardError => e
|
|
663
|
+
rescue ::StandardError => e
|
|
664
664
|
error = e
|
|
665
665
|
ensure
|
|
666
666
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -709,7 +709,7 @@ module Moov
|
|
|
709
709
|
response: http_response
|
|
710
710
|
)
|
|
711
711
|
response_data = http_response.env.response_body
|
|
712
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
712
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
713
713
|
obj.raw_response = http_response
|
|
714
714
|
raise obj
|
|
715
715
|
else
|
|
@@ -730,7 +730,7 @@ module Moov
|
|
|
730
730
|
end
|
|
731
731
|
|
|
732
732
|
|
|
733
|
-
sig { params(complete_micro_deposits: Models::Components::CompleteMicroDeposits, account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CompleteMicroDepositsResponse) }
|
|
733
|
+
sig { params(complete_micro_deposits: Models::Components::CompleteMicroDeposits, account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CompleteMicroDepositsResponse) }
|
|
734
734
|
def complete_micro_deposits(complete_micro_deposits:, account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
735
735
|
# complete_micro_deposits - Complete the micro-deposit validation process by passing the amounts of the two transfers within three tries.
|
|
736
736
|
#
|
|
@@ -750,15 +750,15 @@ module Moov
|
|
|
750
750
|
request
|
|
751
751
|
)
|
|
752
752
|
headers = {}
|
|
753
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
753
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
754
754
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :complete_micro_deposits, :json)
|
|
755
755
|
headers['content-type'] = req_content_type
|
|
756
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
756
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
757
757
|
|
|
758
758
|
if form && !form.empty?
|
|
759
759
|
body = Utils.encode_form(form)
|
|
760
760
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
761
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
761
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
762
762
|
else
|
|
763
763
|
body = data
|
|
764
764
|
end
|
|
@@ -781,7 +781,7 @@ module Moov
|
|
|
781
781
|
security_source: @sdk_configuration.security_source
|
|
782
782
|
)
|
|
783
783
|
|
|
784
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
784
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
785
785
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
786
786
|
|
|
787
787
|
|
|
@@ -802,7 +802,7 @@ module Moov
|
|
|
802
802
|
request: req
|
|
803
803
|
)
|
|
804
804
|
end
|
|
805
|
-
rescue StandardError => e
|
|
805
|
+
rescue ::StandardError => e
|
|
806
806
|
error = e
|
|
807
807
|
ensure
|
|
808
808
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -838,7 +838,7 @@ module Moov
|
|
|
838
838
|
response: http_response
|
|
839
839
|
)
|
|
840
840
|
response_data = http_response.env.response_body
|
|
841
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::CompletedMicroDeposits)
|
|
841
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::CompletedMicroDeposits)
|
|
842
842
|
response = Models::Operations::CompleteMicroDepositsResponse.new(
|
|
843
843
|
status_code: http_response.status,
|
|
844
844
|
content_type: content_type,
|
|
@@ -860,7 +860,7 @@ module Moov
|
|
|
860
860
|
response: http_response
|
|
861
861
|
)
|
|
862
862
|
response_data = http_response.env.response_body
|
|
863
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
863
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
864
864
|
obj.raw_response = http_response
|
|
865
865
|
raise obj
|
|
866
866
|
else
|
|
@@ -875,7 +875,7 @@ module Moov
|
|
|
875
875
|
response: http_response
|
|
876
876
|
)
|
|
877
877
|
response_data = http_response.env.response_body
|
|
878
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::MicroDepositValidationError)
|
|
878
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::MicroDepositValidationError)
|
|
879
879
|
obj.raw_response = http_response
|
|
880
880
|
raise obj
|
|
881
881
|
else
|
|
@@ -896,7 +896,7 @@ module Moov
|
|
|
896
896
|
end
|
|
897
897
|
|
|
898
898
|
|
|
899
|
-
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBankAccountVerificationResponse) }
|
|
899
|
+
sig { params(account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetBankAccountVerificationResponse) }
|
|
900
900
|
def get_verification(account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
901
901
|
# get_verification - Retrieve the current status and details of an instant verification, including whether the verification method was instant (RTP or FedNow) or same-day
|
|
902
902
|
# ACH. This helps track the verification process in real-time and provides details in case of exceptions.
|
|
@@ -924,7 +924,7 @@ module Moov
|
|
|
924
924
|
request
|
|
925
925
|
)
|
|
926
926
|
headers = {}
|
|
927
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
927
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
928
928
|
headers['Accept'] = 'application/json'
|
|
929
929
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
930
930
|
|
|
@@ -944,7 +944,7 @@ module Moov
|
|
|
944
944
|
security_source: @sdk_configuration.security_source
|
|
945
945
|
)
|
|
946
946
|
|
|
947
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
947
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
948
948
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
949
949
|
|
|
950
950
|
|
|
@@ -964,7 +964,7 @@ module Moov
|
|
|
964
964
|
request: req
|
|
965
965
|
)
|
|
966
966
|
end
|
|
967
|
-
rescue StandardError => e
|
|
967
|
+
rescue ::StandardError => e
|
|
968
968
|
error = e
|
|
969
969
|
ensure
|
|
970
970
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1000,7 +1000,7 @@ module Moov
|
|
|
1000
1000
|
response: http_response
|
|
1001
1001
|
)
|
|
1002
1002
|
response_data = http_response.env.response_body
|
|
1003
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccountVerification)
|
|
1003
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BankAccountVerification)
|
|
1004
1004
|
response = Models::Operations::GetBankAccountVerificationResponse.new(
|
|
1005
1005
|
status_code: http_response.status,
|
|
1006
1006
|
content_type: content_type,
|
|
@@ -1028,7 +1028,7 @@ module Moov
|
|
|
1028
1028
|
end
|
|
1029
1029
|
|
|
1030
1030
|
|
|
1031
|
-
sig { params(account_id: ::String, bank_account_id: ::String, x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateBankAccountVerificationResponse) }
|
|
1031
|
+
sig { params(account_id: ::String, bank_account_id: ::String, x_wait_for: T.nilable(Models::Components::BankAccountWaitFor), timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::InitiateBankAccountVerificationResponse) }
|
|
1032
1032
|
def initiate_verification(account_id:, bank_account_id:, x_wait_for: nil, timeout_ms: nil, http_headers: nil)
|
|
1033
1033
|
# initiate_verification - Instant micro-deposit verification offers a quick and efficient way to verify bank account ownership.
|
|
1034
1034
|
#
|
|
@@ -1063,7 +1063,7 @@ module Moov
|
|
|
1063
1063
|
request
|
|
1064
1064
|
)
|
|
1065
1065
|
headers = Utils.get_headers(request)
|
|
1066
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1066
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1067
1067
|
headers['Accept'] = 'application/json'
|
|
1068
1068
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
1069
1069
|
|
|
@@ -1083,7 +1083,7 @@ module Moov
|
|
|
1083
1083
|
security_source: @sdk_configuration.security_source
|
|
1084
1084
|
)
|
|
1085
1085
|
|
|
1086
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1086
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1087
1087
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1088
1088
|
|
|
1089
1089
|
|
|
@@ -1103,7 +1103,7 @@ module Moov
|
|
|
1103
1103
|
request: req
|
|
1104
1104
|
)
|
|
1105
1105
|
end
|
|
1106
|
-
rescue StandardError => e
|
|
1106
|
+
rescue ::StandardError => e
|
|
1107
1107
|
error = e
|
|
1108
1108
|
ensure
|
|
1109
1109
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1139,7 +1139,7 @@ module Moov
|
|
|
1139
1139
|
response: http_response
|
|
1140
1140
|
)
|
|
1141
1141
|
response_data = http_response.env.response_body
|
|
1142
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccountVerificationCreated)
|
|
1142
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BankAccountVerificationCreated)
|
|
1143
1143
|
response = Models::Operations::InitiateBankAccountVerificationResponse.new(
|
|
1144
1144
|
status_code: http_response.status,
|
|
1145
1145
|
content_type: content_type,
|
|
@@ -1161,7 +1161,7 @@ module Moov
|
|
|
1161
1161
|
response: http_response
|
|
1162
1162
|
)
|
|
1163
1163
|
response_data = http_response.env.response_body
|
|
1164
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1164
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
1165
1165
|
obj.raw_response = http_response
|
|
1166
1166
|
raise obj
|
|
1167
1167
|
else
|
|
@@ -1182,7 +1182,7 @@ module Moov
|
|
|
1182
1182
|
end
|
|
1183
1183
|
|
|
1184
1184
|
|
|
1185
|
-
sig { params(complete_bank_account_verification: Models::Components::CompleteBankAccountVerification, account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CompleteBankAccountVerificationResponse) }
|
|
1185
|
+
sig { params(complete_bank_account_verification: Models::Components::CompleteBankAccountVerification, account_id: ::String, bank_account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CompleteBankAccountVerificationResponse) }
|
|
1186
1186
|
def complete_verification(complete_bank_account_verification:, account_id:, bank_account_id:, timeout_ms: nil, http_headers: nil)
|
|
1187
1187
|
# complete_verification - Finalize the instant micro-deposit verification by submitting the verification code displayed in the user's bank account.
|
|
1188
1188
|
#
|
|
@@ -1209,15 +1209,15 @@ module Moov
|
|
|
1209
1209
|
request
|
|
1210
1210
|
)
|
|
1211
1211
|
headers = {}
|
|
1212
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
1212
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
1213
1213
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :complete_bank_account_verification, :json)
|
|
1214
1214
|
headers['content-type'] = req_content_type
|
|
1215
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1215
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
1216
1216
|
|
|
1217
1217
|
if form && !form.empty?
|
|
1218
1218
|
body = Utils.encode_form(form)
|
|
1219
1219
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1220
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
1220
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
1221
1221
|
else
|
|
1222
1222
|
body = data
|
|
1223
1223
|
end
|
|
@@ -1240,7 +1240,7 @@ module Moov
|
|
|
1240
1240
|
security_source: @sdk_configuration.security_source
|
|
1241
1241
|
)
|
|
1242
1242
|
|
|
1243
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
1243
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
1244
1244
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
1245
1245
|
|
|
1246
1246
|
|
|
@@ -1261,7 +1261,7 @@ module Moov
|
|
|
1261
1261
|
request: req
|
|
1262
1262
|
)
|
|
1263
1263
|
end
|
|
1264
|
-
rescue StandardError => e
|
|
1264
|
+
rescue ::StandardError => e
|
|
1265
1265
|
error = e
|
|
1266
1266
|
ensure
|
|
1267
1267
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1297,7 +1297,7 @@ module Moov
|
|
|
1297
1297
|
response: http_response
|
|
1298
1298
|
)
|
|
1299
1299
|
response_data = http_response.env.response_body
|
|
1300
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BankAccountVerification)
|
|
1300
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BankAccountVerification)
|
|
1301
1301
|
response = Models::Operations::CompleteBankAccountVerificationResponse.new(
|
|
1302
1302
|
status_code: http_response.status,
|
|
1303
1303
|
content_type: content_type,
|
|
@@ -1319,7 +1319,7 @@ module Moov
|
|
|
1319
1319
|
response: http_response
|
|
1320
1320
|
)
|
|
1321
1321
|
response_data = http_response.env.response_body
|
|
1322
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
1322
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
1323
1323
|
obj.raw_response = http_response
|
|
1324
1324
|
raise obj
|
|
1325
1325
|
else
|
data/lib/moov/branding.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Moov
|
|
|
23
23
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
26
|
+
sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
|
|
27
27
|
def get_url(base_url:, url_variables: nil)
|
|
28
28
|
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ module Moov
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateBrandResponse) }
|
|
44
|
+
sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::CreateBrandResponse) }
|
|
45
45
|
def create(brand_properties:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# create - Create brand properties for the specified account.
|
|
47
47
|
#
|
|
@@ -60,15 +60,15 @@ module Moov
|
|
|
60
60
|
request
|
|
61
61
|
)
|
|
62
62
|
headers = {}
|
|
63
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
63
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
64
64
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :brand_properties, :json)
|
|
65
65
|
headers['content-type'] = req_content_type
|
|
66
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
66
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
67
67
|
|
|
68
68
|
if form && !form.empty?
|
|
69
69
|
body = Utils.encode_form(form)
|
|
70
70
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
71
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
71
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
72
72
|
else
|
|
73
73
|
body = data
|
|
74
74
|
end
|
|
@@ -91,7 +91,7 @@ module Moov
|
|
|
91
91
|
security_source: @sdk_configuration.security_source
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
94
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
95
95
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
96
96
|
|
|
97
97
|
|
|
@@ -112,7 +112,7 @@ module Moov
|
|
|
112
112
|
request: req
|
|
113
113
|
)
|
|
114
114
|
end
|
|
115
|
-
rescue StandardError => e
|
|
115
|
+
rescue ::StandardError => e
|
|
116
116
|
error = e
|
|
117
117
|
ensure
|
|
118
118
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -148,7 +148,7 @@ module Moov
|
|
|
148
148
|
response: http_response
|
|
149
149
|
)
|
|
150
150
|
response_data = http_response.env.response_body
|
|
151
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BrandProperties)
|
|
151
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BrandProperties)
|
|
152
152
|
response = Models::Operations::CreateBrandResponse.new(
|
|
153
153
|
status_code: http_response.status,
|
|
154
154
|
content_type: content_type,
|
|
@@ -170,7 +170,7 @@ module Moov
|
|
|
170
170
|
response: http_response
|
|
171
171
|
)
|
|
172
172
|
response_data = http_response.env.response_body
|
|
173
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
173
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
174
174
|
obj.raw_response = http_response
|
|
175
175
|
raise obj
|
|
176
176
|
else
|
|
@@ -185,7 +185,7 @@ module Moov
|
|
|
185
185
|
response: http_response
|
|
186
186
|
)
|
|
187
187
|
response_data = http_response.env.response_body
|
|
188
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BrandValidationError)
|
|
188
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BrandValidationError)
|
|
189
189
|
obj.raw_response = http_response
|
|
190
190
|
raise obj
|
|
191
191
|
else
|
|
@@ -206,7 +206,7 @@ module Moov
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpsertBrandResponse) }
|
|
209
|
+
sig { params(brand_properties: Models::Components::BrandProperties, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::UpsertBrandResponse) }
|
|
210
210
|
def upsert(brand_properties:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
211
211
|
# upsert - Create or replace brand properties for the specified account.
|
|
212
212
|
#
|
|
@@ -225,15 +225,15 @@ module Moov
|
|
|
225
225
|
request
|
|
226
226
|
)
|
|
227
227
|
headers = {}
|
|
228
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
228
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
229
229
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :brand_properties, :json)
|
|
230
230
|
headers['content-type'] = req_content_type
|
|
231
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
231
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
232
232
|
|
|
233
233
|
if form && !form.empty?
|
|
234
234
|
body = Utils.encode_form(form)
|
|
235
235
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
236
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
236
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
237
237
|
else
|
|
238
238
|
body = data
|
|
239
239
|
end
|
|
@@ -256,7 +256,7 @@ module Moov
|
|
|
256
256
|
security_source: @sdk_configuration.security_source
|
|
257
257
|
)
|
|
258
258
|
|
|
259
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
259
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
260
260
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
261
261
|
|
|
262
262
|
|
|
@@ -277,7 +277,7 @@ module Moov
|
|
|
277
277
|
request: req
|
|
278
278
|
)
|
|
279
279
|
end
|
|
280
|
-
rescue StandardError => e
|
|
280
|
+
rescue ::StandardError => e
|
|
281
281
|
error = e
|
|
282
282
|
ensure
|
|
283
283
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -313,7 +313,7 @@ module Moov
|
|
|
313
313
|
response: http_response
|
|
314
314
|
)
|
|
315
315
|
response_data = http_response.env.response_body
|
|
316
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BrandProperties)
|
|
316
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BrandProperties)
|
|
317
317
|
response = Models::Operations::UpsertBrandResponse.new(
|
|
318
318
|
status_code: http_response.status,
|
|
319
319
|
content_type: content_type,
|
|
@@ -335,7 +335,7 @@ module Moov
|
|
|
335
335
|
response: http_response
|
|
336
336
|
)
|
|
337
337
|
response_data = http_response.env.response_body
|
|
338
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
338
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
339
339
|
obj.raw_response = http_response
|
|
340
340
|
raise obj
|
|
341
341
|
else
|
|
@@ -350,7 +350,7 @@ module Moov
|
|
|
350
350
|
response: http_response
|
|
351
351
|
)
|
|
352
352
|
response_data = http_response.env.response_body
|
|
353
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BrandValidationError)
|
|
353
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BrandValidationError)
|
|
354
354
|
obj.raw_response = http_response
|
|
355
355
|
raise obj
|
|
356
356
|
else
|
|
@@ -371,7 +371,7 @@ module Moov
|
|
|
371
371
|
end
|
|
372
372
|
|
|
373
373
|
|
|
374
|
-
sig { params(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetBrandResponse) }
|
|
374
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetBrandResponse) }
|
|
375
375
|
def get(account_id:, timeout_ms: nil, http_headers: nil)
|
|
376
376
|
# get - Get brand properties for the specified account.
|
|
377
377
|
#
|
|
@@ -389,7 +389,7 @@ module Moov
|
|
|
389
389
|
request
|
|
390
390
|
)
|
|
391
391
|
headers = {}
|
|
392
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
392
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
393
393
|
headers['Accept'] = 'application/json'
|
|
394
394
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
395
395
|
|
|
@@ -409,7 +409,7 @@ module Moov
|
|
|
409
409
|
security_source: @sdk_configuration.security_source
|
|
410
410
|
)
|
|
411
411
|
|
|
412
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
412
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
413
413
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
414
414
|
|
|
415
415
|
|
|
@@ -429,7 +429,7 @@ module Moov
|
|
|
429
429
|
request: req
|
|
430
430
|
)
|
|
431
431
|
end
|
|
432
|
-
rescue StandardError => e
|
|
432
|
+
rescue ::StandardError => e
|
|
433
433
|
error = e
|
|
434
434
|
ensure
|
|
435
435
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -465,7 +465,7 @@ module Moov
|
|
|
465
465
|
response: http_response
|
|
466
466
|
)
|
|
467
467
|
response_data = http_response.env.response_body
|
|
468
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::BrandProperties)
|
|
468
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::BrandProperties)
|
|
469
469
|
response = Models::Operations::GetBrandResponse.new(
|
|
470
470
|
status_code: http_response.status,
|
|
471
471
|
content_type: content_type,
|