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/onboarding.py
ADDED
@@ -0,0 +1,965 @@
|
|
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 Any, List, Mapping, Optional, Union, cast
|
10
|
+
|
11
|
+
|
12
|
+
class Onboarding(BaseSDK):
|
13
|
+
def create_invite(
|
14
|
+
self,
|
15
|
+
*,
|
16
|
+
scopes: List[components.ApplicationScope],
|
17
|
+
capabilities: List[components.CapabilityID],
|
18
|
+
fee_plan_codes: List[str],
|
19
|
+
return_url: Optional[str] = None,
|
20
|
+
terms_of_service_url: Optional[str] = None,
|
21
|
+
prefill: Optional[
|
22
|
+
Union[components.CreateAccount, components.CreateAccountTypedDict]
|
23
|
+
] = None,
|
24
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
25
|
+
server_url: Optional[str] = None,
|
26
|
+
timeout_ms: Optional[int] = None,
|
27
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
28
|
+
) -> operations.CreateOnboardingInviteResponse:
|
29
|
+
r"""Create an invitation containing a unique link that allows the recipient to onboard their organization with Moov.
|
30
|
+
|
31
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
32
|
+
you'll need to specify the `/accounts.write` scope.
|
33
|
+
|
34
|
+
:param scopes: List of [scopes](https://docs.moov.io/api/authentication/scopes/) you request to use on this account. These values are used to determine what can be done with the account onboarded.
|
35
|
+
:param capabilities: List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this account. These values are used to determine what information to collect from the user during onboarding.
|
36
|
+
:param fee_plan_codes: List of fee plan codes to assign the account created by the invitee.
|
37
|
+
:param return_url: Optional URL to redirect the user to after they complete the onboarding process.
|
38
|
+
:param terms_of_service_url: Optional URL to your organization's terms of service.
|
39
|
+
:param prefill:
|
40
|
+
:param retries: Override the default retry configuration for this method
|
41
|
+
:param server_url: Override the default server URL for this method
|
42
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
43
|
+
:param http_headers: Additional headers to set or replace on requests.
|
44
|
+
"""
|
45
|
+
base_url = None
|
46
|
+
url_variables = None
|
47
|
+
if timeout_ms is None:
|
48
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
49
|
+
|
50
|
+
if server_url is not None:
|
51
|
+
base_url = server_url
|
52
|
+
else:
|
53
|
+
base_url = self._get_url(base_url, url_variables)
|
54
|
+
|
55
|
+
request = components.OnboardingInviteRequest(
|
56
|
+
return_url=return_url,
|
57
|
+
terms_of_service_url=terms_of_service_url,
|
58
|
+
scopes=scopes,
|
59
|
+
capabilities=capabilities,
|
60
|
+
fee_plan_codes=fee_plan_codes,
|
61
|
+
prefill=utils.get_pydantic_model(
|
62
|
+
prefill, Optional[components.CreateAccount]
|
63
|
+
),
|
64
|
+
)
|
65
|
+
|
66
|
+
req = self._build_request(
|
67
|
+
method="POST",
|
68
|
+
path="/onboarding-invites",
|
69
|
+
base_url=base_url,
|
70
|
+
url_variables=url_variables,
|
71
|
+
request=request,
|
72
|
+
request_body_required=True,
|
73
|
+
request_has_path_params=False,
|
74
|
+
request_has_query_params=True,
|
75
|
+
user_agent_header="user-agent",
|
76
|
+
accept_header_value="application/json",
|
77
|
+
http_headers=http_headers,
|
78
|
+
_globals=operations.CreateOnboardingInviteGlobals(
|
79
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
80
|
+
),
|
81
|
+
security=self.sdk_configuration.security,
|
82
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
83
|
+
request, False, False, "json", components.OnboardingInviteRequest
|
84
|
+
),
|
85
|
+
timeout_ms=timeout_ms,
|
86
|
+
)
|
87
|
+
|
88
|
+
if retries == UNSET:
|
89
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
90
|
+
retries = self.sdk_configuration.retry_config
|
91
|
+
|
92
|
+
retry_config = None
|
93
|
+
if isinstance(retries, utils.RetryConfig):
|
94
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
95
|
+
|
96
|
+
http_res = self.do_request(
|
97
|
+
hook_ctx=HookContext(
|
98
|
+
base_url=base_url or "",
|
99
|
+
operation_id="createOnboardingInvite",
|
100
|
+
oauth2_scopes=[],
|
101
|
+
security_source=get_security_from_env(
|
102
|
+
self.sdk_configuration.security, components.Security
|
103
|
+
),
|
104
|
+
),
|
105
|
+
request=req,
|
106
|
+
error_status_codes=[
|
107
|
+
"400",
|
108
|
+
"401",
|
109
|
+
"403",
|
110
|
+
"404",
|
111
|
+
"409",
|
112
|
+
"422",
|
113
|
+
"429",
|
114
|
+
"4XX",
|
115
|
+
"500",
|
116
|
+
"504",
|
117
|
+
"5XX",
|
118
|
+
],
|
119
|
+
retry_config=retry_config,
|
120
|
+
)
|
121
|
+
|
122
|
+
response_data: Any = None
|
123
|
+
if utils.match_response(http_res, "200", "application/json"):
|
124
|
+
return operations.CreateOnboardingInviteResponse(
|
125
|
+
result=utils.unmarshal_json(http_res.text, components.OnboardingInvite),
|
126
|
+
headers=utils.get_response_headers(http_res.headers),
|
127
|
+
)
|
128
|
+
if utils.match_response(http_res, ["400", "409"], "application/json"):
|
129
|
+
response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
|
130
|
+
raise errors.GenericError(data=response_data)
|
131
|
+
if utils.match_response(http_res, "422", "application/json"):
|
132
|
+
response_data = utils.unmarshal_json(
|
133
|
+
http_res.text, errors.OnboardingInviteErrorData
|
134
|
+
)
|
135
|
+
raise errors.OnboardingInviteError(data=response_data)
|
136
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
137
|
+
http_res_text = utils.stream_to_text(http_res)
|
138
|
+
raise errors.APIError(
|
139
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
140
|
+
)
|
141
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
142
|
+
http_res_text = utils.stream_to_text(http_res)
|
143
|
+
raise errors.APIError(
|
144
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
145
|
+
)
|
146
|
+
if utils.match_response(http_res, "4XX", "*"):
|
147
|
+
http_res_text = utils.stream_to_text(http_res)
|
148
|
+
raise errors.APIError(
|
149
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
150
|
+
)
|
151
|
+
if utils.match_response(http_res, "5XX", "*"):
|
152
|
+
http_res_text = utils.stream_to_text(http_res)
|
153
|
+
raise errors.APIError(
|
154
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
155
|
+
)
|
156
|
+
|
157
|
+
content_type = http_res.headers.get("Content-Type")
|
158
|
+
http_res_text = utils.stream_to_text(http_res)
|
159
|
+
raise errors.APIError(
|
160
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
161
|
+
http_res.status_code,
|
162
|
+
http_res_text,
|
163
|
+
http_res,
|
164
|
+
)
|
165
|
+
|
166
|
+
async def create_invite_async(
|
167
|
+
self,
|
168
|
+
*,
|
169
|
+
scopes: List[components.ApplicationScope],
|
170
|
+
capabilities: List[components.CapabilityID],
|
171
|
+
fee_plan_codes: List[str],
|
172
|
+
return_url: Optional[str] = None,
|
173
|
+
terms_of_service_url: Optional[str] = None,
|
174
|
+
prefill: Optional[
|
175
|
+
Union[components.CreateAccount, components.CreateAccountTypedDict]
|
176
|
+
] = None,
|
177
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
178
|
+
server_url: Optional[str] = None,
|
179
|
+
timeout_ms: Optional[int] = None,
|
180
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
181
|
+
) -> operations.CreateOnboardingInviteResponse:
|
182
|
+
r"""Create an invitation containing a unique link that allows the recipient to onboard their organization with Moov.
|
183
|
+
|
184
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
185
|
+
you'll need to specify the `/accounts.write` scope.
|
186
|
+
|
187
|
+
:param scopes: List of [scopes](https://docs.moov.io/api/authentication/scopes/) you request to use on this account. These values are used to determine what can be done with the account onboarded.
|
188
|
+
:param capabilities: List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this account. These values are used to determine what information to collect from the user during onboarding.
|
189
|
+
:param fee_plan_codes: List of fee plan codes to assign the account created by the invitee.
|
190
|
+
:param return_url: Optional URL to redirect the user to after they complete the onboarding process.
|
191
|
+
:param terms_of_service_url: Optional URL to your organization's terms of service.
|
192
|
+
:param prefill:
|
193
|
+
:param retries: Override the default retry configuration for this method
|
194
|
+
:param server_url: Override the default server URL for this method
|
195
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
196
|
+
:param http_headers: Additional headers to set or replace on requests.
|
197
|
+
"""
|
198
|
+
base_url = None
|
199
|
+
url_variables = None
|
200
|
+
if timeout_ms is None:
|
201
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
202
|
+
|
203
|
+
if server_url is not None:
|
204
|
+
base_url = server_url
|
205
|
+
else:
|
206
|
+
base_url = self._get_url(base_url, url_variables)
|
207
|
+
|
208
|
+
request = components.OnboardingInviteRequest(
|
209
|
+
return_url=return_url,
|
210
|
+
terms_of_service_url=terms_of_service_url,
|
211
|
+
scopes=scopes,
|
212
|
+
capabilities=capabilities,
|
213
|
+
fee_plan_codes=fee_plan_codes,
|
214
|
+
prefill=utils.get_pydantic_model(
|
215
|
+
prefill, Optional[components.CreateAccount]
|
216
|
+
),
|
217
|
+
)
|
218
|
+
|
219
|
+
req = self._build_request_async(
|
220
|
+
method="POST",
|
221
|
+
path="/onboarding-invites",
|
222
|
+
base_url=base_url,
|
223
|
+
url_variables=url_variables,
|
224
|
+
request=request,
|
225
|
+
request_body_required=True,
|
226
|
+
request_has_path_params=False,
|
227
|
+
request_has_query_params=True,
|
228
|
+
user_agent_header="user-agent",
|
229
|
+
accept_header_value="application/json",
|
230
|
+
http_headers=http_headers,
|
231
|
+
_globals=operations.CreateOnboardingInviteGlobals(
|
232
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
233
|
+
),
|
234
|
+
security=self.sdk_configuration.security,
|
235
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
236
|
+
request, False, False, "json", components.OnboardingInviteRequest
|
237
|
+
),
|
238
|
+
timeout_ms=timeout_ms,
|
239
|
+
)
|
240
|
+
|
241
|
+
if retries == UNSET:
|
242
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
243
|
+
retries = self.sdk_configuration.retry_config
|
244
|
+
|
245
|
+
retry_config = None
|
246
|
+
if isinstance(retries, utils.RetryConfig):
|
247
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
248
|
+
|
249
|
+
http_res = await self.do_request_async(
|
250
|
+
hook_ctx=HookContext(
|
251
|
+
base_url=base_url or "",
|
252
|
+
operation_id="createOnboardingInvite",
|
253
|
+
oauth2_scopes=[],
|
254
|
+
security_source=get_security_from_env(
|
255
|
+
self.sdk_configuration.security, components.Security
|
256
|
+
),
|
257
|
+
),
|
258
|
+
request=req,
|
259
|
+
error_status_codes=[
|
260
|
+
"400",
|
261
|
+
"401",
|
262
|
+
"403",
|
263
|
+
"404",
|
264
|
+
"409",
|
265
|
+
"422",
|
266
|
+
"429",
|
267
|
+
"4XX",
|
268
|
+
"500",
|
269
|
+
"504",
|
270
|
+
"5XX",
|
271
|
+
],
|
272
|
+
retry_config=retry_config,
|
273
|
+
)
|
274
|
+
|
275
|
+
response_data: Any = None
|
276
|
+
if utils.match_response(http_res, "200", "application/json"):
|
277
|
+
return operations.CreateOnboardingInviteResponse(
|
278
|
+
result=utils.unmarshal_json(http_res.text, components.OnboardingInvite),
|
279
|
+
headers=utils.get_response_headers(http_res.headers),
|
280
|
+
)
|
281
|
+
if utils.match_response(http_res, ["400", "409"], "application/json"):
|
282
|
+
response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
|
283
|
+
raise errors.GenericError(data=response_data)
|
284
|
+
if utils.match_response(http_res, "422", "application/json"):
|
285
|
+
response_data = utils.unmarshal_json(
|
286
|
+
http_res.text, errors.OnboardingInviteErrorData
|
287
|
+
)
|
288
|
+
raise errors.OnboardingInviteError(data=response_data)
|
289
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
290
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
291
|
+
raise errors.APIError(
|
292
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
293
|
+
)
|
294
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
295
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
296
|
+
raise errors.APIError(
|
297
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
298
|
+
)
|
299
|
+
if utils.match_response(http_res, "4XX", "*"):
|
300
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
301
|
+
raise errors.APIError(
|
302
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
303
|
+
)
|
304
|
+
if utils.match_response(http_res, "5XX", "*"):
|
305
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
306
|
+
raise errors.APIError(
|
307
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
308
|
+
)
|
309
|
+
|
310
|
+
content_type = http_res.headers.get("Content-Type")
|
311
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
312
|
+
raise errors.APIError(
|
313
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
314
|
+
http_res.status_code,
|
315
|
+
http_res_text,
|
316
|
+
http_res,
|
317
|
+
)
|
318
|
+
|
319
|
+
def list_invites(
|
320
|
+
self,
|
321
|
+
*,
|
322
|
+
request: Union[
|
323
|
+
operations.ListOnboardingInvitesRequest,
|
324
|
+
operations.ListOnboardingInvitesRequestTypedDict,
|
325
|
+
] = operations.ListOnboardingInvitesRequest(),
|
326
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
327
|
+
server_url: Optional[str] = None,
|
328
|
+
timeout_ms: Optional[int] = None,
|
329
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
330
|
+
) -> operations.ListOnboardingInvitesResponse:
|
331
|
+
r"""List all the onboarding invites created by the caller's account.
|
332
|
+
|
333
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
334
|
+
you'll need to specify the `/accounts.read` scope.
|
335
|
+
|
336
|
+
:param request: The request object to send.
|
337
|
+
:param retries: Override the default retry configuration for this method
|
338
|
+
:param server_url: Override the default server URL for this method
|
339
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
340
|
+
:param http_headers: Additional headers to set or replace on requests.
|
341
|
+
"""
|
342
|
+
base_url = None
|
343
|
+
url_variables = None
|
344
|
+
if timeout_ms is None:
|
345
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
346
|
+
|
347
|
+
if server_url is not None:
|
348
|
+
base_url = server_url
|
349
|
+
else:
|
350
|
+
base_url = self._get_url(base_url, url_variables)
|
351
|
+
|
352
|
+
if not isinstance(request, BaseModel):
|
353
|
+
request = utils.unmarshal(request, operations.ListOnboardingInvitesRequest)
|
354
|
+
request = cast(operations.ListOnboardingInvitesRequest, request)
|
355
|
+
|
356
|
+
req = self._build_request(
|
357
|
+
method="GET",
|
358
|
+
path="/onboarding-invites",
|
359
|
+
base_url=base_url,
|
360
|
+
url_variables=url_variables,
|
361
|
+
request=request,
|
362
|
+
request_body_required=False,
|
363
|
+
request_has_path_params=False,
|
364
|
+
request_has_query_params=True,
|
365
|
+
user_agent_header="user-agent",
|
366
|
+
accept_header_value="application/json",
|
367
|
+
http_headers=http_headers,
|
368
|
+
_globals=operations.ListOnboardingInvitesGlobals(
|
369
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
370
|
+
),
|
371
|
+
security=self.sdk_configuration.security,
|
372
|
+
timeout_ms=timeout_ms,
|
373
|
+
)
|
374
|
+
|
375
|
+
if retries == UNSET:
|
376
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
377
|
+
retries = self.sdk_configuration.retry_config
|
378
|
+
|
379
|
+
retry_config = None
|
380
|
+
if isinstance(retries, utils.RetryConfig):
|
381
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
382
|
+
|
383
|
+
http_res = self.do_request(
|
384
|
+
hook_ctx=HookContext(
|
385
|
+
base_url=base_url or "",
|
386
|
+
operation_id="listOnboardingInvites",
|
387
|
+
oauth2_scopes=[],
|
388
|
+
security_source=get_security_from_env(
|
389
|
+
self.sdk_configuration.security, components.Security
|
390
|
+
),
|
391
|
+
),
|
392
|
+
request=req,
|
393
|
+
error_status_codes=["401", "403", "429", "4XX", "500", "504", "5XX"],
|
394
|
+
retry_config=retry_config,
|
395
|
+
)
|
396
|
+
|
397
|
+
if utils.match_response(http_res, "200", "application/json"):
|
398
|
+
return operations.ListOnboardingInvitesResponse(
|
399
|
+
result=utils.unmarshal_json(
|
400
|
+
http_res.text, List[components.OnboardingInvite]
|
401
|
+
),
|
402
|
+
headers=utils.get_response_headers(http_res.headers),
|
403
|
+
)
|
404
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
405
|
+
http_res_text = utils.stream_to_text(http_res)
|
406
|
+
raise errors.APIError(
|
407
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
408
|
+
)
|
409
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
410
|
+
http_res_text = utils.stream_to_text(http_res)
|
411
|
+
raise errors.APIError(
|
412
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
413
|
+
)
|
414
|
+
if utils.match_response(http_res, "4XX", "*"):
|
415
|
+
http_res_text = utils.stream_to_text(http_res)
|
416
|
+
raise errors.APIError(
|
417
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
418
|
+
)
|
419
|
+
if utils.match_response(http_res, "5XX", "*"):
|
420
|
+
http_res_text = utils.stream_to_text(http_res)
|
421
|
+
raise errors.APIError(
|
422
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
423
|
+
)
|
424
|
+
|
425
|
+
content_type = http_res.headers.get("Content-Type")
|
426
|
+
http_res_text = utils.stream_to_text(http_res)
|
427
|
+
raise errors.APIError(
|
428
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
429
|
+
http_res.status_code,
|
430
|
+
http_res_text,
|
431
|
+
http_res,
|
432
|
+
)
|
433
|
+
|
434
|
+
async def list_invites_async(
|
435
|
+
self,
|
436
|
+
*,
|
437
|
+
request: Union[
|
438
|
+
operations.ListOnboardingInvitesRequest,
|
439
|
+
operations.ListOnboardingInvitesRequestTypedDict,
|
440
|
+
] = operations.ListOnboardingInvitesRequest(),
|
441
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
442
|
+
server_url: Optional[str] = None,
|
443
|
+
timeout_ms: Optional[int] = None,
|
444
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
445
|
+
) -> operations.ListOnboardingInvitesResponse:
|
446
|
+
r"""List all the onboarding invites created by the caller's account.
|
447
|
+
|
448
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
449
|
+
you'll need to specify the `/accounts.read` scope.
|
450
|
+
|
451
|
+
:param request: The request object to send.
|
452
|
+
:param retries: Override the default retry configuration for this method
|
453
|
+
:param server_url: Override the default server URL for this method
|
454
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
455
|
+
:param http_headers: Additional headers to set or replace on requests.
|
456
|
+
"""
|
457
|
+
base_url = None
|
458
|
+
url_variables = None
|
459
|
+
if timeout_ms is None:
|
460
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
461
|
+
|
462
|
+
if server_url is not None:
|
463
|
+
base_url = server_url
|
464
|
+
else:
|
465
|
+
base_url = self._get_url(base_url, url_variables)
|
466
|
+
|
467
|
+
if not isinstance(request, BaseModel):
|
468
|
+
request = utils.unmarshal(request, operations.ListOnboardingInvitesRequest)
|
469
|
+
request = cast(operations.ListOnboardingInvitesRequest, request)
|
470
|
+
|
471
|
+
req = self._build_request_async(
|
472
|
+
method="GET",
|
473
|
+
path="/onboarding-invites",
|
474
|
+
base_url=base_url,
|
475
|
+
url_variables=url_variables,
|
476
|
+
request=request,
|
477
|
+
request_body_required=False,
|
478
|
+
request_has_path_params=False,
|
479
|
+
request_has_query_params=True,
|
480
|
+
user_agent_header="user-agent",
|
481
|
+
accept_header_value="application/json",
|
482
|
+
http_headers=http_headers,
|
483
|
+
_globals=operations.ListOnboardingInvitesGlobals(
|
484
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
485
|
+
),
|
486
|
+
security=self.sdk_configuration.security,
|
487
|
+
timeout_ms=timeout_ms,
|
488
|
+
)
|
489
|
+
|
490
|
+
if retries == UNSET:
|
491
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
492
|
+
retries = self.sdk_configuration.retry_config
|
493
|
+
|
494
|
+
retry_config = None
|
495
|
+
if isinstance(retries, utils.RetryConfig):
|
496
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
497
|
+
|
498
|
+
http_res = await self.do_request_async(
|
499
|
+
hook_ctx=HookContext(
|
500
|
+
base_url=base_url or "",
|
501
|
+
operation_id="listOnboardingInvites",
|
502
|
+
oauth2_scopes=[],
|
503
|
+
security_source=get_security_from_env(
|
504
|
+
self.sdk_configuration.security, components.Security
|
505
|
+
),
|
506
|
+
),
|
507
|
+
request=req,
|
508
|
+
error_status_codes=["401", "403", "429", "4XX", "500", "504", "5XX"],
|
509
|
+
retry_config=retry_config,
|
510
|
+
)
|
511
|
+
|
512
|
+
if utils.match_response(http_res, "200", "application/json"):
|
513
|
+
return operations.ListOnboardingInvitesResponse(
|
514
|
+
result=utils.unmarshal_json(
|
515
|
+
http_res.text, List[components.OnboardingInvite]
|
516
|
+
),
|
517
|
+
headers=utils.get_response_headers(http_res.headers),
|
518
|
+
)
|
519
|
+
if utils.match_response(http_res, ["401", "403", "429"], "*"):
|
520
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
521
|
+
raise errors.APIError(
|
522
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
523
|
+
)
|
524
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
525
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
526
|
+
raise errors.APIError(
|
527
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
528
|
+
)
|
529
|
+
if utils.match_response(http_res, "4XX", "*"):
|
530
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
531
|
+
raise errors.APIError(
|
532
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
533
|
+
)
|
534
|
+
if utils.match_response(http_res, "5XX", "*"):
|
535
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
536
|
+
raise errors.APIError(
|
537
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
538
|
+
)
|
539
|
+
|
540
|
+
content_type = http_res.headers.get("Content-Type")
|
541
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
542
|
+
raise errors.APIError(
|
543
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
544
|
+
http_res.status_code,
|
545
|
+
http_res_text,
|
546
|
+
http_res,
|
547
|
+
)
|
548
|
+
|
549
|
+
def get_invite(
|
550
|
+
self,
|
551
|
+
*,
|
552
|
+
code: str,
|
553
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
554
|
+
server_url: Optional[str] = None,
|
555
|
+
timeout_ms: Optional[int] = None,
|
556
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
557
|
+
) -> operations.GetOnboardingInviteResponse:
|
558
|
+
r"""Retrieve details about an onboarding invite.
|
559
|
+
|
560
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
561
|
+
you'll need to specify the `/accounts.read` scope.
|
562
|
+
|
563
|
+
:param code:
|
564
|
+
:param retries: Override the default retry configuration for this method
|
565
|
+
:param server_url: Override the default server URL for this method
|
566
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
567
|
+
:param http_headers: Additional headers to set or replace on requests.
|
568
|
+
"""
|
569
|
+
base_url = None
|
570
|
+
url_variables = None
|
571
|
+
if timeout_ms is None:
|
572
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
573
|
+
|
574
|
+
if server_url is not None:
|
575
|
+
base_url = server_url
|
576
|
+
else:
|
577
|
+
base_url = self._get_url(base_url, url_variables)
|
578
|
+
|
579
|
+
request = operations.GetOnboardingInviteRequest(
|
580
|
+
code=code,
|
581
|
+
)
|
582
|
+
|
583
|
+
req = self._build_request(
|
584
|
+
method="GET",
|
585
|
+
path="/onboarding-invites/{code}",
|
586
|
+
base_url=base_url,
|
587
|
+
url_variables=url_variables,
|
588
|
+
request=request,
|
589
|
+
request_body_required=False,
|
590
|
+
request_has_path_params=True,
|
591
|
+
request_has_query_params=True,
|
592
|
+
user_agent_header="user-agent",
|
593
|
+
accept_header_value="application/json",
|
594
|
+
http_headers=http_headers,
|
595
|
+
_globals=operations.GetOnboardingInviteGlobals(
|
596
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
597
|
+
),
|
598
|
+
security=self.sdk_configuration.security,
|
599
|
+
timeout_ms=timeout_ms,
|
600
|
+
)
|
601
|
+
|
602
|
+
if retries == UNSET:
|
603
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
604
|
+
retries = self.sdk_configuration.retry_config
|
605
|
+
|
606
|
+
retry_config = None
|
607
|
+
if isinstance(retries, utils.RetryConfig):
|
608
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
609
|
+
|
610
|
+
http_res = self.do_request(
|
611
|
+
hook_ctx=HookContext(
|
612
|
+
base_url=base_url or "",
|
613
|
+
operation_id="getOnboardingInvite",
|
614
|
+
oauth2_scopes=[],
|
615
|
+
security_source=get_security_from_env(
|
616
|
+
self.sdk_configuration.security, components.Security
|
617
|
+
),
|
618
|
+
),
|
619
|
+
request=req,
|
620
|
+
error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
621
|
+
retry_config=retry_config,
|
622
|
+
)
|
623
|
+
|
624
|
+
if utils.match_response(http_res, "200", "application/json"):
|
625
|
+
return operations.GetOnboardingInviteResponse(
|
626
|
+
result=utils.unmarshal_json(http_res.text, components.OnboardingInvite),
|
627
|
+
headers=utils.get_response_headers(http_res.headers),
|
628
|
+
)
|
629
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
630
|
+
http_res_text = utils.stream_to_text(http_res)
|
631
|
+
raise errors.APIError(
|
632
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
633
|
+
)
|
634
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
635
|
+
http_res_text = utils.stream_to_text(http_res)
|
636
|
+
raise errors.APIError(
|
637
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
638
|
+
)
|
639
|
+
if utils.match_response(http_res, "4XX", "*"):
|
640
|
+
http_res_text = utils.stream_to_text(http_res)
|
641
|
+
raise errors.APIError(
|
642
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
643
|
+
)
|
644
|
+
if utils.match_response(http_res, "5XX", "*"):
|
645
|
+
http_res_text = utils.stream_to_text(http_res)
|
646
|
+
raise errors.APIError(
|
647
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
648
|
+
)
|
649
|
+
|
650
|
+
content_type = http_res.headers.get("Content-Type")
|
651
|
+
http_res_text = utils.stream_to_text(http_res)
|
652
|
+
raise errors.APIError(
|
653
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
654
|
+
http_res.status_code,
|
655
|
+
http_res_text,
|
656
|
+
http_res,
|
657
|
+
)
|
658
|
+
|
659
|
+
async def get_invite_async(
|
660
|
+
self,
|
661
|
+
*,
|
662
|
+
code: str,
|
663
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
664
|
+
server_url: Optional[str] = None,
|
665
|
+
timeout_ms: Optional[int] = None,
|
666
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
667
|
+
) -> operations.GetOnboardingInviteResponse:
|
668
|
+
r"""Retrieve details about an onboarding invite.
|
669
|
+
|
670
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
671
|
+
you'll need to specify the `/accounts.read` scope.
|
672
|
+
|
673
|
+
:param code:
|
674
|
+
:param retries: Override the default retry configuration for this method
|
675
|
+
:param server_url: Override the default server URL for this method
|
676
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
677
|
+
:param http_headers: Additional headers to set or replace on requests.
|
678
|
+
"""
|
679
|
+
base_url = None
|
680
|
+
url_variables = None
|
681
|
+
if timeout_ms is None:
|
682
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
683
|
+
|
684
|
+
if server_url is not None:
|
685
|
+
base_url = server_url
|
686
|
+
else:
|
687
|
+
base_url = self._get_url(base_url, url_variables)
|
688
|
+
|
689
|
+
request = operations.GetOnboardingInviteRequest(
|
690
|
+
code=code,
|
691
|
+
)
|
692
|
+
|
693
|
+
req = self._build_request_async(
|
694
|
+
method="GET",
|
695
|
+
path="/onboarding-invites/{code}",
|
696
|
+
base_url=base_url,
|
697
|
+
url_variables=url_variables,
|
698
|
+
request=request,
|
699
|
+
request_body_required=False,
|
700
|
+
request_has_path_params=True,
|
701
|
+
request_has_query_params=True,
|
702
|
+
user_agent_header="user-agent",
|
703
|
+
accept_header_value="application/json",
|
704
|
+
http_headers=http_headers,
|
705
|
+
_globals=operations.GetOnboardingInviteGlobals(
|
706
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
707
|
+
),
|
708
|
+
security=self.sdk_configuration.security,
|
709
|
+
timeout_ms=timeout_ms,
|
710
|
+
)
|
711
|
+
|
712
|
+
if retries == UNSET:
|
713
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
714
|
+
retries = self.sdk_configuration.retry_config
|
715
|
+
|
716
|
+
retry_config = None
|
717
|
+
if isinstance(retries, utils.RetryConfig):
|
718
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
719
|
+
|
720
|
+
http_res = await self.do_request_async(
|
721
|
+
hook_ctx=HookContext(
|
722
|
+
base_url=base_url or "",
|
723
|
+
operation_id="getOnboardingInvite",
|
724
|
+
oauth2_scopes=[],
|
725
|
+
security_source=get_security_from_env(
|
726
|
+
self.sdk_configuration.security, components.Security
|
727
|
+
),
|
728
|
+
),
|
729
|
+
request=req,
|
730
|
+
error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
731
|
+
retry_config=retry_config,
|
732
|
+
)
|
733
|
+
|
734
|
+
if utils.match_response(http_res, "200", "application/json"):
|
735
|
+
return operations.GetOnboardingInviteResponse(
|
736
|
+
result=utils.unmarshal_json(http_res.text, components.OnboardingInvite),
|
737
|
+
headers=utils.get_response_headers(http_res.headers),
|
738
|
+
)
|
739
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
740
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
741
|
+
raise errors.APIError(
|
742
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
743
|
+
)
|
744
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
745
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
746
|
+
raise errors.APIError(
|
747
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
748
|
+
)
|
749
|
+
if utils.match_response(http_res, "4XX", "*"):
|
750
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
751
|
+
raise errors.APIError(
|
752
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
753
|
+
)
|
754
|
+
if utils.match_response(http_res, "5XX", "*"):
|
755
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
756
|
+
raise errors.APIError(
|
757
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
758
|
+
)
|
759
|
+
|
760
|
+
content_type = http_res.headers.get("Content-Type")
|
761
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
762
|
+
raise errors.APIError(
|
763
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
764
|
+
http_res.status_code,
|
765
|
+
http_res_text,
|
766
|
+
http_res,
|
767
|
+
)
|
768
|
+
|
769
|
+
def revoke_invite(
|
770
|
+
self,
|
771
|
+
*,
|
772
|
+
code: str,
|
773
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
774
|
+
server_url: Optional[str] = None,
|
775
|
+
timeout_ms: Optional[int] = None,
|
776
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
777
|
+
) -> operations.RevokeOnboardingInviteResponse:
|
778
|
+
r"""Revoke an onboarding invite, rendering the invitation link unusable.
|
779
|
+
|
780
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
781
|
+
you'll need to specify the `/accounts.write` scope.
|
782
|
+
|
783
|
+
:param code:
|
784
|
+
:param retries: Override the default retry configuration for this method
|
785
|
+
:param server_url: Override the default server URL for this method
|
786
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
787
|
+
:param http_headers: Additional headers to set or replace on requests.
|
788
|
+
"""
|
789
|
+
base_url = None
|
790
|
+
url_variables = None
|
791
|
+
if timeout_ms is None:
|
792
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
793
|
+
|
794
|
+
if server_url is not None:
|
795
|
+
base_url = server_url
|
796
|
+
else:
|
797
|
+
base_url = self._get_url(base_url, url_variables)
|
798
|
+
|
799
|
+
request = operations.RevokeOnboardingInviteRequest(
|
800
|
+
code=code,
|
801
|
+
)
|
802
|
+
|
803
|
+
req = self._build_request(
|
804
|
+
method="DELETE",
|
805
|
+
path="/onboarding-invites/{code}",
|
806
|
+
base_url=base_url,
|
807
|
+
url_variables=url_variables,
|
808
|
+
request=request,
|
809
|
+
request_body_required=False,
|
810
|
+
request_has_path_params=True,
|
811
|
+
request_has_query_params=True,
|
812
|
+
user_agent_header="user-agent",
|
813
|
+
accept_header_value="*/*",
|
814
|
+
http_headers=http_headers,
|
815
|
+
_globals=operations.RevokeOnboardingInviteGlobals(
|
816
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
817
|
+
),
|
818
|
+
security=self.sdk_configuration.security,
|
819
|
+
timeout_ms=timeout_ms,
|
820
|
+
)
|
821
|
+
|
822
|
+
if retries == UNSET:
|
823
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
824
|
+
retries = self.sdk_configuration.retry_config
|
825
|
+
|
826
|
+
retry_config = None
|
827
|
+
if isinstance(retries, utils.RetryConfig):
|
828
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
829
|
+
|
830
|
+
http_res = self.do_request(
|
831
|
+
hook_ctx=HookContext(
|
832
|
+
base_url=base_url or "",
|
833
|
+
operation_id="revokeOnboardingInvite",
|
834
|
+
oauth2_scopes=[],
|
835
|
+
security_source=get_security_from_env(
|
836
|
+
self.sdk_configuration.security, components.Security
|
837
|
+
),
|
838
|
+
),
|
839
|
+
request=req,
|
840
|
+
error_status_codes=["4XX", "5XX"],
|
841
|
+
retry_config=retry_config,
|
842
|
+
)
|
843
|
+
|
844
|
+
if utils.match_response(http_res, "204", "*"):
|
845
|
+
return operations.RevokeOnboardingInviteResponse(
|
846
|
+
headers=utils.get_response_headers(http_res.headers)
|
847
|
+
)
|
848
|
+
if utils.match_response(http_res, "4XX", "*"):
|
849
|
+
http_res_text = utils.stream_to_text(http_res)
|
850
|
+
raise errors.APIError(
|
851
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
852
|
+
)
|
853
|
+
if utils.match_response(http_res, "5XX", "*"):
|
854
|
+
http_res_text = utils.stream_to_text(http_res)
|
855
|
+
raise errors.APIError(
|
856
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
857
|
+
)
|
858
|
+
|
859
|
+
content_type = http_res.headers.get("Content-Type")
|
860
|
+
http_res_text = utils.stream_to_text(http_res)
|
861
|
+
raise errors.APIError(
|
862
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
863
|
+
http_res.status_code,
|
864
|
+
http_res_text,
|
865
|
+
http_res,
|
866
|
+
)
|
867
|
+
|
868
|
+
async def revoke_invite_async(
|
869
|
+
self,
|
870
|
+
*,
|
871
|
+
code: str,
|
872
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
873
|
+
server_url: Optional[str] = None,
|
874
|
+
timeout_ms: Optional[int] = None,
|
875
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
876
|
+
) -> operations.RevokeOnboardingInviteResponse:
|
877
|
+
r"""Revoke an onboarding invite, rendering the invitation link unusable.
|
878
|
+
|
879
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
880
|
+
you'll need to specify the `/accounts.write` scope.
|
881
|
+
|
882
|
+
:param code:
|
883
|
+
:param retries: Override the default retry configuration for this method
|
884
|
+
:param server_url: Override the default server URL for this method
|
885
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
886
|
+
:param http_headers: Additional headers to set or replace on requests.
|
887
|
+
"""
|
888
|
+
base_url = None
|
889
|
+
url_variables = None
|
890
|
+
if timeout_ms is None:
|
891
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
892
|
+
|
893
|
+
if server_url is not None:
|
894
|
+
base_url = server_url
|
895
|
+
else:
|
896
|
+
base_url = self._get_url(base_url, url_variables)
|
897
|
+
|
898
|
+
request = operations.RevokeOnboardingInviteRequest(
|
899
|
+
code=code,
|
900
|
+
)
|
901
|
+
|
902
|
+
req = self._build_request_async(
|
903
|
+
method="DELETE",
|
904
|
+
path="/onboarding-invites/{code}",
|
905
|
+
base_url=base_url,
|
906
|
+
url_variables=url_variables,
|
907
|
+
request=request,
|
908
|
+
request_body_required=False,
|
909
|
+
request_has_path_params=True,
|
910
|
+
request_has_query_params=True,
|
911
|
+
user_agent_header="user-agent",
|
912
|
+
accept_header_value="*/*",
|
913
|
+
http_headers=http_headers,
|
914
|
+
_globals=operations.RevokeOnboardingInviteGlobals(
|
915
|
+
x_moov_version=self.sdk_configuration.globals.x_moov_version,
|
916
|
+
),
|
917
|
+
security=self.sdk_configuration.security,
|
918
|
+
timeout_ms=timeout_ms,
|
919
|
+
)
|
920
|
+
|
921
|
+
if retries == UNSET:
|
922
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
923
|
+
retries = self.sdk_configuration.retry_config
|
924
|
+
|
925
|
+
retry_config = None
|
926
|
+
if isinstance(retries, utils.RetryConfig):
|
927
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
928
|
+
|
929
|
+
http_res = await self.do_request_async(
|
930
|
+
hook_ctx=HookContext(
|
931
|
+
base_url=base_url or "",
|
932
|
+
operation_id="revokeOnboardingInvite",
|
933
|
+
oauth2_scopes=[],
|
934
|
+
security_source=get_security_from_env(
|
935
|
+
self.sdk_configuration.security, components.Security
|
936
|
+
),
|
937
|
+
),
|
938
|
+
request=req,
|
939
|
+
error_status_codes=["4XX", "5XX"],
|
940
|
+
retry_config=retry_config,
|
941
|
+
)
|
942
|
+
|
943
|
+
if utils.match_response(http_res, "204", "*"):
|
944
|
+
return operations.RevokeOnboardingInviteResponse(
|
945
|
+
headers=utils.get_response_headers(http_res.headers)
|
946
|
+
)
|
947
|
+
if utils.match_response(http_res, "4XX", "*"):
|
948
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
949
|
+
raise errors.APIError(
|
950
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
951
|
+
)
|
952
|
+
if utils.match_response(http_res, "5XX", "*"):
|
953
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
954
|
+
raise errors.APIError(
|
955
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
956
|
+
)
|
957
|
+
|
958
|
+
content_type = http_res.headers.get("Content-Type")
|
959
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
960
|
+
raise errors.APIError(
|
961
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
962
|
+
http_res.status_code,
|
963
|
+
http_res_text,
|
964
|
+
http_res,
|
965
|
+
)
|