@moovio/sdk 26.7.0-dev.3 → 26.7.0-dev.5

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 (442) hide show
  1. package/README.md +113 -89
  2. package/bin/mcp-server.js +1832 -1174
  3. package/bin/mcp-server.js.map +95 -83
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/bankAccountsLink.d.ts +1 -1
  9. package/funcs/bankAccountsLink.js +1 -1
  10. package/funcs/capabilitiesDisable.d.ts +1 -1
  11. package/funcs/capabilitiesDisable.js +1 -1
  12. package/funcs/capabilitiesGet.d.ts +1 -1
  13. package/funcs/capabilitiesGet.js +1 -1
  14. package/funcs/capabilitiesList.d.ts +1 -1
  15. package/funcs/capabilitiesList.js +1 -1
  16. package/funcs/capabilitiesRequest.d.ts +1 -1
  17. package/funcs/capabilitiesRequest.js +1 -1
  18. package/funcs/cardIssuingGet.js +1 -1
  19. package/funcs/cardIssuingGet.js.map +1 -1
  20. package/funcs/cardIssuingGetFull.js +1 -1
  21. package/funcs/cardIssuingGetFull.js.map +1 -1
  22. package/funcs/cardIssuingList.js +1 -1
  23. package/funcs/cardIssuingList.js.map +1 -1
  24. package/funcs/cardIssuingRequest.js +1 -1
  25. package/funcs/cardIssuingRequest.js.map +1 -1
  26. package/funcs/cardIssuingUpdate.js +1 -1
  27. package/funcs/cardIssuingUpdate.js.map +1 -1
  28. package/funcs/depositViewCreate.d.ts +22 -0
  29. package/funcs/depositViewCreate.d.ts.map +1 -0
  30. package/funcs/depositViewCreate.js +136 -0
  31. package/funcs/depositViewCreate.js.map +1 -0
  32. package/funcs/transfersListCancellations.d.ts +17 -0
  33. package/funcs/transfersListCancellations.d.ts.map +1 -0
  34. package/funcs/transfersListCancellations.js +129 -0
  35. package/funcs/transfersListCancellations.js.map +1 -0
  36. package/hooks/types.d.ts +1 -0
  37. package/hooks/types.d.ts.map +1 -1
  38. package/jsr.json +1 -1
  39. package/lib/config.d.ts +3 -3
  40. package/lib/config.js +3 -3
  41. package/lib/encodings.js +12 -12
  42. package/lib/encodings.js.map +1 -1
  43. package/lib/matchers.js +3 -3
  44. package/lib/matchers.js.map +1 -1
  45. package/lib/primitives.d.ts +1 -0
  46. package/lib/primitives.d.ts.map +1 -1
  47. package/lib/primitives.js +18 -0
  48. package/lib/primitives.js.map +1 -1
  49. package/lib/retries.js +7 -0
  50. package/lib/retries.js.map +1 -1
  51. package/lib/sdks.d.ts.map +1 -1
  52. package/lib/sdks.js +50 -16
  53. package/lib/sdks.js.map +1 -1
  54. package/mcp-server/mcp-server.js +1 -1
  55. package/mcp-server/server.d.ts.map +1 -1
  56. package/mcp-server/server.js +5 -1
  57. package/mcp-server/server.js.map +1 -1
  58. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  59. package/mcp-server/tools/accountsCreate.js +8 -10
  60. package/mcp-server/tools/accountsCreate.js.map +1 -1
  61. package/mcp-server/tools/bankAccountsLink.js +1 -1
  62. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  63. package/mcp-server/tools/capabilitiesGet.js +1 -1
  64. package/mcp-server/tools/capabilitiesList.js +1 -1
  65. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  66. package/mcp-server/tools/depositViewCreate.d.ts +8 -0
  67. package/mcp-server/tools/depositViewCreate.d.ts.map +1 -0
  68. package/mcp-server/tools/depositViewCreate.js +69 -0
  69. package/mcp-server/tools/depositViewCreate.js.map +1 -0
  70. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  71. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  72. package/mcp-server/tools/transfersListCancellations.js +65 -0
  73. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  74. package/models/components/addcapabilities.d.ts +9 -0
  75. package/models/components/addcapabilities.d.ts.map +1 -1
  76. package/models/components/addcapabilities.js.map +1 -1
  77. package/models/components/amountdecimalrange.d.ts +15 -4
  78. package/models/components/amountdecimalrange.d.ts.map +1 -1
  79. package/models/components/amountdecimalrange.js +5 -4
  80. package/models/components/amountdecimalrange.js.map +1 -1
  81. package/models/components/amountdecimalrangeupdate.d.ts +11 -0
  82. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  83. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  84. package/models/components/capability.d.ts +7 -1
  85. package/models/components/capability.d.ts.map +1 -1
  86. package/models/components/capability.js.map +1 -1
  87. package/models/components/capabilityid.d.ts +15 -2
  88. package/models/components/capabilityid.d.ts.map +1 -1
  89. package/models/components/capabilityid.js +8 -1
  90. package/models/components/capabilityid.js.map +1 -1
  91. package/models/components/cardtransactiondetails.d.ts +7 -0
  92. package/models/components/cardtransactiondetails.d.ts.map +1 -1
  93. package/models/components/cardtransactiondetails.js +4 -0
  94. package/models/components/cardtransactiondetails.js.map +1 -1
  95. package/models/components/cardtransactionstatus.d.ts +1 -0
  96. package/models/components/cardtransactionstatus.d.ts.map +1 -1
  97. package/models/components/cardtransactionstatus.js +1 -0
  98. package/models/components/cardtransactionstatus.js.map +1 -1
  99. package/models/components/createaccount.d.ts +9 -0
  100. package/models/components/createaccount.d.ts.map +1 -1
  101. package/models/components/createaccount.js.map +1 -1
  102. package/models/components/createpaymentlink.d.ts +9 -3
  103. package/models/components/createpaymentlink.d.ts.map +1 -1
  104. package/models/components/createpaymentlink.js +4 -0
  105. package/models/components/createpaymentlink.js.map +1 -1
  106. package/models/components/createtransferdestinationcard.d.ts +5 -0
  107. package/models/components/createtransferdestinationcard.d.ts.map +1 -1
  108. package/models/components/createtransferdestinationcard.js +2 -0
  109. package/models/components/createtransferdestinationcard.js.map +1 -1
  110. package/models/components/customamountpaymentdetailserror.d.ts +29 -0
  111. package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
  112. package/models/components/customamountpaymentdetailserror.js +71 -0
  113. package/models/components/customamountpaymentdetailserror.js.map +1 -0
  114. package/models/components/depositaccountingestedresponse.d.ts +39 -0
  115. package/models/components/depositaccountingestedresponse.d.ts.map +1 -0
  116. package/models/components/depositaccountingestedresponse.js +66 -0
  117. package/models/components/depositaccountingestedresponse.js.map +1 -0
  118. package/models/components/fullissuedcard.d.ts +26 -12
  119. package/models/components/fullissuedcard.d.ts.map +1 -1
  120. package/models/components/fullissuedcard.js +11 -5
  121. package/models/components/fullissuedcard.js.map +1 -1
  122. package/models/components/index.d.ts +10 -4
  123. package/models/components/index.d.ts.map +1 -1
  124. package/models/components/index.js +10 -4
  125. package/models/components/index.js.map +1 -1
  126. package/models/components/invoice.d.ts +5 -0
  127. package/models/components/invoice.d.ts.map +1 -1
  128. package/models/components/invoice.js +2 -0
  129. package/models/components/invoice.js.map +1 -1
  130. package/models/components/issuedcard.d.ts +26 -12
  131. package/models/components/issuedcard.d.ts.map +1 -1
  132. package/models/components/issuedcard.js +11 -5
  133. package/models/components/issuedcard.js.map +1 -1
  134. package/models/components/issuedcardstate.d.ts +2 -8
  135. package/models/components/issuedcardstate.d.ts.map +1 -1
  136. package/models/components/issuedcardstate.js +1 -5
  137. package/models/components/issuedcardstate.js.map +1 -1
  138. package/models/components/manualtermsofservice.d.ts +1 -1
  139. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  140. package/models/components/onboardinginvite.d.ts +1 -1
  141. package/models/components/onboardinginviterequest.d.ts +1 -1
  142. package/models/components/patchtransfer.d.ts +5 -2
  143. package/models/components/patchtransfer.d.ts.map +1 -1
  144. package/models/components/patchtransfer.js +2 -2
  145. package/models/components/patchtransfer.js.map +1 -1
  146. package/models/components/patchwallet.d.ts +4 -7
  147. package/models/components/patchwallet.d.ts.map +1 -1
  148. package/models/components/patchwallet.js +4 -4
  149. package/models/components/patchwallet.js.map +1 -1
  150. package/models/components/paymentlink.d.ts +13 -2
  151. package/models/components/paymentlink.d.ts.map +1 -1
  152. package/models/components/paymentlink.js +4 -0
  153. package/models/components/paymentlink.js.map +1 -1
  154. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
  155. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
  156. package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
  157. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
  158. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
  159. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
  160. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
  161. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
  162. package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
  163. package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
  164. package/models/components/paymentlinkpaymentdetails.js +1 -21
  165. package/models/components/paymentlinkpaymentdetails.js.map +1 -1
  166. package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
  167. package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
  168. package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
  169. package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
  170. package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
  171. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  172. package/models/components/paymentlinkpayoutdetails.js +3 -0
  173. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  174. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
  175. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  176. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  177. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  178. package/models/components/paymentlinktype.d.ts +1 -0
  179. package/models/components/paymentlinktype.d.ts.map +1 -1
  180. package/models/components/paymentlinktype.js +1 -0
  181. package/models/components/paymentlinktype.js.map +1 -1
  182. package/models/components/paymentmethodscard.d.ts +8 -0
  183. package/models/components/paymentmethodscard.d.ts.map +1 -1
  184. package/models/components/paymentmethodscard.js +2 -0
  185. package/models/components/paymentmethodscard.js.map +1 -1
  186. package/models/components/payoutdetailserror.d.ts +3 -0
  187. package/models/components/payoutdetailserror.d.ts.map +1 -1
  188. package/models/components/payoutdetailserror.js +3 -0
  189. package/models/components/payoutdetailserror.js.map +1 -1
  190. package/models/components/pushdeliveryspeed.d.ts +18 -0
  191. package/models/components/pushdeliveryspeed.d.ts.map +1 -0
  192. package/models/components/pushdeliveryspeed.js +52 -0
  193. package/models/components/pushdeliveryspeed.js.map +1 -0
  194. package/models/components/pushoptions.d.ts +35 -0
  195. package/models/components/pushoptions.d.ts.map +1 -0
  196. package/models/components/{createauthorizeduser.js → pushoptions.js} +15 -17
  197. package/models/components/pushoptions.js.map +1 -0
  198. package/models/components/pushoptionserror.d.ts +19 -0
  199. package/models/components/pushoptionserror.d.ts.map +1 -0
  200. package/models/components/{authorizeduser.js → pushoptionserror.js} +14 -14
  201. package/models/components/pushoptionserror.js.map +1 -0
  202. package/models/components/pushoptionsupdate.d.ts +35 -0
  203. package/models/components/pushoptionsupdate.d.ts.map +1 -0
  204. package/models/components/{createauthorizedusererror.js → pushoptionsupdate.js} +15 -17
  205. package/models/components/pushoptionsupdate.js.map +1 -0
  206. package/models/components/requestcard.d.ts +14 -17
  207. package/models/components/requestcard.d.ts.map +1 -1
  208. package/models/components/requestcard.js +9 -10
  209. package/models/components/requestcard.js.map +1 -1
  210. package/models/components/sourcesystem.d.ts +29 -0
  211. package/models/components/sourcesystem.d.ts.map +1 -0
  212. package/models/components/sourcesystem.js +58 -0
  213. package/models/components/sourcesystem.js.map +1 -0
  214. package/models/components/termsofservice.d.ts +1 -1
  215. package/models/components/updateissuedcard.d.ts +33 -8
  216. package/models/components/updateissuedcard.d.ts.map +1 -1
  217. package/models/components/updateissuedcard.js +35 -6
  218. package/models/components/updateissuedcard.js.map +1 -1
  219. package/models/components/updatepaymentlink.d.ts +6 -0
  220. package/models/components/updatepaymentlink.d.ts.map +1 -1
  221. package/models/components/updatepaymentlink.js +3 -0
  222. package/models/components/updatepaymentlink.js.map +1 -1
  223. package/models/components/updatepaymentlinkamountdetails.d.ts +60 -5
  224. package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
  225. package/models/components/updatepaymentlinkamountdetails.js +43 -6
  226. package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
  227. package/models/components/webhookdata.d.ts +3 -2
  228. package/models/components/webhookdata.d.ts.map +1 -1
  229. package/models/components/webhookdata.js +7 -4
  230. package/models/components/webhookdata.js.map +1 -1
  231. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  232. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  233. package/models/components/{createauthorizeduserupdate.js → webhookdataauthorizationexpiring.js} +18 -17
  234. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  235. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  236. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  237. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  238. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  239. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  240. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  241. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  242. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  243. package/models/components/webhookdatasweepcreated.js +2 -0
  244. package/models/components/webhookdatasweepcreated.js.map +1 -1
  245. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  246. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  247. package/models/components/webhookdatasweepupdated.js +2 -0
  248. package/models/components/webhookdatasweepupdated.js.map +1 -1
  249. package/models/components/webhookeventtype.d.ts +1 -0
  250. package/models/components/webhookeventtype.d.ts.map +1 -1
  251. package/models/components/webhookeventtype.js +1 -0
  252. package/models/components/webhookeventtype.js.map +1 -1
  253. package/models/errors/createpaymentlinkerror.d.ts +3 -0
  254. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  255. package/models/errors/createpaymentlinkerror.js +6 -0
  256. package/models/errors/createpaymentlinkerror.js.map +1 -1
  257. package/models/errors/depositaccountvalidationerror.d.ts +41 -0
  258. package/models/errors/depositaccountvalidationerror.d.ts.map +1 -0
  259. package/models/errors/depositaccountvalidationerror.js +81 -0
  260. package/models/errors/depositaccountvalidationerror.js.map +1 -0
  261. package/models/errors/index.d.ts +1 -0
  262. package/models/errors/index.d.ts.map +1 -1
  263. package/models/errors/index.js +1 -0
  264. package/models/errors/index.js.map +1 -1
  265. package/models/errors/requestcarderror.d.ts +12 -12
  266. package/models/errors/requestcarderror.d.ts.map +1 -1
  267. package/models/errors/requestcarderror.js +17 -17
  268. package/models/errors/requestcarderror.js.map +1 -1
  269. package/models/errors/updateissuedcarderror.d.ts +9 -6
  270. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  271. package/models/errors/updateissuedcarderror.js +12 -9
  272. package/models/errors/updateissuedcarderror.js.map +1 -1
  273. package/models/errors/updatepaymentlinkerror.d.ts +3 -0
  274. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  275. package/models/errors/updatepaymentlinkerror.js +6 -0
  276. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  277. package/models/operations/createdepositaccount.d.ts +44 -0
  278. package/models/operations/createdepositaccount.d.ts.map +1 -0
  279. package/models/operations/createdepositaccount.js +113 -0
  280. package/models/operations/createdepositaccount.js.map +1 -0
  281. package/models/operations/disablecapability.d.ts +7 -1
  282. package/models/operations/disablecapability.d.ts.map +1 -1
  283. package/models/operations/disablecapability.js.map +1 -1
  284. package/models/operations/getcapability.d.ts +7 -1
  285. package/models/operations/getcapability.d.ts.map +1 -1
  286. package/models/operations/getcapability.js.map +1 -1
  287. package/models/operations/index.d.ts +2 -0
  288. package/models/operations/index.d.ts.map +1 -1
  289. package/models/operations/index.js +2 -0
  290. package/models/operations/index.js.map +1 -1
  291. package/models/operations/linkbankaccount.d.ts +1 -1
  292. package/models/operations/listcancellations.d.ts +45 -0
  293. package/models/operations/listcancellations.d.ts.map +1 -0
  294. package/models/operations/listcancellations.js +91 -0
  295. package/models/operations/listcancellations.js.map +1 -0
  296. package/models/operations/listissuedcards.d.ts +1 -1
  297. package/package.json +1 -1
  298. package/sdk/accounts.d.ts +8 -10
  299. package/sdk/accounts.d.ts.map +1 -1
  300. package/sdk/accounts.js +8 -10
  301. package/sdk/accounts.js.map +1 -1
  302. package/sdk/bankaccounts.d.ts +1 -1
  303. package/sdk/bankaccounts.js +1 -1
  304. package/sdk/capabilities.d.ts +4 -4
  305. package/sdk/capabilities.js +4 -4
  306. package/sdk/depositview.d.ts +16 -0
  307. package/sdk/depositview.d.ts.map +1 -0
  308. package/sdk/depositview.js +26 -0
  309. package/sdk/depositview.js.map +1 -0
  310. package/sdk/sdk.d.ts +3 -0
  311. package/sdk/sdk.d.ts.map +1 -1
  312. package/sdk/sdk.js +4 -0
  313. package/sdk/sdk.js.map +1 -1
  314. package/sdk/transfers.d.ts +7 -0
  315. package/sdk/transfers.d.ts.map +1 -1
  316. package/sdk/transfers.js +10 -0
  317. package/sdk/transfers.js.map +1 -1
  318. package/src/funcs/accountsCreate.ts +8 -10
  319. package/src/funcs/bankAccountsLink.ts +1 -1
  320. package/src/funcs/capabilitiesDisable.ts +1 -1
  321. package/src/funcs/capabilitiesGet.ts +1 -1
  322. package/src/funcs/capabilitiesList.ts +1 -1
  323. package/src/funcs/capabilitiesRequest.ts +1 -1
  324. package/src/funcs/cardIssuingGet.ts +1 -1
  325. package/src/funcs/cardIssuingGetFull.ts +3 -3
  326. package/src/funcs/cardIssuingList.ts +1 -1
  327. package/src/funcs/cardIssuingRequest.ts +1 -1
  328. package/src/funcs/cardIssuingUpdate.ts +1 -1
  329. package/src/funcs/depositViewCreate.ts +201 -0
  330. package/src/funcs/transfersListCancellations.ts +181 -0
  331. package/src/hooks/types.ts +1 -0
  332. package/src/lib/config.ts +3 -3
  333. package/src/lib/encodings.ts +1 -1
  334. package/src/lib/matchers.ts +1 -1
  335. package/src/lib/primitives.ts +16 -0
  336. package/src/lib/retries.ts +8 -0
  337. package/src/lib/sdks.ts +54 -17
  338. package/src/mcp-server/mcp-server.ts +1 -1
  339. package/src/mcp-server/server.ts +5 -1
  340. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  341. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  342. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  343. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  344. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  345. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  346. package/src/mcp-server/tools/depositViewCreate.ts +43 -0
  347. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  348. package/src/models/components/addcapabilities.ts +9 -0
  349. package/src/models/components/amountdecimalrange.ts +20 -8
  350. package/src/models/components/amountdecimalrangeupdate.ts +11 -0
  351. package/src/models/components/capability.ts +7 -1
  352. package/src/models/components/capabilityid.ts +15 -2
  353. package/src/models/components/cardtransactiondetails.ts +11 -0
  354. package/src/models/components/cardtransactionstatus.ts +1 -0
  355. package/src/models/components/createaccount.ts +9 -0
  356. package/src/models/components/createpaymentlink.ts +21 -3
  357. package/src/models/components/createtransferdestinationcard.ts +7 -0
  358. package/src/models/components/customamountpaymentdetailserror.ts +86 -0
  359. package/src/models/components/depositaccountingestedresponse.ts +86 -0
  360. package/src/models/components/fullissuedcard.ts +36 -20
  361. package/src/models/components/index.ts +10 -4
  362. package/src/models/components/invoice.ts +7 -0
  363. package/src/models/components/issuedcard.ts +36 -20
  364. package/src/models/components/issuedcardstate.ts +2 -8
  365. package/src/models/components/manualtermsofservice.ts +1 -1
  366. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  367. package/src/models/components/onboardinginvite.ts +1 -1
  368. package/src/models/components/onboardinginviterequest.ts +1 -1
  369. package/src/models/components/patchtransfer.ts +7 -4
  370. package/src/models/components/patchwallet.ts +8 -11
  371. package/src/models/components/paymentlink.ts +25 -2
  372. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
  373. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
  374. package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
  375. package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
  376. package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
  377. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
  378. package/src/models/components/paymentlinktype.ts +1 -0
  379. package/src/models/components/paymentmethodscard.ts +10 -0
  380. package/src/models/components/payoutdetailserror.ts +10 -0
  381. package/src/models/components/pushdeliveryspeed.ts +32 -0
  382. package/src/models/components/pushoptions.ts +72 -0
  383. package/src/models/components/pushoptionserror.ts +56 -0
  384. package/src/models/components/pushoptionsupdate.ts +76 -0
  385. package/src/models/components/requestcard.ts +23 -34
  386. package/src/models/components/sourcesystem.ts +43 -0
  387. package/src/models/components/termsofservice.ts +1 -1
  388. package/src/models/components/updateissuedcard.ts +73 -17
  389. package/src/models/components/updatepaymentlink.ts +18 -0
  390. package/src/models/components/updatepaymentlinkamountdetails.ts +114 -14
  391. package/src/models/components/webhookdata.ts +18 -8
  392. package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
  393. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  394. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  395. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  396. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  397. package/src/models/components/webhookeventtype.ts +1 -0
  398. package/src/models/errors/createpaymentlinkerror.ts +13 -0
  399. package/src/models/errors/depositaccountvalidationerror.ts +86 -0
  400. package/src/models/errors/index.ts +1 -0
  401. package/src/models/errors/requestcarderror.ts +26 -27
  402. package/src/models/errors/updateissuedcarderror.ts +18 -15
  403. package/src/models/errors/updatepaymentlinkerror.ts +13 -0
  404. package/src/models/operations/createdepositaccount.ts +146 -0
  405. package/src/models/operations/disablecapability.ts +7 -1
  406. package/src/models/operations/getcapability.ts +7 -1
  407. package/src/models/operations/index.ts +2 -0
  408. package/src/models/operations/linkbankaccount.ts +1 -1
  409. package/src/models/operations/listcancellations.ts +121 -0
  410. package/src/models/operations/listissuedcards.ts +1 -1
  411. package/src/sdk/accounts.ts +8 -10
  412. package/src/sdk/bankaccounts.ts +1 -1
  413. package/src/sdk/capabilities.ts +4 -4
  414. package/src/sdk/depositview.ts +31 -0
  415. package/src/sdk/sdk.ts +6 -0
  416. package/src/sdk/transfers.ts +18 -0
  417. package/lib/dlv.d.ts +0 -14
  418. package/lib/dlv.d.ts.map +0 -1
  419. package/lib/dlv.js +0 -49
  420. package/lib/dlv.js.map +0 -1
  421. package/lib/is-plain-object.d.ts +0 -2
  422. package/lib/is-plain-object.d.ts.map +0 -1
  423. package/lib/is-plain-object.js +0 -41
  424. package/lib/is-plain-object.js.map +0 -1
  425. package/models/components/authorizeduser.d.ts +0 -22
  426. package/models/components/authorizeduser.d.ts.map +0 -1
  427. package/models/components/authorizeduser.js.map +0 -1
  428. package/models/components/createauthorizeduser.d.ts +0 -25
  429. package/models/components/createauthorizeduser.d.ts.map +0 -1
  430. package/models/components/createauthorizeduser.js.map +0 -1
  431. package/models/components/createauthorizedusererror.d.ts +0 -22
  432. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  433. package/models/components/createauthorizedusererror.js.map +0 -1
  434. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  435. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  436. package/models/components/createauthorizeduserupdate.js.map +0 -1
  437. package/src/lib/dlv.ts +0 -53
  438. package/src/lib/is-plain-object.ts +0 -43
  439. package/src/models/components/authorizeduser.ts +0 -55
  440. package/src/models/components/createauthorizeduser.ts +0 -69
  441. package/src/models/components/createauthorizedusererror.ts +0 -66
  442. package/src/models/components/createauthorizeduserupdate.ts +0 -69
