@moovio/sdk 26.10.0-dev.2 → 26.10.0-dev.3

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 (704) hide show
  1. package/README.md +135 -77
  2. package/bin/mcp-server.js +2501 -1424
  3. package/bin/mcp-server.js.map +168 -136
  4. package/funcs/bankAccountsCreateAttestation.d.ts +25 -0
  5. package/funcs/bankAccountsCreateAttestation.d.ts.map +1 -0
  6. package/funcs/bankAccountsCreateAttestation.js +142 -0
  7. package/funcs/bankAccountsCreateAttestation.js.map +1 -0
  8. package/funcs/bankAccountsGetAttestationEligibility.d.ts +23 -0
  9. package/funcs/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
  10. package/funcs/bankAccountsGetAttestationEligibility.js +137 -0
  11. package/funcs/bankAccountsGetAttestationEligibility.js.map +1 -0
  12. package/funcs/bankAccountsListAttestations.d.ts +14 -0
  13. package/funcs/bankAccountsListAttestations.d.ts.map +1 -0
  14. package/funcs/bankAccountsListAttestations.js +126 -0
  15. package/funcs/bankAccountsListAttestations.js.map +1 -0
  16. package/funcs/cardIssuingGetFull.d.ts +1 -1
  17. package/funcs/cardIssuingGetFull.js +1 -1
  18. package/funcs/imagesUpload.d.ts +2 -2
  19. package/funcs/imagesUpload.d.ts.map +1 -1
  20. package/funcs/imagesUpload.js +2 -2
  21. package/funcs/imagesUpload.js.map +1 -1
  22. package/funcs/institutionsSearch.d.ts +1 -1
  23. package/funcs/institutionsSearch.js +1 -1
  24. package/funcs/issuingTransactionsList.js +1 -0
  25. package/funcs/issuingTransactionsList.js.map +1 -1
  26. package/funcs/transfersCreateCancellation.d.ts +3 -0
  27. package/funcs/transfersCreateCancellation.d.ts.map +1 -1
  28. package/funcs/transfersCreateCancellation.js +6 -1
  29. package/funcs/transfersCreateCancellation.js.map +1 -1
  30. package/funcs/transfersCreateCapture.d.ts +2 -1
  31. package/funcs/transfersCreateCapture.d.ts.map +1 -1
  32. package/funcs/transfersCreateCapture.js +2 -1
  33. package/funcs/transfersCreateCapture.js.map +1 -1
  34. package/funcs/transfersCreateReversal.d.ts +3 -0
  35. package/funcs/transfersCreateReversal.d.ts.map +1 -1
  36. package/funcs/transfersCreateReversal.js +3 -0
  37. package/funcs/transfersCreateReversal.js.map +1 -1
  38. package/funcs/transfersGetCapture.d.ts +1 -1
  39. package/funcs/transfersGetCapture.js +1 -1
  40. package/funcs/transfersList.js +0 -1
  41. package/funcs/transfersList.js.map +1 -1
  42. package/funcs/transfersListCancellations.js +1 -1
  43. package/funcs/transfersListCancellations.js.map +1 -1
  44. package/funcs/transfersListCaptures.d.ts +1 -1
  45. package/funcs/transfersListCaptures.js +2 -2
  46. package/funcs/transfersListCaptures.js.map +1 -1
  47. package/funcs/transfersListRefunds.js +1 -1
  48. package/funcs/transfersListRefunds.js.map +1 -1
  49. package/jsr.json +1 -1
  50. package/lib/config.d.ts +3 -3
  51. package/lib/config.js +3 -3
  52. package/lib/encodings.d.ts +10 -9
  53. package/lib/encodings.d.ts.map +1 -1
  54. package/lib/encodings.js +29 -13
  55. package/lib/encodings.js.map +1 -1
  56. package/mcp-server/mcp-server.js +1 -1
  57. package/mcp-server/server.d.ts.map +1 -1
  58. package/mcp-server/server.js +7 -1
  59. package/mcp-server/server.js.map +1 -1
  60. package/mcp-server/tools/bankAccountsCreateAttestation.d.ts +8 -0
  61. package/mcp-server/tools/bankAccountsCreateAttestation.d.ts.map +1 -0
  62. package/mcp-server/tools/bankAccountsCreateAttestation.js +72 -0
  63. package/mcp-server/tools/bankAccountsCreateAttestation.js.map +1 -0
  64. package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts +8 -0
  65. package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
  66. package/mcp-server/tools/bankAccountsGetAttestationEligibility.js +70 -0
  67. package/mcp-server/tools/bankAccountsGetAttestationEligibility.js.map +1 -0
  68. package/mcp-server/tools/bankAccountsListAttestations.d.ts +8 -0
  69. package/mcp-server/tools/bankAccountsListAttestations.d.ts.map +1 -0
  70. package/mcp-server/tools/bankAccountsListAttestations.js +62 -0
  71. package/mcp-server/tools/bankAccountsListAttestations.js.map +1 -0
  72. package/mcp-server/tools/cardIssuingGetFull.js +1 -1
  73. package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
  74. package/mcp-server/tools/imagesUpload.js +1 -1
  75. package/mcp-server/tools/imagesUpload.js.map +1 -1
  76. package/mcp-server/tools/institutionsSearch.js +1 -1
  77. package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
  78. package/mcp-server/tools/transfersCreateCancellation.js +3 -0
  79. package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
  80. package/mcp-server/tools/transfersCreateCapture.d.ts.map +1 -1
  81. package/mcp-server/tools/transfersCreateCapture.js +2 -1
  82. package/mcp-server/tools/transfersCreateCapture.js.map +1 -1
  83. package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
  84. package/mcp-server/tools/transfersCreateReversal.js +4 -1
  85. package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
  86. package/mcp-server/tools/transfersGetCapture.d.ts.map +1 -1
  87. package/mcp-server/tools/transfersGetCapture.js +1 -1
  88. package/mcp-server/tools/transfersGetCapture.js.map +1 -1
  89. package/mcp-server/tools/transfersListCancellations.js +1 -1
  90. package/mcp-server/tools/transfersListCaptures.d.ts.map +1 -1
  91. package/mcp-server/tools/transfersListCaptures.js +1 -1
  92. package/mcp-server/tools/transfersListCaptures.js.map +1 -1
  93. package/models/components/achcredittransferprocessingdetails.d.ts +6 -0
  94. package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -1
  95. package/models/components/achcredittransferprocessingdetails.js +3 -0
  96. package/models/components/achcredittransferprocessingdetails.js.map +1 -1
  97. package/models/components/achdebittransferprocessingdetails.d.ts +6 -0
  98. package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -1
  99. package/models/components/achdebittransferprocessingdetails.js +3 -0
  100. package/models/components/achdebittransferprocessingdetails.js.map +1 -1
  101. package/models/components/achtransactionstatus.d.ts +23 -0
  102. package/models/components/achtransactionstatus.d.ts.map +1 -0
  103. package/models/components/achtransactionstatus.js +57 -0
  104. package/models/components/achtransactionstatus.js.map +1 -0
  105. package/models/components/adjustmentfees.d.ts +30 -0
  106. package/models/components/adjustmentfees.d.ts.map +1 -0
  107. package/models/components/adjustmentfees.js +62 -0
  108. package/models/components/adjustmentfees.js.map +1 -0
  109. package/models/components/amountdecimalrange.d.ts +1 -3
  110. package/models/components/amountdecimalrange.d.ts.map +1 -1
  111. package/models/components/amountdecimalrange.js.map +1 -1
  112. package/models/components/amountdecimalrangeupdate.d.ts +1 -3
  113. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  114. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  115. package/models/components/applicationscope.d.ts +1 -1
  116. package/models/components/applicationscope.js +1 -1
  117. package/models/components/applicationscope.js.map +1 -1
  118. package/models/components/asynccreatedrefund.d.ts +1 -1
  119. package/models/components/bankaccountattestation.d.ts +48 -0
  120. package/models/components/bankaccountattestation.d.ts.map +1 -0
  121. package/models/components/bankaccountattestation.js +69 -0
  122. package/models/components/bankaccountattestation.js.map +1 -0
  123. package/models/components/bankaccountattestationeligibility.d.ts +28 -0
  124. package/models/components/bankaccountattestationeligibility.d.ts.map +1 -0
  125. package/models/components/bankaccountattestationeligibility.js +61 -0
  126. package/models/components/bankaccountattestationeligibility.js.map +1 -0
  127. package/models/components/bankaccountattestationsummary.d.ts +38 -0
  128. package/models/components/bankaccountattestationsummary.d.ts.map +1 -0
  129. package/models/components/bankaccountattestationsummary.js +65 -0
  130. package/models/components/bankaccountattestationsummary.js.map +1 -0
  131. package/models/components/billingadjustment.d.ts +34 -0
  132. package/models/components/billingadjustment.d.ts.map +1 -0
  133. package/models/components/billingadjustment.js +64 -0
  134. package/models/components/billingadjustment.js.map +1 -0
  135. package/models/components/billingsummary.d.ts +15 -10
  136. package/models/components/billingsummary.d.ts.map +1 -1
  137. package/models/components/billingsummary.js +14 -11
  138. package/models/components/billingsummary.js.map +1 -1
  139. package/models/components/cancellation.d.ts +3 -0
  140. package/models/components/cancellation.d.ts.map +1 -1
  141. package/models/components/cancellation.js.map +1 -1
  142. package/models/components/capture.d.ts +9 -3
  143. package/models/components/capture.d.ts.map +1 -1
  144. package/models/components/capture.js +3 -0
  145. package/models/components/capture.js.map +1 -1
  146. package/models/components/capturestatus.d.ts +0 -2
  147. package/models/components/capturestatus.d.ts.map +1 -1
  148. package/models/components/capturestatus.js +0 -2
  149. package/models/components/capturestatus.js.map +1 -1
  150. package/models/components/cardacquiringrefund.d.ts +1 -1
  151. package/models/components/cardissuing.d.ts +25 -0
  152. package/models/components/cardissuing.d.ts.map +1 -0
  153. package/models/components/cardissuing.js +60 -0
  154. package/models/components/cardissuing.js.map +1 -0
  155. package/models/components/cardissuingerror.d.ts +18 -0
  156. package/models/components/cardissuingerror.d.ts.map +1 -0
  157. package/models/components/cardissuingerror.js +60 -0
  158. package/models/components/cardissuingerror.js.map +1 -0
  159. package/models/components/cardpaymenttransactionstatus.d.ts +22 -0
  160. package/models/components/cardpaymenttransactionstatus.d.ts.map +1 -0
  161. package/models/components/cardpaymenttransactionstatus.js +56 -0
  162. package/models/components/cardpaymenttransactionstatus.js.map +1 -0
  163. package/models/components/cardpaymenttransferprocessingdetails.d.ts +11 -2
  164. package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -1
  165. package/models/components/cardpaymenttransferprocessingdetails.js +5 -2
  166. package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -1
  167. package/models/components/cardtransactionfailurecode.d.ts +16 -0
  168. package/models/components/cardtransactionfailurecode.d.ts.map +1 -1
  169. package/models/components/cardtransactionfailurecode.js +16 -0
  170. package/models/components/cardtransactionfailurecode.js.map +1 -1
  171. package/models/components/createbankaccountattestation.d.ts +28 -0
  172. package/models/components/createbankaccountattestation.d.ts.map +1 -0
  173. package/models/components/createbankaccountattestation.js +61 -0
  174. package/models/components/createbankaccountattestation.js.map +1 -0
  175. package/models/components/createcancellation.d.ts +10 -0
  176. package/models/components/createcancellation.d.ts.map +1 -1
  177. package/models/components/createcancellation.js.map +1 -1
  178. package/models/components/createcapture.d.ts +13 -4
  179. package/models/components/createcapture.d.ts.map +1 -1
  180. package/models/components/createcapture.js.map +1 -1
  181. package/models/components/createdtransfer.d.ts +14 -0
  182. package/models/components/createdtransfer.d.ts.map +1 -1
  183. package/models/components/createdtransfer.js.map +1 -1
  184. package/models/components/createfeeplanagreement.d.ts +16 -1
  185. package/models/components/createfeeplanagreement.d.ts.map +1 -1
  186. package/models/components/createfeeplanagreement.js +2 -0
  187. package/models/components/createfeeplanagreement.js.map +1 -1
  188. package/models/components/createpaymentlink.d.ts +3 -0
  189. package/models/components/createpaymentlink.d.ts.map +1 -1
  190. package/models/components/createpaymentlink.js.map +1 -1
  191. package/models/components/createrefund.d.ts +2 -2
  192. package/models/components/createreversal.d.ts +6 -1
  193. package/models/components/createreversal.d.ts.map +1 -1
  194. package/models/components/createreversal.js.map +1 -1
  195. package/models/components/createtransfer.d.ts +1 -1
  196. package/models/components/createtransferdestination.d.ts +6 -0
  197. package/models/components/createtransferdestination.d.ts.map +1 -1
  198. package/models/components/createtransferdestination.js +3 -0
  199. package/models/components/createtransferdestination.js.map +1 -1
  200. package/models/components/createtransferdestinationwire.d.ts +23 -0
  201. package/models/components/createtransferdestinationwire.d.ts.map +1 -0
  202. package/models/components/createtransferdestinationwire.js +59 -0
  203. package/models/components/createtransferdestinationwire.js.map +1 -0
  204. package/models/components/facilitatorfee.d.ts +7 -23
  205. package/models/components/facilitatorfee.d.ts.map +1 -1
  206. package/models/components/facilitatorfee.js +5 -8
  207. package/models/components/facilitatorfee.js.map +1 -1
  208. package/models/components/feepaidby.d.ts +0 -6
  209. package/models/components/feepaidby.d.ts.map +1 -1
  210. package/models/components/feepaidby.js +0 -3
  211. package/models/components/feepaidby.js.map +1 -1
  212. package/models/components/feeplanagreement.d.ts +10 -0
  213. package/models/components/feeplanagreement.d.ts.map +1 -1
  214. package/models/components/feeplanagreement.js +5 -0
  215. package/models/components/feeplanagreement.js.map +1 -1
  216. package/models/components/fullissuedcard.d.ts +1 -0
  217. package/models/components/fullissuedcard.d.ts.map +1 -1
  218. package/models/components/fullissuedcard.js.map +1 -1
  219. package/models/components/index.d.ts +21 -0
  220. package/models/components/index.d.ts.map +1 -1
  221. package/models/components/index.js +21 -0
  222. package/models/components/index.js.map +1 -1
  223. package/models/components/instantbankcredittransferprocessingdetails.d.ts +6 -0
  224. package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -1
  225. package/models/components/instantbankcredittransferprocessingdetails.js +3 -0
  226. package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -1
  227. package/models/components/instantbanktransactionstatus.d.ts +20 -0
  228. package/models/components/instantbanktransactionstatus.d.ts.map +1 -0
  229. package/models/components/instantbanktransactionstatus.js +54 -0
  230. package/models/components/instantbanktransactionstatus.js.map +1 -0
  231. package/models/components/issuedcard.d.ts +1 -0
  232. package/models/components/issuedcard.d.ts.map +1 -1
  233. package/models/components/issuedcard.js.map +1 -1
  234. package/models/components/issuedcardstate.d.ts +3 -0
  235. package/models/components/issuedcardstate.d.ts.map +1 -1
  236. package/models/components/issuedcardstate.js +2 -0
  237. package/models/components/issuedcardstate.js.map +1 -1
  238. package/models/components/issuedcontrols.d.ts +1 -4
  239. package/models/components/issuedcontrols.d.ts.map +1 -1
  240. package/models/components/issuedcontrols.js.map +1 -1
  241. package/models/components/issuingcontrols.d.ts +5 -5
  242. package/models/components/issuingcontrols.d.ts.map +1 -1
  243. package/models/components/issuingcontrolsrestrictionmode.d.ts +2 -2
  244. package/models/components/issuingcontrolsrestrictionmode.js +1 -1
  245. package/models/components/merchantcategoryrestrictions.d.ts +2 -2
  246. package/models/components/merchantentry.d.ts +3 -3
  247. package/models/components/merchantentry.d.ts.map +1 -1
  248. package/models/components/merchantentry.js +2 -2
  249. package/models/components/merchantentry.js.map +1 -1
  250. package/models/components/merchantentryerror.d.ts +2 -2
  251. package/models/components/merchantentryerror.d.ts.map +1 -1
  252. package/models/components/merchantentryerror.js +2 -2
  253. package/models/components/merchantentryerror.js.map +1 -1
  254. package/models/components/merchantrestrictions.d.ts +1 -1
  255. package/models/components/partnerpricingagreement.d.ts +12 -2
  256. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  257. package/models/components/partnerpricingagreement.js +5 -0
  258. package/models/components/partnerpricingagreement.js.map +1 -1
  259. package/models/components/paymentlink.d.ts +4 -3
  260. package/models/components/paymentlink.d.ts.map +1 -1
  261. package/models/components/paymentlink.js.map +1 -1
  262. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +1 -3
  263. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -1
  264. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -1
  265. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +1 -3
  266. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -1
  267. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -1
  268. package/models/components/paymentlinkpayoutdetails.d.ts +7 -8
  269. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  270. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  271. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +7 -8
  272. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  273. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  274. package/models/components/paymentmethod.d.ts +3 -2
  275. package/models/components/paymentmethod.d.ts.map +1 -1
  276. package/models/components/paymentmethod.js +3 -0
  277. package/models/components/paymentmethod.js.map +1 -1
  278. package/models/components/paymentmethodtype.d.ts +1 -0
  279. package/models/components/paymentmethodtype.d.ts.map +1 -1
  280. package/models/components/paymentmethodtype.js +1 -0
  281. package/models/components/paymentmethodtype.js.map +1 -1
  282. package/models/components/pullfromcardtransactionstatus.d.ts +19 -0
  283. package/models/components/pullfromcardtransactionstatus.d.ts.map +1 -0
  284. package/models/components/pullfromcardtransactionstatus.js +53 -0
  285. package/models/components/pullfromcardtransactionstatus.js.map +1 -0
  286. package/models/components/pullfromcardtransferprocessingdetails.d.ts +6 -0
  287. package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -1
  288. package/models/components/pullfromcardtransferprocessingdetails.js +3 -0
  289. package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -1
  290. package/models/components/pushoptions.d.ts +4 -6
  291. package/models/components/pushoptions.d.ts.map +1 -1
  292. package/models/components/pushoptions.js.map +1 -1
  293. package/models/components/pushoptionsupdate.d.ts +4 -6
  294. package/models/components/pushoptionsupdate.d.ts.map +1 -1
  295. package/models/components/pushoptionsupdate.js.map +1 -1
  296. package/models/components/pushtocardtransactionstatus.d.ts +21 -0
  297. package/models/components/pushtocardtransactionstatus.d.ts.map +1 -0
  298. package/models/components/pushtocardtransactionstatus.js +55 -0
  299. package/models/components/pushtocardtransactionstatus.js.map +1 -0
  300. package/models/components/pushtocardtransferprocessingdetails.d.ts +6 -0
  301. package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -1
  302. package/models/components/pushtocardtransferprocessingdetails.js +3 -0
  303. package/models/components/pushtocardtransferprocessingdetails.js.map +1 -1
  304. package/models/components/requestcard.d.ts +3 -0
  305. package/models/components/requestcard.d.ts.map +1 -1
  306. package/models/components/requestcard.js.map +1 -1
  307. package/models/components/requirementid.d.ts +15 -0
  308. package/models/components/requirementid.d.ts.map +1 -1
  309. package/models/components/requirementid.js +15 -0
  310. package/models/components/requirementid.js.map +1 -1
  311. package/models/components/reversalamountdetails.d.ts +5 -1
  312. package/models/components/reversalamountdetails.d.ts.map +1 -1
  313. package/models/components/reversalamountdetails.js.map +1 -1
  314. package/models/components/reversedwithcancellation.d.ts +3 -0
  315. package/models/components/reversedwithcancellation.d.ts.map +1 -1
  316. package/models/components/reversedwithcancellation.js.map +1 -1
  317. package/models/components/statement.d.ts +6 -0
  318. package/models/components/statement.d.ts.map +1 -1
  319. package/models/components/statement.js +3 -0
  320. package/models/components/statement.js.map +1 -1
  321. package/models/components/sweepconfig.d.ts +2 -2
  322. package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
  323. package/models/components/transfer.d.ts +14 -0
  324. package/models/components/transfer.d.ts.map +1 -1
  325. package/models/components/transfer.js.map +1 -1
  326. package/models/components/transferauthorization.d.ts +21 -0
  327. package/models/components/transferauthorization.d.ts.map +1 -1
  328. package/models/components/transferauthorization.js.map +1 -1
  329. package/models/components/transferfeepaidby.d.ts +1 -1
  330. package/models/components/transferpaymentmethod.d.ts +3 -2
  331. package/models/components/transferpaymentmethod.d.ts.map +1 -1
  332. package/models/components/transferpaymentmethod.js +3 -0
  333. package/models/components/transferpaymentmethod.js.map +1 -1
  334. package/models/components/transferpaymentmethodtype.d.ts +1 -0
  335. package/models/components/transferpaymentmethodtype.d.ts.map +1 -1
  336. package/models/components/transferpaymentmethodtype.js +1 -0
  337. package/models/components/transferpaymentmethodtype.js.map +1 -1
  338. package/models/components/transferprocessingdetails.d.ts +6 -0
  339. package/models/components/transferprocessingdetails.d.ts.map +1 -1
  340. package/models/components/transferprocessingdetails.js +3 -0
  341. package/models/components/transferprocessingdetails.js.map +1 -1
  342. package/models/components/transferrailoptions.d.ts +6 -0
  343. package/models/components/transferrailoptions.d.ts.map +1 -1
  344. package/models/components/transferrailoptions.js +3 -0
  345. package/models/components/transferrailoptions.js.map +1 -1
  346. package/models/components/transfertype.d.ts +1 -0
  347. package/models/components/transfertype.d.ts.map +1 -1
  348. package/models/components/transfertype.js +1 -0
  349. package/models/components/transfertype.js.map +1 -1
  350. package/models/components/underwriting.d.ts +10 -0
  351. package/models/components/underwriting.d.ts.map +1 -1
  352. package/models/components/underwriting.js +3 -0
  353. package/models/components/underwriting.js.map +1 -1
  354. package/models/components/updateissuedcard.d.ts +2 -0
  355. package/models/components/updateissuedcard.d.ts.map +1 -1
  356. package/models/components/updateissuedcard.js.map +1 -1
  357. package/models/components/updateissuedcardstate.d.ts +6 -0
  358. package/models/components/updateissuedcardstate.d.ts.map +1 -1
  359. package/models/components/updateissuedcardstate.js +4 -0
  360. package/models/components/updateissuedcardstate.js.map +1 -1
  361. package/models/components/updateissuingcontrols.d.ts +10 -10
  362. package/models/components/updatepaymentlink.d.ts +3 -0
  363. package/models/components/updatepaymentlink.d.ts.map +1 -1
  364. package/models/components/updatepaymentlink.js.map +1 -1
  365. package/models/components/upsertunderwriting.d.ts +10 -0
  366. package/models/components/upsertunderwriting.d.ts.map +1 -1
  367. package/models/components/upsertunderwriting.js +3 -0
  368. package/models/components/upsertunderwriting.js.map +1 -1
  369. package/models/components/wallettransactiontype.d.ts +1 -0
  370. package/models/components/wallettransactiontype.d.ts.map +1 -1
  371. package/models/components/wallettransactiontype.js +1 -0
  372. package/models/components/wallettransactiontype.js.map +1 -1
  373. package/models/components/webhookdata.d.ts +3 -2
  374. package/models/components/webhookdata.d.ts.map +1 -1
  375. package/models/components/webhookdata.js +3 -0
  376. package/models/components/webhookdata.js.map +1 -1
  377. package/models/components/webhookdatacaptureupdated.d.ts +30 -0
  378. package/models/components/webhookdatacaptureupdated.d.ts.map +1 -0
  379. package/models/components/webhookdatacaptureupdated.js +66 -0
  380. package/models/components/webhookdatacaptureupdated.js.map +1 -0
  381. package/models/components/webhookdatatransferstatus.d.ts +1 -0
  382. package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
  383. package/models/components/webhookdatatransferstatus.js +1 -0
  384. package/models/components/webhookdatatransferstatus.js.map +1 -1
  385. package/models/components/webhookeventtype.d.ts +1 -0
  386. package/models/components/webhookeventtype.d.ts.map +1 -1
  387. package/models/components/webhookeventtype.js +1 -0
  388. package/models/components/webhookeventtype.js.map +1 -1
  389. package/models/components/wirecreditpaymentmethod.d.ts +31 -0
  390. package/models/components/wirecreditpaymentmethod.d.ts.map +1 -0
  391. package/models/components/wirecreditpaymentmethod.js +64 -0
  392. package/models/components/wirecreditpaymentmethod.js.map +1 -0
  393. package/models/components/wirecredittransferpaymentmethod.d.ts +31 -0
  394. package/models/components/wirecredittransferpaymentmethod.d.ts.map +1 -0
  395. package/models/components/wirecredittransferpaymentmethod.js +64 -0
  396. package/models/components/wirecredittransferpaymentmethod.js.map +1 -0
  397. package/models/components/wirefailurecode.d.ts +25 -0
  398. package/models/components/wirefailurecode.d.ts.map +1 -0
  399. package/models/components/wirefailurecode.js +59 -0
  400. package/models/components/wirefailurecode.js.map +1 -0
  401. package/models/components/wireoptions.d.ts +23 -0
  402. package/models/components/wireoptions.d.ts.map +1 -0
  403. package/models/components/wireoptions.js +59 -0
  404. package/models/components/wireoptions.js.map +1 -0
  405. package/models/components/wiretransactionstatus.d.ts +20 -0
  406. package/models/components/wiretransactionstatus.d.ts.map +1 -0
  407. package/models/components/wiretransactionstatus.js +54 -0
  408. package/models/components/wiretransactionstatus.js.map +1 -0
  409. package/models/components/wiretransferprocessingdetails.d.ts +35 -0
  410. package/models/components/wiretransferprocessingdetails.d.ts.map +1 -0
  411. package/models/components/wiretransferprocessingdetails.js +65 -0
  412. package/models/components/wiretransferprocessingdetails.js.map +1 -0
  413. package/models/errors/bankaccountattestationvalidationerror.d.ts +45 -0
  414. package/models/errors/bankaccountattestationvalidationerror.d.ts.map +1 -0
  415. package/models/errors/bankaccountattestationvalidationerror.js +83 -0
  416. package/models/errors/bankaccountattestationvalidationerror.js.map +1 -0
  417. package/models/errors/cardacquiringrefund.d.ts +2 -2
  418. package/models/errors/imagemetadata.d.ts +78 -0
  419. package/models/errors/imagemetadata.d.ts.map +1 -0
  420. package/models/errors/imagemetadata.js +98 -0
  421. package/models/errors/imagemetadata.js.map +1 -0
  422. package/models/errors/index.d.ts +2 -0
  423. package/models/errors/index.d.ts.map +1 -1
  424. package/models/errors/index.js +2 -0
  425. package/models/errors/index.js.map +1 -1
  426. package/models/errors/transfer.d.ts +28 -0
  427. package/models/errors/transfer.d.ts.map +1 -1
  428. package/models/errors/transfer.js.map +1 -1
  429. package/models/errors/upsertunderwritingerror.d.ts +3 -0
  430. package/models/errors/upsertunderwritingerror.d.ts.map +1 -1
  431. package/models/errors/upsertunderwritingerror.js +4 -0
  432. package/models/errors/upsertunderwritingerror.js.map +1 -1
  433. package/models/operations/createbankaccountattestation.d.ts +41 -0
  434. package/models/operations/createbankaccountattestation.d.ts.map +1 -0
  435. package/models/operations/createbankaccountattestation.js +101 -0
  436. package/models/operations/createbankaccountattestation.js.map +1 -0
  437. package/models/operations/createcapture.d.ts +2 -2
  438. package/models/operations/getbankaccountattestationeligibility.d.ts +47 -0
  439. package/models/operations/getbankaccountattestationeligibility.d.ts.map +1 -0
  440. package/models/operations/getbankaccountattestationeligibility.js +93 -0
  441. package/models/operations/getbankaccountattestationeligibility.js.map +1 -0
  442. package/models/operations/getcapture.d.ts +2 -2
  443. package/models/operations/index.d.ts +3 -0
  444. package/models/operations/index.d.ts.map +1 -1
  445. package/models/operations/index.js +3 -0
  446. package/models/operations/index.js.map +1 -1
  447. package/models/operations/listaccounts.d.ts +3 -0
  448. package/models/operations/listaccounts.d.ts.map +1 -1
  449. package/models/operations/listaccounts.js.map +1 -1
  450. package/models/operations/listbankaccountattestations.d.ts +39 -0
  451. package/models/operations/listbankaccountattestations.d.ts.map +1 -0
  452. package/models/operations/listbankaccountattestations.js +91 -0
  453. package/models/operations/listbankaccountattestations.js.map +1 -0
  454. package/models/operations/listcaptures.d.ts +2 -2
  455. package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
  456. package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
  457. package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
  458. package/models/operations/listdisputes.d.ts +3 -0
  459. package/models/operations/listdisputes.d.ts.map +1 -1
  460. package/models/operations/listdisputes.js.map +1 -1
  461. package/models/operations/listfeeplanagreements.d.ts +3 -0
  462. package/models/operations/listfeeplanagreements.d.ts.map +1 -1
  463. package/models/operations/listfeeplanagreements.js.map +1 -1
  464. package/models/operations/listfeerevenue.d.ts +3 -0
  465. package/models/operations/listfeerevenue.d.ts.map +1 -1
  466. package/models/operations/listfeerevenue.js.map +1 -1
  467. package/models/operations/listinvoices.d.ts +3 -0
  468. package/models/operations/listinvoices.d.ts.map +1 -1
  469. package/models/operations/listinvoices.js.map +1 -1
  470. package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
  471. package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
  472. package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
  473. package/models/operations/listissuedcardauthorizations.d.ts +3 -0
  474. package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
  475. package/models/operations/listissuedcardauthorizations.js.map +1 -1
  476. package/models/operations/listissuedcards.d.ts +3 -0
  477. package/models/operations/listissuedcards.d.ts.map +1 -1
  478. package/models/operations/listissuedcards.js.map +1 -1
  479. package/models/operations/listissuedcardtransactions.d.ts +8 -0
  480. package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
  481. package/models/operations/listissuedcardtransactions.js +2 -0
  482. package/models/operations/listissuedcardtransactions.js.map +1 -1
  483. package/models/operations/listpartnerpricingagreements.d.ts +3 -0
  484. package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
  485. package/models/operations/listpartnerpricingagreements.js.map +1 -1
  486. package/models/operations/listpaymentlinks.d.ts +3 -0
  487. package/models/operations/listpaymentlinks.d.ts.map +1 -1
  488. package/models/operations/listpaymentlinks.js.map +1 -1
  489. package/models/operations/listproducts.d.ts +3 -0
  490. package/models/operations/listproducts.d.ts.map +1 -1
  491. package/models/operations/listproducts.js.map +1 -1
  492. package/models/operations/listresidualfees.d.ts +3 -0
  493. package/models/operations/listresidualfees.d.ts.map +1 -1
  494. package/models/operations/listresidualfees.js.map +1 -1
  495. package/models/operations/listresiduals.d.ts +3 -0
  496. package/models/operations/listresiduals.d.ts.map +1 -1
  497. package/models/operations/listresiduals.js.map +1 -1
  498. package/models/operations/listschedules.d.ts +3 -0
  499. package/models/operations/listschedules.d.ts.map +1 -1
  500. package/models/operations/listschedules.js.map +1 -1
  501. package/models/operations/liststatements.d.ts +3 -0
  502. package/models/operations/liststatements.d.ts.map +1 -1
  503. package/models/operations/liststatements.js.map +1 -1
  504. package/models/operations/listsweeps.d.ts +3 -0
  505. package/models/operations/listsweeps.d.ts.map +1 -1
  506. package/models/operations/listsweeps.js.map +1 -1
  507. package/models/operations/listtickets.d.ts +3 -0
  508. package/models/operations/listtickets.d.ts.map +1 -1
  509. package/models/operations/listtickets.js.map +1 -1
  510. package/models/operations/listtransfers.d.ts +4 -6
  511. package/models/operations/listtransfers.d.ts.map +1 -1
  512. package/models/operations/listtransfers.js +0 -2
  513. package/models/operations/listtransfers.js.map +1 -1
  514. package/models/operations/listwallets.d.ts +3 -0
  515. package/models/operations/listwallets.d.ts.map +1 -1
  516. package/models/operations/listwallets.js.map +1 -1
  517. package/models/operations/listwallettransactions.d.ts +3 -0
  518. package/models/operations/listwallettransactions.d.ts.map +1 -1
  519. package/models/operations/listwallettransactions.js.map +1 -1
  520. package/models/operations/retrievefees.d.ts +3 -0
  521. package/models/operations/retrievefees.d.ts.map +1 -1
  522. package/models/operations/retrievefees.js.map +1 -1
  523. package/package.json +1 -1
  524. package/sdk/bankaccounts.d.ts +30 -0
  525. package/sdk/bankaccounts.d.ts.map +1 -1
  526. package/sdk/bankaccounts.js +39 -0
  527. package/sdk/bankaccounts.js.map +1 -1
  528. package/sdk/cardissuing.d.ts +1 -1
  529. package/sdk/cardissuing.js +1 -1
  530. package/sdk/images.d.ts +1 -1
  531. package/sdk/images.js +1 -1
  532. package/sdk/institutions.d.ts +1 -1
  533. package/sdk/institutions.js +1 -1
  534. package/sdk/transfers.d.ts +10 -3
  535. package/sdk/transfers.d.ts.map +1 -1
  536. package/sdk/transfers.js +10 -3
  537. package/sdk/transfers.js.map +1 -1
  538. package/src/funcs/bankAccountsCreateAttestation.ts +205 -0
  539. package/src/funcs/bankAccountsGetAttestationEligibility.ts +199 -0
  540. package/src/funcs/bankAccountsListAttestations.ts +179 -0
  541. package/src/funcs/cardIssuingGetFull.ts +1 -1
  542. package/src/funcs/imagesUpload.ts +6 -2
  543. package/src/funcs/institutionsSearch.ts +1 -1
  544. package/src/funcs/issuingTransactionsList.ts +1 -0
  545. package/src/funcs/transfersCreateCancellation.ts +6 -1
  546. package/src/funcs/transfersCreateCapture.ts +2 -1
  547. package/src/funcs/transfersCreateReversal.ts +3 -0
  548. package/src/funcs/transfersGetCapture.ts +1 -1
  549. package/src/funcs/transfersList.ts +0 -1
  550. package/src/funcs/transfersListCancellations.ts +1 -1
  551. package/src/funcs/transfersListCaptures.ts +2 -2
  552. package/src/funcs/transfersListRefunds.ts +1 -1
  553. package/src/lib/config.ts +3 -3
  554. package/src/lib/encodings.ts +58 -23
  555. package/src/mcp-server/mcp-server.ts +1 -1
  556. package/src/mcp-server/server.ts +7 -1
  557. package/src/mcp-server/tools/bankAccountsCreateAttestation.ts +46 -0
  558. package/src/mcp-server/tools/bankAccountsGetAttestationEligibility.ts +46 -0
  559. package/src/mcp-server/tools/bankAccountsListAttestations.ts +35 -0
  560. package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
  561. package/src/mcp-server/tools/imagesUpload.ts +1 -1
  562. package/src/mcp-server/tools/institutionsSearch.ts +1 -1
  563. package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
  564. package/src/mcp-server/tools/transfersCreateCapture.ts +3 -1
  565. package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
  566. package/src/mcp-server/tools/transfersGetCapture.ts +2 -1
  567. package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
  568. package/src/mcp-server/tools/transfersListCaptures.ts +2 -1
  569. package/src/models/components/achcredittransferprocessingdetails.ts +12 -0
  570. package/src/models/components/achdebittransferprocessingdetails.ts +12 -0
  571. package/src/models/components/achtransactionstatus.ts +37 -0
  572. package/src/models/components/adjustmentfees.ts +72 -0
  573. package/src/models/components/amountdecimalrange.ts +1 -3
  574. package/src/models/components/amountdecimalrangeupdate.ts +1 -3
  575. package/src/models/components/applicationscope.ts +1 -1
  576. package/src/models/components/asynccreatedrefund.ts +1 -1
  577. package/src/models/components/bankaccountattestation.ts +95 -0
  578. package/src/models/components/bankaccountattestationeligibility.ts +67 -0
  579. package/src/models/components/bankaccountattestationsummary.ts +83 -0
  580. package/src/models/components/billingadjustment.ts +78 -0
  581. package/src/models/components/billingsummary.ts +35 -19
  582. package/src/models/components/cancellation.ts +3 -0
  583. package/src/models/components/capture.ts +15 -3
  584. package/src/models/components/capturestatus.ts +0 -2
  585. package/src/models/components/cardacquiringrefund.ts +1 -1
  586. package/src/models/components/cardissuing.ts +61 -0
  587. package/src/models/components/cardissuingerror.ts +58 -0
  588. package/src/models/components/cardpaymenttransactionstatus.ts +38 -0
  589. package/src/models/components/cardpaymenttransferprocessingdetails.ts +19 -4
  590. package/src/models/components/cardtransactionfailurecode.ts +16 -0
  591. package/src/models/components/createbankaccountattestation.ts +69 -0
  592. package/src/models/components/createcancellation.ts +10 -0
  593. package/src/models/components/createcapture.ts +13 -4
  594. package/src/models/components/createdtransfer.ts +14 -0
  595. package/src/models/components/createfeeplanagreement.ts +18 -1
  596. package/src/models/components/createpaymentlink.ts +3 -0
  597. package/src/models/components/createrefund.ts +2 -2
  598. package/src/models/components/createreversal.ts +6 -1
  599. package/src/models/components/createtransfer.ts +1 -1
  600. package/src/models/components/createtransferdestination.ts +13 -0
  601. package/src/models/components/createtransferdestinationwire.ts +60 -0
  602. package/src/models/components/facilitatorfee.ts +16 -31
  603. package/src/models/components/feepaidby.ts +0 -6
  604. package/src/models/components/feeplanagreement.ts +15 -0
  605. package/src/models/components/fullissuedcard.ts +1 -0
  606. package/src/models/components/index.ts +21 -0
  607. package/src/models/components/instantbankcredittransferprocessingdetails.ts +12 -0
  608. package/src/models/components/instantbanktransactionstatus.ts +36 -0
  609. package/src/models/components/issuedcard.ts +1 -0
  610. package/src/models/components/issuedcardstate.ts +3 -0
  611. package/src/models/components/issuedcontrols.ts +1 -4
  612. package/src/models/components/issuingcontrols.ts +5 -5
  613. package/src/models/components/issuingcontrolsrestrictionmode.ts +2 -2
  614. package/src/models/components/merchantcategoryrestrictions.ts +2 -2
  615. package/src/models/components/merchantentry.ts +5 -5
  616. package/src/models/components/merchantentryerror.ts +4 -4
  617. package/src/models/components/merchantrestrictions.ts +1 -1
  618. package/src/models/components/partnerpricingagreement.ts +17 -2
  619. package/src/models/components/paymentlink.ts +4 -3
  620. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +1 -3
  621. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +1 -3
  622. package/src/models/components/paymentlinkpayoutdetails.ts +7 -8
  623. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -8
  624. package/src/models/components/paymentmethod.ts +11 -1
  625. package/src/models/components/paymentmethodtype.ts +1 -0
  626. package/src/models/components/pullfromcardtransactionstatus.ts +35 -0
  627. package/src/models/components/pullfromcardtransferprocessingdetails.ts +12 -0
  628. package/src/models/components/pushoptions.ts +4 -6
  629. package/src/models/components/pushoptionsupdate.ts +4 -6
  630. package/src/models/components/pushtocardtransactionstatus.ts +37 -0
  631. package/src/models/components/pushtocardtransferprocessingdetails.ts +12 -0
  632. package/src/models/components/requestcard.ts +3 -0
  633. package/src/models/components/requirementid.ts +30 -0
  634. package/src/models/components/reversalamountdetails.ts +5 -1
  635. package/src/models/components/reversedwithcancellation.ts +3 -0
  636. package/src/models/components/statement.ts +13 -0
  637. package/src/models/components/sweepconfig.ts +2 -2
  638. package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
  639. package/src/models/components/transfer.ts +14 -0
  640. package/src/models/components/transferauthorization.ts +21 -0
  641. package/src/models/components/transferfeepaidby.ts +1 -1
  642. package/src/models/components/transferpaymentmethod.ts +11 -1
  643. package/src/models/components/transferpaymentmethodtype.ts +1 -0
  644. package/src/models/components/transferprocessingdetails.ts +13 -0
  645. package/src/models/components/transferrailoptions.ts +13 -0
  646. package/src/models/components/transfertype.ts +1 -0
  647. package/src/models/components/underwriting.ts +17 -0
  648. package/src/models/components/updateissuedcard.ts +2 -0
  649. package/src/models/components/updateissuedcardstate.ts +6 -0
  650. package/src/models/components/updateissuingcontrols.ts +10 -10
  651. package/src/models/components/updatepaymentlink.ts +3 -0
  652. package/src/models/components/upsertunderwriting.ts +17 -0
  653. package/src/models/components/wallettransactiontype.ts +1 -0
  654. package/src/models/components/webhookdata.ts +10 -0
  655. package/src/models/components/webhookdatacaptureupdated.ts +75 -0
  656. package/src/models/components/webhookdatatransferstatus.ts +1 -0
  657. package/src/models/components/webhookeventtype.ts +1 -0
  658. package/src/models/components/wirecreditpaymentmethod.ts +75 -0
  659. package/src/models/components/wirecredittransferpaymentmethod.ts +77 -0
  660. package/src/models/components/wirefailurecode.ts +39 -0
  661. package/src/models/components/wireoptions.ts +54 -0
  662. package/src/models/components/wiretransactionstatus.ts +34 -0
  663. package/src/models/components/wiretransferprocessingdetails.ts +84 -0
  664. package/src/models/errors/bankaccountattestationvalidationerror.ts +91 -0
  665. package/src/models/errors/cardacquiringrefund.ts +2 -2
  666. package/src/models/errors/imagemetadata.ts +139 -0
  667. package/src/models/errors/index.ts +2 -0
  668. package/src/models/errors/transfer.ts +28 -0
  669. package/src/models/errors/upsertunderwritingerror.ts +6 -0
  670. package/src/models/operations/createbankaccountattestation.ts +136 -0
  671. package/src/models/operations/createcapture.ts +2 -2
  672. package/src/models/operations/getbankaccountattestationeligibility.ts +149 -0
  673. package/src/models/operations/getcapture.ts +2 -2
  674. package/src/models/operations/index.ts +3 -0
  675. package/src/models/operations/listaccounts.ts +3 -0
  676. package/src/models/operations/listbankaccountattestations.ts +121 -0
  677. package/src/models/operations/listcaptures.ts +2 -2
  678. package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
  679. package/src/models/operations/listdisputes.ts +3 -0
  680. package/src/models/operations/listfeeplanagreements.ts +3 -0
  681. package/src/models/operations/listfeerevenue.ts +3 -0
  682. package/src/models/operations/listinvoices.ts +3 -0
  683. package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
  684. package/src/models/operations/listissuedcardauthorizations.ts +3 -0
  685. package/src/models/operations/listissuedcards.ts +3 -0
  686. package/src/models/operations/listissuedcardtransactions.ts +10 -0
  687. package/src/models/operations/listpartnerpricingagreements.ts +3 -0
  688. package/src/models/operations/listpaymentlinks.ts +3 -0
  689. package/src/models/operations/listproducts.ts +3 -0
  690. package/src/models/operations/listresidualfees.ts +3 -0
  691. package/src/models/operations/listresiduals.ts +3 -0
  692. package/src/models/operations/listschedules.ts +3 -0
  693. package/src/models/operations/liststatements.ts +3 -0
  694. package/src/models/operations/listsweeps.ts +3 -0
  695. package/src/models/operations/listtickets.ts +3 -0
  696. package/src/models/operations/listtransfers.ts +4 -8
  697. package/src/models/operations/listwallets.ts +3 -0
  698. package/src/models/operations/listwallettransactions.ts +3 -0
  699. package/src/models/operations/retrievefees.ts +3 -0
  700. package/src/sdk/bankaccounts.ts +63 -0
  701. package/src/sdk/cardissuing.ts +1 -1
  702. package/src/sdk/images.ts +1 -1
  703. package/src/sdk/institutions.ts +1 -1
  704. package/src/sdk/transfers.ts +10 -3
