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.
Files changed (586) hide show
  1. moovio_sdk/__init__.py +17 -0
  2. moovio_sdk/_hooks/__init__.py +5 -0
  3. moovio_sdk/_hooks/registration.py +13 -0
  4. moovio_sdk/_hooks/sdkhooks.py +76 -0
  5. moovio_sdk/_hooks/types.py +106 -0
  6. moovio_sdk/_version.py +15 -0
  7. moovio_sdk/accounts.py +2461 -0
  8. moovio_sdk/adjustments.py +463 -0
  9. moovio_sdk/apple_pay.py +1417 -0
  10. moovio_sdk/authentication.py +531 -0
  11. moovio_sdk/avatars.py +231 -0
  12. moovio_sdk/bank_accounts.py +2445 -0
  13. moovio_sdk/basesdk.py +363 -0
  14. moovio_sdk/branding.py +1089 -0
  15. moovio_sdk/capabilities.py +1001 -0
  16. moovio_sdk/card_issuing.py +1351 -0
  17. moovio_sdk/cards.py +1469 -0
  18. moovio_sdk/disputes.py +2985 -0
  19. moovio_sdk/end_to_end_encryption.py +453 -0
  20. moovio_sdk/enriched_address.py +307 -0
  21. moovio_sdk/enriched_profile.py +235 -0
  22. moovio_sdk/fee_plans.py +1759 -0
  23. moovio_sdk/files.py +775 -0
  24. moovio_sdk/httpclient.py +136 -0
  25. moovio_sdk/industries.py +239 -0
  26. moovio_sdk/institutions.py +261 -0
  27. moovio_sdk/issuing_transactions.py +1228 -0
  28. moovio_sdk/models/__init__.py +4 -0
  29. moovio_sdk/models/components/__init__.py +1411 -0
  30. moovio_sdk/models/components/account.py +96 -0
  31. moovio_sdk/models/components/accountcapability.py +20 -0
  32. moovio_sdk/models/components/accountcountries.py +18 -0
  33. moovio_sdk/models/components/accountnameverification.py +28 -0
  34. moovio_sdk/models/components/accounttype.py +11 -0
  35. moovio_sdk/models/components/accountverificationstatus.py +19 -0
  36. moovio_sdk/models/components/achcreditsamedaypaymentmethod.py +38 -0
  37. moovio_sdk/models/components/achcreditstandardpaymentmethod.py +38 -0
  38. moovio_sdk/models/components/achdebitcollectpaymentmethod.py +38 -0
  39. moovio_sdk/models/components/achdebitfundpaymentmethod.py +38 -0
  40. moovio_sdk/models/components/achexception.py +20 -0
  41. moovio_sdk/models/components/achlocation.py +26 -0
  42. moovio_sdk/models/components/achparticipant.py +93 -0
  43. moovio_sdk/models/components/achpaymentdetails.py +30 -0
  44. moovio_sdk/models/components/achpaymentdetailserror.py +22 -0
  45. moovio_sdk/models/components/achpaymentsettings.py +16 -0
  46. moovio_sdk/models/components/achreturncode.py +51 -0
  47. moovio_sdk/models/components/achtransactiondetails.py +94 -0
  48. moovio_sdk/models/components/achtransactionstatus.py +15 -0
  49. moovio_sdk/models/components/addcapabilities.py +15 -0
  50. moovio_sdk/models/components/address.py +30 -0
  51. moovio_sdk/models/components/addresserror.py +32 -0
  52. moovio_sdk/models/components/addresssuggestion.py +34 -0
  53. moovio_sdk/models/components/addressupdate.py +32 -0
  54. moovio_sdk/models/components/adjustment.py +29 -0
  55. moovio_sdk/models/components/amount.py +26 -0
  56. moovio_sdk/models/components/amountdecimal.py +27 -0
  57. moovio_sdk/models/components/amountupdate.py +27 -0
  58. moovio_sdk/models/components/amountvalidationerror.py +17 -0
  59. moovio_sdk/models/components/applebillingcontact.py +53 -0
  60. moovio_sdk/models/components/applepayheader.py +41 -0
  61. moovio_sdk/models/components/applepaymerchantdomains.py +32 -0
  62. moovio_sdk/models/components/applepaypaymentmethod.py +33 -0
  63. moovio_sdk/models/components/applepayresponse.py +70 -0
  64. moovio_sdk/models/components/applicationscope.py +41 -0
  65. moovio_sdk/models/components/asynccreatedrefund.py +26 -0
  66. moovio_sdk/models/components/asynctransfer.py +18 -0
  67. moovio_sdk/models/components/authorizeduser.py +21 -0
  68. moovio_sdk/models/components/authtoken.py +36 -0
  69. moovio_sdk/models/components/authtokenrequest.py +46 -0
  70. moovio_sdk/models/components/bankaccount.py +98 -0
  71. moovio_sdk/models/components/bankaccountexception.py +96 -0
  72. moovio_sdk/models/components/bankaccountholdertype.py +11 -0
  73. moovio_sdk/models/components/bankaccountintegration.py +34 -0
  74. moovio_sdk/models/components/bankaccountpayload.py +21 -0
  75. moovio_sdk/models/components/bankaccountstatus.py +12 -0
  76. moovio_sdk/models/components/bankaccountstatusreason.py +23 -0
  77. moovio_sdk/models/components/bankaccounttype.py +13 -0
  78. moovio_sdk/models/components/bankaccountverification.py +30 -0
  79. moovio_sdk/models/components/bankaccountverificationcreated.py +21 -0
  80. moovio_sdk/models/components/bankaccountverificationmethod.py +9 -0
  81. moovio_sdk/models/components/bankaccountverificationstatus.py +13 -0
  82. moovio_sdk/models/components/bankaccountwaitfor.py +9 -0
  83. moovio_sdk/models/components/basicpaymentmethod.py +24 -0
  84. moovio_sdk/models/components/billablefee.py +54 -0
  85. moovio_sdk/models/components/birthdate.py +19 -0
  86. moovio_sdk/models/components/birthdateerror.py +20 -0
  87. moovio_sdk/models/components/birthdateupdate.py +20 -0
  88. moovio_sdk/models/components/birthdatevalidationerror.py +20 -0
  89. moovio_sdk/models/components/brandcolor.py +15 -0
  90. moovio_sdk/models/components/brandcolors.py +21 -0
  91. moovio_sdk/models/components/brandcolorvalidationerror.py +14 -0
  92. moovio_sdk/models/components/brandproperties.py +16 -0
  93. moovio_sdk/models/components/businessprofile.py +81 -0
  94. moovio_sdk/models/components/businesstype.py +19 -0
  95. moovio_sdk/models/components/calltoaction.py +19 -0
  96. moovio_sdk/models/components/cancellation.py +22 -0
  97. moovio_sdk/models/components/cancellationstatus.py +10 -0
  98. moovio_sdk/models/components/capabilitieserror.py +14 -0
  99. moovio_sdk/models/components/capability.py +56 -0
  100. moovio_sdk/models/components/capabilityid.py +18 -0
  101. moovio_sdk/models/components/capabilityrequirement.py +26 -0
  102. moovio_sdk/models/components/capabilitystatus.py +13 -0
  103. moovio_sdk/models/components/card.py +164 -0
  104. moovio_sdk/models/components/cardaccountupdater.py +28 -0
  105. moovio_sdk/models/components/cardacquiringdispute.py +26 -0
  106. moovio_sdk/models/components/cardacquiringmodel.py +11 -0
  107. moovio_sdk/models/components/cardacquiringrefund.py +42 -0
  108. moovio_sdk/models/components/cardaddress.py +32 -0
  109. moovio_sdk/models/components/cardbrand.py +14 -0
  110. moovio_sdk/models/components/cardexpiration.py +20 -0
  111. moovio_sdk/models/components/cardexpirationerror.py +17 -0
  112. moovio_sdk/models/components/cardissuingnetwork.py +12 -0
  113. moovio_sdk/models/components/cardpaymentdetails.py +23 -0
  114. moovio_sdk/models/components/cardpaymentdetailserror.py +17 -0
  115. moovio_sdk/models/components/cardpaymentpaymentmethod.py +33 -0
  116. moovio_sdk/models/components/cardpaymentsettings.py +23 -0
  117. moovio_sdk/models/components/cardtransactiondetails.py +94 -0
  118. moovio_sdk/models/components/cardtransactionfailurecode.py +32 -0
  119. moovio_sdk/models/components/cardtransactionstatus.py +15 -0
  120. moovio_sdk/models/components/cardtype.py +13 -0
  121. moovio_sdk/models/components/cardupdatereason.py +16 -0
  122. moovio_sdk/models/components/cardverification.py +38 -0
  123. moovio_sdk/models/components/cardverificationresult.py +12 -0
  124. moovio_sdk/models/components/cardvolumedistribution.py +29 -0
  125. moovio_sdk/models/components/cardvolumedistributionerror.py +32 -0
  126. moovio_sdk/models/components/collectionpaymentmethodtype.py +12 -0
  127. moovio_sdk/models/components/colorsvalidationerror.py +21 -0
  128. moovio_sdk/models/components/completebankaccountverification.py +15 -0
  129. moovio_sdk/models/components/completedmicrodeposits.py +14 -0
  130. moovio_sdk/models/components/completemicrodeposits.py +20 -0
  131. moovio_sdk/models/components/countrieserrors.py +14 -0
  132. moovio_sdk/models/components/createaccount.py +78 -0
  133. moovio_sdk/models/components/createaccounterror.py +44 -0
  134. moovio_sdk/models/components/createaccountsettings.py +40 -0
  135. moovio_sdk/models/components/createapplepaysession.py +21 -0
  136. moovio_sdk/models/components/createauthorizeduser.py +26 -0
  137. moovio_sdk/models/components/createauthorizedusererror.py +24 -0
  138. moovio_sdk/models/components/createauthorizeduserupdate.py +28 -0
  139. moovio_sdk/models/components/createbusinesserror.py +88 -0
  140. moovio_sdk/models/components/createbusinessprofile.py +69 -0
  141. moovio_sdk/models/components/createevidencefilemultipart.py +63 -0
  142. moovio_sdk/models/components/createevidencetext.py +20 -0
  143. moovio_sdk/models/components/createfeeplanagreement.py +14 -0
  144. moovio_sdk/models/components/createindividualerror.py +72 -0
  145. moovio_sdk/models/components/createindividualprofile.py +37 -0
  146. moovio_sdk/models/components/createpaymentlink.py +95 -0
  147. moovio_sdk/models/components/createprofile.py +22 -0
  148. moovio_sdk/models/components/createprofileerror.py +19 -0
  149. moovio_sdk/models/components/createrefund.py +26 -0
  150. moovio_sdk/models/components/createrefundresponse.py +18 -0
  151. moovio_sdk/models/components/createrepresentative.py +50 -0
  152. moovio_sdk/models/components/createreversal.py +15 -0
  153. moovio_sdk/models/components/createsweepconfig.py +41 -0
  154. moovio_sdk/models/components/createterminalapplication.py +42 -0
  155. moovio_sdk/models/components/createtransfer.py +49 -0
  156. moovio_sdk/models/components/createtransferdestination.py +37 -0
  157. moovio_sdk/models/components/createtransferdestinationach.py +26 -0
  158. moovio_sdk/models/components/createtransferdestinationcard.py +19 -0
  159. moovio_sdk/models/components/createtransferoptions.py +24 -0
  160. moovio_sdk/models/components/createtransfersource.py +48 -0
  161. moovio_sdk/models/components/createtransfersourceach.py +40 -0
  162. moovio_sdk/models/components/createtransfersourcecard.py +35 -0
  163. moovio_sdk/models/components/customersupport.py +33 -0
  164. moovio_sdk/models/components/customersupporterror.py +25 -0
  165. moovio_sdk/models/components/debitholdperiod.py +12 -0
  166. moovio_sdk/models/components/disbursementpaymentmethodtype.py +13 -0
  167. moovio_sdk/models/components/displayoptionserror.py +23 -0
  168. moovio_sdk/models/components/dispute.py +76 -0
  169. moovio_sdk/models/components/disputeevidenceresponse.py +49 -0
  170. moovio_sdk/models/components/disputephase.py +13 -0
  171. moovio_sdk/models/components/disputestatus.py +20 -0
  172. moovio_sdk/models/components/disputetransferdetails.py +16 -0
  173. moovio_sdk/models/components/document.py +37 -0
  174. moovio_sdk/models/components/documenttype.py +13 -0
  175. moovio_sdk/models/components/domesticpullfromcard.py +12 -0
  176. moovio_sdk/models/components/domesticpushtocard.py +13 -0
  177. moovio_sdk/models/components/e2eetoken.py +25 -0
  178. moovio_sdk/models/components/e2eetokenupdate.py +26 -0
  179. moovio_sdk/models/components/end2endencryptionerror.py +14 -0
  180. moovio_sdk/models/components/enrichedaddressresponse.py +15 -0
  181. moovio_sdk/models/components/enrichedbusinessprofile.py +37 -0
  182. moovio_sdk/models/components/enrichedbusinessresponse.py +18 -0
  183. moovio_sdk/models/components/enrichedindustries.py +15 -0
  184. moovio_sdk/models/components/enrichedindustry.py +32 -0
  185. moovio_sdk/models/components/enrichedindustrycodes.py +17 -0
  186. moovio_sdk/models/components/evidencetextresponse.py +28 -0
  187. moovio_sdk/models/components/evidencetype.py +15 -0
  188. moovio_sdk/models/components/evidenceuploadresponse.py +50 -0
  189. moovio_sdk/models/components/facilitatorfee.py +48 -0
  190. moovio_sdk/models/components/feecategory.py +16 -0
  191. moovio_sdk/models/components/feemodel.py +12 -0
  192. moovio_sdk/models/components/feeplan.py +43 -0
  193. moovio_sdk/models/components/feeplanagreement.py +51 -0
  194. moovio_sdk/models/components/feeplanagreementstatus.py +9 -0
  195. moovio_sdk/models/components/feeproperties.py +49 -0
  196. moovio_sdk/models/components/filedetails.py +55 -0
  197. moovio_sdk/models/components/filepurpose.py +15 -0
  198. moovio_sdk/models/components/filestatus.py +12 -0
  199. moovio_sdk/models/components/fileuploadrequestmultipart.py +69 -0
  200. moovio_sdk/models/components/financialinstitutions.py +18 -0
  201. moovio_sdk/models/components/fulfillmentdetails.py +24 -0
  202. moovio_sdk/models/components/fulfillmentdetailserror.py +20 -0
  203. moovio_sdk/models/components/fullissuedcard.py +92 -0
  204. moovio_sdk/models/components/generatedby.py +39 -0
  205. moovio_sdk/models/components/generatedbyaccountid.py +15 -0
  206. moovio_sdk/models/components/generatedbybankaccountid.py +17 -0
  207. moovio_sdk/models/components/generatedbycardid.py +15 -0
  208. moovio_sdk/models/components/generatedbydisputeid.py +15 -0
  209. moovio_sdk/models/components/generatedbytransferid.py +15 -0
  210. moovio_sdk/models/components/governmentid.py +40 -0
  211. moovio_sdk/models/components/governmentiderror.py +40 -0
  212. moovio_sdk/models/components/granttype.py +15 -0
  213. moovio_sdk/models/components/incurredfee.py +44 -0
  214. moovio_sdk/models/components/individualname.py +32 -0
  215. moovio_sdk/models/components/individualnameerror.py +24 -0
  216. moovio_sdk/models/components/individualnameupdate.py +32 -0
  217. moovio_sdk/models/components/individualprofile.py +45 -0
  218. moovio_sdk/models/components/industrycodes.py +20 -0
  219. moovio_sdk/models/components/issuedcard.py +78 -0
  220. moovio_sdk/models/components/issuedcardauthorization.py +53 -0
  221. moovio_sdk/models/components/issuedcardauthorizationevent.py +37 -0
  222. moovio_sdk/models/components/issuedcardauthorizationeventresult.py +12 -0
  223. moovio_sdk/models/components/issuedcardeventtype.py +15 -0
  224. moovio_sdk/models/components/issuedcardformfactor.py +10 -0
  225. moovio_sdk/models/components/issuedcardstate.py +19 -0
  226. moovio_sdk/models/components/issuedcardtransaction.py +42 -0
  227. moovio_sdk/models/components/issuingauthorizationstatus.py +14 -0
  228. moovio_sdk/models/components/issuingcontrols.py +25 -0
  229. moovio_sdk/models/components/issuingcontrolserror.py +22 -0
  230. moovio_sdk/models/components/issuingintervallimit.py +10 -0
  231. moovio_sdk/models/components/issuingmerchantdata.py +47 -0
  232. moovio_sdk/models/components/issuingvelocitylimit.py +21 -0
  233. moovio_sdk/models/components/issuingvelocitylimiterror.py +17 -0
  234. moovio_sdk/models/components/jsonwebkey.py +103 -0
  235. moovio_sdk/models/components/linkapplepay.py +54 -0
  236. moovio_sdk/models/components/linkapplepaymentdata.py +51 -0
  237. moovio_sdk/models/components/linkapplepaymentmethod.py +38 -0
  238. moovio_sdk/models/components/linkapplepaytoken.py +63 -0
  239. moovio_sdk/models/components/linkbankaccount.py +26 -0
  240. moovio_sdk/models/components/linkcard.py +54 -0
  241. moovio_sdk/models/components/linkcardwaitfor.py +8 -0
  242. moovio_sdk/models/components/linkedapplepaypaymentmethod.py +30 -0
  243. moovio_sdk/models/components/listfeesfetchrequest.py +19 -0
  244. moovio_sdk/models/components/manualtermsofservice.py +34 -0
  245. moovio_sdk/models/components/manualtermsofserviceupdate.py +41 -0
  246. moovio_sdk/models/components/microdepositstatus.py +8 -0
  247. moovio_sdk/models/components/mode.py +11 -0
  248. moovio_sdk/models/components/moovfeedetails.py +36 -0
  249. moovio_sdk/models/components/moovwalletpaymentmethod.py +31 -0
  250. moovio_sdk/models/components/mxauthorizationcode.py +26 -0
  251. moovio_sdk/models/components/mxpayload.py +46 -0
  252. moovio_sdk/models/components/occurrence.py +44 -0
  253. moovio_sdk/models/components/occurrencesresponse.py +80 -0
  254. moovio_sdk/models/components/occurrencestatus.py +12 -0
  255. moovio_sdk/models/components/onboardinginvite.py +91 -0
  256. moovio_sdk/models/components/onboardinginviterequest.py +57 -0
  257. moovio_sdk/models/components/onboardingpartneraccount.py +31 -0
  258. moovio_sdk/models/components/partnerpricing.py +46 -0
  259. moovio_sdk/models/components/partnerpricingagreement.py +56 -0
  260. moovio_sdk/models/components/patchaccount.py +138 -0
  261. moovio_sdk/models/components/patchaccounterror.py +38 -0
  262. moovio_sdk/models/components/patchbusiness.py +72 -0
  263. moovio_sdk/models/components/patchindividual.py +43 -0
  264. moovio_sdk/models/components/patchprofile.py +29 -0
  265. moovio_sdk/models/components/patchsweepconfig.py +147 -0
  266. moovio_sdk/models/components/patchtransfer.py +51 -0
  267. moovio_sdk/models/components/paymentdetailserror.py +35 -0
  268. moovio_sdk/models/components/paymentlink.py +125 -0
  269. moovio_sdk/models/components/paymentlinkcustomeroptions.py +31 -0
  270. moovio_sdk/models/components/paymentlinkdisplayoptions.py +39 -0
  271. moovio_sdk/models/components/paymentlinkdisplayoptionsupdate.py +42 -0
  272. moovio_sdk/models/components/paymentlinkpaymentdetails.py +40 -0
  273. moovio_sdk/models/components/paymentlinkpaymentdetailsupdate.py +41 -0
  274. moovio_sdk/models/components/paymentlinkpayoutdetails.py +32 -0
  275. moovio_sdk/models/components/paymentlinkpayoutdetailsupdate.py +33 -0
  276. moovio_sdk/models/components/paymentlinkstatus.py +11 -0
  277. moovio_sdk/models/components/paymentmethod.py +82 -0
  278. moovio_sdk/models/components/paymentmethodsbankaccount.py +65 -0
  279. moovio_sdk/models/components/paymentmethodscard.py +121 -0
  280. moovio_sdk/models/components/paymentmethodswallet.py +14 -0
  281. moovio_sdk/models/components/paymentmethodtype.py +19 -0
  282. moovio_sdk/models/components/payoutdetailserror.py +21 -0
  283. moovio_sdk/models/components/payoutrecipient.py +23 -0
  284. moovio_sdk/models/components/payoutrecipienterror.py +14 -0
  285. moovio_sdk/models/components/payoutrecipientupdate.py +24 -0
  286. moovio_sdk/models/components/phonenumber.py +18 -0
  287. moovio_sdk/models/components/phonenumbererror.py +18 -0
  288. moovio_sdk/models/components/plaidintegration.py +39 -0
  289. moovio_sdk/models/components/plaidlinkintegration.py +36 -0
  290. moovio_sdk/models/components/plaidlinkpayload.py +45 -0
  291. moovio_sdk/models/components/plaidpayload.py +42 -0
  292. moovio_sdk/models/components/primaryregulator.py +13 -0
  293. moovio_sdk/models/components/profile.py +27 -0
  294. moovio_sdk/models/components/pullfromcardpaymentmethod.py +33 -0
  295. moovio_sdk/models/components/pushtocardpaymentmethod.py +33 -0
  296. moovio_sdk/models/components/qrcode.py +16 -0
  297. moovio_sdk/models/components/receiptkind.py +10 -0
  298. moovio_sdk/models/components/receiptrequest.py +75 -0
  299. moovio_sdk/models/components/receiptresponse.py +95 -0
  300. moovio_sdk/models/components/recur.py +40 -0
  301. moovio_sdk/models/components/refundcarddetails.py +44 -0
  302. moovio_sdk/models/components/refundcardstatus.py +12 -0
  303. moovio_sdk/models/components/refundstatus.py +11 -0
  304. moovio_sdk/models/components/registerapplepaymerchantdomains.py +22 -0
  305. moovio_sdk/models/components/representative.py +71 -0
  306. moovio_sdk/models/components/representativeresponsibilities.py +42 -0
  307. moovio_sdk/models/components/representativeresponsibilitieserror.py +26 -0
  308. moovio_sdk/models/components/requestcard.py +44 -0
  309. moovio_sdk/models/components/requirementerror.py +24 -0
  310. moovio_sdk/models/components/requirementerrorcode.py +25 -0
  311. moovio_sdk/models/components/requirementid.py +71 -0
  312. moovio_sdk/models/components/returnpolicytype.py +11 -0
  313. moovio_sdk/models/components/reversal.py +23 -0
  314. moovio_sdk/models/components/reversedwithcancellation.py +14 -0
  315. moovio_sdk/models/components/reversedwithrefund.py +16 -0
  316. moovio_sdk/models/components/revoketokenrequest.py +40 -0
  317. moovio_sdk/models/components/rtpcreditpaymentmethod.py +38 -0
  318. moovio_sdk/models/components/rtpfailurecode.py +19 -0
  319. moovio_sdk/models/components/rtprejectioncode.py +25 -0
  320. moovio_sdk/models/components/rtptransactiondetails.py +56 -0
  321. moovio_sdk/models/components/rtptransactionstatus.py +13 -0
  322. moovio_sdk/models/components/runtransfer.py +34 -0
  323. moovio_sdk/models/components/schedulepaymentmethod.py +56 -0
  324. moovio_sdk/models/components/scheduleresponse.py +60 -0
  325. moovio_sdk/models/components/seccode.py +13 -0
  326. moovio_sdk/models/components/security.py +32 -0
  327. moovio_sdk/models/components/sentreceipt.py +27 -0
  328. moovio_sdk/models/components/settings.py +30 -0
  329. moovio_sdk/models/components/sourcedestinationoptions.py +20 -0
  330. moovio_sdk/models/components/sweep.py +80 -0
  331. moovio_sdk/models/components/sweepconfig.py +81 -0
  332. moovio_sdk/models/components/sweepconfigpaymentmethod.py +31 -0
  333. moovio_sdk/models/components/sweepconfigstatus.py +9 -0
  334. moovio_sdk/models/components/sweepstatus.py +13 -0
  335. moovio_sdk/models/components/taxid.py +25 -0
  336. moovio_sdk/models/components/taxidupdate.py +26 -0
  337. moovio_sdk/models/components/terminalapplication.py +55 -0
  338. moovio_sdk/models/components/terminalapplicationplatform.py +12 -0
  339. moovio_sdk/models/components/terminalapplicationstatus.py +13 -0
  340. moovio_sdk/models/components/termsofservice.py +26 -0
  341. moovio_sdk/models/components/termsofserviceerror.py +39 -0
  342. moovio_sdk/models/components/termsofservicetoken.py +17 -0
  343. moovio_sdk/models/components/termsofservicetokenupdate.py +18 -0
  344. moovio_sdk/models/components/tokentype.py +10 -0
  345. moovio_sdk/models/components/transactionsource.py +16 -0
  346. moovio_sdk/models/components/transfer.py +126 -0
  347. moovio_sdk/models/components/transferaccount.py +20 -0
  348. moovio_sdk/models/components/transferdestination.py +83 -0
  349. moovio_sdk/models/components/transferfailurereason.py +14 -0
  350. moovio_sdk/models/components/transferoptions.py +23 -0
  351. moovio_sdk/models/components/transferresponse.py +15 -0
  352. moovio_sdk/models/components/transfersource.py +80 -0
  353. moovio_sdk/models/components/transferstatus.py +16 -0
  354. moovio_sdk/models/components/transferwaitfor.py +8 -0
  355. moovio_sdk/models/components/underwriting.py +56 -0
  356. moovio_sdk/models/components/underwritingstatus.py +16 -0
  357. moovio_sdk/models/components/updateapplepaymerchantdomains.py +26 -0
  358. moovio_sdk/models/components/updatebrand.py +15 -0
  359. moovio_sdk/models/components/updatecard.py +51 -0
  360. moovio_sdk/models/components/updatecardaddress.py +32 -0
  361. moovio_sdk/models/components/updatecardexpiration.py +17 -0
  362. moovio_sdk/models/components/updatecolor.py +14 -0
  363. moovio_sdk/models/components/updatecolors.py +18 -0
  364. moovio_sdk/models/components/updateevidence.py +23 -0
  365. moovio_sdk/models/components/updateissuedcard.py +44 -0
  366. moovio_sdk/models/components/updatepaymentlink.py +98 -0
  367. moovio_sdk/models/components/updaterepresentative.py +224 -0
  368. moovio_sdk/models/components/updateunderwriting.py +43 -0
  369. moovio_sdk/models/components/upsertschedule.py +26 -0
  370. moovio_sdk/models/components/verification.py +54 -0
  371. moovio_sdk/models/components/verificationstatus.py +17 -0
  372. moovio_sdk/models/components/verificationstatusdetail.py +23 -0
  373. moovio_sdk/models/components/volumebycustomertype.py +21 -0
  374. moovio_sdk/models/components/volumebycustomertypeerror.py +22 -0
  375. moovio_sdk/models/components/wallet.py +27 -0
  376. moovio_sdk/models/components/walletavailablebalance.py +30 -0
  377. moovio_sdk/models/components/wallettransaction.py +114 -0
  378. moovio_sdk/models/components/wallettransactionsourcetype.py +13 -0
  379. moovio_sdk/models/components/wallettransactionstatus.py +11 -0
  380. moovio_sdk/models/components/wallettransactiontype.py +32 -0
  381. moovio_sdk/models/errors/__init__.py +155 -0
  382. moovio_sdk/models/errors/addcapabilitieserror.py +23 -0
  383. moovio_sdk/models/errors/apierror.py +22 -0
  384. moovio_sdk/models/errors/assigncountrieserror.py +20 -0
  385. moovio_sdk/models/errors/authtokenrequesterror.py +22 -0
  386. moovio_sdk/models/errors/bankaccountvalidationerror.py +30 -0
  387. moovio_sdk/models/errors/brandvalidationerror.py +23 -0
  388. moovio_sdk/models/errors/cardacquiringrefund.py +44 -0
  389. moovio_sdk/models/errors/createaccount.py +24 -0
  390. moovio_sdk/models/errors/createpaymentlinkerror.py +46 -0
  391. moovio_sdk/models/errors/createsweepconfigerror.py +40 -0
  392. moovio_sdk/models/errors/feeplanagreementerror.py +22 -0
  393. moovio_sdk/models/errors/fileuploadvalidationerror.py +35 -0
  394. moovio_sdk/models/errors/filevalidationerror.py +28 -0
  395. moovio_sdk/models/errors/genericerror.py +19 -0
  396. moovio_sdk/models/errors/linkapplepayerror.py +36 -0
  397. moovio_sdk/models/errors/linkcarderror.py +47 -0
  398. moovio_sdk/models/errors/microdepositvalidationerror.py +20 -0
  399. moovio_sdk/models/errors/onboardinginviteerror.py +34 -0
  400. moovio_sdk/models/errors/patchsweepconfigerror.py +38 -0
  401. moovio_sdk/models/errors/receiptvalidationerror.py +40 -0
  402. moovio_sdk/models/errors/refundvalidationerror.py +23 -0
  403. moovio_sdk/models/errors/representativevalidationerror.py +68 -0
  404. moovio_sdk/models/errors/requestcarderror.py +42 -0
  405. moovio_sdk/models/errors/reversalvalidationerror.py +20 -0
  406. moovio_sdk/models/errors/revoketokenrequesterror.py +22 -0
  407. moovio_sdk/models/errors/schedulevalidationerror.py +24 -0
  408. moovio_sdk/models/errors/terminalapplicationerror.py +30 -0
  409. moovio_sdk/models/errors/transfer.py +108 -0
  410. moovio_sdk/models/errors/transferoptionsvalidationerror.py +24 -0
  411. moovio_sdk/models/errors/transfervalidationerror.py +49 -0
  412. moovio_sdk/models/errors/updateaccount.py +24 -0
  413. moovio_sdk/models/errors/updatecarderror.py +43 -0
  414. moovio_sdk/models/errors/updateissuedcarderror.py +32 -0
  415. moovio_sdk/models/errors/updatepaymentlinkerror.py +36 -0
  416. moovio_sdk/models/errors/updateunderwritingerror.py +70 -0
  417. moovio_sdk/models/internal/__init__.py +6 -0
  418. moovio_sdk/models/internal/globals.py +40 -0
  419. moovio_sdk/models/operations/__init__.py +1824 -0
  420. moovio_sdk/models/operations/acceptdispute.py +71 -0
  421. moovio_sdk/models/operations/assignaccountcountries.py +75 -0
  422. moovio_sdk/models/operations/cancelschedule.py +67 -0
  423. moovio_sdk/models/operations/completebankaccountverification.py +85 -0
  424. moovio_sdk/models/operations/completemicrodeposits.py +87 -0
  425. moovio_sdk/models/operations/createaccesstoken.py +52 -0
  426. moovio_sdk/models/operations/createaccount.py +52 -0
  427. moovio_sdk/models/operations/createapplepaysession.py +81 -0
  428. moovio_sdk/models/operations/createbrand.py +75 -0
  429. moovio_sdk/models/operations/createcancellation.py +75 -0
  430. moovio_sdk/models/operations/createfeeplanagreements.py +80 -0
  431. moovio_sdk/models/operations/createonboardinginvite.py +52 -0
  432. moovio_sdk/models/operations/createpaymentlink.py +78 -0
  433. moovio_sdk/models/operations/createreceipts.py +52 -0
  434. moovio_sdk/models/operations/createrepresentative.py +80 -0
  435. moovio_sdk/models/operations/createreversal.py +98 -0
  436. moovio_sdk/models/operations/createschedule.py +78 -0
  437. moovio_sdk/models/operations/createsweepconfig.py +78 -0
  438. moovio_sdk/models/operations/createterminalapplication.py +54 -0
  439. moovio_sdk/models/operations/createtransfer.py +125 -0
  440. moovio_sdk/models/operations/createtransferoptions.py +52 -0
  441. moovio_sdk/models/operations/deletedisputeevidencefile.py +74 -0
  442. moovio_sdk/models/operations/deleterepresentative.py +71 -0
  443. moovio_sdk/models/operations/deleteterminalapplication.py +60 -0
  444. moovio_sdk/models/operations/disablebankaccount.py +67 -0
  445. moovio_sdk/models/operations/disablecapability.py +76 -0
  446. moovio_sdk/models/operations/disablecard.py +67 -0
  447. moovio_sdk/models/operations/disablepaymentlink.py +67 -0
  448. moovio_sdk/models/operations/disconnectaccount.py +60 -0
  449. moovio_sdk/models/operations/generateendtoendkey.py +60 -0
  450. moovio_sdk/models/operations/getaccount.py +64 -0
  451. moovio_sdk/models/operations/getaccountcountries.py +64 -0
  452. moovio_sdk/models/operations/getadjustment.py +71 -0
  453. moovio_sdk/models/operations/getapplepaymerchantdomains.py +68 -0
  454. moovio_sdk/models/operations/getavatar.py +66 -0
  455. moovio_sdk/models/operations/getbankaccount.py +71 -0
  456. moovio_sdk/models/operations/getbankaccountverification.py +73 -0
  457. moovio_sdk/models/operations/getbrand.py +64 -0
  458. moovio_sdk/models/operations/getcancellation.py +84 -0
  459. moovio_sdk/models/operations/getcapability.py +82 -0
  460. moovio_sdk/models/operations/getcard.py +71 -0
  461. moovio_sdk/models/operations/getdispute.py +71 -0
  462. moovio_sdk/models/operations/getdisputeevidence.py +80 -0
  463. moovio_sdk/models/operations/getdisputeevidencedata.py +90 -0
  464. moovio_sdk/models/operations/getenrichmentaddress.py +178 -0
  465. moovio_sdk/models/operations/getenrichmentprofile.py +64 -0
  466. moovio_sdk/models/operations/getfiledetails.py +71 -0
  467. moovio_sdk/models/operations/getfullissuedcard.py +73 -0
  468. moovio_sdk/models/operations/getissuedcard.py +73 -0
  469. moovio_sdk/models/operations/getissuedcardauthorization.py +75 -0
  470. moovio_sdk/models/operations/getissuedcardtransaction.py +75 -0
  471. moovio_sdk/models/operations/getmerchantprocessingagreement.py +64 -0
  472. moovio_sdk/models/operations/getonboardinginvite.py +62 -0
  473. moovio_sdk/models/operations/getpaymentlink.py +71 -0
  474. moovio_sdk/models/operations/getpaymentlinkqrcode.py +84 -0
  475. moovio_sdk/models/operations/getpaymentmethod.py +71 -0
  476. moovio_sdk/models/operations/getrefund.py +84 -0
  477. moovio_sdk/models/operations/getrepresentative.py +75 -0
  478. moovio_sdk/models/operations/getscheduledoccurrence.py +92 -0
  479. moovio_sdk/models/operations/getschedules.py +71 -0
  480. moovio_sdk/models/operations/getsweep.py +78 -0
  481. moovio_sdk/models/operations/getsweepconfig.py +71 -0
  482. moovio_sdk/models/operations/getterminalapplication.py +66 -0
  483. moovio_sdk/models/operations/gettermsofservicetoken.py +75 -0
  484. moovio_sdk/models/operations/gettransfer.py +73 -0
  485. moovio_sdk/models/operations/getunderwriting.py +64 -0
  486. moovio_sdk/models/operations/getwallet.py +71 -0
  487. moovio_sdk/models/operations/getwallettransaction.py +80 -0
  488. moovio_sdk/models/operations/initiatebankaccountverification.py +89 -0
  489. moovio_sdk/models/operations/initiatemicrodeposits.py +67 -0
  490. moovio_sdk/models/operations/initiaterefund.py +131 -0
  491. moovio_sdk/models/operations/linkapplepaytoken.py +80 -0
  492. moovio_sdk/models/operations/linkbankaccount.py +96 -0
  493. moovio_sdk/models/operations/linkcard.py +96 -0
  494. moovio_sdk/models/operations/listaccounts.py +171 -0
  495. moovio_sdk/models/operations/listadjustments.py +78 -0
  496. moovio_sdk/models/operations/listbankaccounts.py +64 -0
  497. moovio_sdk/models/operations/listcapabilities.py +64 -0
  498. moovio_sdk/models/operations/listcards.py +64 -0
  499. moovio_sdk/models/operations/listdisputeevidence.py +73 -0
  500. moovio_sdk/models/operations/listdisputes.py +172 -0
  501. moovio_sdk/models/operations/listfeeplanagreements.py +101 -0
  502. moovio_sdk/models/operations/listfeeplans.py +78 -0
  503. moovio_sdk/models/operations/listfeesfetch.py +80 -0
  504. moovio_sdk/models/operations/listfiles.py +64 -0
  505. moovio_sdk/models/operations/listindustries.py +62 -0
  506. moovio_sdk/models/operations/listinstitutions.py +92 -0
  507. moovio_sdk/models/operations/listissuedcardauthorizationevents.py +94 -0
  508. moovio_sdk/models/operations/listissuedcardauthorizations.py +126 -0
  509. moovio_sdk/models/operations/listissuedcards.py +94 -0
  510. moovio_sdk/models/operations/listissuedcardtransactions.py +113 -0
  511. moovio_sdk/models/operations/listonboardinginvites.py +60 -0
  512. moovio_sdk/models/operations/listpartnerpricing.py +78 -0
  513. moovio_sdk/models/operations/listpartnerpricingagreements.py +101 -0
  514. moovio_sdk/models/operations/listpaymentlinks.py +64 -0
  515. moovio_sdk/models/operations/listpaymentmethods.py +98 -0
  516. moovio_sdk/models/operations/listreceipts.py +65 -0
  517. moovio_sdk/models/operations/listrefunds.py +75 -0
  518. moovio_sdk/models/operations/listrepresentatives.py +66 -0
  519. moovio_sdk/models/operations/listschedules.py +81 -0
  520. moovio_sdk/models/operations/listsweepconfigs.py +64 -0
  521. moovio_sdk/models/operations/listsweeps.py +108 -0
  522. moovio_sdk/models/operations/listterminalapplications.py +62 -0
  523. moovio_sdk/models/operations/listtransfers.py +145 -0
  524. moovio_sdk/models/operations/listwallets.py +64 -0
  525. moovio_sdk/models/operations/listwallettransactions.py +189 -0
  526. moovio_sdk/models/operations/ping.py +56 -0
  527. moovio_sdk/models/operations/registerapplepaymerchantdomains.py +80 -0
  528. moovio_sdk/models/operations/requestcapabilities.py +78 -0
  529. moovio_sdk/models/operations/requestcard.py +80 -0
  530. moovio_sdk/models/operations/retrievefees.py +117 -0
  531. moovio_sdk/models/operations/revokeaccesstoken.py +48 -0
  532. moovio_sdk/models/operations/revokeonboardinginvite.py +58 -0
  533. moovio_sdk/models/operations/submitdisputeevidence.py +71 -0
  534. moovio_sdk/models/operations/testendtoendtoken.py +56 -0
  535. moovio_sdk/models/operations/updateaccount.py +78 -0
  536. moovio_sdk/models/operations/updateapplepaymerchantdomains.py +78 -0
  537. moovio_sdk/models/operations/updatebrand.py +78 -0
  538. moovio_sdk/models/operations/updatecard.py +85 -0
  539. moovio_sdk/models/operations/updatedisputeevidence.py +92 -0
  540. moovio_sdk/models/operations/updateissuedcard.py +81 -0
  541. moovio_sdk/models/operations/updatepaymentlink.py +85 -0
  542. moovio_sdk/models/operations/updaterepresentative.py +89 -0
  543. moovio_sdk/models/operations/updateschedule.py +85 -0
  544. moovio_sdk/models/operations/updatesweepconfig.py +85 -0
  545. moovio_sdk/models/operations/updatetransfer.py +87 -0
  546. moovio_sdk/models/operations/uploaddisputeevidencefile.py +87 -0
  547. moovio_sdk/models/operations/uploaddisputeevidencetext.py +85 -0
  548. moovio_sdk/models/operations/uploadfile.py +80 -0
  549. moovio_sdk/models/operations/upsertbrand.py +75 -0
  550. moovio_sdk/models/operations/upsertunderwriting.py +78 -0
  551. moovio_sdk/onboarding.py +965 -0
  552. moovio_sdk/payment_links.py +1694 -0
  553. moovio_sdk/payment_methods.py +475 -0
  554. moovio_sdk/ping.py +233 -0
  555. moovio_sdk/py.typed +1 -0
  556. moovio_sdk/receipts.py +507 -0
  557. moovio_sdk/representatives.py +1513 -0
  558. moovio_sdk/scheduling.py +1565 -0
  559. moovio_sdk/sdk.py +242 -0
  560. moovio_sdk/sdkconfiguration.py +59 -0
  561. moovio_sdk/sweeps.py +1617 -0
  562. moovio_sdk/terminal_applications.py +1013 -0
  563. moovio_sdk/transfers.py +3040 -0
  564. moovio_sdk/types/__init__.py +21 -0
  565. moovio_sdk/types/basemodel.py +39 -0
  566. moovio_sdk/underwriting.py +581 -0
  567. moovio_sdk/utils/__init__.py +101 -0
  568. moovio_sdk/utils/annotations.py +55 -0
  569. moovio_sdk/utils/enums.py +34 -0
  570. moovio_sdk/utils/eventstreaming.py +238 -0
  571. moovio_sdk/utils/forms.py +202 -0
  572. moovio_sdk/utils/headers.py +136 -0
  573. moovio_sdk/utils/logger.py +27 -0
  574. moovio_sdk/utils/metadata.py +118 -0
  575. moovio_sdk/utils/queryparams.py +205 -0
  576. moovio_sdk/utils/requestbodies.py +66 -0
  577. moovio_sdk/utils/retries.py +217 -0
  578. moovio_sdk/utils/security.py +195 -0
  579. moovio_sdk/utils/serializers.py +215 -0
  580. moovio_sdk/utils/url.py +155 -0
  581. moovio_sdk/utils/values.py +137 -0
  582. moovio_sdk/wallet_transactions.py +558 -0
  583. moovio_sdk/wallets.py +465 -0
  584. moovio_sdk-0.3.8.dist-info/METADATA +1920 -0
  585. moovio_sdk-0.3.8.dist-info/RECORD +586 -0
  586. moovio_sdk-0.3.8.dist-info/WHEEL +4 -0