@@ -19,6 +19,12 @@ import {
19
19
  CreatePaymentLinkLineItemsUpdate$Outbound,
20
20
  CreatePaymentLinkLineItemsUpdate$outboundSchema,
21
21
  } from "./createpaymentlinklineitemsupdate.js";
22
+ import {
23
+ PaymentLinkCustomAmountPaymentDetailsUpdate,
24
+ PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
25
+ PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound,
26
+ PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema,
27
+ } from "./paymentlinkcustomamountpaymentdetailsupdate.js";
22
28
  import {
23
29
  PaymentLinkCustomerOptions,
24
30
  PaymentLinkCustomerOptions$inboundSchema,
@@ -63,6 +69,10 @@ export type UpdatePaymentLink = {
63
69
  */
64
70
  payment?: PaymentLinkPaymentDetailsUpdate | undefined;
65
71
  payout?: PaymentLinkPayoutDetailsUpdate | undefined;
72
+ /**
73
+ * Options for a custom amount payment link. A payment link's type cannot be changed after creation.
74
+ */
75
+ customAmountPayment?: PaymentLinkCustomAmountPaymentDetailsUpdate | undefined;
66
76
  /**
67
77
  * An optional collection of line items for a payment link.
68
78
  *
@@ -85,6 +95,9 @@ export const UpdatePaymentLink$inboundSchema: z.ZodType<
85
95
  customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
86
96
  payment: types.optional(PaymentLinkPaymentDetailsUpdate$inboundSchema),
87
97
  payout: types.optional(PaymentLinkPayoutDetailsUpdate$inboundSchema),
98
+ customAmountPayment: types.optional(
99
+ PaymentLinkCustomAmountPaymentDetailsUpdate$inboundSchema,
100
+ ),
88
101
  lineItems: types.optional(CreatePaymentLinkLineItemsUpdate$inboundSchema),
89
102
  amountDetails: types.optional(UpdatePaymentLinkAmountDetails$inboundSchema),
90
103
  });
@@ -96,6 +109,9 @@ export type UpdatePaymentLink$Outbound = {
96
109
  customer?: PaymentLinkCustomerOptions$Outbound | undefined;
97
110
  payment?: PaymentLinkPaymentDetailsUpdate$Outbound | undefined;
98
111
  payout?: PaymentLinkPayoutDetailsUpdate$Outbound | undefined;
112
+ customAmountPayment?:
113
+ | PaymentLinkCustomAmountPaymentDetailsUpdate$Outbound
114
+ | undefined;
99
115
  lineItems?: CreatePaymentLinkLineItemsUpdate$Outbound | undefined;
100
116
  amountDetails?: UpdatePaymentLinkAmountDetails$Outbound | undefined;
101
117
  };
@@ -112,6 +128,8 @@ export const UpdatePaymentLink$outboundSchema: z.ZodType<
112
128
  customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
113
129
  payment: PaymentLinkPaymentDetailsUpdate$outboundSchema.optional(),
114
130
  payout: PaymentLinkPayoutDetailsUpdate$outboundSchema.optional(),
131
+ customAmountPayment:
132
+ PaymentLinkCustomAmountPaymentDetailsUpdate$outboundSchema.optional(),
115
133
  lineItems: CreatePaymentLinkLineItemsUpdate$outboundSchema.optional(),
116
134
  amountDetails: UpdatePaymentLinkAmountDetails$outboundSchema.optional(),
117
135
  });
@@ -7,37 +7,137 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import * as types from "../../types/primitives.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- AmountDecimalUpdate,
12
- AmountDecimalUpdate$inboundSchema,
13
- AmountDecimalUpdate$Outbound,
14
- AmountDecimalUpdate$outboundSchema,
15
- } from "./amountdecimalupdate.js";
10
+
11
+ /**
12
+ * The amount of tax applied to the payment link.
13
+ */
14
+ export type Tax = {
15
+ /**
16
+ * A 3-letter ISO 4217 currency code.
17
+ */
18
+ currency?: string | undefined;
19
+ /**
20
+ * A decimal-formatted numerical string that represents up to 9 decimal place precision.
21
+ *
22
+ * @remarks
23
+ *
24
+ * For example, $12.987654321 is '12.987654321'.
25
+ */
26
+ valueDecimal?: string | undefined;
27
+ };
28
+
29
+ /**
30
+ * The amount of surcharge applied to the payment link.
31
+ */
32
+ export type Surcharge = {
33
+ /**
34
+ * A 3-letter ISO 4217 currency code.
35
+ */
36
+ currency?: string | undefined;
37
+ /**
38
+ * A decimal-formatted numerical string that represents up to 9 decimal place precision.
39
+ *
40
+ * @remarks
41
+ *
42
+ * For example, $12.987654321 is '12.987654321'.
43
+ */
44
+ valueDecimal?: string | undefined;
45
+ };
16
46
 
17
47
  export type UpdatePaymentLinkAmountDetails = {
18
48
  /**
19
49
  * The amount of tax applied to the payment link.
20
50
  */
21
- tax?: AmountDecimalUpdate | undefined;
51
+ tax?: Tax | null | undefined;
22
52
  /**
23
53
  * The amount of surcharge applied to the payment link.
24
54
  */
25
- surcharge?: AmountDecimalUpdate | undefined;
55
+ surcharge?: Surcharge | null | undefined;
56
+ };
57
+
58
+ /** @internal */
59
+ export const Tax$inboundSchema: z.ZodType<Tax, z.ZodTypeDef, unknown> = z
60
+ .object({
61
+ currency: types.optional(types.string()),
62
+ valueDecimal: types.optional(types.string()),
63
+ });
64
+ /** @internal */
65
+ export type Tax$Outbound = {
66
+ currency?: string | undefined;
67
+ valueDecimal?: string | undefined;
26
68
  };
27
69
 
70
+ /** @internal */
71
+ export const Tax$outboundSchema: z.ZodType<Tax$Outbound, z.ZodTypeDef, Tax> = z
72
+ .object({
73
+ currency: z.string().optional(),
74
+ valueDecimal: z.string().optional(),
75
+ });
76
+
77
+ export function taxToJSON(tax: Tax): string {
78
+ return JSON.stringify(Tax$outboundSchema.parse(tax));
79
+ }
80
+ export function taxFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<Tax, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => Tax$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'Tax' from JSON`,
87
+ );
88
+ }
89
+
90
+ /** @internal */
91
+ export const Surcharge$inboundSchema: z.ZodType<
92
+ Surcharge,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.object({
96
+ currency: types.optional(types.string()),
97
+ valueDecimal: types.optional(types.string()),
98
+ });
99
+ /** @internal */
100
+ export type Surcharge$Outbound = {
101
+ currency?: string | undefined;
102
+ valueDecimal?: string | undefined;
103
+ };
104
+
105
+ /** @internal */
106
+ export const Surcharge$outboundSchema: z.ZodType<
107
+ Surcharge$Outbound,
108
+ z.ZodTypeDef,
109
+ Surcharge
110
+ > = z.object({
111
+ currency: z.string().optional(),
112
+ valueDecimal: z.string().optional(),
113
+ });
114
+
115
+ export function surchargeToJSON(surcharge: Surcharge): string {
116
+ return JSON.stringify(Surcharge$outboundSchema.parse(surcharge));
117
+ }
118
+ export function surchargeFromJSON(
119
+ jsonString: string,
120
+ ): SafeParseResult<Surcharge, SDKValidationError> {
121
+ return safeParse(
122
+ jsonString,
123
+ (x) => Surcharge$inboundSchema.parse(JSON.parse(x)),
124
+ `Failed to parse 'Surcharge' from JSON`,
125
+ );
126
+ }
127
+
28
128
  /** @internal */
29
129
  export const UpdatePaymentLinkAmountDetails$inboundSchema: z.ZodType<
30
130
  UpdatePaymentLinkAmountDetails,
31
131
  z.ZodTypeDef,
32
132
  unknown
33
133
  > = z.object({
34
- tax: types.optional(AmountDecimalUpdate$inboundSchema),
35
- surcharge: types.optional(AmountDecimalUpdate$inboundSchema),
134
+ tax: z.nullable(z.lazy(() => Tax$inboundSchema)).optional(),
135
+ surcharge: z.nullable(z.lazy(() => Surcharge$inboundSchema)).optional(),
36
136
  });
37
137
  /** @internal */
38
138
  export type UpdatePaymentLinkAmountDetails$Outbound = {
39
- tax?: AmountDecimalUpdate$Outbound | undefined;
40
- surcharge?: AmountDecimalUpdate$Outbound | undefined;
139
+ tax?: Tax$Outbound | null | undefined;
140
+ surcharge?: Surcharge$Outbound | null | undefined;
41
141
  };
42
142
 
43
143
  /** @internal */
@@ -46,8 +146,8 @@ export const UpdatePaymentLinkAmountDetails$outboundSchema: z.ZodType<
46
146
  z.ZodTypeDef,
47
147
  UpdatePaymentLinkAmountDetails
48
148
  > = z.object({
49
- tax: AmountDecimalUpdate$outboundSchema.optional(),
50
- surcharge: AmountDecimalUpdate$outboundSchema.optional(),
149
+ tax: z.nullable(z.lazy(() => Tax$outboundSchema)).optional(),
150
+ surcharge: z.nullable(z.lazy(() => Surcharge$outboundSchema)).optional(),
51
151
  });
52
152
 
53
153
  export function updatePaymentLinkAmountDetailsToJSON(
@@ -31,6 +31,12 @@ import {
31
31
  WebhookDataAccountUpdated$Outbound,
32
32
  WebhookDataAccountUpdated$outboundSchema,
33
33
  } from "./webhookdataaccountupdated.js";
34
+ import {
35
+ WebhookDataAuthorizationExpiring,
36
+ WebhookDataAuthorizationExpiring$inboundSchema,
37
+ WebhookDataAuthorizationExpiring$Outbound,
38
+ WebhookDataAuthorizationExpiring$outboundSchema,
39
+ } from "./webhookdataauthorizationexpiring.js";
34
40
  import {
35
41
  WebhookDataBalanceUpdated,
36
42
  WebhookDataBalanceUpdated$inboundSchema,
@@ -239,7 +245,9 @@ export type WebhookData =
239
245
  | WebhookDataTransferUpdated
240
246
  | WebhookDataBankAccountUpdated
241
247
  | WebhookDataRefundUpdated
248
+ | WebhookDataSweepUpdated
242
249
  | WebhookDataWalletTransactionUpdated
250
+ | WebhookDataAuthorizationExpiring
243
251
  | WebhookDataBankAccountCreated
244
252
  | WebhookDataBankAccountDeleted
245
253
  | WebhookDataCancellationCreated
@@ -250,7 +258,7 @@ export type WebhookData =
250
258
  | WebhookDataPaymentMethodEnabled
251
259
  | WebhookDataPaymentMethodDisabled
252
260
  | WebhookDataRefundCreated
253
- | WebhookDataSweepUpdated
261
+ | WebhookDataSweepCreated
254
262
  | WebhookDataTicketUpdated
255
263
  | WebhookDataTransferCreated
256
264
  | WebhookDataWalletUpdated
@@ -260,7 +268,6 @@ export type WebhookData =
260
268
  | WebhookDataRepresentativeCreated
261
269
  | WebhookDataRepresentativeUpdated
262
270
  | WebhookDataRepresentativeDisabled
263
- | WebhookDataSweepCreated
264
271
  | WebhookDataTerminalApplicationCreated
265
272
  | WebhookDataTerminalApplicationUpdated
266
273
  | WebhookDataTicketCreated
@@ -283,7 +290,9 @@ export const WebhookData$inboundSchema: z.ZodType<
283
290
  WebhookDataTransferUpdated$inboundSchema,
284
291
  WebhookDataBankAccountUpdated$inboundSchema,
285
292
  WebhookDataRefundUpdated$inboundSchema,
293
+ WebhookDataSweepUpdated$inboundSchema,
286
294
  WebhookDataWalletTransactionUpdated$inboundSchema,
295
+ WebhookDataAuthorizationExpiring$inboundSchema,
287
296
  WebhookDataBankAccountCreated$inboundSchema,
288
297
  WebhookDataBankAccountDeleted$inboundSchema,
289
298
  WebhookDataCancellationCreated$inboundSchema,
@@ -294,7 +303,7 @@ export const WebhookData$inboundSchema: z.ZodType<
294
303
  WebhookDataPaymentMethodEnabled$inboundSchema,
295
304
  WebhookDataPaymentMethodDisabled$inboundSchema,
296
305
  WebhookDataRefundCreated$inboundSchema,
297
- WebhookDataSweepUpdated$inboundSchema,
306
+ WebhookDataSweepCreated$inboundSchema,
298
307
  WebhookDataTicketUpdated$inboundSchema,
299
308
  WebhookDataTransferCreated$inboundSchema,
300
309
  WebhookDataWalletUpdated$inboundSchema,
@@ -304,7 +313,6 @@ export const WebhookData$inboundSchema: z.ZodType<
304
313
  WebhookDataRepresentativeCreated$inboundSchema,
305
314
  WebhookDataRepresentativeUpdated$inboundSchema,
306
315
  WebhookDataRepresentativeDisabled$inboundSchema,
307
- WebhookDataSweepCreated$inboundSchema,
308
316
  WebhookDataTerminalApplicationCreated$inboundSchema,
309
317
  WebhookDataTerminalApplicationUpdated$inboundSchema,
310
318
  WebhookDataTicketCreated$inboundSchema,
@@ -323,7 +331,9 @@ export type WebhookData$Outbound =
323
331
  | WebhookDataTransferUpdated$Outbound
324
332
  | WebhookDataBankAccountUpdated$Outbound
325
333
  | WebhookDataRefundUpdated$Outbound
334
+ | WebhookDataSweepUpdated$Outbound
326
335
  | WebhookDataWalletTransactionUpdated$Outbound
336
+ | WebhookDataAuthorizationExpiring$Outbound
327
337
  | WebhookDataBankAccountCreated$Outbound
328
338
  | WebhookDataBankAccountDeleted$Outbound
329
339
  | WebhookDataCancellationCreated$Outbound
@@ -334,7 +344,7 @@ export type WebhookData$Outbound =
334
344
  | WebhookDataPaymentMethodEnabled$Outbound
335
345
  | WebhookDataPaymentMethodDisabled$Outbound
336
346
  | WebhookDataRefundCreated$Outbound
337
- | WebhookDataSweepUpdated$Outbound
347
+ | WebhookDataSweepCreated$Outbound
338
348
  | WebhookDataTicketUpdated$Outbound
339
349
  | WebhookDataTransferCreated$Outbound
340
350
  | WebhookDataWalletUpdated$Outbound
@@ -344,7 +354,6 @@ export type WebhookData$Outbound =
344
354
  | WebhookDataRepresentativeCreated$Outbound
345
355
  | WebhookDataRepresentativeUpdated$Outbound
346
356
  | WebhookDataRepresentativeDisabled$Outbound
347
- | WebhookDataSweepCreated$Outbound
348
357
  | WebhookDataTerminalApplicationCreated$Outbound
349
358
  | WebhookDataTerminalApplicationUpdated$Outbound
350
359
  | WebhookDataTicketCreated$Outbound
@@ -367,7 +376,9 @@ export const WebhookData$outboundSchema: z.ZodType<
367
376
  WebhookDataTransferUpdated$outboundSchema,
368
377
  WebhookDataBankAccountUpdated$outboundSchema,
369
378
  WebhookDataRefundUpdated$outboundSchema,
379
+ WebhookDataSweepUpdated$outboundSchema,
370
380
  WebhookDataWalletTransactionUpdated$outboundSchema,
381
+ WebhookDataAuthorizationExpiring$outboundSchema,
371
382
  WebhookDataBankAccountCreated$outboundSchema,
372
383
  WebhookDataBankAccountDeleted$outboundSchema,
373
384
  WebhookDataCancellationCreated$outboundSchema,
@@ -378,7 +389,7 @@ export const WebhookData$outboundSchema: z.ZodType<
378
389
  WebhookDataPaymentMethodEnabled$outboundSchema,
379
390
  WebhookDataPaymentMethodDisabled$outboundSchema,
380
391
  WebhookDataRefundCreated$outboundSchema,
381
- WebhookDataSweepUpdated$outboundSchema,
392
+ WebhookDataSweepCreated$outboundSchema,
382
393
  WebhookDataTicketUpdated$outboundSchema,
383
394
  WebhookDataTransferCreated$outboundSchema,
384
395
  WebhookDataWalletUpdated$outboundSchema,
@@ -388,7 +399,6 @@ export const WebhookData$outboundSchema: z.ZodType<
388
399
  WebhookDataRepresentativeCreated$outboundSchema,
389
400
  WebhookDataRepresentativeUpdated$outboundSchema,
390
401
  WebhookDataRepresentativeDisabled$outboundSchema,
391
- WebhookDataSweepCreated$outboundSchema,
392
402
  WebhookDataTerminalApplicationCreated$outboundSchema,
393
403
  WebhookDataTerminalApplicationUpdated$outboundSchema,
394
404
  WebhookDataTicketCreated$outboundSchema,
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type WebhookDataAuthorizationExpiring = {
12
+ merchantAccountID: string;
13
+ partnerAccountID: string;
14
+ authorizationID: string;
15
+ expiresOn: Date;
16
+ };
17
+
18
+ /** @internal */
19
+ export const WebhookDataAuthorizationExpiring$inboundSchema: z.ZodType<
20
+ WebhookDataAuthorizationExpiring,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ merchantAccountID: types.string(),
25
+ partnerAccountID: types.string(),
26
+ authorizationID: types.string(),
27
+ expiresOn: types.date(),
28
+ });
29
+ /** @internal */
30
+ export type WebhookDataAuthorizationExpiring$Outbound = {
31
+ merchantAccountID: string;
32
+ partnerAccountID: string;
33
+ authorizationID: string;
34
+ expiresOn: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const WebhookDataAuthorizationExpiring$outboundSchema: z.ZodType<
39
+ WebhookDataAuthorizationExpiring$Outbound,
40
+ z.ZodTypeDef,
41
+ WebhookDataAuthorizationExpiring
42
+ > = z.object({
43
+ merchantAccountID: z.string(),
44
+ partnerAccountID: z.string(),
45
+ authorizationID: z.string(),
46
+ expiresOn: z.date().transform(v => v.toISOString()),
47
+ });
48
+
49
+ export function webhookDataAuthorizationExpiringToJSON(
50
+ webhookDataAuthorizationExpiring: WebhookDataAuthorizationExpiring,
51
+ ): string {
52
+ return JSON.stringify(
53
+ WebhookDataAuthorizationExpiring$outboundSchema.parse(
54
+ webhookDataAuthorizationExpiring,
55
+ ),
56
+ );
57
+ }
58
+ export function webhookDataAuthorizationExpiringFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<WebhookDataAuthorizationExpiring, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => WebhookDataAuthorizationExpiring$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'WebhookDataAuthorizationExpiring' from JSON`,
65
+ );
66
+ }
@@ -21,7 +21,13 @@ export type WebhookDataCapabilityRequested = {
21
21
  *
22
22
  * @remarks
23
23
  *
24
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
24
+ * **Deprecated capabilities**
25
+ *
26
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
27
+ *
28
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
29
+ *
30
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
25
31
  */
26
32
  capabilityID: CapabilityID;
27
33
  };