@@ -6,13 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BankAccounts = void 0;
7
7
  const bankAccountsCompleteMicroDeposits_js_1 = require("../funcs/bankAccountsCompleteMicroDeposits.js");
8
8
  const bankAccountsCompleteVerification_js_1 = require("../funcs/bankAccountsCompleteVerification.js");
9
+ const bankAccountsCreateAttestation_js_1 = require("../funcs/bankAccountsCreateAttestation.js");
9
10
  const bankAccountsDisable_js_1 = require("../funcs/bankAccountsDisable.js");
10
11
  const bankAccountsGet_js_1 = require("../funcs/bankAccountsGet.js");
12
+ const bankAccountsGetAttestationEligibility_js_1 = require("../funcs/bankAccountsGetAttestationEligibility.js");
11
13
  const bankAccountsGetVerification_js_1 = require("../funcs/bankAccountsGetVerification.js");
12
14
  const bankAccountsInitiateMicroDeposits_js_1 = require("../funcs/bankAccountsInitiateMicroDeposits.js");
13
15
  const bankAccountsInitiateVerification_js_1 = require("../funcs/bankAccountsInitiateVerification.js");
14
16
  const bankAccountsLink_js_1 = require("../funcs/bankAccountsLink.js");
15
17
  const bankAccountsList_js_1 = require("../funcs/bankAccountsList.js");
