moovio_sdk 0.3.8__py3-none-any.whl
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.
- moovio_sdk/__init__.py +17 -0
- moovio_sdk/_hooks/__init__.py +5 -0
- moovio_sdk/_hooks/registration.py +13 -0
- moovio_sdk/_hooks/sdkhooks.py +76 -0
- moovio_sdk/_hooks/types.py +106 -0
- moovio_sdk/_version.py +15 -0
- moovio_sdk/accounts.py +2461 -0
- moovio_sdk/adjustments.py +463 -0
- moovio_sdk/apple_pay.py +1417 -0
- moovio_sdk/authentication.py +531 -0
- moovio_sdk/avatars.py +231 -0
- moovio_sdk/bank_accounts.py +2445 -0
- moovio_sdk/basesdk.py +363 -0
- moovio_sdk/branding.py +1089 -0
- moovio_sdk/capabilities.py +1001 -0
- moovio_sdk/card_issuing.py +1351 -0
- moovio_sdk/cards.py +1469 -0
- moovio_sdk/disputes.py +2985 -0
- moovio_sdk/end_to_end_encryption.py +453 -0
- moovio_sdk/enriched_address.py +307 -0
- moovio_sdk/enriched_profile.py +235 -0
- moovio_sdk/fee_plans.py +1759 -0
- moovio_sdk/files.py +775 -0
- moovio_sdk/httpclient.py +136 -0
- moovio_sdk/industries.py +239 -0
- moovio_sdk/institutions.py +261 -0
- moovio_sdk/issuing_transactions.py +1228 -0
- moovio_sdk/models/__init__.py +4 -0
- moovio_sdk/models/components/__init__.py +1411 -0
- moovio_sdk/models/components/account.py +96 -0
- moovio_sdk/models/components/accountcapability.py +20 -0
- moovio_sdk/models/components/accountcountries.py +18 -0
- moovio_sdk/models/components/accountnameverification.py +28 -0
- moovio_sdk/models/components/accounttype.py +11 -0
- moovio_sdk/models/components/accountverificationstatus.py +19 -0
- moovio_sdk/models/components/achcreditsamedaypaymentmethod.py +38 -0
- moovio_sdk/models/components/achcreditstandardpaymentmethod.py +38 -0
- moovio_sdk/models/components/achdebitcollectpaymentmethod.py +38 -0
- moovio_sdk/models/components/achdebitfundpaymentmethod.py +38 -0
- moovio_sdk/models/components/achexception.py +20 -0
- moovio_sdk/models/components/achlocation.py +26 -0
- moovio_sdk/models/components/achparticipant.py +93 -0
- moovio_sdk/models/components/achpaymentdetails.py +30 -0
- moovio_sdk/models/components/achpaymentdetailserror.py +22 -0
- moovio_sdk/models/components/achpaymentsettings.py +16 -0
- moovio_sdk/models/components/achreturncode.py +51 -0
- moovio_sdk/models/components/achtransactiondetails.py +94 -0
- moovio_sdk/models/components/achtransactionstatus.py +15 -0
- moovio_sdk/models/components/addcapabilities.py +15 -0
- moovio_sdk/models/components/address.py +30 -0
- moovio_sdk/models/components/addresserror.py +32 -0
- moovio_sdk/models/components/addresssuggestion.py +34 -0
- moovio_sdk/models/components/addressupdate.py +32 -0
- moovio_sdk/models/components/adjustment.py +29 -0
- moovio_sdk/models/components/amount.py +26 -0
- moovio_sdk/models/components/amountdecimal.py +27 -0
- moovio_sdk/models/components/amountupdate.py +27 -0
- moovio_sdk/models/components/amountvalidationerror.py +17 -0
- moovio_sdk/models/components/applebillingcontact.py +53 -0
- moovio_sdk/models/components/applepayheader.py +41 -0
- moovio_sdk/models/components/applepaymerchantdomains.py +32 -0
- moovio_sdk/models/components/applepaypaymentmethod.py +33 -0
- moovio_sdk/models/components/applepayresponse.py +70 -0
- moovio_sdk/models/components/applicationscope.py +41 -0
- moovio_sdk/models/components/asynccreatedrefund.py +26 -0
- moovio_sdk/models/components/asynctransfer.py +18 -0
- moovio_sdk/models/components/authorizeduser.py +21 -0
- moovio_sdk/models/components/authtoken.py +36 -0
- moovio_sdk/models/components/authtokenrequest.py +46 -0
- moovio_sdk/models/components/bankaccount.py +98 -0
- moovio_sdk/models/components/bankaccountexception.py +96 -0
- moovio_sdk/models/components/bankaccountholdertype.py +11 -0
- moovio_sdk/models/components/bankaccountintegration.py +34 -0
- moovio_sdk/models/components/bankaccountpayload.py +21 -0
- moovio_sdk/models/components/bankaccountstatus.py +12 -0
- moovio_sdk/models/components/bankaccountstatusreason.py +23 -0
- moovio_sdk/models/components/bankaccounttype.py +13 -0
- moovio_sdk/models/components/bankaccountverification.py +30 -0
- moovio_sdk/models/components/bankaccountverificationcreated.py +21 -0
- moovio_sdk/models/components/bankaccountverificationmethod.py +9 -0
- moovio_sdk/models/components/bankaccountverificationstatus.py +13 -0
- moovio_sdk/models/components/bankaccountwaitfor.py +9 -0
- moovio_sdk/models/components/basicpaymentmethod.py +24 -0
- moovio_sdk/models/components/billablefee.py +54 -0
- moovio_sdk/models/components/birthdate.py +19 -0
- moovio_sdk/models/components/birthdateerror.py +20 -0
- moovio_sdk/models/components/birthdateupdate.py +20 -0
- moovio_sdk/models/components/birthdatevalidationerror.py +20 -0
- moovio_sdk/models/components/brandcolor.py +15 -0
- moovio_sdk/models/components/brandcolors.py +21 -0
- moovio_sdk/models/components/brandcolorvalidationerror.py +14 -0
- moovio_sdk/models/components/brandproperties.py +16 -0
- moovio_sdk/models/components/businessprofile.py +81 -0
- moovio_sdk/models/components/businesstype.py +19 -0
- moovio_sdk/models/components/calltoaction.py +19 -0
- moovio_sdk/models/components/cancellation.py +22 -0
- moovio_sdk/models/components/cancellationstatus.py +10 -0
- moovio_sdk/models/components/capabilitieserror.py +14 -0
- moovio_sdk/models/components/capability.py +56 -0
- moovio_sdk/models/components/capabilityid.py +18 -0
- moovio_sdk/models/components/capabilityrequirement.py +26 -0
- moovio_sdk/models/components/capabilitystatus.py +13 -0
- moovio_sdk/models/components/card.py +164 -0
- moovio_sdk/models/components/cardaccountupdater.py +28 -0
- moovio_sdk/models/components/cardacquiringdispute.py +26 -0
- moovio_sdk/models/components/cardacquiringmodel.py +11 -0
- moovio_sdk/models/components/cardacquiringrefund.py +42 -0
- moovio_sdk/models/components/cardaddress.py +32 -0
- moovio_sdk/models/components/cardbrand.py +14 -0
- moovio_sdk/models/components/cardexpiration.py +20 -0
- moovio_sdk/models/components/cardexpirationerror.py +17 -0
- moovio_sdk/models/components/cardissuingnetwork.py +12 -0
- moovio_sdk/models/components/cardpaymentdetails.py +23 -0
- moovio_sdk/models/components/cardpaymentdetailserror.py +17 -0
- moovio_sdk/models/components/cardpaymentpaymentmethod.py +33 -0
- moovio_sdk/models/components/cardpaymentsettings.py +23 -0
- moovio_sdk/models/components/cardtransactiondetails.py +94 -0
- moovio_sdk/models/components/cardtransactionfailurecode.py +32 -0
- moovio_sdk/models/components/cardtransactionstatus.py +15 -0
- moovio_sdk/models/components/cardtype.py +13 -0
- moovio_sdk/models/components/cardupdatereason.py +16 -0
- moovio_sdk/models/components/cardverification.py +38 -0
- moovio_sdk/models/components/cardverificationresult.py +12 -0
- moovio_sdk/models/components/cardvolumedistribution.py +29 -0
- moovio_sdk/models/components/cardvolumedistributionerror.py +32 -0
- moovio_sdk/models/components/collectionpaymentmethodtype.py +12 -0
- moovio_sdk/models/components/colorsvalidationerror.py +21 -0
- moovio_sdk/models/components/completebankaccountverification.py +15 -0
- moovio_sdk/models/components/completedmicrodeposits.py +14 -0
- moovio_sdk/models/components/completemicrodeposits.py +20 -0
- moovio_sdk/models/components/countrieserrors.py +14 -0
- moovio_sdk/models/components/createaccount.py +78 -0
- moovio_sdk/models/components/createaccounterror.py +44 -0
- moovio_sdk/models/components/createaccountsettings.py +40 -0
- moovio_sdk/models/components/createapplepaysession.py +21 -0
- moovio_sdk/models/components/createauthorizeduser.py +26 -0
- moovio_sdk/models/components/createauthorizedusererror.py +24 -0
- moovio_sdk/models/components/createauthorizeduserupdate.py +28 -0
- moovio_sdk/models/components/createbusinesserror.py +88 -0
- moovio_sdk/models/components/createbusinessprofile.py +69 -0
- moovio_sdk/models/components/createevidencefilemultipart.py +63 -0
- moovio_sdk/models/components/createevidencetext.py +20 -0
- moovio_sdk/models/components/createfeeplanagreement.py +14 -0
- moovio_sdk/models/components/createindividualerror.py +72 -0
- moovio_sdk/models/components/createindividualprofile.py +37 -0
- moovio_sdk/models/components/createpaymentlink.py +95 -0
- moovio_sdk/models/components/createprofile.py +22 -0
- moovio_sdk/models/components/createprofileerror.py +19 -0
- moovio_sdk/models/components/createrefund.py +26 -0
- moovio_sdk/models/components/createrefundresponse.py +18 -0
- moovio_sdk/models/components/createrepresentative.py +50 -0
- moovio_sdk/models/components/createreversal.py +15 -0
- moovio_sdk/models/components/createsweepconfig.py +41 -0
- moovio_sdk/models/components/createterminalapplication.py +42 -0
- moovio_sdk/models/components/createtransfer.py +49 -0
- moovio_sdk/models/components/createtransferdestination.py +37 -0
- moovio_sdk/models/components/createtransferdestinationach.py +26 -0
- moovio_sdk/models/components/createtransferdestinationcard.py +19 -0
- moovio_sdk/models/components/createtransferoptions.py +24 -0
- moovio_sdk/models/components/createtransfersource.py +48 -0
- moovio_sdk/models/components/createtransfersourceach.py +40 -0
- moovio_sdk/models/components/createtransfersourcecard.py +35 -0
- moovio_sdk/models/components/customersupport.py +33 -0
- moovio_sdk/models/components/customersupporterror.py +25 -0
- moovio_sdk/models/components/debitholdperiod.py +12 -0
- moovio_sdk/models/components/disbursementpaymentmethodtype.py +13 -0
- moovio_sdk/models/components/displayoptionserror.py +23 -0
- moovio_sdk/models/components/dispute.py +76 -0
- moovio_sdk/models/components/disputeevidenceresponse.py +49 -0
- moovio_sdk/models/components/disputephase.py +13 -0
- moovio_sdk/models/components/disputestatus.py +20 -0
- moovio_sdk/models/components/disputetransferdetails.py +16 -0
- moovio_sdk/models/components/document.py +37 -0
- moovio_sdk/models/components/documenttype.py +13 -0
- moovio_sdk/models/components/domesticpullfromcard.py +12 -0
- moovio_sdk/models/components/domesticpushtocard.py +13 -0
- moovio_sdk/models/components/e2eetoken.py +25 -0
- moovio_sdk/models/components/e2eetokenupdate.py +26 -0
- moovio_sdk/models/components/end2endencryptionerror.py +14 -0
- moovio_sdk/models/components/enrichedaddressresponse.py +15 -0
- moovio_sdk/models/components/enrichedbusinessprofile.py +37 -0
- moovio_sdk/models/components/enrichedbusinessresponse.py +18 -0
- moovio_sdk/models/components/enrichedindustries.py +15 -0
- moovio_sdk/models/components/enrichedindustry.py +32 -0
- moovio_sdk/models/components/enrichedindustrycodes.py +17 -0
- moovio_sdk/models/components/evidencetextresponse.py +28 -0
- moovio_sdk/models/components/evidencetype.py +15 -0
- moovio_sdk/models/components/evidenceuploadresponse.py +50 -0
- moovio_sdk/models/components/facilitatorfee.py +48 -0
- moovio_sdk/models/components/feecategory.py +16 -0
- moovio_sdk/models/components/feemodel.py +12 -0
- moovio_sdk/models/components/feeplan.py +43 -0
- moovio_sdk/models/components/feeplanagreement.py +51 -0
- moovio_sdk/models/components/feeplanagreementstatus.py +9 -0
- moovio_sdk/models/components/feeproperties.py +49 -0
- moovio_sdk/models/components/filedetails.py +55 -0
- moovio_sdk/models/components/filepurpose.py +15 -0
- moovio_sdk/models/components/filestatus.py +12 -0
- moovio_sdk/models/components/fileuploadrequestmultipart.py +69 -0
- moovio_sdk/models/components/financialinstitutions.py +18 -0
- moovio_sdk/models/components/fulfillmentdetails.py +24 -0
- moovio_sdk/models/components/fulfillmentdetailserror.py +20 -0
- moovio_sdk/models/components/fullissuedcard.py +92 -0
- moovio_sdk/models/components/generatedby.py +39 -0
- moovio_sdk/models/components/generatedbyaccountid.py +15 -0
- moovio_sdk/models/components/generatedbybankaccountid.py +17 -0
- moovio_sdk/models/components/generatedbycardid.py +15 -0
- moovio_sdk/models/components/generatedbydisputeid.py +15 -0
- moovio_sdk/models/components/generatedbytransferid.py +15 -0
- moovio_sdk/models/components/governmentid.py +40 -0
- moovio_sdk/models/components/governmentiderror.py +40 -0
- moovio_sdk/models/components/granttype.py +15 -0
- moovio_sdk/models/components/incurredfee.py +44 -0
- moovio_sdk/models/components/individualname.py +32 -0
- moovio_sdk/models/components/individualnameerror.py +24 -0
- moovio_sdk/models/components/individualnameupdate.py +32 -0
- moovio_sdk/models/components/individualprofile.py +45 -0
- moovio_sdk/models/components/industrycodes.py +20 -0
- moovio_sdk/models/components/issuedcard.py +78 -0
- moovio_sdk/models/components/issuedcardauthorization.py +53 -0
- moovio_sdk/models/components/issuedcardauthorizationevent.py +37 -0
- moovio_sdk/models/components/issuedcardauthorizationeventresult.py +12 -0
- moovio_sdk/models/components/issuedcardeventtype.py +15 -0
- moovio_sdk/models/components/issuedcardformfactor.py +10 -0
- moovio_sdk/models/components/issuedcardstate.py +19 -0
- moovio_sdk/models/components/issuedcardtransaction.py +42 -0
- moovio_sdk/models/components/issuingauthorizationstatus.py +14 -0
- moovio_sdk/models/components/issuingcontrols.py +25 -0
- moovio_sdk/models/components/issuingcontrolserror.py +22 -0
- moovio_sdk/models/components/issuingintervallimit.py +10 -0
- moovio_sdk/models/components/issuingmerchantdata.py +47 -0
- moovio_sdk/models/components/issuingvelocitylimit.py +21 -0
- moovio_sdk/models/components/issuingvelocitylimiterror.py +17 -0
- moovio_sdk/models/components/jsonwebkey.py +103 -0
- moovio_sdk/models/components/linkapplepay.py +54 -0
- moovio_sdk/models/components/linkapplepaymentdata.py +51 -0
- moovio_sdk/models/components/linkapplepaymentmethod.py +38 -0
- moovio_sdk/models/components/linkapplepaytoken.py +63 -0
- moovio_sdk/models/components/linkbankaccount.py +26 -0
- moovio_sdk/models/components/linkcard.py +54 -0
- moovio_sdk/models/components/linkcardwaitfor.py +8 -0
- moovio_sdk/models/components/linkedapplepaypaymentmethod.py +30 -0
- moovio_sdk/models/components/listfeesfetchrequest.py +19 -0
- moovio_sdk/models/components/manualtermsofservice.py +34 -0
- moovio_sdk/models/components/manualtermsofserviceupdate.py +41 -0
- moovio_sdk/models/components/microdepositstatus.py +8 -0
- moovio_sdk/models/components/mode.py +11 -0
- moovio_sdk/models/components/moovfeedetails.py +36 -0
- moovio_sdk/models/components/moovwalletpaymentmethod.py +31 -0
- moovio_sdk/models/components/mxauthorizationcode.py +26 -0
- moovio_sdk/models/components/mxpayload.py +46 -0
- moovio_sdk/models/components/occurrence.py +44 -0
- moovio_sdk/models/components/occurrencesresponse.py +80 -0
- moovio_sdk/models/components/occurrencestatus.py +12 -0
- moovio_sdk/models/components/onboardinginvite.py +91 -0
- moovio_sdk/models/components/onboardinginviterequest.py +57 -0
- moovio_sdk/models/components/onboardingpartneraccount.py +31 -0
- moovio_sdk/models/components/partnerpricing.py +46 -0
- moovio_sdk/models/components/partnerpricingagreement.py +56 -0
- moovio_sdk/models/components/patchaccount.py +138 -0
- moovio_sdk/models/components/patchaccounterror.py +38 -0
- moovio_sdk/models/components/patchbusiness.py +72 -0
- moovio_sdk/models/components/patchindividual.py +43 -0
- moovio_sdk/models/components/patchprofile.py +29 -0
- moovio_sdk/models/components/patchsweepconfig.py +147 -0
- moovio_sdk/models/components/patchtransfer.py +51 -0
- moovio_sdk/models/components/paymentdetailserror.py +35 -0
- moovio_sdk/models/components/paymentlink.py +125 -0
- moovio_sdk/models/components/paymentlinkcustomeroptions.py +31 -0
- moovio_sdk/models/components/paymentlinkdisplayoptions.py +39 -0
- moovio_sdk/models/components/paymentlinkdisplayoptionsupdate.py +42 -0
- moovio_sdk/models/components/paymentlinkpaymentdetails.py +40 -0
- moovio_sdk/models/components/paymentlinkpaymentdetailsupdate.py +41 -0
- moovio_sdk/models/components/paymentlinkpayoutdetails.py +32 -0
- moovio_sdk/models/components/paymentlinkpayoutdetailsupdate.py +33 -0
- moovio_sdk/models/components/paymentlinkstatus.py +11 -0
- moovio_sdk/models/components/paymentmethod.py +82 -0
- moovio_sdk/models/components/paymentmethodsbankaccount.py +65 -0
- moovio_sdk/models/components/paymentmethodscard.py +121 -0
- moovio_sdk/models/components/paymentmethodswallet.py +14 -0
- moovio_sdk/models/components/paymentmethodtype.py +19 -0
- moovio_sdk/models/components/payoutdetailserror.py +21 -0
- moovio_sdk/models/components/payoutrecipient.py +23 -0
- moovio_sdk/models/components/payoutrecipienterror.py +14 -0
- moovio_sdk/models/components/payoutrecipientupdate.py +24 -0
- moovio_sdk/models/components/phonenumber.py +18 -0
- moovio_sdk/models/components/phonenumbererror.py +18 -0
- moovio_sdk/models/components/plaidintegration.py +39 -0
- moovio_sdk/models/components/plaidlinkintegration.py +36 -0
- moovio_sdk/models/components/plaidlinkpayload.py +45 -0
- moovio_sdk/models/components/plaidpayload.py +42 -0
- moovio_sdk/models/components/primaryregulator.py +13 -0
- moovio_sdk/models/components/profile.py +27 -0
- moovio_sdk/models/components/pullfromcardpaymentmethod.py +33 -0
- moovio_sdk/models/components/pushtocardpaymentmethod.py +33 -0
- moovio_sdk/models/components/qrcode.py +16 -0
- moovio_sdk/models/components/receiptkind.py +10 -0
- moovio_sdk/models/components/receiptrequest.py +75 -0
- moovio_sdk/models/components/receiptresponse.py +95 -0
- moovio_sdk/models/components/recur.py +40 -0
- moovio_sdk/models/components/refundcarddetails.py +44 -0
- moovio_sdk/models/components/refundcardstatus.py +12 -0
- moovio_sdk/models/components/refundstatus.py +11 -0
- moovio_sdk/models/components/registerapplepaymerchantdomains.py +22 -0
- moovio_sdk/models/components/representative.py +71 -0
- moovio_sdk/models/components/representativeresponsibilities.py +42 -0
- moovio_sdk/models/components/representativeresponsibilitieserror.py +26 -0
- moovio_sdk/models/components/requestcard.py +44 -0
- moovio_sdk/models/components/requirementerror.py +24 -0
- moovio_sdk/models/components/requirementerrorcode.py +25 -0
- moovio_sdk/models/components/requirementid.py +71 -0
- moovio_sdk/models/components/returnpolicytype.py +11 -0
- moovio_sdk/models/components/reversal.py +23 -0
- moovio_sdk/models/components/reversedwithcancellation.py +14 -0
- moovio_sdk/models/components/reversedwithrefund.py +16 -0
- moovio_sdk/models/components/revoketokenrequest.py +40 -0
- moovio_sdk/models/components/rtpcreditpaymentmethod.py +38 -0
- moovio_sdk/models/components/rtpfailurecode.py +19 -0
- moovio_sdk/models/components/rtprejectioncode.py +25 -0
- moovio_sdk/models/components/rtptransactiondetails.py +56 -0
- moovio_sdk/models/components/rtptransactionstatus.py +13 -0
- moovio_sdk/models/components/runtransfer.py +34 -0
- moovio_sdk/models/components/schedulepaymentmethod.py +56 -0
- moovio_sdk/models/components/scheduleresponse.py +60 -0
- moovio_sdk/models/components/seccode.py +13 -0
- moovio_sdk/models/components/security.py +32 -0
- moovio_sdk/models/components/sentreceipt.py +27 -0
- moovio_sdk/models/components/settings.py +30 -0
- moovio_sdk/models/components/sourcedestinationoptions.py +20 -0
- moovio_sdk/models/components/sweep.py +80 -0
- moovio_sdk/models/components/sweepconfig.py +81 -0
- moovio_sdk/models/components/sweepconfigpaymentmethod.py +31 -0
- moovio_sdk/models/components/sweepconfigstatus.py +9 -0
- moovio_sdk/models/components/sweepstatus.py +13 -0
- moovio_sdk/models/components/taxid.py +25 -0
- moovio_sdk/models/components/taxidupdate.py +26 -0
- moovio_sdk/models/components/terminalapplication.py +55 -0
- moovio_sdk/models/components/terminalapplicationplatform.py +12 -0
- moovio_sdk/models/components/terminalapplicationstatus.py +13 -0
- moovio_sdk/models/components/termsofservice.py +26 -0
- moovio_sdk/models/components/termsofserviceerror.py +39 -0
- moovio_sdk/models/components/termsofservicetoken.py +17 -0
- moovio_sdk/models/components/termsofservicetokenupdate.py +18 -0
- moovio_sdk/models/components/tokentype.py +10 -0
- moovio_sdk/models/components/transactionsource.py +16 -0
- moovio_sdk/models/components/transfer.py +126 -0
- moovio_sdk/models/components/transferaccount.py +20 -0
- moovio_sdk/models/components/transferdestination.py +83 -0
- moovio_sdk/models/components/transferfailurereason.py +14 -0
- moovio_sdk/models/components/transferoptions.py +23 -0
- moovio_sdk/models/components/transferresponse.py +15 -0
- moovio_sdk/models/components/transfersource.py +80 -0
- moovio_sdk/models/components/transferstatus.py +16 -0
- moovio_sdk/models/components/transferwaitfor.py +8 -0
- moovio_sdk/models/components/underwriting.py +56 -0
- moovio_sdk/models/components/underwritingstatus.py +16 -0
- moovio_sdk/models/components/updateapplepaymerchantdomains.py +26 -0
- moovio_sdk/models/components/updatebrand.py +15 -0
- moovio_sdk/models/components/updatecard.py +51 -0
- moovio_sdk/models/components/updatecardaddress.py +32 -0
- moovio_sdk/models/components/updatecardexpiration.py +17 -0
- moovio_sdk/models/components/updatecolor.py +14 -0
- moovio_sdk/models/components/updatecolors.py +18 -0
- moovio_sdk/models/components/updateevidence.py +23 -0
- moovio_sdk/models/components/updateissuedcard.py +44 -0
- moovio_sdk/models/components/updatepaymentlink.py +98 -0
- moovio_sdk/models/components/updaterepresentative.py +224 -0
- moovio_sdk/models/components/updateunderwriting.py +43 -0
- moovio_sdk/models/components/upsertschedule.py +26 -0
- moovio_sdk/models/components/verification.py +54 -0
- moovio_sdk/models/components/verificationstatus.py +17 -0
- moovio_sdk/models/components/verificationstatusdetail.py +23 -0
- moovio_sdk/models/components/volumebycustomertype.py +21 -0
- moovio_sdk/models/components/volumebycustomertypeerror.py +22 -0
- moovio_sdk/models/components/wallet.py +27 -0
- moovio_sdk/models/components/walletavailablebalance.py +30 -0
- moovio_sdk/models/components/wallettransaction.py +114 -0
- moovio_sdk/models/components/wallettransactionsourcetype.py +13 -0
- moovio_sdk/models/components/wallettransactionstatus.py +11 -0
- moovio_sdk/models/components/wallettransactiontype.py +32 -0
- moovio_sdk/models/errors/__init__.py +155 -0
- moovio_sdk/models/errors/addcapabilitieserror.py +23 -0
- moovio_sdk/models/errors/apierror.py +22 -0
- moovio_sdk/models/errors/assigncountrieserror.py +20 -0
- moovio_sdk/models/errors/authtokenrequesterror.py +22 -0
- moovio_sdk/models/errors/bankaccountvalidationerror.py +30 -0
- moovio_sdk/models/errors/brandvalidationerror.py +23 -0
- moovio_sdk/models/errors/cardacquiringrefund.py +44 -0
- moovio_sdk/models/errors/createaccount.py +24 -0
- moovio_sdk/models/errors/createpaymentlinkerror.py +46 -0
- moovio_sdk/models/errors/createsweepconfigerror.py +40 -0
- moovio_sdk/models/errors/feeplanagreementerror.py +22 -0
- moovio_sdk/models/errors/fileuploadvalidationerror.py +35 -0
- moovio_sdk/models/errors/filevalidationerror.py +28 -0
- moovio_sdk/models/errors/genericerror.py +19 -0
- moovio_sdk/models/errors/linkapplepayerror.py +36 -0
- moovio_sdk/models/errors/linkcarderror.py +47 -0
- moovio_sdk/models/errors/microdepositvalidationerror.py +20 -0
- moovio_sdk/models/errors/onboardinginviteerror.py +34 -0
- moovio_sdk/models/errors/patchsweepconfigerror.py +38 -0
- moovio_sdk/models/errors/receiptvalidationerror.py +40 -0
- moovio_sdk/models/errors/refundvalidationerror.py +23 -0
- moovio_sdk/models/errors/representativevalidationerror.py +68 -0
- moovio_sdk/models/errors/requestcarderror.py +42 -0
- moovio_sdk/models/errors/reversalvalidationerror.py +20 -0
- moovio_sdk/models/errors/revoketokenrequesterror.py +22 -0
- moovio_sdk/models/errors/schedulevalidationerror.py +24 -0
- moovio_sdk/models/errors/terminalapplicationerror.py +30 -0
- moovio_sdk/models/errors/transfer.py +108 -0
- moovio_sdk/models/errors/transferoptionsvalidationerror.py +24 -0
- moovio_sdk/models/errors/transfervalidationerror.py +49 -0
- moovio_sdk/models/errors/updateaccount.py +24 -0
- moovio_sdk/models/errors/updatecarderror.py +43 -0
- moovio_sdk/models/errors/updateissuedcarderror.py +32 -0
- moovio_sdk/models/errors/updatepaymentlinkerror.py +36 -0
- moovio_sdk/models/errors/updateunderwritingerror.py +70 -0
- moovio_sdk/models/internal/__init__.py +6 -0
- moovio_sdk/models/internal/globals.py +40 -0
- moovio_sdk/models/operations/__init__.py +1824 -0
- moovio_sdk/models/operations/acceptdispute.py +71 -0
- moovio_sdk/models/operations/assignaccountcountries.py +75 -0
- moovio_sdk/models/operations/cancelschedule.py +67 -0
- moovio_sdk/models/operations/completebankaccountverification.py +85 -0
- moovio_sdk/models/operations/completemicrodeposits.py +87 -0
- moovio_sdk/models/operations/createaccesstoken.py +52 -0
- moovio_sdk/models/operations/createaccount.py +52 -0
- moovio_sdk/models/operations/createapplepaysession.py +81 -0
- moovio_sdk/models/operations/createbrand.py +75 -0
- moovio_sdk/models/operations/createcancellation.py +75 -0
- moovio_sdk/models/operations/createfeeplanagreements.py +80 -0
- moovio_sdk/models/operations/createonboardinginvite.py +52 -0
- moovio_sdk/models/operations/createpaymentlink.py +78 -0
- moovio_sdk/models/operations/createreceipts.py +52 -0
- moovio_sdk/models/operations/createrepresentative.py +80 -0
- moovio_sdk/models/operations/createreversal.py +98 -0
- moovio_sdk/models/operations/createschedule.py +78 -0
- moovio_sdk/models/operations/createsweepconfig.py +78 -0
- moovio_sdk/models/operations/createterminalapplication.py +54 -0
- moovio_sdk/models/operations/createtransfer.py +125 -0
- moovio_sdk/models/operations/createtransferoptions.py +52 -0
- moovio_sdk/models/operations/deletedisputeevidencefile.py +74 -0
- moovio_sdk/models/operations/deleterepresentative.py +71 -0
- moovio_sdk/models/operations/deleteterminalapplication.py +60 -0
- moovio_sdk/models/operations/disablebankaccount.py +67 -0
- moovio_sdk/models/operations/disablecapability.py +76 -0
- moovio_sdk/models/operations/disablecard.py +67 -0
- moovio_sdk/models/operations/disablepaymentlink.py +67 -0
- moovio_sdk/models/operations/disconnectaccount.py +60 -0
- moovio_sdk/models/operations/generateendtoendkey.py +60 -0
- moovio_sdk/models/operations/getaccount.py +64 -0
- moovio_sdk/models/operations/getaccountcountries.py +64 -0
- moovio_sdk/models/operations/getadjustment.py +71 -0
- moovio_sdk/models/operations/getapplepaymerchantdomains.py +68 -0
- moovio_sdk/models/operations/getavatar.py +66 -0
- moovio_sdk/models/operations/getbankaccount.py +71 -0
- moovio_sdk/models/operations/getbankaccountverification.py +73 -0
- moovio_sdk/models/operations/getbrand.py +64 -0
- moovio_sdk/models/operations/getcancellation.py +84 -0
- moovio_sdk/models/operations/getcapability.py +82 -0
- moovio_sdk/models/operations/getcard.py +71 -0
- moovio_sdk/models/operations/getdispute.py +71 -0
- moovio_sdk/models/operations/getdisputeevidence.py +80 -0
- moovio_sdk/models/operations/getdisputeevidencedata.py +90 -0
- moovio_sdk/models/operations/getenrichmentaddress.py +178 -0
- moovio_sdk/models/operations/getenrichmentprofile.py +64 -0
- moovio_sdk/models/operations/getfiledetails.py +71 -0
- moovio_sdk/models/operations/getfullissuedcard.py +73 -0
- moovio_sdk/models/operations/getissuedcard.py +73 -0
- moovio_sdk/models/operations/getissuedcardauthorization.py +75 -0
- moovio_sdk/models/operations/getissuedcardtransaction.py +75 -0
- moovio_sdk/models/operations/getmerchantprocessingagreement.py +64 -0
- moovio_sdk/models/operations/getonboardinginvite.py +62 -0
- moovio_sdk/models/operations/getpaymentlink.py +71 -0
- moovio_sdk/models/operations/getpaymentlinkqrcode.py +84 -0
- moovio_sdk/models/operations/getpaymentmethod.py +71 -0
- moovio_sdk/models/operations/getrefund.py +84 -0
- moovio_sdk/models/operations/getrepresentative.py +75 -0
- moovio_sdk/models/operations/getscheduledoccurrence.py +92 -0
- moovio_sdk/models/operations/getschedules.py +71 -0
- moovio_sdk/models/operations/getsweep.py +78 -0
- moovio_sdk/models/operations/getsweepconfig.py +71 -0
- moovio_sdk/models/operations/getterminalapplication.py +66 -0
- moovio_sdk/models/operations/gettermsofservicetoken.py +75 -0
- moovio_sdk/models/operations/gettransfer.py +73 -0
- moovio_sdk/models/operations/getunderwriting.py +64 -0
- moovio_sdk/models/operations/getwallet.py +71 -0
- moovio_sdk/models/operations/getwallettransaction.py +80 -0
- moovio_sdk/models/operations/initiatebankaccountverification.py +89 -0
- moovio_sdk/models/operations/initiatemicrodeposits.py +67 -0
- moovio_sdk/models/operations/initiaterefund.py +131 -0
- moovio_sdk/models/operations/linkapplepaytoken.py +80 -0
- moovio_sdk/models/operations/linkbankaccount.py +96 -0
- moovio_sdk/models/operations/linkcard.py +96 -0
- moovio_sdk/models/operations/listaccounts.py +171 -0
- moovio_sdk/models/operations/listadjustments.py +78 -0
- moovio_sdk/models/operations/listbankaccounts.py +64 -0
- moovio_sdk/models/operations/listcapabilities.py +64 -0
- moovio_sdk/models/operations/listcards.py +64 -0
- moovio_sdk/models/operations/listdisputeevidence.py +73 -0
- moovio_sdk/models/operations/listdisputes.py +172 -0
- moovio_sdk/models/operations/listfeeplanagreements.py +101 -0
- moovio_sdk/models/operations/listfeeplans.py +78 -0
- moovio_sdk/models/operations/listfeesfetch.py +80 -0
- moovio_sdk/models/operations/listfiles.py +64 -0
- moovio_sdk/models/operations/listindustries.py +62 -0
- moovio_sdk/models/operations/listinstitutions.py +92 -0
- moovio_sdk/models/operations/listissuedcardauthorizationevents.py +94 -0
- moovio_sdk/models/operations/listissuedcardauthorizations.py +126 -0
- moovio_sdk/models/operations/listissuedcards.py +94 -0
- moovio_sdk/models/operations/listissuedcardtransactions.py +113 -0
- moovio_sdk/models/operations/listonboardinginvites.py +60 -0
- moovio_sdk/models/operations/listpartnerpricing.py +78 -0
- moovio_sdk/models/operations/listpartnerpricingagreements.py +101 -0
- moovio_sdk/models/operations/listpaymentlinks.py +64 -0
- moovio_sdk/models/operations/listpaymentmethods.py +98 -0
- moovio_sdk/models/operations/listreceipts.py +65 -0
- moovio_sdk/models/operations/listrefunds.py +75 -0
- moovio_sdk/models/operations/listrepresentatives.py +66 -0
- moovio_sdk/models/operations/listschedules.py +81 -0
- moovio_sdk/models/operations/listsweepconfigs.py +64 -0
- moovio_sdk/models/operations/listsweeps.py +108 -0
- moovio_sdk/models/operations/listterminalapplications.py +62 -0
- moovio_sdk/models/operations/listtransfers.py +145 -0
- moovio_sdk/models/operations/listwallets.py +64 -0
- moovio_sdk/models/operations/listwallettransactions.py +189 -0
- moovio_sdk/models/operations/ping.py +56 -0
- moovio_sdk/models/operations/registerapplepaymerchantdomains.py +80 -0
- moovio_sdk/models/operations/requestcapabilities.py +78 -0
- moovio_sdk/models/operations/requestcard.py +80 -0
- moovio_sdk/models/operations/retrievefees.py +117 -0
- moovio_sdk/models/operations/revokeaccesstoken.py +48 -0
- moovio_sdk/models/operations/revokeonboardinginvite.py +58 -0
- moovio_sdk/models/operations/submitdisputeevidence.py +71 -0
- moovio_sdk/models/operations/testendtoendtoken.py +56 -0
- moovio_sdk/models/operations/updateaccount.py +78 -0
- moovio_sdk/models/operations/updateapplepaymerchantdomains.py +78 -0
- moovio_sdk/models/operations/updatebrand.py +78 -0
- moovio_sdk/models/operations/updatecard.py +85 -0
- moovio_sdk/models/operations/updatedisputeevidence.py +92 -0
- moovio_sdk/models/operations/updateissuedcard.py +81 -0
- moovio_sdk/models/operations/updatepaymentlink.py +85 -0
- moovio_sdk/models/operations/updaterepresentative.py +89 -0
- moovio_sdk/models/operations/updateschedule.py +85 -0
- moovio_sdk/models/operations/updatesweepconfig.py +85 -0
- moovio_sdk/models/operations/updatetransfer.py +87 -0
- moovio_sdk/models/operations/uploaddisputeevidencefile.py +87 -0
- moovio_sdk/models/operations/uploaddisputeevidencetext.py +85 -0
- moovio_sdk/models/operations/uploadfile.py +80 -0
- moovio_sdk/models/operations/upsertbrand.py +75 -0
- moovio_sdk/models/operations/upsertunderwriting.py +78 -0
- moovio_sdk/onboarding.py +965 -0
- moovio_sdk/payment_links.py +1694 -0
- moovio_sdk/payment_methods.py +475 -0
- moovio_sdk/ping.py +233 -0
- moovio_sdk/py.typed +1 -0
- moovio_sdk/receipts.py +507 -0
- moovio_sdk/representatives.py +1513 -0
- moovio_sdk/scheduling.py +1565 -0
- moovio_sdk/sdk.py +242 -0
- moovio_sdk/sdkconfiguration.py +59 -0
- moovio_sdk/sweeps.py +1617 -0
- moovio_sdk/terminal_applications.py +1013 -0
- moovio_sdk/transfers.py +3040 -0
- moovio_sdk/types/__init__.py +21 -0
- moovio_sdk/types/basemodel.py +39 -0
- moovio_sdk/underwriting.py +581 -0
- moovio_sdk/utils/__init__.py +101 -0
- moovio_sdk/utils/annotations.py +55 -0
- moovio_sdk/utils/enums.py +34 -0
- moovio_sdk/utils/eventstreaming.py +238 -0
- moovio_sdk/utils/forms.py +202 -0
- moovio_sdk/utils/headers.py +136 -0
- moovio_sdk/utils/logger.py +27 -0
- moovio_sdk/utils/metadata.py +118 -0
- moovio_sdk/utils/queryparams.py +205 -0
- moovio_sdk/utils/requestbodies.py +66 -0
- moovio_sdk/utils/retries.py +217 -0
- moovio_sdk/utils/security.py +195 -0
- moovio_sdk/utils/serializers.py +215 -0
- moovio_sdk/utils/url.py +155 -0
- moovio_sdk/utils/values.py +137 -0
- moovio_sdk/wallet_transactions.py +558 -0
- moovio_sdk/wallets.py +465 -0
- moovio_sdk-0.3.8.dist-info/METADATA +1920 -0
- moovio_sdk-0.3.8.dist-info/RECORD +586 -0
- moovio_sdk-0.3.8.dist-info/WHEEL +4 -0
moovio_sdk/httpclient.py
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
# pyright: reportReturnType = false
|
4
|
+
import asyncio
|
5
|
+
from concurrent.futures import ThreadPoolExecutor
|
6
|
+
from typing_extensions import Protocol, runtime_checkable
|
7
|
+
import httpx
|
8
|
+
from typing import Any, Optional, Union
|
9
|
+
|
10
|
+
|
11
|
+
@runtime_checkable
|
12
|
+
class HttpClient(Protocol):
|
13
|
+
def send(
|
14
|
+
self,
|
15
|
+
request: httpx.Request,
|
16
|
+
*,
|
17
|
+
stream: bool = False,
|
18
|
+
auth: Union[
|
19
|
+
httpx._types.AuthTypes, httpx._client.UseClientDefault, None
|
20
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
21
|
+
follow_redirects: Union[
|
22
|
+
bool, httpx._client.UseClientDefault
|
23
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
24
|
+
) -> httpx.Response:
|
25
|
+
pass
|
26
|
+
|
27
|
+
def build_request(
|
28
|
+
self,
|
29
|
+
method: str,
|
30
|
+
url: httpx._types.URLTypes,
|
31
|
+
*,
|
32
|
+
content: Optional[httpx._types.RequestContent] = None,
|
33
|
+
data: Optional[httpx._types.RequestData] = None,
|
34
|
+
files: Optional[httpx._types.RequestFiles] = None,
|
35
|
+
json: Optional[Any] = None,
|
36
|
+
params: Optional[httpx._types.QueryParamTypes] = None,
|
37
|
+
headers: Optional[httpx._types.HeaderTypes] = None,
|
38
|
+
cookies: Optional[httpx._types.CookieTypes] = None,
|
39
|
+
timeout: Union[
|
40
|
+
httpx._types.TimeoutTypes, httpx._client.UseClientDefault
|
41
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
42
|
+
extensions: Optional[httpx._types.RequestExtensions] = None,
|
43
|
+
) -> httpx.Request:
|
44
|
+
pass
|
45
|
+
|
46
|
+
def close(self) -> None:
|
47
|
+
pass
|
48
|
+
|
49
|
+
|
50
|
+
@runtime_checkable
|
51
|
+
class AsyncHttpClient(Protocol):
|
52
|
+
async def send(
|
53
|
+
self,
|
54
|
+
request: httpx.Request,
|
55
|
+
*,
|
56
|
+
stream: bool = False,
|
57
|
+
auth: Union[
|
58
|
+
httpx._types.AuthTypes, httpx._client.UseClientDefault, None
|
59
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
60
|
+
follow_redirects: Union[
|
61
|
+
bool, httpx._client.UseClientDefault
|
62
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
63
|
+
) -> httpx.Response:
|
64
|
+
pass
|
65
|
+
|
66
|
+
def build_request(
|
67
|
+
self,
|
68
|
+
method: str,
|
69
|
+
url: httpx._types.URLTypes,
|
70
|
+
*,
|
71
|
+
content: Optional[httpx._types.RequestContent] = None,
|
72
|
+
data: Optional[httpx._types.RequestData] = None,
|
73
|
+
files: Optional[httpx._types.RequestFiles] = None,
|
74
|
+
json: Optional[Any] = None,
|
75
|
+
params: Optional[httpx._types.QueryParamTypes] = None,
|
76
|
+
headers: Optional[httpx._types.HeaderTypes] = None,
|
77
|
+
cookies: Optional[httpx._types.CookieTypes] = None,
|
78
|
+
timeout: Union[
|
79
|
+
httpx._types.TimeoutTypes, httpx._client.UseClientDefault
|
80
|
+
] = httpx.USE_CLIENT_DEFAULT,
|
81
|
+
extensions: Optional[httpx._types.RequestExtensions] = None,
|
82
|
+
) -> httpx.Request:
|
83
|
+
pass
|
84
|
+
|
85
|
+
async def aclose(self) -> None:
|
86
|
+
pass
|
87
|
+
|
88
|
+
|
89
|
+
class ClientOwner(Protocol):
|
90
|
+
client: Union[HttpClient, None]
|
91
|
+
async_client: Union[AsyncHttpClient, None]
|
92
|
+
|
93
|
+
|
94
|
+
def close_clients(
|
95
|
+
owner: ClientOwner,
|
96
|
+
sync_client: Union[HttpClient, None],
|
97
|
+
sync_client_supplied: bool,
|
98
|
+
async_client: Union[AsyncHttpClient, None],
|
99
|
+
async_client_supplied: bool,
|
100
|
+
) -> None:
|
101
|
+
"""
|
102
|
+
A finalizer function that is meant to be used with weakref.finalize to close
|
103
|
+
httpx clients used by an SDK so that underlying resources can be garbage
|
104
|
+
collected.
|
105
|
+
"""
|
106
|
+
|
107
|
+
# Unset the client/async_client properties so there are no more references
|
108
|
+
# to them from the owning SDK instance and they can be reaped.
|
109
|
+
owner.client = None
|
110
|
+
owner.async_client = None
|
111
|
+
|
112
|
+
if sync_client is not None and not sync_client_supplied:
|
113
|
+
try:
|
114
|
+
sync_client.close()
|
115
|
+
except Exception:
|
116
|
+
pass
|
117
|
+
|
118
|
+
if async_client is not None and not async_client_supplied:
|
119
|
+
is_async = False
|
120
|
+
try:
|
121
|
+
asyncio.get_running_loop()
|
122
|
+
is_async = True
|
123
|
+
except RuntimeError:
|
124
|
+
pass
|
125
|
+
|
126
|
+
try:
|
127
|
+
# If this function is called in an async loop then start another
|
128
|
+
# loop in a separate thread to close the async http client.
|
129
|
+
if is_async:
|
130
|
+
with ThreadPoolExecutor(max_workers=1) as executor:
|
131
|
+
future = executor.submit(asyncio.run, async_client.aclose())
|
132
|
+
future.result()
|
133
|
+
else:
|
134
|
+
asyncio.run(async_client.aclose())
|
135
|
+
except Exception:
|
136
|
+
pass
|
moovio_sdk/industries.py
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from .basesdk import BaseSDK
|
4
|
+
from moovio_sdk import utils
|
5
|
+
from moovio_sdk._hooks import HookContext
|
6
|
+
from moovio_sdk.models import components, errors, operations
|
7
|
+
from moovio_sdk.types import BaseModel, OptionalNullable, UNSET
|
8
|
+
from moovio_sdk.utils import get_security_from_env
|
9
|
+
from typing import Mapping, Optional, Union, cast
|
10
|
+
|
11
|
+
|
12
|
+
class Industries(BaseSDK):
|
13
|
+
def list(
|
14
|
+
self,
|
15
|
+
*,
|
16
|
+
request: Union[
|
17
|
+
operations.ListIndustriesRequest, operations.ListIndustriesRequestTypedDict
|
18
|
+
] = operations.ListIndustriesRequest(),
|
19
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
20
|
+
server_url: Optional[str] = None,
|
21
|
+
timeout_ms: Optional[int] = None,
|
22
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
23
|
+
) -> operations.ListIndustriesResponse:
|
24
|
+
r"""Returns a list of all industry titles and their corresponding MCC/SIC/NAICS codes. Results are ordered by title.
|
25
|
+
|
26
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
27
|
+
you'll need to specify the `/profile-enrichment.read` scope.
|
28
|
+
|
29
|
+
:param request: The request object to send.
|
30
|
+
:param retries: Override the default retry configuration for this method
|
31
|
+
:param server_url: Override the default server URL for this method
|
32
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
33
|
+
:param http_headers: Additional headers to set or replace on requests.
|
34
|
+
"""
|
35
|
+
base_url = None
|
36
|
+
url_variables = None
|
37
|
+
if timeout_ms is None:
|
38
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
39
|
+
|
40
|
+
if server_url is not None:
|
41
|
+
base_url = server_url
|
42
|
+
else:
|
43
|
+
base_url = self._get_url(base_url, url_variables)
|
44
|
+
|
45
|
+
if not isinstance(request, BaseModel):
|
46
|
+
request = utils.unmarshal(request, operations.ListIndustriesRequest)
|
47
|
+
request = cast(operations.ListIndustriesRequest, request)
|
48
|
+
|
49
|
+
req = self._build_request(
|
50
|
+
method="GET",
|
51
|
+
path="/industries",
|
52
|
+
base_url=base_url,
|
53
|
+
url_variables=url_variables,
|
54
|
+
request=request,
|
55
|
+
request_body_required=False,
|
56
|
+
request_has_path_params=False,
|
57
|
+
request_has_query_params=True,
|
58
|
+
user_agent_header="user-agent",
|
59
|
+
accept_header_value="application/json",
|
60
|
+
http_headers=http_headers,
|
61
|
+
_globals=operations.ListIndustriesGlobals(
|
62
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
63
|
+
),
|
64
|
+
security=self.sdk_configuration.security,
|
65
|
+
timeout_ms=timeout_ms,
|
66
|
+
)
|
67
|
+
|
68
|
+
if retries == UNSET:
|
69
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
70
|
+
retries = self.sdk_configuration.retry_config
|
71
|
+
|
72
|
+
retry_config = None
|
73
|
+
if isinstance(retries, utils.RetryConfig):
|
74
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
75
|
+
|
76
|
+
http_res = self.do_request(
|
77
|
+
hook_ctx=HookContext(
|
78
|
+
base_url=base_url or "",
|
79
|
+
operation_id="listIndustries",
|
80
|
+
oauth2_scopes=[],
|
81
|
+
security_source=get_security_from_env(
|
82
|
+
self.sdk_configuration.security, components.Security
|
83
|
+
),
|
84
|
+
),
|
85
|
+
request=req,
|
86
|
+
error_status_codes=["401", "403", "429", "4XX", "500", "504", "5XX"],
|
87
|
+
retry_config=retry_config,
|
88
|
+
)
|
89
|
+
|
90
|
+
if utils.match_response(http_res, "200", "application/json"):
|
91
|
+
return operations.ListIndustriesResponse(
|
92
|
+
result=utils.unmarshal_json(
|
93
|
+
http_res.text, components.EnrichedIndustries
|
94
|
+
),
|
95
|
+
headers=utils.get_response_headers(http_res.headers),
|
96
|
+
)
|
97
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
98
|
+
http_res_text = utils.stream_to_text(http_res)
|
99
|
+
raise errors.APIError(
|
100
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
101
|
+
)
|
102
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
103
|
+
http_res_text = utils.stream_to_text(http_res)
|
104
|
+
raise errors.APIError(
|
105
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
106
|
+
)
|
107
|
+
if utils.match_response(http_res, "4XX", "*"):
|
108
|
+
http_res_text = utils.stream_to_text(http_res)
|
109
|
+
raise errors.APIError(
|
110
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
111
|
+
)
|
112
|
+
if utils.match_response(http_res, "5XX", "*"):
|
113
|
+
http_res_text = utils.stream_to_text(http_res)
|
114
|
+
raise errors.APIError(
|
115
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
116
|
+
)
|
117
|
+
|
118
|
+
content_type = http_res.headers.get("Content-Type")
|
119
|
+
http_res_text = utils.stream_to_text(http_res)
|
120
|
+
raise errors.APIError(
|
121
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
122
|
+
http_res.status_code,
|
123
|
+
http_res_text,
|
124
|
+
http_res,
|
125
|
+
)
|
126
|
+
|
127
|
+
async def list_async(
|
128
|
+
self,
|
129
|
+
*,
|
130
|
+
request: Union[
|
131
|
+
operations.ListIndustriesRequest, operations.ListIndustriesRequestTypedDict
|
132
|
+
] = operations.ListIndustriesRequest(),
|
133
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
134
|
+
server_url: Optional[str] = None,
|
135
|
+
timeout_ms: Optional[int] = None,
|
136
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
137
|
+
) -> operations.ListIndustriesResponse:
|
138
|
+
r"""Returns a list of all industry titles and their corresponding MCC/SIC/NAICS codes. Results are ordered by title.
|
139
|
+
|
140
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
141
|
+
you'll need to specify the `/profile-enrichment.read` scope.
|
142
|
+
|
143
|
+
:param request: The request object to send.
|
144
|
+
:param retries: Override the default retry configuration for this method
|
145
|
+
:param server_url: Override the default server URL for this method
|
146
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
147
|
+
:param http_headers: Additional headers to set or replace on requests.
|
148
|
+
"""
|
149
|
+
base_url = None
|
150
|
+
url_variables = None
|
151
|
+
if timeout_ms is None:
|
152
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
153
|
+
|
154
|
+
if server_url is not None:
|
155
|
+
base_url = server_url
|
156
|
+
else:
|
157
|
+
base_url = self._get_url(base_url, url_variables)
|
158
|
+
|
159
|
+
if not isinstance(request, BaseModel):
|
160
|
+
request = utils.unmarshal(request, operations.ListIndustriesRequest)
|
161
|
+
request = cast(operations.ListIndustriesRequest, request)
|
162
|
+
|
163
|
+
req = self._build_request_async(
|
164
|
+
method="GET",
|
165
|
+
path="/industries",
|
166
|
+
base_url=base_url,
|
167
|
+
url_variables=url_variables,
|
168
|
+
request=request,
|
169
|
+
request_body_required=False,
|
170
|
+
request_has_path_params=False,
|
171
|
+
request_has_query_params=True,
|
172
|
+
user_agent_header="user-agent",
|
173
|
+
accept_header_value="application/json",
|
174
|
+
http_headers=http_headers,
|
175
|
+
_globals=operations.ListIndustriesGlobals(
|
176
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
177
|
+
),
|
178
|
+
security=self.sdk_configuration.security,
|
179
|
+
timeout_ms=timeout_ms,
|
180
|
+
)
|
181
|
+
|
182
|
+
if retries == UNSET:
|
183
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
184
|
+
retries = self.sdk_configuration.retry_config
|
185
|
+
|
186
|
+
retry_config = None
|
187
|
+
if isinstance(retries, utils.RetryConfig):
|
188
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
189
|
+
|
190
|
+
http_res = await self.do_request_async(
|
191
|
+
hook_ctx=HookContext(
|
192
|
+
base_url=base_url or "",
|
193
|
+
operation_id="listIndustries",
|
194
|
+
oauth2_scopes=[],
|
195
|
+
security_source=get_security_from_env(
|
196
|
+
self.sdk_configuration.security, components.Security
|
197
|
+
),
|
198
|
+
),
|
199
|
+
request=req,
|
200
|
+
error_status_codes=["401", "403", "429", "4XX", "500", "504", "5XX"],
|
201
|
+
retry_config=retry_config,
|
202
|
+
)
|
203
|
+
|
204
|
+
if utils.match_response(http_res, "200", "application/json"):
|
205
|
+
return operations.ListIndustriesResponse(
|
206
|
+
result=utils.unmarshal_json(
|
207
|
+
http_res.text, components.EnrichedIndustries
|
208
|
+
),
|
209
|
+
headers=utils.get_response_headers(http_res.headers),
|
210
|
+
)
|
211
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
212
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
213
|
+
raise errors.APIError(
|
214
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
215
|
+
)
|
216
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
217
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
218
|
+
raise errors.APIError(
|
219
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
220
|
+
)
|
221
|
+
if utils.match_response(http_res, "4XX", "*"):
|
222
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
223
|
+
raise errors.APIError(
|
224
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
225
|
+
)
|
226
|
+
if utils.match_response(http_res, "5XX", "*"):
|
227
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
228
|
+
raise errors.APIError(
|
229
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
230
|
+
)
|
231
|
+
|
232
|
+
content_type = http_res.headers.get("Content-Type")
|
233
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
234
|
+
raise errors.APIError(
|
235
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
236
|
+
http_res.status_code,
|
237
|
+
http_res_text,
|
238
|
+
http_res,
|
239
|
+
)
|
@@ -0,0 +1,261 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from .basesdk import BaseSDK
|
4
|
+
from moovio_sdk import utils
|
5
|
+
from moovio_sdk._hooks import HookContext
|
6
|
+
from moovio_sdk.models import components, errors, operations
|
7
|
+
from moovio_sdk.types import OptionalNullable, UNSET
|
8
|
+
from moovio_sdk.utils import get_security_from_env
|
9
|
+
from typing import Any, Mapping, Optional
|
10
|
+
|
11
|
+
|
12
|
+
class Institutions(BaseSDK):
|
13
|
+
def search(
|
14
|
+
self,
|
15
|
+
*,
|
16
|
+
name: Optional[str] = None,
|
17
|
+
routing_number: Optional[str] = None,
|
18
|
+
state: Optional[str] = None,
|
19
|
+
limit: Optional[int] = None,
|
20
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
21
|
+
server_url: Optional[str] = None,
|
22
|
+
timeout_ms: Optional[int] = None,
|
23
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
24
|
+
) -> operations.ListInstitutionsResponse:
|
25
|
+
r"""Search for institutions by either their name or routing number.
|
26
|
+
|
27
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
28
|
+
you'll need to specify the `/fed.read` scope.
|
29
|
+
|
30
|
+
:param name: Name of the financial institution. Either `name` or `routingNumber` is required.
|
31
|
+
:param routing_number: Routing number for a financial institution. Either `routingNumber` or `name` is required.
|
32
|
+
:param state: The state where a financial institution is based.
|
33
|
+
:param limit: Maximum results returned by a search.
|
34
|
+
:param retries: Override the default retry configuration for this method
|
35
|
+
:param server_url: Override the default server URL for this method
|
36
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
37
|
+
:param http_headers: Additional headers to set or replace on requests.
|
38
|
+
"""
|
39
|
+
base_url = None
|
40
|
+
url_variables = None
|
41
|
+
if timeout_ms is None:
|
42
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
43
|
+
|
44
|
+
if server_url is not None:
|
45
|
+
base_url = server_url
|
46
|
+
else:
|
47
|
+
base_url = self._get_url(base_url, url_variables)
|
48
|
+
|
49
|
+
request = operations.ListInstitutionsRequest(
|
50
|
+
name=name,
|
51
|
+
routing_number=routing_number,
|
52
|
+
state=state,
|
53
|
+
limit=limit,
|
54
|
+
)
|
55
|
+
|
56
|
+
req = self._build_request(
|
57
|
+
method="GET",
|
58
|
+
path="/institutions/ach/search",
|
59
|
+
base_url=base_url,
|
60
|
+
url_variables=url_variables,
|
61
|
+
request=request,
|
62
|
+
request_body_required=False,
|
63
|
+
request_has_path_params=False,
|
64
|
+
request_has_query_params=True,
|
65
|
+
user_agent_header="user-agent",
|
66
|
+
accept_header_value="application/json",
|
67
|
+
http_headers=http_headers,
|
68
|
+
_globals=operations.ListInstitutionsGlobals(
|
69
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
70
|
+
),
|
71
|
+
security=self.sdk_configuration.security,
|
72
|
+
timeout_ms=timeout_ms,
|
73
|
+
)
|
74
|
+
|
75
|
+
if retries == UNSET:
|
76
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
77
|
+
retries = self.sdk_configuration.retry_config
|
78
|
+
|
79
|
+
retry_config = None
|
80
|
+
if isinstance(retries, utils.RetryConfig):
|
81
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
82
|
+
|
83
|
+
http_res = self.do_request(
|
84
|
+
hook_ctx=HookContext(
|
85
|
+
base_url=base_url or "",
|
86
|
+
operation_id="listInstitutions",
|
87
|
+
oauth2_scopes=[],
|
88
|
+
security_source=get_security_from_env(
|
89
|
+
self.sdk_configuration.security, components.Security
|
90
|
+
),
|
91
|
+
),
|
92
|
+
request=req,
|
93
|
+
error_status_codes=["400", "401", "403", "429", "4XX", "500", "504", "5XX"],
|
94
|
+
retry_config=retry_config,
|
95
|
+
)
|
96
|
+
|
97
|
+
response_data: Any = None
|
98
|
+
if utils.match_response(http_res, "200", "application/json"):
|
99
|
+
return operations.ListInstitutionsResponse(
|
100
|
+
result=utils.unmarshal_json(
|
101
|
+
http_res.text, components.FinancialInstitutions
|
102
|
+
),
|
103
|
+
headers=utils.get_response_headers(http_res.headers),
|
104
|
+
)
|
105
|
+
if utils.match_response(http_res, "400", "application/json"):
|
106
|
+
response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
|
107
|
+
raise errors.GenericError(data=response_data)
|
108
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
109
|
+
http_res_text = utils.stream_to_text(http_res)
|
110
|
+
raise errors.APIError(
|
111
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
112
|
+
)
|
113
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
114
|
+
http_res_text = utils.stream_to_text(http_res)
|
115
|
+
raise errors.APIError(
|
116
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
117
|
+
)
|
118
|
+
if utils.match_response(http_res, "4XX", "*"):
|
119
|
+
http_res_text = utils.stream_to_text(http_res)
|
120
|
+
raise errors.APIError(
|
121
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
122
|
+
)
|
123
|
+
if utils.match_response(http_res, "5XX", "*"):
|
124
|
+
http_res_text = utils.stream_to_text(http_res)
|
125
|
+
raise errors.APIError(
|
126
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
127
|
+
)
|
128
|
+
|
129
|
+
content_type = http_res.headers.get("Content-Type")
|
130
|
+
http_res_text = utils.stream_to_text(http_res)
|
131
|
+
raise errors.APIError(
|
132
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
133
|
+
http_res.status_code,
|
134
|
+
http_res_text,
|
135
|
+
http_res,
|
136
|
+
)
|
137
|
+
|
138
|
+
async def search_async(
|
139
|
+
self,
|
140
|
+
*,
|
141
|
+
name: Optional[str] = None,
|
142
|
+
routing_number: Optional[str] = None,
|
143
|
+
state: Optional[str] = None,
|
144
|
+
limit: Optional[int] = None,
|
145
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
146
|
+
server_url: Optional[str] = None,
|
147
|
+
timeout_ms: Optional[int] = None,
|
148
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
149
|
+
) -> operations.ListInstitutionsResponse:
|
150
|
+
r"""Search for institutions by either their name or routing number.
|
151
|
+
|
152
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
153
|
+
you'll need to specify the `/fed.read` scope.
|
154
|
+
|
155
|
+
:param name: Name of the financial institution. Either `name` or `routingNumber` is required.
|
156
|
+
:param routing_number: Routing number for a financial institution. Either `routingNumber` or `name` is required.
|
157
|
+
:param state: The state where a financial institution is based.
|
158
|
+
:param limit: Maximum results returned by a search.
|
159
|
+
:param retries: Override the default retry configuration for this method
|
160
|
+
:param server_url: Override the default server URL for this method
|
161
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
162
|
+
:param http_headers: Additional headers to set or replace on requests.
|
163
|
+
"""
|
164
|
+
base_url = None
|
165
|
+
url_variables = None
|
166
|
+
if timeout_ms is None:
|
167
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
168
|
+
|
169
|
+
if server_url is not None:
|
170
|
+
base_url = server_url
|
171
|
+
else:
|
172
|
+
base_url = self._get_url(base_url, url_variables)
|
173
|
+
|
174
|
+
request = operations.ListInstitutionsRequest(
|
175
|
+
name=name,
|
176
|
+
routing_number=routing_number,
|
177
|
+
state=state,
|
178
|
+
limit=limit,
|
179
|
+
)
|
180
|
+
|
181
|
+
req = self._build_request_async(
|
182
|
+
method="GET",
|
183
|
+
path="/institutions/ach/search",
|
184
|
+
base_url=base_url,
|
185
|
+
url_variables=url_variables,
|
186
|
+
request=request,
|
187
|
+
request_body_required=False,
|
188
|
+
request_has_path_params=False,
|
189
|
+
request_has_query_params=True,
|
190
|
+
user_agent_header="user-agent",
|
191
|
+
accept_header_value="application/json",
|
192
|
+
http_headers=http_headers,
|
193
|
+
_globals=operations.ListInstitutionsGlobals(
|
194
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
195
|
+
),
|
196
|
+
security=self.sdk_configuration.security,
|
197
|
+
timeout_ms=timeout_ms,
|
198
|
+
)
|
199
|
+
|
200
|
+
if retries == UNSET:
|
201
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
202
|
+
retries = self.sdk_configuration.retry_config
|
203
|
+
|
204
|
+
retry_config = None
|
205
|
+
if isinstance(retries, utils.RetryConfig):
|
206
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
207
|
+
|
208
|
+
http_res = await self.do_request_async(
|
209
|
+
hook_ctx=HookContext(
|
210
|
+
base_url=base_url or "",
|
211
|
+
operation_id="listInstitutions",
|
212
|
+
oauth2_scopes=[],
|
213
|
+
security_source=get_security_from_env(
|
214
|
+
self.sdk_configuration.security, components.Security
|
215
|
+
),
|
216
|
+
),
|
217
|
+
request=req,
|
218
|
+
error_status_codes=["400", "401", "403", "429", "4XX", "500", "504", "5XX"],
|
219
|
+
retry_config=retry_config,
|
220
|
+
)
|
221
|
+
|
222
|
+
response_data: Any = None
|
223
|
+
if utils.match_response(http_res, "200", "application/json"):
|
224
|
+
return operations.ListInstitutionsResponse(
|
225
|
+
result=utils.unmarshal_json(
|
226
|
+
http_res.text, components.FinancialInstitutions
|
227
|
+
),
|
228
|
+
headers=utils.get_response_headers(http_res.headers),
|
229
|
+
)
|
230
|
+
if utils.match_response(http_res, "400", "application/json"):
|
231
|
+
response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
|
232
|
+
raise errors.GenericError(data=response_data)
|
233
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
234
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
235
|
+
raise errors.APIError(
|
236
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
237
|
+
)
|
238
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
239
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
240
|
+
raise errors.APIError(
|
241
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
242
|
+
)
|
243
|
+
if utils.match_response(http_res, "4XX", "*"):
|
244
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
245
|
+
raise errors.APIError(
|
246
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
247
|
+
)
|
248
|
+
if utils.match_response(http_res, "5XX", "*"):
|
249
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
250
|
+
raise errors.APIError(
|
251
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
252
|
+
)
|
253
|
+
|
254
|
+
content_type = http_res.headers.get("Content-Type")
|
255
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
256
|
+
raise errors.APIError(
|
257
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
258
|
+
http_res.status_code,
|
259
|
+
http_res_text,
|
260
|
+
http_res,
|
261
|
+
)
|