@@ -26,7 +26,13 @@ export type WebhookDataCapabilityUpdated = {
26
26
  *
27
27
  * @remarks
28
28
  *
29
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
29
+ * **Deprecated capabilities**
30
+ *
31
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
32
+ *
33
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
34
+ *
35
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
30
36
  */
31
37
  capabilityID: CapabilityID;
32
38
  /**
@@ -9,6 +9,10 @@ import * as types from "../../types/primitives.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type WebhookDataSweepCreated = {
12
+ /**
13
+ * The accountID associated with the wallet being swept.
14
+ */
15
+ accountID: string;
12
16
  walletID: string;
13
17
  sweepID: string;
14
18
  };
@@ -19,11 +23,13 @@ export const WebhookDataSweepCreated$inboundSchema: z.ZodType<
19
23
  z.ZodTypeDef,
20
24
  unknown
21
25
  > = z.object({
26
+ accountID: types.string(),
22
27
  walletID: types.string(),
23
28
  sweepID: types.string(),
24
29
  });
25
30
  /** @internal */
26
31
  export type WebhookDataSweepCreated$Outbound = {
32
+ accountID: string;
27
33
  walletID: string;
28
34
  sweepID: string;
29
35
  };
@@ -34,6 +40,7 @@ export const WebhookDataSweepCreated$outboundSchema: z.ZodType<
34
40
  z.ZodTypeDef,