18
+ const bankAccountsListAttestations_js_1 = require("../funcs/bankAccountsListAttestations.js");
16
19
  const sdks_js_1 = require("../lib/sdks.js");
17
20
  const fp_js_1 = require("../types/fp.js");
18
21
  class BankAccounts extends sdks_js_1.ClientSDK {
@@ -61,6 +64,42 @@ class BankAccounts extends sdks_js_1.ClientSDK {
61
64
  async disable(request, options) {
62
65
  return (0, fp_js_1.unwrapAsync)((0, bankAccountsDisable_js_1.bankAccountsDisable)(this, request, options));
63
66
  }
67
+ /**
68
+ * Submit a new authorization attestation for a bank account in an `errored` status due to an R29 ACH return (`Corporate Customer Advises Not Authorized`).
69
+ *
70
+ * After obtaining new authorization from the receiver, submit an attestation with the date the authorization was obtained and a brief description of how the authorization was obtained. If the attestation is accepted, the bank account transitions from `errored` to `verified`.
71
+ *
72
+ * Constraints
73
+ *
74
+ * - The bank account's current errored status must be the result of an R29 return.
75
+ * - `attestedAt` must be on or after the date of the bank account's most recent R29 return and cannot be a future date.
76
+ * - Only one attestation may be submitted for a bank account. Use the [Get attestation eligibility](https://docs.moov.io/api/sources/bank-accounts/attestation-eligibility/) endpoint to confirm eligibility before submitting an attestation.
77
+ *
78
+ * This endpoint is available only to allowlisted partners. Contact Moov Support for more information.
79
+ */
80
+ async createAttestation(request, options) {
81
+ return (0, fp_js_1.unwrapAsync)((0, bankAccountsCreateAttestation_js_1.bankAccountsCreateAttestation)(this, request, options));
82
+ }
83
+ /**
84
+ * List the attestations submitted for a bank account.
85
+ */
86
+ async listAttestations(request, options) {
87
+ return (0, fp_js_1.unwrapAsync)((0, bankAccountsListAttestations_js_1.bankAccountsListAttestations)(this, request, options));
88
+ }
89
+ /**
90
+ * Check whether a bank account is currently eligible for a new authorization attestation without submitting one.
91
+ *
92
+ * - `enabled` indicates whether the calling account has access to the attestations feature. If `enabled` is `false`, `eligible` is always `false`.
93
+ * - When `enabled` is `true`, `eligible` indicates whether the bank account currently meets the eligibility requirements for a new attestation: the bank account must be `errored` due to an R29 return, with no prior attestations.
94
+ *
95
+ * This endpoint always returns `200`, including when the bank account is not eligible. Check the `eligible` field to determine eligibility.
96
+ *
97
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
98
+ * you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
99
+ */
100
+ async getAttestationEligibility(request, options) {
101
+ return (0, fp_js_1.unwrapAsync)((0, bankAccountsGetAttestationEligibility_js_1.bankAccountsGetAttestationEligibility)(this, request, options));
102
+ }
64
103
  /**
65
104
  * Micro-deposits help confirm bank account ownership, helping reduce fraud and the risk of unauthorized activity.
66
105
  * Use this method to initiate the micro-deposit verification, sending two small credit transfers to the bank account
@@ -1 +1 @@
1
- {"version":3,"file":"bankaccounts.js","sourceRoot":"","sources":["../src/sdk/bankaccounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wGAAkG;AAClG,sGAAgG;AAChG,4EAAsE;AACtE,oEAA8D;AAC9D,4FAAsF;AACtF,wGAAkG;AAClG,sGAAgG;AAChG,sEAAgE;AAChE,sEAAgE;AAChE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CACR,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,G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IACL,CAAC;CACF;AA5MD,oCA4MC"}
1
+ {"version":3,"file":"bankaccounts.js","sourceRoot":"","sources":["../src/sdk/bankaccounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wGAAkG;AAClG,sGAAgG;AAChG,gGAA0F;AAC1F,4EAAsE;AACtE,oEAA8D;AAC9D,gHAA0G;AAC1G,4FAAsF;AACtF,wGAAkG;AAClG,sGAAgG;AAChG,sEAAgE;AAChE,sEAAgE;AAChE,8FAAwF;AACxF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CACR,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,CACP,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR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AAC,IAAA,sEAAgC,EACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxQD,oCAwQC"}
@@ -44,7 +44,7 @@ export declare class CardIssuing extends ClientSDK {
44
44
  * Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
45
45
  *
46
46
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
47
- * you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scope.
47
+ * you'll need to specify the `/accounts/{accountID}/issued-cards.read-private` scope.
48
48
  */
49
49
  getFull(request: operations.GetFullIssuedCardRequest, options?: RequestOptions): Promise<operations.GetFullIssuedCardResponse>;
50
50
  }
@@ -66,7 +66,7 @@ class CardIssuing extends sdks_js_1.ClientSDK {
66
66
  * Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
67
67
  *
68
68
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
69
- * you'll need to specify the `/accounts/{accountID}/issued-cards.read-secure` scope.
69
+ * you'll need to specify the `/accounts/{accountID}/issued-cards.read-private` scope.
70
70
  */
71
71
  async getFull(request, options) {
72
72
  return (0, fp_js_1.unwrapAsync)((0, cardIssuingGetFull_js_1.cardIssuingGetFull)(this, request, options));
package/sdk/images.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Images extends ClientSDK {
9
9
  list(request: operations.ListImageMetadataRequest, options?: RequestOptions): Promise<operations.ListImageMetadataResponse>;
10
10
  /**
11
11
  * Upload a new PNG, JPEG, or WebP image with optional metadata.
12
- * Duplicate images, and requests larger than 16MB will be rejected.
12
+ * Duplicate images return the existing image's metadata with a 409 status. Requests larger than 16MB will be rejected.
13
13
  */
14
14
  upload(request: operations.UploadImageRequest, options?: RequestOptions): Promise<operations.UploadImageResponse>;
15
15
  /**
package/sdk/images.js CHANGED
@@ -24,7 +24,7 @@ class Images extends sdks_js_1.ClientSDK {
24
24
  }
25
25
  /**
26
26
  * Upload a new PNG, JPEG, or WebP image with optional metadata.
27
- * Duplicate images, and requests larger than 16MB will be rejected.
27
+ * Duplicate images return the existing image's metadata with a 409 status. Requests larger than 16MB will be rejected.
28
28
  */
29
29
  async upload(request, options) {
30
30
  return (0, fp_js_1.unwrapAsync)((0, imagesUpload_js_1.imagesUpload)(this, request, options));
@@ -13,7 +13,7 @@ export declare class Institutions extends ClientSDK {
13
13
  */
14
14
  searchInstitutions(request: operations.SearchInstitutionsRequest, options?: RequestOptions): Promise<operations.SearchInstitutionsResponse>;
15
15
  /**
16
- * This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/form-shortening/institutions/get/).
16
+ * This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
17
17
  *
18
18
  * Search for institutions by either their name or routing number.
19
19
  *
@@ -23,7 +23,7 @@ class Institutions extends sdks_js_1.ClientSDK {
23
23
  return (0, fp_js_1.unwrapAsync)((0, institutionsSearchInstitutions_js_1.institutionsSearchInstitutions)(this, request, options));
24
24
  }
25
25
  /**
26
- * This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/form-shortening/institutions/get/).
26
+ * This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
27
27
  *
28
28
  * Search for institutions by either their name or routing number.
29
29
  *
@@ -69,6 +69,9 @@ export declare class Transfers extends ClientSDK {
69
69
  /**
70
70
  * Initiate a cancellation for a card, ACH, or queued transfer.
71
71
  *
72
+ * In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
73
+ * For these transfers, a successful cancellation reduces `capturableAmount` without changing `authorizedAmount`.
74
+ * For these transfers, a partial cancellation leaves the remaining `capturableAmount` available for capture.
72
75
  * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
73
76
  * to specify the `/accounts/{accountID}/transfers.write` scope.
74
77
  */
@@ -88,21 +91,22 @@ export declare class Transfers extends ClientSDK {
88
91
  */
89
92
  getCancellation(request: operations.GetCancellationRequest, options?: RequestOptions): Promise<operations.GetCancellationResponse>;
90
93
  /**
91
- * Create a capture against an authorized transfer.
94
+ * Create a capture against an auth-capture `card-payment` transfer.
95
+ * The `accountID` must identify the partner account for the transfer.
92
96
  *
93
97
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94
98
  * you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
95
99
  */
96
100
  createCapture(request: operations.CreateCaptureRequest, options?: RequestOptions): Promise<operations.CreateCaptureResponse>;
97
101
  /**
98
- * Get a list of captures for a transfer.
102
+ * Get a list of captures for an auth-capture `card-payment` transfer.
99
103
  *
100
104
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
101
105
  * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
102
106
  */
103
107
  listCaptures(request: operations.ListCapturesRequest, options?: RequestOptions): Promise<operations.ListCapturesResponse>;
104
108
  /**
105
- * Get details of a capture for a transfer.
109
+ * Get details of a capture for an auth-capture `card-payment` transfer.
106
110
  *
107
111
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
108
112
  * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -134,6 +138,9 @@ export declare class Transfers extends ClientSDK {
134
138
  getRefund(request: operations.GetRefundRequest, options?: RequestOptions): Promise<operations.GetRefundResponse>;
135
139
  /**
136
140
  * Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
141
+ * In v2026.10 and later, reversing an auth-capture `card-payment` transfer with no captures cancels the entire `capturableAmount`.
142
+ * In those API versions, an auth-capture `card-payment` transfer with one final capture is canceled or refunded depending on its processing state.
143
+ * Auth-capture `card-payment` transfers with a non-final capture or multiple captures are not supported in those API versions.
137
144
  * Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
138
145
  * to learn more.
139
146
  *
@@ -1 +1 @@
1
- {"version":3,"file":"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AQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;;;;OAUG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
package/sdk/transfers.js CHANGED
@@ -104,6 +104,9 @@ class Transfers extends sdks_js_1.ClientSDK {
104
104
  /**
105
105
  * Initiate a cancellation for a card, ACH, or queued transfer.
106
106
  *
107
+ * In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
108
+ * For these transfers, a successful cancellation reduces `capturableAmount` without changing `authorizedAmount`.
109
+ * For these transfers, a partial cancellation leaves the remaining `capturableAmount` available for capture.
107
110
  * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
108
111
  * to specify the `/accounts/{accountID}/transfers.write` scope.
109
112
  */
@@ -129,7 +132,8 @@ class Transfers extends sdks_js_1.ClientSDK {
129
132
  return (0, fp_js_1.unwrapAsync)((0, transfersGetCancellation_js_1.transfersGetCancellation)(this, request, options));
130
133
  }
131
134
  /**
132
- * Create a capture against an authorized transfer.
135
+ * Create a capture against an auth-capture `card-payment` transfer.
136
+ * The `accountID` must identify the partner account for the transfer.
133
137
  *
134
138
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
135
139
  * you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
@@ -138,7 +142,7 @@ class Transfers extends sdks_js_1.ClientSDK {
138
142
  return (0, fp_js_1.unwrapAsync)((0, transfersCreateCapture_js_1.transfersCreateCapture)(this, request, options));
139
143
  }
140
144
  /**
141
- * Get a list of captures for a transfer.
145
+ * Get a list of captures for an auth-capture `card-payment` transfer.
142
146
  *
143
147
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
144
148
  * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -147,7 +151,7 @@ class Transfers extends sdks_js_1.ClientSDK {
147
151
  return (0, fp_js_1.unwrapAsync)((0, transfersListCaptures_js_1.transfersListCaptures)(this, request, options));
148
152
  }
149
153
  /**
150
- * Get details of a capture for a transfer.
154
+ * Get details of a capture for an auth-capture `card-payment` transfer.
151
155
  *
152
156
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
153
157
  * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -187,6 +191,9 @@ class Transfers extends sdks_js_1.ClientSDK {
187
191
  }
188
192
  /**
189
193
  * Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
194
+ * In v2026.10 and later, reversing an auth-capture `card-payment` transfer with no captures cancels the entire `capturableAmount`.
195
+ * In those API versions, an auth-capture `card-payment` transfer with one final capture is canceled or refunded depending on its processing state.
196
+ * Auth-capture `card-payment` transfers with a non-final capture or multiple captures are not supported in those API versions.
190
197
  * Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
191
198
  * to learn more.
192
199
  *
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,kFAA4E;AAC5E,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,4EAAsE;AACtE,0EAAoE;AACpE,sFAAgF;AAChF,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,gFAA0E;AAC1E,8EAAwE;AACxE,oEAA8D;AAC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rC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/TD,8BA+TC"}
1
+ {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,kFAA4E;AAC5E,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,4EAAsE;AACtE,0EAAoE;AACpE,sFAAgF;AAChF,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,gFAA0E;AAC1E,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,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AClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtUD,8BAsUC"}
@@ -0,0 +1,205 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { MoovError } from "../models/errors/mooverror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Submit a new authorization attestation for a bank account in an `errored` status due to an R29 ACH return (`Corporate Customer Advises Not Authorized`).
31
+ *
32
+ * After obtaining new authorization from the receiver, submit an attestation with the date the authorization was obtained and a brief description of how the authorization was obtained. If the attestation is accepted, the bank account transitions from `errored` to `verified`.
33
+ *
34
+ * Constraints
35
+ *
36
+ * - The bank account's current errored status must be the result of an R29 return.
37
+ * - `attestedAt` must be on or after the date of the bank account's most recent R29 return and cannot be a future date.
38
+ * - Only one attestation may be submitted for a bank account. Use the [Get attestation eligibility](https://docs.moov.io/api/sources/bank-accounts/attestation-eligibility/) endpoint to confirm eligibility before submitting an attestation.
39
+ *
40
+ * This endpoint is available only to allowlisted partners. Contact Moov Support for more information.
41
+ */
42
+ export function bankAccountsCreateAttestation(
43
+ client: MoovCore,
44
+ request: operations.CreateBankAccountAttestationRequest,
45
+ options?: RequestOptions,
46
+ ): APIPromise<
47
+ Result<
48
+ operations.CreateBankAccountAttestationResponse,
49
+ | errors.GenericError
50
+ | errors.BankAccountAttestationValidationError
51
+ | MoovError
52
+ | ResponseValidationError
53
+ | ConnectionError
54
+ | RequestAbortedError
55
+ | RequestTimeoutError
56
+ | InvalidRequestError
57
+ | UnexpectedClientError
58
+ | SDKValidationError
59
+ >
60
+ > {
61
+ return new APIPromise($do(
62
+ client,
63
+ request,
64
+ options,
65
+ ));
66
+ }
67
+
68
+ async function $do(
69
+ client: MoovCore,
70
+ request: operations.CreateBankAccountAttestationRequest,
71
+ options?: RequestOptions,
72
+ ): Promise<
73
+ [
74
+ Result<
75
+ operations.CreateBankAccountAttestationResponse,
76
+ | errors.GenericError
77
+ | errors.BankAccountAttestationValidationError
78
+ | MoovError
79
+ | ResponseValidationError
80
+ | ConnectionError
81
+ | RequestAbortedError
82
+ | RequestTimeoutError
83
+ | InvalidRequestError
84
+ | UnexpectedClientError
85
+ | SDKValidationError
86
+ >,
87
+ APICall,
88
+ ]
89
+ > {
90
+ const parsed = safeParse(
91
+ request,
92
+ (value) =>
93
+ operations.CreateBankAccountAttestationRequest$outboundSchema.parse(
94
+ value,
95
+ ),
96
+ "Input validation failed",
97
+ );
98
+ if (!parsed.ok) {
99
+ return [parsed, { status: "invalid" }];
100
+ }
101
+ const payload = parsed.value;
102
+ const body = encodeJSON("body", payload.CreateBankAccountAttestation, {
103
+ explode: true,
104
+ });
105
+
106
+ const pathParams = {
107
+ accountID: encodeSimple("accountID", payload.accountID, {
108
+ explode: false,
109
+ charEncoding: "percent",
110
+ }),
111
+ bankAccountID: encodeSimple("bankAccountID", payload.bankAccountID, {
112
+ explode: false,
113
+ charEncoding: "percent",
114
+ }),
115
+ };
116
+ const path = pathToFunc(
117
+ "/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations",
118
+ )(pathParams);
119
+
120
+ const headers = new Headers(compactMap({
121
+ "Content-Type": "application/json",
122
+ Accept: "application/json",
123
+ }));
124
+
125
+ const securityInput = await extractSecurity(client._options.security);
126
+ const requestSecurity = resolveGlobalSecurity(securityInput);
127
+
128
+ const context = {
129
+ options: client._options,
130
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
131
+ operationID: "createBankAccountAttestation",
132
+ oAuth2Scopes: null,
133
+
134
+ resolvedSecurity: requestSecurity,
135
+
136
+ securitySource: client._options.security,
137
+ retryConfig: options?.retries
138
+ || client._options.retryConfig
139
+ || { strategy: "none" },
140
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
141
+ };
142
+
143
+ const requestRes = client._createRequest(context, {
144
+ security: requestSecurity,
145
+ method: "POST",
146
+ baseURL: options?.serverURL,
147
+ path: path,
148
+ headers: headers,
149
+ body: body,
150
+ userAgent: client._options.userAgent,
151
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
152
+ }, options);
153
+ if (!requestRes.ok) {
154
+ return [requestRes, { status: "invalid" }];
155
+ }
156
+ const req = requestRes.value;
157
+
158
+ const doResult = await client._do(req, {
159
+ context,
160
+ isErrorStatusCode: (statusCode: number) =>
161
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
162
+ retryConfig: context.retryConfig,
163
+ retryCodes: context.retryCodes,
164
+ });
165
+ if (!doResult.ok) {
166
+ return [doResult, { status: "request-error", request: req }];
167
+ }
168
+ const response = doResult.value;
169
+
170
+ const responseFields = {
171
+ HttpMeta: { Response: response, Request: req },
172
+ };
173
+
174
+ const [result] = await M.match<
175
+ operations.CreateBankAccountAttestationResponse,
176
+ | errors.GenericError
177
+ | errors.BankAccountAttestationValidationError
178
+ | MoovError
179
+ | ResponseValidationError
180
+ | ConnectionError
181
+ | RequestAbortedError
182
+ | RequestTimeoutError
183
+ | InvalidRequestError
184
+ | UnexpectedClientError
185
+ | SDKValidationError
186
+ >(
187
+ M.json(200, operations.CreateBankAccountAttestationResponse$inboundSchema, {
188
+ hdrs: true,
189
+ key: "Result",
190
+ }),
191
+ M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
192
+ M.jsonErr(422, errors.BankAccountAttestationValidationError$inboundSchema, {
193
+ hdrs: true,
194
+ }),
195
+ M.fail([401, 403, 404, 429]),
196
+ M.fail([500, 504]),
197
+ M.fail("4XX"),
198
+ M.fail("5XX"),
199
+ )(response, req, { extraFields: responseFields });
200
+ if (!result.ok) {
201
+ return [result, { status: "complete", request: req, response }];
202
+ }
203
+
204
+ return [result, { status: "complete", request: req, response }];
205
+ }
@@ -0,0 +1,199 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { MoovError } from "../models/errors/mooverror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Check whether a bank account is currently eligible for a new authorization attestation without submitting one.
31
+ *
32
+ * - `enabled` indicates whether the calling account has access to the attestations feature. If `enabled` is `false`, `eligible` is always `false`.
33
+ * - When `enabled` is `true`, `eligible` indicates whether the bank account currently meets the eligibility requirements for a new attestation: the bank account must be `errored` due to an R29 return, with no prior attestations.
34
+ *
35
+ * This endpoint always returns `200`, including when the bank account is not eligible. Check the `eligible` field to determine eligibility.
36
+ *
37
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
38
+ * you'll need to specify the `/accounts/{accountID}/bank-accounts.read` scope.
39
+ */
40
+ export function bankAccountsGetAttestationEligibility(
41
+ client: MoovCore,
42
+ request: operations.GetBankAccountAttestationEligibilityRequest,
43
+ options?: RequestOptions,
44
+ ): APIPromise<
45
+ Result<
46
+ operations.GetBankAccountAttestationEligibilityResponse,
47
+ | errors.GenericError
48
+ | MoovError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: MoovCore,
67
+ request: operations.GetBankAccountAttestationEligibilityRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.GetBankAccountAttestationEligibilityResponse,
73
+ | errors.GenericError
74
+ | MoovError
75
+ | ResponseValidationError
76
+ | ConnectionError
77
+ | RequestAbortedError
78
+ | RequestTimeoutError
79
+ | InvalidRequestError
80
+ | UnexpectedClientError
81
+ | SDKValidationError
82
+ >,
83
+ APICall,
84
+ ]
85
+ > {
86
+ const parsed = safeParse(
87
+ request,
88
+ (value) =>
89
+ operations.GetBankAccountAttestationEligibilityRequest$outboundSchema
90
+ .parse(value),
91
+ "Input validation failed",
92
+ );
93
+ if (!parsed.ok) {
94
+ return [parsed, { status: "invalid" }];
95
+ }
96
+ const payload = parsed.value;
97
+ const body = null;
98
+
99
+ const pathParams = {
100
+ accountID: encodeSimple("accountID", payload.accountID, {
101
+ explode: false,
102
+ charEncoding: "percent",
103
+ }),
104
+ bankAccountID: encodeSimple("bankAccountID", payload.bankAccountID, {
105
+ explode: false,
106
+ charEncoding: "percent",
107
+ }),
108
+ };
109
+ const path = pathToFunc(
110
+ "/accounts/{accountID}/bank-accounts/{bankAccountID}/attestations-eligibility",
111
+ )(pathParams);
112
+
113
+ const query = encodeFormQuery({
114
+ "attestedAt": payload.attestedAt,
115
+ }, { explode: false });
116
+
117
+ const headers = new Headers(compactMap({
118
+ Accept: "application/json",
119
+ }));
120
+
121
+ const securityInput = await extractSecurity(client._options.security);
122
+ const requestSecurity = resolveGlobalSecurity(securityInput);
123
+
124
+ const context = {
125
+ options: client._options,
126
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
127
+ operationID: "getBankAccountAttestationEligibility",
128
+ oAuth2Scopes: null,
129
+
130
+ resolvedSecurity: requestSecurity,
131
+
132
+ securitySource: client._options.security,
133
+ retryConfig: options?.retries
134
+ || client._options.retryConfig
135
+ || { strategy: "none" },
136
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
137
+ };
138
+
139
+ const requestRes = client._createRequest(context, {
140
+ security: requestSecurity,
141
+ method: "GET",
142
+ baseURL: options?.serverURL,
143
+ path: path,
144
+ headers: headers,
145
+ query: query,
146
+ body: body,
147
+ userAgent: client._options.userAgent,
148
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
149
+ }, options);
150
+ if (!requestRes.ok) {
151
+ return [requestRes, { status: "invalid" }];
152
+ }
153
+ const req = requestRes.value;
154
+
155
+ const doResult = await client._do(req, {
156
+ context,
157
+ isErrorStatusCode: (statusCode: number) =>
158
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
159
+ retryConfig: context.retryConfig,
160
+ retryCodes: context.retryCodes,
161
+ });
162
+ if (!doResult.ok) {
163
+ return [doResult, { status: "request-error", request: req }];
164
+ }
165
+ const response = doResult.value;
166
+
167
+ const responseFields = {
168
+ HttpMeta: { Response: response, Request: req },
169
+ };
170
+
171
+ const [result] = await M.match<
172
+ operations.GetBankAccountAttestationEligibilityResponse,
173
+ | errors.GenericError
174
+ | MoovError
175
+ | ResponseValidationError
176
+ | ConnectionError
177
+ | RequestAbortedError
178
+ | RequestTimeoutError
179
+ | InvalidRequestError
180
+ | UnexpectedClientError
181
+ | SDKValidationError
182
+ >(
183
+ M.json(
184
+ 200,
185
+ operations.GetBankAccountAttestationEligibilityResponse$inboundSchema,
186
+ { hdrs: true, key: "Result" },
187
+ ),
188
+ M.jsonErr(400, errors.GenericError$inboundSchema, { hdrs: true }),
189
+ M.fail([401, 403, 404]),
190
+ M.fail([500, 504]),
191
+ M.fail("4XX"),
192
+ M.fail("5XX"),
193
+ )(response, req, { extraFields: responseFields });
194
+ if (!result.ok) {
195
+ return [result, { status: "complete", request: req, response }];
196
+ }
197
+
198
+ return [result, { status: "complete", request: req, response }];
199
+ }