moov_ruby 25.5.20 → 25.5.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 +35 -41
- 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/capability.rb +2 -0
- data/lib/moov/models/components/capabilityid.rb +2 -0
- 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/createsweepconfig.rb +6 -2
- data/lib/moov/models/components/createsweepconfig.rbi +2 -0
- 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 +8 -6
- data/lib/moov/models/components/issuedcard.rb +8 -6
- data/lib/moov/models/components/issuedcardauthorization.rb +6 -2
- data/lib/moov/models/components/issuedcardauthorization.rbi +2 -0
- data/lib/moov/models/components/issuedcardstate.rb +6 -4
- data/lib/moov/models/components/issuedcardtransaction.rb +6 -2
- data/lib/moov/models/components/issuedcardtransaction.rbi +2 -0
- data/lib/moov/models/components/issuingcontrolserror.rb +2 -2
- data/lib/moov/models/components/patchaccount.rb +2 -2
- data/lib/moov/models/components/patchsweepconfig.rb +6 -2
- data/lib/moov/models/components/patchsweepconfig.rbi +2 -0
- 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/schedule.rb +40 -0
- data/lib/moov/models/components/schedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfig.rb +6 -2
- data/lib/moov/models/components/sweepconfig.rbi +2 -0
- data/lib/moov/models/components/sweepconfigschedule.rb +40 -0
- data/lib/moov/models/components/sweepconfigschedule.rbi +17 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rb +40 -0
- data/lib/moov/models/components/sweepconfigscheduleerror.rbi +17 -0
- data/lib/moov/models/components/sweepschedulefrequency.rb +18 -0
- data/lib/moov/models/components/sweepschedulefrequency.rbi +11 -0
- data/lib/moov/models/components/transfer.rb +2 -2
- data/lib/moov/models/components/updateissuedcard.rb +5 -5
- data/lib/moov/models/components/updateissuedcardstate.rb +3 -3
- data/lib/moov/models/components/wallet.rb +2 -2
- data/lib/moov/models/components/webhookdatacapabilityrequested.rb +2 -0
- data/lib/moov/models/components/webhookdatacapabilityupdated.rb +2 -0
- data/lib/moov/models/components.rb +4 -0
- 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 +7 -3
- data/lib/moov/models/errors/createsweepconfigerror.rbi +2 -0
- 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 +7 -3
- data/lib/moov/models/errors/listtransfersvalidationerror.rbi +2 -0
- 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 +7 -3
- data/lib/moov/models/errors/patchsweepconfigerror.rbi +2 -0
- 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_request.rb +2 -0
- 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_request.rb +2 -0
- 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_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardauthorizations_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcardauthorizations_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcards_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcards_request.rbi +2 -0
- data/lib/moov/models/operations/listissuedcards_response.rb +2 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rb +6 -2
- data/lib/moov/models/operations/listissuedcardtransactions_request.rbi +2 -0
- 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_request.rb +7 -2
- data/lib/moov/models/operations/listtransfers_request.rbi +2 -0
- data/lib/moov/models/operations/listtransfers_response.rb +3 -3
- 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 +98 -93
- 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 +10 -2
data/lib/moov/capabilities.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(account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ListCapabilitiesResponse) }
|
|
44
|
+
sig { params(account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListCapabilitiesResponse) }
|
|
45
45
|
def list(account_id:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# list - Retrieve all the capabilities an account has requested.
|
|
47
47
|
#
|
|
@@ -61,7 +61,7 @@ module Moov
|
|
|
61
61
|
request
|
|
62
62
|
)
|
|
63
63
|
headers = {}
|
|
64
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
64
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
65
65
|
headers['Accept'] = 'application/json'
|
|
66
66
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
67
67
|
|
|
@@ -81,7 +81,7 @@ module Moov
|
|
|
81
81
|
security_source: @sdk_configuration.security_source
|
|
82
82
|
)
|
|
83
83
|
|
|
84
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
84
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
85
85
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
86
86
|
|
|
87
87
|
|
|
@@ -101,7 +101,7 @@ module Moov
|
|
|
101
101
|
request: req
|
|
102
102
|
)
|
|
103
103
|
end
|
|
104
|
-
rescue StandardError => e
|
|
104
|
+
rescue ::StandardError => e
|
|
105
105
|
error = e
|
|
106
106
|
ensure
|
|
107
107
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -137,7 +137,7 @@ module Moov
|
|
|
137
137
|
response: http_response
|
|
138
138
|
)
|
|
139
139
|
response_data = http_response.env.response_body
|
|
140
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Capability))
|
|
140
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Capability))
|
|
141
141
|
response = Models::Operations::ListCapabilitiesResponse.new(
|
|
142
142
|
status_code: http_response.status,
|
|
143
143
|
content_type: content_type,
|
|
@@ -165,7 +165,7 @@ module Moov
|
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
sig { params(add_capabilities: Models::Components::AddCapabilities, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCapabilitiesResponse) }
|
|
168
|
+
sig { params(add_capabilities: Models::Components::AddCapabilities, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::RequestCapabilitiesResponse) }
|
|
169
169
|
def request(add_capabilities:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
170
170
|
# request - Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
171
171
|
#
|
|
@@ -184,15 +184,15 @@ module Moov
|
|
|
184
184
|
request
|
|
185
185
|
)
|
|
186
186
|
headers = {}
|
|
187
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
187
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
188
188
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :add_capabilities, :json)
|
|
189
189
|
headers['content-type'] = req_content_type
|
|
190
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
190
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
191
191
|
|
|
192
192
|
if form && !form.empty?
|
|
193
193
|
body = Utils.encode_form(form)
|
|
194
194
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
195
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
195
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
196
196
|
else
|
|
197
197
|
body = data
|
|
198
198
|
end
|
|
@@ -215,7 +215,7 @@ module Moov
|
|
|
215
215
|
security_source: @sdk_configuration.security_source
|
|
216
216
|
)
|
|
217
217
|
|
|
218
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
218
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
219
219
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
220
220
|
|
|
221
221
|
|
|
@@ -236,7 +236,7 @@ module Moov
|
|
|
236
236
|
request: req
|
|
237
237
|
)
|
|
238
238
|
end
|
|
239
|
-
rescue StandardError => e
|
|
239
|
+
rescue ::StandardError => e
|
|
240
240
|
error = e
|
|
241
241
|
ensure
|
|
242
242
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -272,7 +272,7 @@ module Moov
|
|
|
272
272
|
response: http_response
|
|
273
273
|
)
|
|
274
274
|
response_data = http_response.env.response_body
|
|
275
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::Capability))
|
|
275
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::Capability))
|
|
276
276
|
response = Models::Operations::RequestCapabilitiesResponse.new(
|
|
277
277
|
status_code: http_response.status,
|
|
278
278
|
content_type: content_type,
|
|
@@ -294,7 +294,7 @@ module Moov
|
|
|
294
294
|
response: http_response
|
|
295
295
|
)
|
|
296
296
|
response_data = http_response.env.response_body
|
|
297
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
297
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
298
298
|
obj.raw_response = http_response
|
|
299
299
|
raise obj
|
|
300
300
|
else
|
|
@@ -309,7 +309,7 @@ module Moov
|
|
|
309
309
|
response: http_response
|
|
310
310
|
)
|
|
311
311
|
response_data = http_response.env.response_body
|
|
312
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::AddCapabilitiesError)
|
|
312
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::AddCapabilitiesError)
|
|
313
313
|
obj.raw_response = http_response
|
|
314
314
|
raise obj
|
|
315
315
|
else
|
|
@@ -330,7 +330,7 @@ module Moov
|
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
|
|
333
|
-
sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetCapabilityResponse) }
|
|
333
|
+
sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetCapabilityResponse) }
|
|
334
334
|
def get(account_id:, capability_id:, timeout_ms: nil, http_headers: nil)
|
|
335
335
|
# get - Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
336
336
|
#
|
|
@@ -349,7 +349,7 @@ module Moov
|
|
|
349
349
|
request
|
|
350
350
|
)
|
|
351
351
|
headers = {}
|
|
352
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
352
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
353
353
|
headers['Accept'] = 'application/json'
|
|
354
354
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
355
355
|
|
|
@@ -369,7 +369,7 @@ module Moov
|
|
|
369
369
|
security_source: @sdk_configuration.security_source
|
|
370
370
|
)
|
|
371
371
|
|
|
372
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
372
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
373
373
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
374
374
|
|
|
375
375
|
|
|
@@ -389,7 +389,7 @@ module Moov
|
|
|
389
389
|
request: req
|
|
390
390
|
)
|
|
391
391
|
end
|
|
392
|
-
rescue StandardError => e
|
|
392
|
+
rescue ::StandardError => e
|
|
393
393
|
error = e
|
|
394
394
|
ensure
|
|
395
395
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -425,7 +425,7 @@ module Moov
|
|
|
425
425
|
response: http_response
|
|
426
426
|
)
|
|
427
427
|
response_data = http_response.env.response_body
|
|
428
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Capability)
|
|
428
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Capability)
|
|
429
429
|
response = Models::Operations::GetCapabilityResponse.new(
|
|
430
430
|
status_code: http_response.status,
|
|
431
431
|
content_type: content_type,
|
|
@@ -453,7 +453,7 @@ module Moov
|
|
|
453
453
|
end
|
|
454
454
|
|
|
455
455
|
|
|
456
|
-
sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DisableCapabilityResponse) }
|
|
456
|
+
sig { params(account_id: ::String, capability_id: Models::Components::CapabilityID, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::DisableCapabilityResponse) }
|
|
457
457
|
def disable(account_id:, capability_id:, timeout_ms: nil, http_headers: nil)
|
|
458
458
|
# disable - Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
|
|
459
459
|
#
|
|
@@ -472,7 +472,7 @@ module Moov
|
|
|
472
472
|
request
|
|
473
473
|
)
|
|
474
474
|
headers = {}
|
|
475
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
475
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
476
476
|
headers['Accept'] = 'application/json'
|
|
477
477
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
478
478
|
|
|
@@ -492,7 +492,7 @@ module Moov
|
|
|
492
492
|
security_source: @sdk_configuration.security_source
|
|
493
493
|
)
|
|
494
494
|
|
|
495
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
495
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
496
496
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
497
497
|
|
|
498
498
|
|
|
@@ -512,7 +512,7 @@ module Moov
|
|
|
512
512
|
request: req
|
|
513
513
|
)
|
|
514
514
|
end
|
|
515
|
-
rescue StandardError => e
|
|
515
|
+
rescue ::StandardError => e
|
|
516
516
|
error = e
|
|
517
517
|
ensure
|
|
518
518
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -561,7 +561,7 @@ module Moov
|
|
|
561
561
|
response: http_response
|
|
562
562
|
)
|
|
563
563
|
response_data = http_response.env.response_body
|
|
564
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
564
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
565
565
|
obj.raw_response = http_response
|
|
566
566
|
raise obj
|
|
567
567
|
else
|
data/lib/moov/card_issuing.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(request_card: Models::Components::RequestCard, account_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::RequestCardResponse) }
|
|
44
|
+
sig { params(request_card: Models::Components::RequestCard, account_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::RequestCardResponse) }
|
|
45
45
|
def request(request_card:, account_id:, timeout_ms: nil, http_headers: nil)
|
|
46
46
|
# request - Request a virtual card be issued.
|
|
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, :request_card, :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::IssuedCard)
|
|
151
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::IssuedCard)
|
|
152
152
|
response = Models::Operations::RequestCardResponse.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::RequestCardError)
|
|
188
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::RequestCardError)
|
|
189
189
|
obj.raw_response = http_response
|
|
190
190
|
raise obj
|
|
191
191
|
else
|
|
@@ -206,18 +206,12 @@ module Moov
|
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
sig { params(
|
|
210
|
-
def list(
|
|
209
|
+
sig { params(request: Models::Operations::ListIssuedCardsRequest, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::ListIssuedCardsResponse) }
|
|
210
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
211
211
|
# list - List Moov issued cards existing for the account.
|
|
212
212
|
#
|
|
213
213
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
214
214
|
# you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
215
|
-
request = Models::Operations::ListIssuedCardsRequest.new(
|
|
216
|
-
account_id: account_id,
|
|
217
|
-
skip: skip,
|
|
218
|
-
count: count,
|
|
219
|
-
states: states
|
|
220
|
-
)
|
|
221
215
|
url, params = @sdk_configuration.get_server_details
|
|
222
216
|
base_url = Utils.template_url(url, params)
|
|
223
217
|
url = Utils.generate_url(
|
|
@@ -227,7 +221,7 @@ module Moov
|
|
|
227
221
|
request
|
|
228
222
|
)
|
|
229
223
|
headers = {}
|
|
230
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
224
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
231
225
|
query_params = Utils.get_query_params(Models::Operations::ListIssuedCardsRequest, request, nil)
|
|
232
226
|
headers['Accept'] = 'application/json'
|
|
233
227
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -248,7 +242,7 @@ module Moov
|
|
|
248
242
|
security_source: @sdk_configuration.security_source
|
|
249
243
|
)
|
|
250
244
|
|
|
251
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
245
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
252
246
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
253
247
|
|
|
254
248
|
|
|
@@ -269,7 +263,7 @@ module Moov
|
|
|
269
263
|
request: req
|
|
270
264
|
)
|
|
271
265
|
end
|
|
272
|
-
rescue StandardError => e
|
|
266
|
+
rescue ::StandardError => e
|
|
273
267
|
error = e
|
|
274
268
|
ensure
|
|
275
269
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -305,7 +299,7 @@ module Moov
|
|
|
305
299
|
response: http_response
|
|
306
300
|
)
|
|
307
301
|
response_data = http_response.env.response_body
|
|
308
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Components::IssuedCard))
|
|
302
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Crystalline::Array.new(Models::Components::IssuedCard))
|
|
309
303
|
response = Models::Operations::ListIssuedCardsResponse.new(
|
|
310
304
|
status_code: http_response.status,
|
|
311
305
|
content_type: content_type,
|
|
@@ -333,7 +327,7 @@ module Moov
|
|
|
333
327
|
end
|
|
334
328
|
|
|
335
329
|
|
|
336
|
-
sig { params(account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetIssuedCardResponse) }
|
|
330
|
+
sig { params(account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetIssuedCardResponse) }
|
|
337
331
|
def get(account_id:, issued_card_id:, timeout_ms: nil, http_headers: nil)
|
|
338
332
|
# get - Retrieve a single issued card associated with a Moov account.
|
|
339
333
|
#
|
|
@@ -352,7 +346,7 @@ module Moov
|
|
|
352
346
|
request
|
|
353
347
|
)
|
|
354
348
|
headers = {}
|
|
355
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
349
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
356
350
|
headers['Accept'] = 'application/json'
|
|
357
351
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
358
352
|
|
|
@@ -372,7 +366,7 @@ module Moov
|
|
|
372
366
|
security_source: @sdk_configuration.security_source
|
|
373
367
|
)
|
|
374
368
|
|
|
375
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
369
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
376
370
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
377
371
|
|
|
378
372
|
|
|
@@ -392,7 +386,7 @@ module Moov
|
|
|
392
386
|
request: req
|
|
393
387
|
)
|
|
394
388
|
end
|
|
395
|
-
rescue StandardError => e
|
|
389
|
+
rescue ::StandardError => e
|
|
396
390
|
error = e
|
|
397
391
|
ensure
|
|
398
392
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -428,7 +422,7 @@ module Moov
|
|
|
428
422
|
response: http_response
|
|
429
423
|
)
|
|
430
424
|
response_data = http_response.env.response_body
|
|
431
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::IssuedCard)
|
|
425
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::IssuedCard)
|
|
432
426
|
response = Models::Operations::GetIssuedCardResponse.new(
|
|
433
427
|
status_code: http_response.status,
|
|
434
428
|
content_type: content_type,
|
|
@@ -456,7 +450,7 @@ module Moov
|
|
|
456
450
|
end
|
|
457
451
|
|
|
458
452
|
|
|
459
|
-
sig { params(update_issued_card: Models::Components::UpdateIssuedCard, account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UpdateIssuedCardResponse) }
|
|
453
|
+
sig { params(update_issued_card: Models::Components::UpdateIssuedCard, account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::UpdateIssuedCardResponse) }
|
|
460
454
|
def update(update_issued_card:, account_id:, issued_card_id:, timeout_ms: nil, http_headers: nil)
|
|
461
455
|
# update - Update a Moov issued card.
|
|
462
456
|
#
|
|
@@ -476,15 +470,15 @@ module Moov
|
|
|
476
470
|
request
|
|
477
471
|
)
|
|
478
472
|
headers = {}
|
|
479
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
473
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
480
474
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :update_issued_card, :json)
|
|
481
475
|
headers['content-type'] = req_content_type
|
|
482
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
476
|
+
raise ::StandardError, 'request body is required' if data.nil? && form.nil?
|
|
483
477
|
|
|
484
478
|
if form && !form.empty?
|
|
485
479
|
body = Utils.encode_form(form)
|
|
486
480
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
487
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
481
|
+
body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
|
|
488
482
|
else
|
|
489
483
|
body = data
|
|
490
484
|
end
|
|
@@ -507,7 +501,7 @@ module Moov
|
|
|
507
501
|
security_source: @sdk_configuration.security_source
|
|
508
502
|
)
|
|
509
503
|
|
|
510
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
504
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
511
505
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
512
506
|
|
|
513
507
|
|
|
@@ -528,7 +522,7 @@ module Moov
|
|
|
528
522
|
request: req
|
|
529
523
|
)
|
|
530
524
|
end
|
|
531
|
-
rescue StandardError => e
|
|
525
|
+
rescue ::StandardError => e
|
|
532
526
|
error = e
|
|
533
527
|
ensure
|
|
534
528
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -564,7 +558,7 @@ module Moov
|
|
|
564
558
|
response: http_response
|
|
565
559
|
)
|
|
566
560
|
response_data = http_response.env.response_body
|
|
567
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::IssuedCard)
|
|
561
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::IssuedCard)
|
|
568
562
|
response = Models::Operations::UpdateIssuedCardResponse.new(
|
|
569
563
|
status_code: http_response.status,
|
|
570
564
|
content_type: content_type,
|
|
@@ -586,7 +580,7 @@ module Moov
|
|
|
586
580
|
response: http_response
|
|
587
581
|
)
|
|
588
582
|
response_data = http_response.env.response_body
|
|
589
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
583
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::GenericError)
|
|
590
584
|
obj.raw_response = http_response
|
|
591
585
|
raise obj
|
|
592
586
|
else
|
|
@@ -601,7 +595,7 @@ module Moov
|
|
|
601
595
|
response: http_response
|
|
602
596
|
)
|
|
603
597
|
response_data = http_response.env.response_body
|
|
604
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UpdateIssuedCardError)
|
|
598
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::UpdateIssuedCardError)
|
|
605
599
|
obj.raw_response = http_response
|
|
606
600
|
raise obj
|
|
607
601
|
else
|
|
@@ -622,7 +616,7 @@ module Moov
|
|
|
622
616
|
end
|
|
623
617
|
|
|
624
618
|
|
|
625
|
-
sig { params(account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetFullIssuedCardResponse) }
|
|
619
|
+
sig { params(account_id: ::String, issued_card_id: ::String, timeout_ms: T.nilable(::Integer), http_headers: T.nilable(T::Hash[T.any(::String, ::Symbol), ::String])).returns(Models::Operations::GetFullIssuedCardResponse) }
|
|
626
620
|
def get_full(account_id:, issued_card_id:, timeout_ms: nil, http_headers: nil)
|
|
627
621
|
# get_full - Get issued card with PAN, CVV, and expiration.
|
|
628
622
|
#
|
|
@@ -643,7 +637,7 @@ module Moov
|
|
|
643
637
|
request
|
|
644
638
|
)
|
|
645
639
|
headers = {}
|
|
646
|
-
headers = T.cast(headers, T::Hash[String, String])
|
|
640
|
+
headers = T.cast(headers, T::Hash[::String, ::String])
|
|
647
641
|
headers['Accept'] = 'application/json'
|
|
648
642
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
649
643
|
|
|
@@ -663,7 +657,7 @@ module Moov
|
|
|
663
657
|
security_source: @sdk_configuration.security_source
|
|
664
658
|
)
|
|
665
659
|
|
|
666
|
-
error = T.let(nil, T.nilable(StandardError))
|
|
660
|
+
error = T.let(nil, T.nilable(::StandardError))
|
|
667
661
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
668
662
|
|
|
669
663
|
|
|
@@ -683,7 +677,7 @@ module Moov
|
|
|
683
677
|
request: req
|
|
684
678
|
)
|
|
685
679
|
end
|
|
686
|
-
rescue StandardError => e
|
|
680
|
+
rescue ::StandardError => e
|
|
687
681
|
error = e
|
|
688
682
|
ensure
|
|
689
683
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -719,7 +713,7 @@ module Moov
|
|
|
719
713
|
response: http_response
|
|
720
714
|
)
|
|
721
715
|
response_data = http_response.env.response_body
|
|
722
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::FullIssuedCard)
|
|
716
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::FullIssuedCard)
|
|
723
717
|
response = Models::Operations::GetFullIssuedCardResponse.new(
|
|
724
718
|
status_code: http_response.status,
|
|
725
719
|
content_type: content_type,
|