@@ -0,0 +1,1001 @@
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, List, Mapping, Optional
10
+
11
+
12
+ class Capabilities(BaseSDK):
13
+ def list(
14
+ self,
15
+ *,
16
+ account_id: str,
17
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
18
+ server_url: Optional[str] = None,
19
+ timeout_ms: Optional[int] = None,
20
+ http_headers: Optional[Mapping[str, str]] = None,
21
+ ) -> operations.ListCapabilitiesResponse:
22
+ r"""Retrieve all the capabilities an account has requested.
23
+
24
+ Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
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 `/accounts/{accountID}/capabilities.read` scope.
28
+
29
+ :param account_id:
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
+ request = operations.ListCapabilitiesRequest(
46
+ account_id=account_id,
47
+ )
48
+
49
+ req = self._build_request(
50
+ method="GET",
51
+ path="/accounts/{accountID}/capabilities",
52
+ base_url=base_url,
53
+ url_variables=url_variables,
54
+ request=request,
55
+ request_body_required=False,
56
+ request_has_path_params=True,
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.ListCapabilitiesGlobals(
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="listCapabilities",
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.ListCapabilitiesResponse(
92
+ result=utils.unmarshal_json(http_res.text, List[components.Capability]),
93
+ headers=utils.get_response_headers(http_res.headers),
94
+ )
95
+ if utils.match_response(http_res, ["401", "403", "429"], "*"):
96
+ http_res_text = utils.stream_to_text(http_res)
97
+ raise errors.APIError(
98
+ "API error occurred", http_res.status_code, http_res_text, http_res
99
+ )
100
+ if utils.match_response(http_res, ["500", "504"], "*"):
101
+ http_res_text = utils.stream_to_text(http_res)
102
+ raise errors.APIError(
103
+ "API error occurred", http_res.status_code, http_res_text, http_res
104
+ )
105
+ if utils.match_response(http_res, "4XX", "*"):
106
+ http_res_text = utils.stream_to_text(http_res)
107
+ raise errors.APIError(
108
+ "API error occurred", http_res.status_code, http_res_text, http_res
109
+ )
110
+ if utils.match_response(http_res, "5XX", "*"):
111
+ http_res_text = utils.stream_to_text(http_res)
112
+ raise errors.APIError(
113
+ "API error occurred", http_res.status_code, http_res_text, http_res
114
+ )
115
+
116
+ content_type = http_res.headers.get("Content-Type")
117
+ http_res_text = utils.stream_to_text(http_res)
118
+ raise errors.APIError(
119
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
120
+ http_res.status_code,
121
+ http_res_text,
122
+ http_res,
123
+ )
124
+
125
+ async def list_async(
126
+ self,
127
+ *,
128
+ account_id: str,
129
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
130
+ server_url: Optional[str] = None,
131
+ timeout_ms: Optional[int] = None,
132
+ http_headers: Optional[Mapping[str, str]] = None,
133
+ ) -> operations.ListCapabilitiesResponse:
134
+ r"""Retrieve all the capabilities an account has requested.
135
+
136
+ Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
137
+
138
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
139
+ you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
140
+
141
+ :param account_id:
142
+ :param retries: Override the default retry configuration for this method
143
+ :param server_url: Override the default server URL for this method
144
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
145
+ :param http_headers: Additional headers to set or replace on requests.
146
+ """
147
+ base_url = None
148
+ url_variables = None
149
+ if timeout_ms is None:
150
+ timeout_ms = self.sdk_configuration.timeout_ms
151
+
152
+ if server_url is not None:
153
+ base_url = server_url
154
+ else:
155
+ base_url = self._get_url(base_url, url_variables)
156
+
157
+ request = operations.ListCapabilitiesRequest(
158
+ account_id=account_id,
159
+ )
160
+
161
+ req = self._build_request_async(
162
+ method="GET",
163
+ path="/accounts/{accountID}/capabilities",
164
+ base_url=base_url,
165
+ url_variables=url_variables,
166
+ request=request,
167
+ request_body_required=False,
168
+ request_has_path_params=True,
169
+ request_has_query_params=True,
170
+ user_agent_header="user-agent",
171
+ accept_header_value="application/json",
172
+ http_headers=http_headers,
173
+ _globals=operations.ListCapabilitiesGlobals(
174
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
175
+ ),
176
+ security=self.sdk_configuration.security,
177
+ timeout_ms=timeout_ms,
178
+ )
179
+
180
+ if retries == UNSET:
181
+ if self.sdk_configuration.retry_config is not UNSET:
182
+ retries = self.sdk_configuration.retry_config
183
+
184
+ retry_config = None
185
+ if isinstance(retries, utils.RetryConfig):
186
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
187
+
188
+ http_res = await self.do_request_async(
189
+ hook_ctx=HookContext(
190
+ base_url=base_url or "",
191
+ operation_id="listCapabilities",
192
+ oauth2_scopes=[],
193
+ security_source=get_security_from_env(
194
+ self.sdk_configuration.security, components.Security
195
+ ),
196
+ ),
197
+ request=req,
198
+ error_status_codes=["401", "403", "429", "4XX", "500", "504", "5XX"],
199
+ retry_config=retry_config,
200
+ )
201
+
202
+ if utils.match_response(http_res, "200", "application/json"):
203
+ return operations.ListCapabilitiesResponse(
204
+ result=utils.unmarshal_json(http_res.text, List[components.Capability]),
205
+ headers=utils.get_response_headers(http_res.headers),
206
+ )
207
+ if utils.match_response(http_res, ["401", "403", "429"], "*"):
208
+ http_res_text = await utils.stream_to_text_async(http_res)
209
+ raise errors.APIError(
210
+ "API error occurred", http_res.status_code, http_res_text, http_res
211
+ )
212
+ if utils.match_response(http_res, ["500", "504"], "*"):
213
+ http_res_text = await utils.stream_to_text_async(http_res)
214
+ raise errors.APIError(
215
+ "API error occurred", http_res.status_code, http_res_text, http_res
216
+ )
217
+ if utils.match_response(http_res, "4XX", "*"):
218
+ http_res_text = await utils.stream_to_text_async(http_res)
219
+ raise errors.APIError(
220
+ "API error occurred", http_res.status_code, http_res_text, http_res
221
+ )
222
+ if utils.match_response(http_res, "5XX", "*"):
223
+ http_res_text = await utils.stream_to_text_async(http_res)
224
+ raise errors.APIError(
225
+ "API error occurred", http_res.status_code, http_res_text, http_res
226
+ )
227
+
228
+ content_type = http_res.headers.get("Content-Type")
229
+ http_res_text = await utils.stream_to_text_async(http_res)
230
+ raise errors.APIError(
231
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
232
+ http_res.status_code,
233
+ http_res_text,
234
+ http_res,
235
+ )
236
+
237
+ def request(
238
+ self,
239
+ *,
240
+ account_id: str,
241
+ capabilities: List[components.CapabilityID],
242
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
243
+ server_url: Optional[str] = None,
244
+ timeout_ms: Optional[int] = None,
245
+ http_headers: Optional[Mapping[str, str]] = None,
246
+ ) -> operations.RequestCapabilitiesResponse:
247
+ r"""Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
248
+
249
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
250
+ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
251
+
252
+ :param account_id:
253
+ :param capabilities:
254
+ :param retries: Override the default retry configuration for this method
255
+ :param server_url: Override the default server URL for this method
256
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
257
+ :param http_headers: Additional headers to set or replace on requests.
258
+ """
259
+ base_url = None
260
+ url_variables = None
261
+ if timeout_ms is None:
262
+ timeout_ms = self.sdk_configuration.timeout_ms
263
+
264
+ if server_url is not None:
265
+ base_url = server_url
266
+ else:
267
+ base_url = self._get_url(base_url, url_variables)
268
+
269
+ request = operations.RequestCapabilitiesRequest(
270
+ account_id=account_id,
271
+ add_capabilities=components.AddCapabilities(
272
+ capabilities=capabilities,
273
+ ),
274
+ )
275
+
276
+ req = self._build_request(
277
+ method="POST",
278
+ path="/accounts/{accountID}/capabilities",
279
+ base_url=base_url,
280
+ url_variables=url_variables,
281
+ request=request,
282
+ request_body_required=True,
283
+ request_has_path_params=True,
284
+ request_has_query_params=True,
285
+ user_agent_header="user-agent",
286
+ accept_header_value="application/json",
287
+ http_headers=http_headers,
288
+ _globals=operations.RequestCapabilitiesGlobals(
289
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
290
+ ),
291
+ security=self.sdk_configuration.security,
292
+ get_serialized_body=lambda: utils.serialize_request_body(
293
+ request.add_capabilities,
294
+ False,
295
+ False,
296
+ "json",
297
+ components.AddCapabilities,
298
+ ),
299
+ timeout_ms=timeout_ms,
300
+ )
301
+
302
+ if retries == UNSET:
303
+ if self.sdk_configuration.retry_config is not UNSET:
304
+ retries = self.sdk_configuration.retry_config
305
+
306
+ retry_config = None
307
+ if isinstance(retries, utils.RetryConfig):
308
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
309
+
310
+ http_res = self.do_request(
311
+ hook_ctx=HookContext(
312
+ base_url=base_url or "",
313
+ operation_id="requestCapabilities",
314
+ oauth2_scopes=[],
315
+ security_source=get_security_from_env(
316
+ self.sdk_configuration.security, components.Security
317
+ ),
318
+ ),
319
+ request=req,
320
+ error_status_codes=[
321
+ "400",
322
+ "401",
323
+ "403",
324
+ "404",
325
+ "409",
326
+ "422",
327
+ "429",
328
+ "4XX",
329
+ "500",
330
+ "504",
331
+ "5XX",
332
+ ],
333
+ retry_config=retry_config,
334
+ )
335
+
336
+ response_data: Any = None
337
+ if utils.match_response(http_res, "200", "application/json"):
338
+ return operations.RequestCapabilitiesResponse(
339
+ result=utils.unmarshal_json(http_res.text, List[components.Capability]),
340
+ headers=utils.get_response_headers(http_res.headers),
341
+ )
342
+ if utils.match_response(http_res, ["400", "409"], "application/json"):
343
+ response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
344
+ raise errors.GenericError(data=response_data)
345
+ if utils.match_response(http_res, "422", "application/json"):
346
+ response_data = utils.unmarshal_json(
347
+ http_res.text, errors.AddCapabilitiesErrorData
348
+ )
349
+ raise errors.AddCapabilitiesError(data=response_data)
350
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
351
+ http_res_text = utils.stream_to_text(http_res)
352
+ raise errors.APIError(
353
+ "API error occurred", http_res.status_code, http_res_text, http_res
354
+ )
355
+ if utils.match_response(http_res, ["500", "504"], "*"):
356
+ http_res_text = utils.stream_to_text(http_res)
357
+ raise errors.APIError(
358
+ "API error occurred", http_res.status_code, http_res_text, http_res
359
+ )
360
+ if utils.match_response(http_res, "4XX", "*"):
361
+ http_res_text = utils.stream_to_text(http_res)
362
+ raise errors.APIError(
363
+ "API error occurred", http_res.status_code, http_res_text, http_res
364
+ )
365
+ if utils.match_response(http_res, "5XX", "*"):
366
+ http_res_text = utils.stream_to_text(http_res)
367
+ raise errors.APIError(
368
+ "API error occurred", http_res.status_code, http_res_text, http_res
369
+ )
370
+
371
+ content_type = http_res.headers.get("Content-Type")
372
+ http_res_text = utils.stream_to_text(http_res)
373
+ raise errors.APIError(
374
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
375
+ http_res.status_code,
376
+ http_res_text,
377
+ http_res,
378
+ )
379
+
380
+ async def request_async(
381
+ self,
382
+ *,
383
+ account_id: str,
384
+ capabilities: List[components.CapabilityID],
385
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
386
+ server_url: Optional[str] = None,
387
+ timeout_ms: Optional[int] = None,
388
+ http_headers: Optional[Mapping[str, str]] = None,
389
+ ) -> operations.RequestCapabilitiesResponse:
390
+ r"""Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
391
+
392
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
393
+ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
394
+
395
+ :param account_id:
396
+ :param capabilities:
397
+ :param retries: Override the default retry configuration for this method
398
+ :param server_url: Override the default server URL for this method
399
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
400
+ :param http_headers: Additional headers to set or replace on requests.
401
+ """
402
+ base_url = None
403
+ url_variables = None
404
+ if timeout_ms is None:
405
+ timeout_ms = self.sdk_configuration.timeout_ms
406
+
407
+ if server_url is not None:
408
+ base_url = server_url
409
+ else:
410
+ base_url = self._get_url(base_url, url_variables)
411
+
412
+ request = operations.RequestCapabilitiesRequest(
413
+ account_id=account_id,
414
+ add_capabilities=components.AddCapabilities(
415
+ capabilities=capabilities,
416
+ ),
417
+ )
418
+
419
+ req = self._build_request_async(
420
+ method="POST",
421
+ path="/accounts/{accountID}/capabilities",
422
+ base_url=base_url,
423
+ url_variables=url_variables,
424
+ request=request,
425
+ request_body_required=True,
426
+ request_has_path_params=True,
427
+ request_has_query_params=True,
428
+ user_agent_header="user-agent",
429
+ accept_header_value="application/json",
430
+ http_headers=http_headers,
431
+ _globals=operations.RequestCapabilitiesGlobals(
432
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
433
+ ),
434
+ security=self.sdk_configuration.security,
435
+ get_serialized_body=lambda: utils.serialize_request_body(
436
+ request.add_capabilities,
437
+ False,
438
+ False,
439
+ "json",
440
+ components.AddCapabilities,
441
+ ),
442
+ timeout_ms=timeout_ms,
443
+ )
444
+
445
+ if retries == UNSET:
446
+ if self.sdk_configuration.retry_config is not UNSET:
447
+ retries = self.sdk_configuration.retry_config
448
+
449
+ retry_config = None
450
+ if isinstance(retries, utils.RetryConfig):
451
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
452
+
453
+ http_res = await self.do_request_async(
454
+ hook_ctx=HookContext(
455
+ base_url=base_url or "",
456
+ operation_id="requestCapabilities",
457
+ oauth2_scopes=[],
458
+ security_source=get_security_from_env(
459
+ self.sdk_configuration.security, components.Security
460
+ ),
461
+ ),
462
+ request=req,
463
+ error_status_codes=[
464
+ "400",
465
+ "401",
466
+ "403",
467
+ "404",
468
+ "409",
469
+ "422",
470
+ "429",
471
+ "4XX",
472
+ "500",
473
+ "504",
474
+ "5XX",
475
+ ],
476
+ retry_config=retry_config,
477
+ )
478
+
479
+ response_data: Any = None
480
+ if utils.match_response(http_res, "200", "application/json"):
481
+ return operations.RequestCapabilitiesResponse(
482
+ result=utils.unmarshal_json(http_res.text, List[components.Capability]),
483
+ headers=utils.get_response_headers(http_res.headers),
484
+ )
485
+ if utils.match_response(http_res, ["400", "409"], "application/json"):
486
+ response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
487
+ raise errors.GenericError(data=response_data)
488
+ if utils.match_response(http_res, "422", "application/json"):
489
+ response_data = utils.unmarshal_json(
490
+ http_res.text, errors.AddCapabilitiesErrorData
491
+ )
492
+ raise errors.AddCapabilitiesError(data=response_data)
493
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
494
+ http_res_text = await utils.stream_to_text_async(http_res)
495
+ raise errors.APIError(
496
+ "API error occurred", http_res.status_code, http_res_text, http_res
497
+ )
498
+ if utils.match_response(http_res, ["500", "504"], "*"):
499
+ http_res_text = await utils.stream_to_text_async(http_res)
500
+ raise errors.APIError(
501
+ "API error occurred", http_res.status_code, http_res_text, http_res
502
+ )
503
+ if utils.match_response(http_res, "4XX", "*"):
504
+ http_res_text = await utils.stream_to_text_async(http_res)
505
+ raise errors.APIError(
506
+ "API error occurred", http_res.status_code, http_res_text, http_res
507
+ )
508
+ if utils.match_response(http_res, "5XX", "*"):
509
+ http_res_text = await utils.stream_to_text_async(http_res)
510
+ raise errors.APIError(
511
+ "API error occurred", http_res.status_code, http_res_text, http_res
512
+ )
513
+
514
+ content_type = http_res.headers.get("Content-Type")
515
+ http_res_text = await utils.stream_to_text_async(http_res)
516
+ raise errors.APIError(
517
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
518
+ http_res.status_code,
519
+ http_res_text,
520
+ http_res,
521
+ )
522
+
523
+ def get(
524
+ self,
525
+ *,
526
+ account_id: str,
527
+ capability_id: components.CapabilityID,
528
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
529
+ server_url: Optional[str] = None,
530
+ timeout_ms: Optional[int] = None,
531
+ http_headers: Optional[Mapping[str, str]] = None,
532
+ ) -> operations.GetCapabilityResponse:
533
+ r"""Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
534
+
535
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
536
+ you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
537
+
538
+ :param account_id:
539
+ :param capability_id: Moov account capabilities. The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
540
+ :param retries: Override the default retry configuration for this method
541
+ :param server_url: Override the default server URL for this method
542
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
543
+ :param http_headers: Additional headers to set or replace on requests.
544
+ """
545
+ base_url = None
546
+ url_variables = None
547
+ if timeout_ms is None:
548
+ timeout_ms = self.sdk_configuration.timeout_ms
549
+
550
+ if server_url is not None:
551
+ base_url = server_url
552
+ else:
553
+ base_url = self._get_url(base_url, url_variables)
554
+
555
+ request = operations.GetCapabilityRequest(
556
+ account_id=account_id,
557
+ capability_id=capability_id,
558
+ )
559
+
560
+ req = self._build_request(
561
+ method="GET",
562
+ path="/accounts/{accountID}/capabilities/{capabilityID}",
563
+ base_url=base_url,
564
+ url_variables=url_variables,
565
+ request=request,
566
+ request_body_required=False,
567
+ request_has_path_params=True,
568
+ request_has_query_params=True,
569
+ user_agent_header="user-agent",
570
+ accept_header_value="application/json",
571
+ http_headers=http_headers,
572
+ _globals=operations.GetCapabilityGlobals(
573
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
574
+ ),
575
+ security=self.sdk_configuration.security,
576
+ timeout_ms=timeout_ms,
577
+ )
578
+
579
+ if retries == UNSET:
580
+ if self.sdk_configuration.retry_config is not UNSET:
581
+ retries = self.sdk_configuration.retry_config
582
+
583
+ retry_config = None
584
+ if isinstance(retries, utils.RetryConfig):
585
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
586
+
587
+ http_res = self.do_request(
588
+ hook_ctx=HookContext(
589
+ base_url=base_url or "",
590
+ operation_id="getCapability",
591
+ oauth2_scopes=[],
592
+ security_source=get_security_from_env(
593
+ self.sdk_configuration.security, components.Security
594
+ ),
595
+ ),
596
+ request=req,
597
+ error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
598
+ retry_config=retry_config,
599
+ )
600
+
601
+ if utils.match_response(http_res, "200", "application/json"):
602
+ return operations.GetCapabilityResponse(
603
+ result=utils.unmarshal_json(http_res.text, components.Capability),
604
+ headers=utils.get_response_headers(http_res.headers),
605
+ )
606
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
607
+ http_res_text = utils.stream_to_text(http_res)
608
+ raise errors.APIError(
609
+ "API error occurred", http_res.status_code, http_res_text, http_res
610
+ )
611
+ if utils.match_response(http_res, ["500", "504"], "*"):
612
+ http_res_text = utils.stream_to_text(http_res)
613
+ raise errors.APIError(
614
+ "API error occurred", http_res.status_code, http_res_text, http_res
615
+ )
616
+ if utils.match_response(http_res, "4XX", "*"):
617
+ http_res_text = utils.stream_to_text(http_res)
618
+ raise errors.APIError(
619
+ "API error occurred", http_res.status_code, http_res_text, http_res
620
+ )
621
+ if utils.match_response(http_res, "5XX", "*"):
622
+ http_res_text = utils.stream_to_text(http_res)
623
+ raise errors.APIError(
624
+ "API error occurred", http_res.status_code, http_res_text, http_res
625
+ )
626
+
627
+ content_type = http_res.headers.get("Content-Type")
628
+ http_res_text = utils.stream_to_text(http_res)
629
+ raise errors.APIError(
630
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
631
+ http_res.status_code,
632
+ http_res_text,
633
+ http_res,
634
+ )
635
+
636
+ async def get_async(
637
+ self,
638
+ *,
639
+ account_id: str,
640
+ capability_id: components.CapabilityID,
641
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
642
+ server_url: Optional[str] = None,
643
+ timeout_ms: Optional[int] = None,
644
+ http_headers: Optional[Mapping[str, str]] = None,
645
+ ) -> operations.GetCapabilityResponse:
646
+ r"""Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
647
+
648
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
649
+ you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
650
+
651
+ :param account_id:
652
+ :param capability_id: Moov account capabilities. The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
653
+ :param retries: Override the default retry configuration for this method
654
+ :param server_url: Override the default server URL for this method
655
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
656
+ :param http_headers: Additional headers to set or replace on requests.
657
+ """
658
+ base_url = None
659
+ url_variables = None
660
+ if timeout_ms is None:
661
+ timeout_ms = self.sdk_configuration.timeout_ms
662
+
663
+ if server_url is not None:
664
+ base_url = server_url
665
+ else:
666
+ base_url = self._get_url(base_url, url_variables)
667
+
668
+ request = operations.GetCapabilityRequest(
669
+ account_id=account_id,
670
+ capability_id=capability_id,
671
+ )
672
+
673
+ req = self._build_request_async(
674
+ method="GET",
675
+ path="/accounts/{accountID}/capabilities/{capabilityID}",
676
+ base_url=base_url,
677
+ url_variables=url_variables,
678
+ request=request,
679
+ request_body_required=False,
680
+ request_has_path_params=True,
681
+ request_has_query_params=True,
682
+ user_agent_header="user-agent",
683
+ accept_header_value="application/json",
684
+ http_headers=http_headers,
685
+ _globals=operations.GetCapabilityGlobals(
686
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
687
+ ),
688
+ security=self.sdk_configuration.security,
689
+ timeout_ms=timeout_ms,
690
+ )
691
+
692
+ if retries == UNSET:
693
+ if self.sdk_configuration.retry_config is not UNSET:
694
+ retries = self.sdk_configuration.retry_config
695
+
696
+ retry_config = None
697
+ if isinstance(retries, utils.RetryConfig):
698
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
699
+
700
+ http_res = await self.do_request_async(
701
+ hook_ctx=HookContext(
702
+ base_url=base_url or "",
703
+ operation_id="getCapability",
704
+ oauth2_scopes=[],
705
+ security_source=get_security_from_env(
706
+ self.sdk_configuration.security, components.Security
707
+ ),
708
+ ),
709
+ request=req,
710
+ error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
711
+ retry_config=retry_config,
712
+ )
713
+
714
+ if utils.match_response(http_res, "200", "application/json"):
715
+ return operations.GetCapabilityResponse(
716
+ result=utils.unmarshal_json(http_res.text, components.Capability),
717
+ headers=utils.get_response_headers(http_res.headers),
718
+ )
719
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
720
+ http_res_text = await utils.stream_to_text_async(http_res)
721
+ raise errors.APIError(
722
+ "API error occurred", http_res.status_code, http_res_text, http_res
723
+ )
724
+ if utils.match_response(http_res, ["500", "504"], "*"):
725
+ http_res_text = await utils.stream_to_text_async(http_res)
726
+ raise errors.APIError(
727
+ "API error occurred", http_res.status_code, http_res_text, http_res
728
+ )
729
+ if utils.match_response(http_res, "4XX", "*"):
730
+ http_res_text = await utils.stream_to_text_async(http_res)
731
+ raise errors.APIError(
732
+ "API error occurred", http_res.status_code, http_res_text, http_res
733
+ )
734
+ if utils.match_response(http_res, "5XX", "*"):
735
+ http_res_text = await utils.stream_to_text_async(http_res)
736
+ raise errors.APIError(
737
+ "API error occurred", http_res.status_code, http_res_text, http_res
738
+ )
739
+
740
+ content_type = http_res.headers.get("Content-Type")
741
+ http_res_text = await utils.stream_to_text_async(http_res)
742
+ raise errors.APIError(
743
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
744
+ http_res.status_code,
745
+ http_res_text,
746
+ http_res,
747
+ )
748
+
749
+ def disable(
750
+ self,
751
+ *,
752
+ account_id: str,
753
+ capability_id: components.CapabilityID,
754
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
755
+ server_url: Optional[str] = None,
756
+ timeout_ms: Optional[int] = None,
757
+ http_headers: Optional[Mapping[str, str]] = None,
758
+ ) -> operations.DisableCapabilityResponse:
759
+ r"""Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
760
+
761
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
762
+ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
763
+
764
+ :param account_id:
765
+ :param capability_id: Moov account capabilities. The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
766
+ :param retries: Override the default retry configuration for this method
767
+ :param server_url: Override the default server URL for this method
768
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
769
+ :param http_headers: Additional headers to set or replace on requests.
770
+ """
771
+ base_url = None
772
+ url_variables = None
773
+ if timeout_ms is None:
774
+ timeout_ms = self.sdk_configuration.timeout_ms
775
+
776
+ if server_url is not None:
777
+ base_url = server_url
778
+ else:
779
+ base_url = self._get_url(base_url, url_variables)
780
+
781
+ request = operations.DisableCapabilityRequest(
782
+ account_id=account_id,
783
+ capability_id=capability_id,
784
+ )
785
+
786
+ req = self._build_request(
787
+ method="DELETE",
788
+ path="/accounts/{accountID}/capabilities/{capabilityID}",
789
+ base_url=base_url,
790
+ url_variables=url_variables,
791
+ request=request,
792
+ request_body_required=False,
793
+ request_has_path_params=True,
794
+ request_has_query_params=True,
795
+ user_agent_header="user-agent",
796
+ accept_header_value="application/json",
797
+ http_headers=http_headers,
798
+ _globals=operations.DisableCapabilityGlobals(
799
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
800
+ ),
801
+ security=self.sdk_configuration.security,
802
+ timeout_ms=timeout_ms,
803
+ )
804
+
805
+ if retries == UNSET:
806
+ if self.sdk_configuration.retry_config is not UNSET:
807
+ retries = self.sdk_configuration.retry_config
808
+
809
+ retry_config = None
810
+ if isinstance(retries, utils.RetryConfig):
811
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
812
+
813
+ http_res = self.do_request(
814
+ hook_ctx=HookContext(
815
+ base_url=base_url or "",
816
+ operation_id="disableCapability",
817
+ oauth2_scopes=[],
818
+ security_source=get_security_from_env(
819
+ self.sdk_configuration.security, components.Security
820
+ ),
821
+ ),
822
+ request=req,
823
+ error_status_codes=[
824
+ "400",
825
+ "401",
826
+ "403",
827
+ "404",
828
+ "409",
829
+ "429",
830
+ "4XX",
831
+ "500",
832
+ "504",
833
+ "5XX",
834
+ ],
835
+ retry_config=retry_config,
836
+ )
837
+
838
+ response_data: Any = None
839
+ if utils.match_response(http_res, "204", "*"):
840
+ return operations.DisableCapabilityResponse(
841
+ headers=utils.get_response_headers(http_res.headers)
842
+ )
843
+ if utils.match_response(http_res, ["400", "409"], "application/json"):
844
+ response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
845
+ raise errors.GenericError(data=response_data)
846
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
847
+ http_res_text = utils.stream_to_text(http_res)
848
+ raise errors.APIError(
849
+ "API error occurred", http_res.status_code, http_res_text, http_res
850
+ )
851
+ if utils.match_response(http_res, ["500", "504"], "*"):
852
+ http_res_text = utils.stream_to_text(http_res)
853
+ raise errors.APIError(
854
+ "API error occurred", http_res.status_code, http_res_text, http_res
855
+ )
856
+ if utils.match_response(http_res, "4XX", "*"):
857
+ http_res_text = utils.stream_to_text(http_res)
858
+ raise errors.APIError(
859
+ "API error occurred", http_res.status_code, http_res_text, http_res
860
+ )
861
+ if utils.match_response(http_res, "5XX", "*"):
862
+ http_res_text = utils.stream_to_text(http_res)
863
+ raise errors.APIError(
864
+ "API error occurred", http_res.status_code, http_res_text, http_res
865
+ )
866
+
867
+ content_type = http_res.headers.get("Content-Type")
868
+ http_res_text = utils.stream_to_text(http_res)
869
+ raise errors.APIError(
870
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
871
+ http_res.status_code,
872
+ http_res_text,
873
+ http_res,
874
+ )
875
+
876
+ async def disable_async(
877
+ self,
878
+ *,
879
+ account_id: str,
880
+ capability_id: components.CapabilityID,
881
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
882
+ server_url: Optional[str] = None,
883
+ timeout_ms: Optional[int] = None,
884
+ http_headers: Optional[Mapping[str, str]] = None,
885
+ ) -> operations.DisableCapabilityResponse:
886
+ r"""Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
887
+
888
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
889
+ you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
890
+
891
+ :param account_id:
892
+ :param capability_id: Moov account capabilities. The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
893
+ :param retries: Override the default retry configuration for this method
894
+ :param server_url: Override the default server URL for this method
895
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
896
+ :param http_headers: Additional headers to set or replace on requests.
897
+ """
898
+ base_url = None
899
+ url_variables = None
900
+ if timeout_ms is None:
901
+ timeout_ms = self.sdk_configuration.timeout_ms
902
+
903
+ if server_url is not None:
904
+ base_url = server_url
905
+ else:
906
+ base_url = self._get_url(base_url, url_variables)
907
+
908
+ request = operations.DisableCapabilityRequest(
909
+ account_id=account_id,
910
+ capability_id=capability_id,
911
+ )
912
+
913
+ req = self._build_request_async(
914
+ method="DELETE",
915
+ path="/accounts/{accountID}/capabilities/{capabilityID}",
916
+ base_url=base_url,
917
+ url_variables=url_variables,
918
+ request=request,
919
+ request_body_required=False,
920
+ request_has_path_params=True,
921
+ request_has_query_params=True,
922
+ user_agent_header="user-agent",
923
+ accept_header_value="application/json",
924
+ http_headers=http_headers,
925
+ _globals=operations.DisableCapabilityGlobals(
926
+ x_moov_version=self.sdk_configuration.globals.x_moov_version,
927
+ ),
928
+ security=self.sdk_configuration.security,
929
+ timeout_ms=timeout_ms,
930
+ )
931
+
932
+ if retries == UNSET:
933
+ if self.sdk_configuration.retry_config is not UNSET:
934
+ retries = self.sdk_configuration.retry_config
935
+
936
+ retry_config = None
937
+ if isinstance(retries, utils.RetryConfig):
938
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
939
+
940
+ http_res = await self.do_request_async(
941
+ hook_ctx=HookContext(
942
+ base_url=base_url or "",
943
+ operation_id="disableCapability",
944
+ oauth2_scopes=[],
945
+ security_source=get_security_from_env(
946
+ self.sdk_configuration.security, components.Security
947
+ ),
948
+ ),
949
+ request=req,
950
+ error_status_codes=[
951
+ "400",
952
+ "401",
953
+ "403",
954
+ "404",
955
+ "409",
956
+ "429",
957
+ "4XX",
958
+ "500",
959
+ "504",
960
+ "5XX",
961
+ ],
962
+ retry_config=retry_config,
963
+ )
964
+
965
+ response_data: Any = None
966
+ if utils.match_response(http_res, "204", "*"):
967
+ return operations.DisableCapabilityResponse(
968
+ headers=utils.get_response_headers(http_res.headers)
969
+ )
970
+ if utils.match_response(http_res, ["400", "409"], "application/json"):
971
+ response_data = utils.unmarshal_json(http_res.text, errors.GenericErrorData)
972
+ raise errors.GenericError(data=response_data)
973
+ if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
974
+ http_res_text = await utils.stream_to_text_async(http_res)
975
+ raise errors.APIError(
976
+ "API error occurred", http_res.status_code, http_res_text, http_res
977
+ )
978
+ if utils.match_response(http_res, ["500", "504"], "*"):
979
+ http_res_text = await utils.stream_to_text_async(http_res)
980
+ raise errors.APIError(
981
+ "API error occurred", http_res.status_code, http_res_text, http_res
982
+ )
983
+ if utils.match_response(http_res, "4XX", "*"):
984
+ http_res_text = await utils.stream_to_text_async(http_res)
985
+ raise errors.APIError(
986
+ "API error occurred", http_res.status_code, http_res_text, http_res
987
+ )
988
+ if utils.match_response(http_res, "5XX", "*"):
989
+ http_res_text = await utils.stream_to_text_async(http_res)
990
+ raise errors.APIError(
991
+ "API error occurred", http_res.status_code, http_res_text, http_res
992
+ )
993
+
994
+ content_type = http_res.headers.get("Content-Type")
995
+ http_res_text = await utils.stream_to_text_async(http_res)
996
+ raise errors.APIError(
997
+ f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
998
+ http_res.status_code,
999
+ http_res_text,
1000
+ http_res,
1001
+ )