35
41
  WebhookDataSweepCreated
36
42
  > = z.object({
43
+ accountID: z.string(),
37
44
  walletID: z.string(),
38
45
  sweepID: z.string(),
39
46
  });
@@ -14,6 +14,10 @@ import {
14
14
  } from "./sweepstatus.js";
15
15
 
16
16
  export type WebhookDataSweepUpdated = {
17
+ /**
18
+ * The accountID associated with the wallet being swept.
19
+ */
20
+ accountID: string;
17
21
  walletID: string;
18
22
  sweepID: string;
19
23
  transferID?: string | undefined;
@@ -26,6 +30,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
26
30
  z.ZodTypeDef,
27
31
  unknown
28
32
  > = z.object({
33
+ accountID: types.string(),
29
34
  walletID: types.string(),
30
35
  sweepID: types.string(),
31
36
  transferID: types.optional(types.string()),
@@ -33,6 +38,7 @@ export const WebhookDataSweepUpdated$inboundSchema: z.ZodType<
33
38
  });
34
39
  /** @internal */
35
40
  export type WebhookDataSweepUpdated$Outbound = {
41
+ accountID: string;
36
42
  walletID: string;
37
43
  sweepID: string;
38
44
  transferID?: string | undefined;
@@ -45,6 +51,7 @@ export const WebhookDataSweepUpdated$outboundSchema: z.ZodType<
45
51
  z.ZodTypeDef,
46
52
  WebhookDataSweepUpdated
47
53
  > = z.object({
54
+ accountID: z.string(),
48
55
  walletID: z.string(),
49
56
  sweepID: z.string(),
50
57
  transferID: z.string().optional(),
@@ -48,6 +48,7 @@ export const WebhookEventType = {
48
48
  WalletUpdated: "wallet.updated",
49
49
  WalletTransactionUpdated: "walletTransaction.updated",
50
50
  BillingStatementCreated: "billingStatement.created",
51
+ AuthorizationExpiring: "authorization.expiring",
51
52
  } as const;
52
53
  /**
53
54
  * The type of event that occurred.
@@ -16,6 +16,7 @@ export type CreatePaymentLinkErrorData = {
16
16
  display?: components.DisplayOptionsError | undefined;
17
17
  payment?: components.PaymentDetailsError | undefined;
18
18
  payout?: components.PayoutDetailsError | undefined;
19
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
19
20
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
20
21
  amountDetails?:
21
22
  | components.CreatePaymentLinkAmountDetailsValidationError
@@ -31,6 +32,7 @@ export class CreatePaymentLinkError extends MoovError {
31
32
  display?: components.DisplayOptionsError | undefined;
32
33
  payment?: components.PaymentDetailsError | undefined;
33
34
  payout?: components.PayoutDetailsError | undefined;
35
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
34
36
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
35
37
  amountDetails?:
36
38
  | components.CreatePaymentLinkAmountDetailsValidationError
@@ -60,6 +62,9 @@ export class CreatePaymentLinkError extends MoovError {
60
62
  if (err.display != null) this.display = err.display;
61
63
  if (err.payment != null) this.payment = err.payment;
62
64
  if (err.payout != null) this.payout = err.payout;
65
+ if (err.customAmountPayment != null) {
66
+ this.customAmountPayment = err.customAmountPayment;
67
+ }
63
68
  if (err.lineItems != null) this.lineItems = err.lineItems;
64
69
  if (err.amountDetails != null) this.amountDetails = err.amountDetails;
65
70
 
@@ -81,6 +86,9 @@ export const CreatePaymentLinkError$inboundSchema: z.ZodType<
81
86
  display: types.optional(components.DisplayOptionsError$inboundSchema),
82
87
  payment: types.optional(components.PaymentDetailsError$inboundSchema),
83
88
  payout: types.optional(components.PayoutDetailsError$inboundSchema),
89
+ customAmountPayment: types.optional(
90
+ components.CustomAmountPaymentDetailsError$inboundSchema,
91
+ ),
84
92
  lineItems: types.optional(
85
93
  components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
86
94
  ),
@@ -109,6 +117,9 @@ export type CreatePaymentLinkError$Outbound = {
109
117
  display?: components.DisplayOptionsError$Outbound | undefined;
110
118
  payment?: components.PaymentDetailsError$Outbound | undefined;
111
119
  payout?: components.PayoutDetailsError$Outbound | undefined;
120
+ customAmountPayment?:
121
+ | components.CustomAmountPaymentDetailsError$Outbound
122
+ | undefined;
112
123
  lineItems?:
113
124
  | components.CreatePaymentLinkLineItemsValidationError$Outbound
114
125
  | undefined;
@@ -133,6 +144,8 @@ export const CreatePaymentLinkError$outboundSchema: z.ZodType<
133
144
  display: components.DisplayOptionsError$outboundSchema.optional(),
134
145
  payment: components.PaymentDetailsError$outboundSchema.optional(),
135
146
  payout: components.PayoutDetailsError$outboundSchema.optional(),
147
+ customAmountPayment: components
148
+ .CustomAmountPaymentDetailsError$outboundSchema.optional(),
136
149
  lineItems: components
137
150
  .CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
138
151
  amountDetails: components
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import * as types from "../../types/primitives.js";
7
+ import { MoovError } from "./mooverror.js";
8
+
9
+ /**
10
+ * Descriptions of any field validations that failed while parsing the deposit account payload.
11
+ */
12
+ export type DepositAccountValidationErrorData = {
13
+ /**
14
+ * An error describing why the X-Source-System header was missing or unsupported.
15
+ */
16
+ sourceSystem?: string | undefined;
17
+ /**
18
+ * An error describing why the request body could not be parsed for the given source system.
19
+ */
20
+ body?: string | undefined;
21
+ };
22
+
23
+ /**
24
+ * Descriptions of any field validations that failed while parsing the deposit account payload.
25
+ */
26
+ export class DepositAccountValidationError extends MoovError {
27
+ /**
28
+ * An error describing why the X-Source-System header was missing or unsupported.
29
+ */
30
+ sourceSystem?: string | undefined;
31
+
32
+ /** The original data that was passed to this error instance. */
33
+ data$: DepositAccountValidationErrorData;
34
+
35
+ constructor(
36
+ err: DepositAccountValidationErrorData,
37
+ httpMeta: { response: Response; request: Request; body: string },
38
+ ) {
39
+ const message = "message" in err && typeof err.message === "string"
40
+ ? err.message
41
+ : `API error occurred: ${JSON.stringify(err)}`;
42
+ super(message, httpMeta);
43
+ this.data$ = err;
44
+ if (err.sourceSystem != null) this.sourceSystem = err.sourceSystem;
45
+
46
+ this.name = "DepositAccountValidationError";
47
+ }
48
+ }
49
+
50
+ /** @internal */
51
+ export const DepositAccountValidationError$inboundSchema: z.ZodType<
52
+ DepositAccountValidationError,
53
+ z.ZodTypeDef,
54
+ unknown
55
+ > = z.object({
56
+ sourceSystem: types.optional(types.string()),
57
+ body: types.optional(types.string()),
58
+ request$: z.instanceof(Request),
59
+ response$: z.instanceof(Response),
60
+ body$: z.string(),
61
+ })
62
+ .transform((v) => {
63
+ return new DepositAccountValidationError(v, {
64
+ request: v.request$,
65
+ response: v.response$,
66
+ body: v.body$,
67
+ });
68
+ });
69
+
70
+ /** @internal */
71
+ export type DepositAccountValidationError$Outbound = {
72
+ sourceSystem?: string | undefined;
73
+ body?: string | undefined;
74
+ };
75
+
76
+ /** @internal */
77
+ export const DepositAccountValidationError$outboundSchema: z.ZodType<
78
+ DepositAccountValidationError$Outbound,
79
+ z.ZodTypeDef,
80
+ DepositAccountValidationError
81
+ > = z.instanceof(DepositAccountValidationError)
82
+ .transform(v => v.data$)
83
+ .pipe(z.object({
84
+ sourceSystem: z.string().optional(),
85
+ body: z.string().optional(),
86
+ }));
@@ -21,6 +21,7 @@ export * from "./createsweepconfigerror.js";
21
21
  export * from "./createticketerror.js";
22
22
  export * from "./createwalletvalidationerror.js";
23
23
  export * from "./createwebhookvalidationerror.js";
24
+ export * from "./depositaccountvalidationerror.js";
24
25
  export * from "./duplicatecarderror.js";
25
26
  export * from "./feeplanagreementerror.js";
26
27
  export * from "./fileuploadvalidationerror.js";