@moovio/sdk 26.5.6 → 26.5.8

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 (349) hide show
  1. package/README.md +30 -18
  2. package/bin/mcp-server.js +166 -45
  3. package/bin/mcp-server.js.map +88 -85
  4. package/funcs/cardIssuingGetFull.d.ts +1 -1
  5. package/funcs/cardIssuingGetFull.js +1 -1
  6. package/funcs/imagesUpload.d.ts +1 -1
  7. package/funcs/imagesUpload.js +1 -1
  8. package/funcs/institutionsSearch.d.ts +1 -1
  9. package/funcs/institutionsSearch.js +1 -1
  10. package/funcs/issuingTransactionsList.js +1 -0
  11. package/funcs/issuingTransactionsList.js.map +1 -1
  12. package/funcs/transfersCreateCancellation.d.ts +3 -0
  13. package/funcs/transfersCreateCancellation.d.ts.map +1 -1
  14. package/funcs/transfersCreateCancellation.js +6 -1
  15. package/funcs/transfersCreateCancellation.js.map +1 -1
  16. package/funcs/transfersCreateReversal.d.ts +3 -0
  17. package/funcs/transfersCreateReversal.d.ts.map +1 -1
  18. package/funcs/transfersCreateReversal.js +3 -0
  19. package/funcs/transfersCreateReversal.js.map +1 -1
  20. package/funcs/transfersList.js +2 -0
  21. package/funcs/transfersList.js.map +1 -1
  22. package/funcs/transfersListCancellations.js +1 -1
  23. package/funcs/transfersListCancellations.js.map +1 -1
  24. package/funcs/transfersListRefunds.js +1 -1
  25. package/funcs/transfersListRefunds.js.map +1 -1
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +3 -3
  28. package/lib/config.js +3 -3
  29. package/lib/encodings.d.ts +10 -9
  30. package/lib/encodings.d.ts.map +1 -1
  31. package/lib/encodings.js +29 -13
  32. package/lib/encodings.js.map +1 -1
  33. package/mcp-server/mcp-server.js +1 -1
  34. package/mcp-server/server.js +1 -1
  35. package/mcp-server/tools/avatarsGet.js +1 -1
  36. package/mcp-server/tools/cardIssuingGetFull.js +1 -1
  37. package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
  38. package/mcp-server/tools/enrichedAddressGet.js +1 -1
  39. package/mcp-server/tools/enrichedProfileGet.js +1 -1
  40. package/mcp-server/tools/imagesUpload.js +1 -1
  41. package/mcp-server/tools/imagesUpload.js.map +1 -1
  42. package/mcp-server/tools/institutionsSearch.js +2 -2
  43. package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
  44. package/mcp-server/tools/transfersCreateCancellation.js +3 -0
  45. package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
  46. package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
  47. package/mcp-server/tools/transfersCreateReversal.js +4 -1
  48. package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
  49. package/mcp-server/tools/transfersListCancellations.js +1 -1
  50. package/models/components/adjustmentfees.d.ts +30 -0
  51. package/models/components/adjustmentfees.d.ts.map +1 -0
  52. package/models/components/adjustmentfees.js +62 -0
  53. package/models/components/adjustmentfees.js.map +1 -0
  54. package/models/components/applicationscope.d.ts +1 -1
  55. package/models/components/applicationscope.js +1 -1
  56. package/models/components/applicationscope.js.map +1 -1
  57. package/models/components/billingadjustment.d.ts +34 -0
  58. package/models/components/billingadjustment.d.ts.map +1 -0
  59. package/models/components/billingadjustment.js +63 -0
  60. package/models/components/billingadjustment.js.map +1 -0
  61. package/models/components/billingsummary.d.ts +15 -10
  62. package/models/components/billingsummary.d.ts.map +1 -1
  63. package/models/components/billingsummary.js +15 -11
  64. package/models/components/billingsummary.js.map +1 -1
  65. package/models/components/cancellation.d.ts +3 -0
  66. package/models/components/cancellation.d.ts.map +1 -1
  67. package/models/components/cancellation.js.map +1 -1
  68. package/models/components/createdtransfer.d.ts +14 -0
  69. package/models/components/createdtransfer.d.ts.map +1 -1
  70. package/models/components/createdtransfer.js +3 -0
  71. package/models/components/createdtransfer.js.map +1 -1
  72. package/models/components/createfeeplanagreement.d.ts +16 -1
  73. package/models/components/createfeeplanagreement.d.ts.map +1 -1
  74. package/models/components/createfeeplanagreement.js +2 -0
  75. package/models/components/createfeeplanagreement.js.map +1 -1
  76. package/models/components/createpaymentlink.d.ts +3 -0
  77. package/models/components/createpaymentlink.d.ts.map +1 -1
  78. package/models/components/createpaymentlink.js.map +1 -1
  79. package/models/components/createrefund.d.ts +2 -2
  80. package/models/components/createreversal.d.ts +6 -1
  81. package/models/components/createreversal.d.ts.map +1 -1
  82. package/models/components/createreversal.js.map +1 -1
  83. package/models/components/facilitatorfee.d.ts +2 -2
  84. package/models/components/feeplanagreement.d.ts +10 -0
  85. package/models/components/feeplanagreement.d.ts.map +1 -1
  86. package/models/components/feeplanagreement.js +5 -0
  87. package/models/components/feeplanagreement.js.map +1 -1
  88. package/models/components/fullissuedcard.d.ts +4 -0
  89. package/models/components/fullissuedcard.d.ts.map +1 -1
  90. package/models/components/fullissuedcard.js.map +1 -1
  91. package/models/components/index.d.ts +3 -0
  92. package/models/components/index.d.ts.map +1 -1
  93. package/models/components/index.js +3 -0
  94. package/models/components/index.js.map +1 -1
  95. package/models/components/issuedcard.d.ts +4 -0
  96. package/models/components/issuedcard.d.ts.map +1 -1
  97. package/models/components/issuedcard.js.map +1 -1
  98. package/models/components/issuedcardstate.d.ts +3 -0
  99. package/models/components/issuedcardstate.d.ts.map +1 -1
  100. package/models/components/issuedcardstate.js +2 -0
  101. package/models/components/issuedcardstate.js.map +1 -1
  102. package/models/components/issuingcontrols.d.ts +3 -0
  103. package/models/components/issuingcontrols.d.ts.map +1 -1
  104. package/models/components/issuingcontrols.js.map +1 -1
  105. package/models/components/partnerpricingagreement.d.ts +12 -2
  106. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  107. package/models/components/partnerpricingagreement.js +5 -0
  108. package/models/components/partnerpricingagreement.js.map +1 -1
  109. package/models/components/paymentlink.d.ts +3 -0
  110. package/models/components/paymentlink.d.ts.map +1 -1
  111. package/models/components/paymentlink.js.map +1 -1
  112. package/models/components/paymentlinkpayoutdetails.d.ts +4 -6
  113. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  114. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  115. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +4 -6
  116. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  117. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  118. package/models/components/paymentmethodswallet.d.ts +1 -0
  119. package/models/components/paymentmethodswallet.d.ts.map +1 -1
  120. package/models/components/paymentmethodswallet.js.map +1 -1
  121. package/models/components/pushoptions.d.ts +4 -6
  122. package/models/components/pushoptions.d.ts.map +1 -1
  123. package/models/components/pushoptions.js.map +1 -1
  124. package/models/components/pushoptionsupdate.d.ts +4 -6
  125. package/models/components/pushoptionsupdate.d.ts.map +1 -1
  126. package/models/components/pushoptionsupdate.js.map +1 -1
  127. package/models/components/requestcard.d.ts +3 -0
  128. package/models/components/requestcard.d.ts.map +1 -1
  129. package/models/components/requestcard.js.map +1 -1
  130. package/models/components/requirementid.d.ts +7 -0
  131. package/models/components/requirementid.d.ts.map +1 -1
  132. package/models/components/requirementid.js +7 -0
  133. package/models/components/requirementid.js.map +1 -1
  134. package/models/components/reversedwithcancellation.d.ts +3 -0
  135. package/models/components/reversedwithcancellation.d.ts.map +1 -1
  136. package/models/components/reversedwithcancellation.js.map +1 -1
  137. package/models/components/statement.d.ts +6 -0
  138. package/models/components/statement.d.ts.map +1 -1
  139. package/models/components/statement.js +3 -0
  140. package/models/components/statement.js.map +1 -1
  141. package/models/components/sweepconfig.d.ts +2 -2
  142. package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
  143. package/models/components/transfer.d.ts +14 -0
  144. package/models/components/transfer.d.ts.map +1 -1
  145. package/models/components/transfer.js +3 -0
  146. package/models/components/transfer.js.map +1 -1
  147. package/models/components/transfercapture.d.ts +28 -0
  148. package/models/components/transfercapture.d.ts.map +1 -0
  149. package/models/components/transfercapture.js +60 -0
  150. package/models/components/transfercapture.js.map +1 -0
  151. package/models/components/transferpaymentmethodswallet.d.ts +1 -0
  152. package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
  153. package/models/components/transferpaymentmethodswallet.js.map +1 -1
  154. package/models/components/updateissuedcard.d.ts +2 -0
  155. package/models/components/updateissuedcard.d.ts.map +1 -1
  156. package/models/components/updateissuedcard.js.map +1 -1
  157. package/models/components/updateissuedcardstate.d.ts +6 -0
  158. package/models/components/updateissuedcardstate.d.ts.map +1 -1
  159. package/models/components/updateissuedcardstate.js +4 -0
  160. package/models/components/updateissuedcardstate.js.map +1 -1
  161. package/models/components/updatepaymentlink.d.ts +3 -0
  162. package/models/components/updatepaymentlink.d.ts.map +1 -1
  163. package/models/components/updatepaymentlink.js.map +1 -1
  164. package/models/components/wallet.d.ts +1 -0
  165. package/models/components/wallet.d.ts.map +1 -1
  166. package/models/components/wallet.js.map +1 -1
  167. package/models/components/wallettype.d.ts +3 -0
  168. package/models/components/wallettype.d.ts.map +1 -1
  169. package/models/components/wallettype.js +2 -0
  170. package/models/components/wallettype.js.map +1 -1
  171. package/models/components/webhookdatatransferstatus.d.ts +3 -0
  172. package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
  173. package/models/components/webhookdatatransferstatus.js +3 -0
  174. package/models/components/webhookdatatransferstatus.js.map +1 -1
  175. package/models/errors/transfer.d.ts +25 -0
  176. package/models/errors/transfer.d.ts.map +1 -1
  177. package/models/errors/transfer.js +4 -0
  178. package/models/errors/transfer.js.map +1 -1
  179. package/models/operations/listaccounts.d.ts +3 -0
  180. package/models/operations/listaccounts.d.ts.map +1 -1
  181. package/models/operations/listaccounts.js.map +1 -1
  182. package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
  183. package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
  184. package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
  185. package/models/operations/listdisputes.d.ts +3 -0
  186. package/models/operations/listdisputes.d.ts.map +1 -1
  187. package/models/operations/listdisputes.js.map +1 -1
  188. package/models/operations/listfeeplanagreements.d.ts +3 -0
  189. package/models/operations/listfeeplanagreements.d.ts.map +1 -1
  190. package/models/operations/listfeeplanagreements.js.map +1 -1
  191. package/models/operations/listfeerevenue.d.ts +3 -0
  192. package/models/operations/listfeerevenue.d.ts.map +1 -1
  193. package/models/operations/listfeerevenue.js.map +1 -1
  194. package/models/operations/listinvoices.d.ts +3 -0
  195. package/models/operations/listinvoices.d.ts.map +1 -1
  196. package/models/operations/listinvoices.js.map +1 -1
  197. package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
  198. package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
  199. package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
  200. package/models/operations/listissuedcardauthorizations.d.ts +3 -0
  201. package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
  202. package/models/operations/listissuedcardauthorizations.js.map +1 -1
  203. package/models/operations/listissuedcards.d.ts +3 -0
  204. package/models/operations/listissuedcards.d.ts.map +1 -1
  205. package/models/operations/listissuedcards.js.map +1 -1
  206. package/models/operations/listissuedcardtransactions.d.ts +8 -0
  207. package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
  208. package/models/operations/listissuedcardtransactions.js +2 -0
  209. package/models/operations/listissuedcardtransactions.js.map +1 -1
  210. package/models/operations/listpartnerpricingagreements.d.ts +3 -0
  211. package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
  212. package/models/operations/listpartnerpricingagreements.js.map +1 -1
  213. package/models/operations/listpaymentlinks.d.ts +3 -0
  214. package/models/operations/listpaymentlinks.d.ts.map +1 -1
  215. package/models/operations/listpaymentlinks.js.map +1 -1
  216. package/models/operations/listproducts.d.ts +3 -0
  217. package/models/operations/listproducts.d.ts.map +1 -1
  218. package/models/operations/listproducts.js.map +1 -1
  219. package/models/operations/listresidualfees.d.ts +3 -0
  220. package/models/operations/listresidualfees.d.ts.map +1 -1
  221. package/models/operations/listresidualfees.js.map +1 -1
  222. package/models/operations/listresiduals.d.ts +3 -0
  223. package/models/operations/listresiduals.d.ts.map +1 -1
  224. package/models/operations/listresiduals.js.map +1 -1
  225. package/models/operations/listschedules.d.ts +3 -0
  226. package/models/operations/listschedules.d.ts.map +1 -1
  227. package/models/operations/listschedules.js.map +1 -1
  228. package/models/operations/liststatements.d.ts +3 -0
  229. package/models/operations/liststatements.d.ts.map +1 -1
  230. package/models/operations/liststatements.js.map +1 -1
  231. package/models/operations/listsweeps.d.ts +3 -0
  232. package/models/operations/listsweeps.d.ts.map +1 -1
  233. package/models/operations/listsweeps.js.map +1 -1
  234. package/models/operations/listtickets.d.ts +3 -0
  235. package/models/operations/listtickets.d.ts.map +1 -1
  236. package/models/operations/listtickets.js.map +1 -1
  237. package/models/operations/listtransfers.d.ts +13 -0
  238. package/models/operations/listtransfers.d.ts.map +1 -1
  239. package/models/operations/listtransfers.js +4 -0
  240. package/models/operations/listtransfers.js.map +1 -1
  241. package/models/operations/listwallets.d.ts +3 -0
  242. package/models/operations/listwallets.d.ts.map +1 -1
  243. package/models/operations/listwallets.js.map +1 -1
  244. package/models/operations/listwallettransactions.d.ts +3 -0
  245. package/models/operations/listwallettransactions.d.ts.map +1 -1
  246. package/models/operations/listwallettransactions.js.map +1 -1
  247. package/models/operations/retrievefees.d.ts +3 -0
  248. package/models/operations/retrievefees.d.ts.map +1 -1
  249. package/models/operations/retrievefees.js.map +1 -1
  250. package/package.json +1 -1
  251. package/sdk/cardissuing.d.ts +1 -1
  252. package/sdk/cardissuing.js +1 -1
  253. package/sdk/images.d.ts +1 -1
  254. package/sdk/images.js +1 -1
  255. package/sdk/institutions.d.ts +1 -1
  256. package/sdk/institutions.js +1 -1
  257. package/sdk/transfers.d.ts +6 -0
  258. package/sdk/transfers.d.ts.map +1 -1
  259. package/sdk/transfers.js +6 -0
  260. package/sdk/transfers.js.map +1 -1
  261. package/src/funcs/cardIssuingGetFull.ts +1 -1
  262. package/src/funcs/imagesUpload.ts +1 -1
  263. package/src/funcs/institutionsSearch.ts +1 -1
  264. package/src/funcs/issuingTransactionsList.ts +1 -0
  265. package/src/funcs/transfersCreateCancellation.ts +6 -1
  266. package/src/funcs/transfersCreateReversal.ts +3 -0
  267. package/src/funcs/transfersList.ts +2 -0
  268. package/src/funcs/transfersListCancellations.ts +1 -1
  269. package/src/funcs/transfersListRefunds.ts +1 -1
  270. package/src/lib/config.ts +3 -3
  271. package/src/lib/encodings.ts +58 -23
  272. package/src/mcp-server/mcp-server.ts +1 -1
  273. package/src/mcp-server/server.ts +1 -1
  274. package/src/mcp-server/tools/avatarsGet.ts +1 -1
  275. package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
  276. package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
  277. package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
  278. package/src/mcp-server/tools/imagesUpload.ts +1 -1
  279. package/src/mcp-server/tools/institutionsSearch.ts +2 -2
  280. package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
  281. package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
  282. package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
  283. package/src/models/components/adjustmentfees.ts +72 -0
  284. package/src/models/components/applicationscope.ts +1 -1
  285. package/src/models/components/billingadjustment.ts +77 -0
  286. package/src/models/components/billingsummary.ts +34 -19
  287. package/src/models/components/cancellation.ts +3 -0
  288. package/src/models/components/createdtransfer.ts +21 -0
  289. package/src/models/components/createfeeplanagreement.ts +18 -1
  290. package/src/models/components/createpaymentlink.ts +3 -0
  291. package/src/models/components/createrefund.ts +2 -2
  292. package/src/models/components/createreversal.ts +6 -1
  293. package/src/models/components/facilitatorfee.ts +2 -2
  294. package/src/models/components/feeplanagreement.ts +17 -0
  295. package/src/models/components/fullissuedcard.ts +4 -0
  296. package/src/models/components/index.ts +3 -0
  297. package/src/models/components/issuedcard.ts +4 -0
  298. package/src/models/components/issuedcardstate.ts +3 -0
  299. package/src/models/components/issuingcontrols.ts +3 -0
  300. package/src/models/components/partnerpricingagreement.ts +19 -2
  301. package/src/models/components/paymentlink.ts +3 -0
  302. package/src/models/components/paymentlinkpayoutdetails.ts +4 -6
  303. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +4 -6
  304. package/src/models/components/paymentmethodswallet.ts +1 -0
  305. package/src/models/components/pushoptions.ts +4 -6
  306. package/src/models/components/pushoptionsupdate.ts +4 -6
  307. package/src/models/components/requestcard.ts +3 -0
  308. package/src/models/components/requirementid.ts +14 -0
  309. package/src/models/components/reversedwithcancellation.ts +3 -0
  310. package/src/models/components/statement.ts +13 -0
  311. package/src/models/components/sweepconfig.ts +2 -2
  312. package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
  313. package/src/models/components/transfer.ts +21 -0
  314. package/src/models/components/transfercapture.ts +62 -0
  315. package/src/models/components/transferpaymentmethodswallet.ts +1 -0
  316. package/src/models/components/updateissuedcard.ts +2 -0
  317. package/src/models/components/updateissuedcardstate.ts +6 -0
  318. package/src/models/components/updatepaymentlink.ts +3 -0
  319. package/src/models/components/wallet.ts +1 -0
  320. package/src/models/components/wallettype.ts +3 -0
  321. package/src/models/components/webhookdatatransferstatus.ts +3 -0
  322. package/src/models/errors/transfer.ts +28 -0
  323. package/src/models/operations/listaccounts.ts +3 -0
  324. package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
  325. package/src/models/operations/listdisputes.ts +3 -0
  326. package/src/models/operations/listfeeplanagreements.ts +3 -0
  327. package/src/models/operations/listfeerevenue.ts +3 -0
  328. package/src/models/operations/listinvoices.ts +3 -0
  329. package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
  330. package/src/models/operations/listissuedcardauthorizations.ts +3 -0
  331. package/src/models/operations/listissuedcards.ts +3 -0
  332. package/src/models/operations/listissuedcardtransactions.ts +10 -0
  333. package/src/models/operations/listpartnerpricingagreements.ts +3 -0
  334. package/src/models/operations/listpaymentlinks.ts +3 -0
  335. package/src/models/operations/listproducts.ts +3 -0
  336. package/src/models/operations/listresidualfees.ts +3 -0
  337. package/src/models/operations/listresiduals.ts +3 -0
  338. package/src/models/operations/listschedules.ts +3 -0
  339. package/src/models/operations/liststatements.ts +3 -0
  340. package/src/models/operations/listsweeps.ts +3 -0
  341. package/src/models/operations/listtickets.ts +3 -0
  342. package/src/models/operations/listtransfers.ts +17 -0
  343. package/src/models/operations/listwallets.ts +3 -0
  344. package/src/models/operations/listwallettransactions.ts +3 -0
  345. package/src/models/operations/retrievefees.ts +3 -0
  346. package/src/sdk/cardissuing.ts +1 -1
  347. package/src/sdk/images.ts +1 -1
  348. package/src/sdk/institutions.ts +1 -1
  349. package/src/sdk/transfers.ts +6 -0
@@ -0,0 +1,72 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ BillingAdjustment,
11
+ BillingAdjustment$inboundSchema,
12
+ BillingAdjustment$Outbound,
13
+ BillingAdjustment$outboundSchema,
14
+ } from "./billingadjustment.js";
15
+ import {
16
+ BillingCountAndAmount,
17
+ BillingCountAndAmount$inboundSchema,
18
+ BillingCountAndAmount$Outbound,
19
+ BillingCountAndAmount$outboundSchema,
20
+ } from "./billingcountandamount.js";
21
+
22
+ /**
23
+ * A detailed breakdown of adjustment (correction) fees by fee name.
24
+ */
25
+ export type AdjustmentFees = {
26
+ /**
27
+ * Adjustment fees grouped by fee name.
28
+ */
29
+ items: Array<BillingAdjustment>;
30
+ /**
31
+ * Total adjustment fees.
32
+ */
33
+ total: BillingCountAndAmount;
34
+ };
35
+
36
+ /** @internal */
37
+ export const AdjustmentFees$inboundSchema: z.ZodType<
38
+ AdjustmentFees,
39
+ z.ZodTypeDef,
40
+ unknown
41
+ > = z.object({
42
+ items: z.array(BillingAdjustment$inboundSchema),
43
+ total: BillingCountAndAmount$inboundSchema,
44
+ });
45
+ /** @internal */
46
+ export type AdjustmentFees$Outbound = {
47
+ items: Array<BillingAdjustment$Outbound>;
48
+ total: BillingCountAndAmount$Outbound;
49
+ };
50
+
51
+ /** @internal */
52
+ export const AdjustmentFees$outboundSchema: z.ZodType<
53
+ AdjustmentFees$Outbound,
54
+ z.ZodTypeDef,
55
+ AdjustmentFees
56
+ > = z.object({
57
+ items: z.array(BillingAdjustment$outboundSchema),
58
+ total: BillingCountAndAmount$outboundSchema,
59
+ });
60
+
61
+ export function adjustmentFeesToJSON(adjustmentFees: AdjustmentFees): string {
62
+ return JSON.stringify(AdjustmentFees$outboundSchema.parse(adjustmentFees));
63
+ }
64
+ export function adjustmentFeesFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<AdjustmentFees, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => AdjustmentFees$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'AdjustmentFees' from JSON`,
71
+ );
72
+ }
@@ -29,7 +29,7 @@ export const ApplicationScope = {
29
29
  FilesWrite: "files.write",
30
30
  IssuedCardsRead: "issued-cards.read",
31
31
  IssuedCardsWrite: "issued-cards.write",
32
- IssuedCardsReadSecure: "issued-cards.read-secure",
32
+ IssuedCardsReadPrivate: "issued-cards.read-private",
33
33
  PaymentMethodsRead: "payment-methods.read",
34
34
  PingRead: "ping.read",
35
35
  ProfileEnrichmentRead: "profile-enrichment.read",
@@ -0,0 +1,77 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AmountDecimal,
11
+ AmountDecimal$inboundSchema,
12
+ AmountDecimal$Outbound,
13
+ AmountDecimal$outboundSchema,
14
+ } from "./amountdecimal.js";
15
+
16
+ /**
17
+ * An adjustment (correction) fee grouped by its statement line-item name.
18
+ */
19
+ export type BillingAdjustment = {
20
+ /**
21
+ * The name of the adjustment fee, shown as the statement line item.
22
+ */
23
+ feeName: string;
24
+ /**
25
+ * The number of adjustments with this fee name.
26
+ */
27
+ count: number;
28
+ /**
29
+ * The total amount for this fee name. May be negative for a credit/refund.
30
+ */
31
+ amount: AmountDecimal;
32
+ };
33
+
34
+ /** @internal */
35
+ export const BillingAdjustment$inboundSchema: z.ZodType<
36
+ BillingAdjustment,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ feeName: z.string(),
41
+ count: z.number().int(),
42
+ amount: AmountDecimal$inboundSchema,
43
+ });
44
+ /** @internal */
45
+ export type BillingAdjustment$Outbound = {
46
+ feeName: string;
47
+ count: number;
48
+ amount: AmountDecimal$Outbound;
49
+ };
50
+
51
+ /** @internal */
52
+ export const BillingAdjustment$outboundSchema: z.ZodType<
53
+ BillingAdjustment$Outbound,
54
+ z.ZodTypeDef,
55
+ BillingAdjustment
56
+ > = z.object({
57
+ feeName: z.string(),
58
+ count: z.number().int(),
59
+ amount: AmountDecimal$outboundSchema,
60
+ });
61
+
62
+ export function billingAdjustmentToJSON(
63
+ billingAdjustment: BillingAdjustment,
64
+ ): string {
65
+ return JSON.stringify(
66
+ BillingAdjustment$outboundSchema.parse(billingAdjustment),
67
+ );
68
+ }
69
+ export function billingAdjustmentFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<BillingAdjustment, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => BillingAdjustment$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'BillingAdjustment' from JSON`,
76
+ );
77
+ }
@@ -110,11 +110,11 @@ export type BillingSummaryPlatformFees = {
110
110
  };
111
111
 
112
112
  /**
113
- * The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
113
+ * The total amount of adjustment fees. This field is deprecated and will be removed in a future release. Use adjustments.total.
114
114
  *
115
115
  * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
116
116
  */
117
- export type AdjustmentFees = {
117
+ export type BillingSummaryAdjustmentFees = {
118
118
  /**
119
119
  * A 3-letter ISO 4217 currency code.
120
120
  */
@@ -176,11 +176,11 @@ export type BillingSummary = {
176
176
  */
177
177
  accountFees?: BillingSummaryDetails | undefined;
178
178
  /**
179
- * The total amount of adjustment fees. This field is deprecated and will be removed in a future release.
179
+ * The total amount of adjustment fees. This field is deprecated and will be removed in a future release. Use adjustments.total.
180
180
  *
181
181
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
182
182
  */
183
- adjustmentFees?: AdjustmentFees | undefined;
183
+ adjustmentFees?: BillingSummaryAdjustmentFees | undefined;
184
184
  /**
185
185
  * The total amount of other card fees. This field is deprecated and will be removed in a future release. Use summary.otherCardFees.
186
186
  *
@@ -215,6 +215,10 @@ export type BillingSummary = {
215
215
  * Final partner payment after deducting monthlyPartnerCosts.
216
216
  */
217
217
  netPartnerPayment?: AmountDecimal | undefined;
218
+ /**
219
+ * Final partner payment after deducting monthlyPartnerCosts and any adjustments.
220
+ */
221
+ totalNetPartnerPayment?: AmountDecimal | undefined;
218
222
  };
219
223
 
220
224
  /** @internal */
@@ -357,8 +361,8 @@ export function billingSummaryPlatformFeesFromJSON(
357
361
  }
358
362
 
359
363
  /** @internal */
360
- export const AdjustmentFees$inboundSchema: z.ZodType<
361
- AdjustmentFees,
364
+ export const BillingSummaryAdjustmentFees$inboundSchema: z.ZodType<
365
+ BillingSummaryAdjustmentFees,
362
366
  z.ZodTypeDef,
363
367
  unknown
364
368
  > = z.object({
@@ -366,31 +370,37 @@ export const AdjustmentFees$inboundSchema: z.ZodType<
366
370
  valueDecimal: z.string(),
367
371
  });
368
372
  /** @internal */
369
- export type AdjustmentFees$Outbound = {
373
+ export type BillingSummaryAdjustmentFees$Outbound = {
370
374
  currency: string;
371
375
  valueDecimal: string;
372
376
  };
373
377
 
374
378
  /** @internal */
375
- export const AdjustmentFees$outboundSchema: z.ZodType<
376
- AdjustmentFees$Outbound,
379
+ export const BillingSummaryAdjustmentFees$outboundSchema: z.ZodType<
380
+ BillingSummaryAdjustmentFees$Outbound,
377
381
  z.ZodTypeDef,
378
- AdjustmentFees
382
+ BillingSummaryAdjustmentFees
379
383
  > = z.object({
380
384
  currency: z.string(),
381
385
  valueDecimal: z.string(),
382
386
  });
383
387
 
384
- export function adjustmentFeesToJSON(adjustmentFees: AdjustmentFees): string {
385
- return JSON.stringify(AdjustmentFees$outboundSchema.parse(adjustmentFees));
388
+ export function billingSummaryAdjustmentFeesToJSON(
389
+ billingSummaryAdjustmentFees: BillingSummaryAdjustmentFees,
390
+ ): string {
391
+ return JSON.stringify(
392
+ BillingSummaryAdjustmentFees$outboundSchema.parse(
393
+ billingSummaryAdjustmentFees,
394
+ ),
395
+ );
386
396
  }
387
- export function adjustmentFeesFromJSON(
397
+ export function billingSummaryAdjustmentFeesFromJSON(
388
398
  jsonString: string,
389
- ): SafeParseResult<AdjustmentFees, SDKValidationError> {
399
+ ): SafeParseResult<BillingSummaryAdjustmentFees, SDKValidationError> {
390
400
  return safeParse(
391
401
  jsonString,
392
- (x) => AdjustmentFees$inboundSchema.parse(JSON.parse(x)),
393
- `Failed to parse 'AdjustmentFees' from JSON`,
402
+ (x) => BillingSummaryAdjustmentFees$inboundSchema.parse(JSON.parse(x)),
403
+ `Failed to parse 'BillingSummaryAdjustmentFees' from JSON`,
394
404
  );
395
405
  }
396
406
 
@@ -444,7 +454,8 @@ export const BillingSummary$inboundSchema: z.ZodType<
444
454
  platformFees: z.lazy(() => BillingSummaryPlatformFees$inboundSchema)
445
455
  .optional(),
446
456
  accountFees: BillingSummaryDetails$inboundSchema.optional(),
447
- adjustmentFees: z.lazy(() => AdjustmentFees$inboundSchema).optional(),
457
+ adjustmentFees: z.lazy(() => BillingSummaryAdjustmentFees$inboundSchema)
458
+ .optional(),
448
459
  otherFees: z.lazy(() => OtherFees$inboundSchema).optional(),
449
460
  otherCardFees: BillingSummaryDetails$inboundSchema.optional(),
450
461
  total: AmountDecimal$inboundSchema.optional(),
@@ -453,6 +464,7 @@ export const BillingSummary$inboundSchema: z.ZodType<
453
464
  residualSubtotal: AmountDecimal$inboundSchema.optional(),
454
465
  monthlyPartnerCosts: PartnerFees$inboundSchema.optional(),
455
466
  netPartnerPayment: AmountDecimal$inboundSchema.optional(),
467
+ totalNetPartnerPayment: AmountDecimal$inboundSchema.optional(),
456
468
  });
457
469
  /** @internal */
458
470
  export type BillingSummary$Outbound = {
@@ -461,7 +473,7 @@ export type BillingSummary$Outbound = {
461
473
  instantPayments?: BillingSummaryDetails$Outbound | undefined;
462
474
  platformFees?: BillingSummaryPlatformFees$Outbound | undefined;
463
475
  accountFees?: BillingSummaryDetails$Outbound | undefined;
464
- adjustmentFees?: AdjustmentFees$Outbound | undefined;
476
+ adjustmentFees?: BillingSummaryAdjustmentFees$Outbound | undefined;
465
477
  otherFees?: OtherFees$Outbound | undefined;
466
478
  otherCardFees?: BillingSummaryDetails$Outbound | undefined;
467
479
  total?: AmountDecimal$Outbound | undefined;
@@ -470,6 +482,7 @@ export type BillingSummary$Outbound = {
470
482
  residualSubtotal?: AmountDecimal$Outbound | undefined;
471
483
  monthlyPartnerCosts?: PartnerFees$Outbound | undefined;
472
484
  netPartnerPayment?: AmountDecimal$Outbound | undefined;
485
+ totalNetPartnerPayment?: AmountDecimal$Outbound | undefined;
473
486
  };
474
487
 
475
488
  /** @internal */
@@ -484,7 +497,8 @@ export const BillingSummary$outboundSchema: z.ZodType<
484
497
  platformFees: z.lazy(() => BillingSummaryPlatformFees$outboundSchema)
485
498
  .optional(),
486
499
  accountFees: BillingSummaryDetails$outboundSchema.optional(),
487
- adjustmentFees: z.lazy(() => AdjustmentFees$outboundSchema).optional(),
500
+ adjustmentFees: z.lazy(() => BillingSummaryAdjustmentFees$outboundSchema)
501
+ .optional(),
488
502
  otherFees: z.lazy(() => OtherFees$outboundSchema).optional(),
489
503
  otherCardFees: BillingSummaryDetails$outboundSchema.optional(),
490
504
  total: AmountDecimal$outboundSchema.optional(),
@@ -493,6 +507,7 @@ export const BillingSummary$outboundSchema: z.ZodType<
493
507
  residualSubtotal: AmountDecimal$outboundSchema.optional(),
494
508
  monthlyPartnerCosts: PartnerFees$outboundSchema.optional(),
495
509
  netPartnerPayment: AmountDecimal$outboundSchema.optional(),
510
+ totalNetPartnerPayment: AmountDecimal$outboundSchema.optional(),
496
511
  });
497
512
 
498
513
  export function billingSummaryToJSON(billingSummary: BillingSummary): string {
@@ -12,6 +12,9 @@ import {
12
12
  CancellationStatus$outboundSchema,
13
13
  } from "./cancellationstatus.js";
14
14
 
15
+ /**
16
+ * Cancellation of a transfer.
17
+ */
15
18
  export type Cancellation = {
16
19
  cancellationID: string;
17
20
  status: CancellationStatus;
@@ -48,6 +48,12 @@ import {
48
48
  TransferAmountDetails$Outbound,
49
49
  TransferAmountDetails$outboundSchema,
50
50
  } from "./transferamountdetails.js";
51
+ import {
52
+ TransferCapture,
53
+ TransferCapture$inboundSchema,
54
+ TransferCapture$Outbound,
55
+ TransferCapture$outboundSchema,
56
+ } from "./transfercapture.js";
51
57
  import {
52
58
  TransferDestination,
53
59
  TransferDestination$inboundSchema,
@@ -91,6 +97,14 @@ export type CreatedTransfer = {
91
97
  * Reason for a transfer's failure.
92
98
  */
93
99
  failureReason?: TransferFailureReason | undefined;
100
+ /**
101
+ * Amount associated with this transfer.
102
+ *
103
+ * @remarks
104
+ * In v2026.10 and later, an auth-capture `card-payment` transfer reports the approved authorization amount until a final capture is created.
105
+ * For these transfers, when a final capture is created, this is updated to the cumulative captured amount.
106
+ * For other transfer types, this is the transfer amount.
107
+ */
94
108
  amount?: Amount | undefined;
95
109
  /**
96
110
  * An optional description of the transfer that is used on receipts and for your own internal use.
@@ -142,6 +156,10 @@ export type CreatedTransfer = {
142
156
  */
143
157
  lineItems?: TransferLineItems | undefined;
144
158
  amountDetails?: TransferAmountDetails | undefined;
159
+ /**
160
+ * The card authorization and capture IDs associated with a transfer.
161
+ */
162
+ capture?: TransferCapture | undefined;
145
163
  };
146
164
 
147
165
  /** @internal */
@@ -179,6 +197,7 @@ export const CreatedTransfer$inboundSchema: z.ZodType<
179
197
  foreignID: z.string().optional(),
180
198
  lineItems: TransferLineItems$inboundSchema.optional(),
181
199
  amountDetails: TransferAmountDetails$inboundSchema.optional(),
200
+ capture: TransferCapture$inboundSchema.optional(),
182
201
  });
183
202
  /** @internal */
184
203
  export type CreatedTransfer$Outbound = {
@@ -210,6 +229,7 @@ export type CreatedTransfer$Outbound = {
210
229
  foreignID?: string | undefined;
211
230
  lineItems?: TransferLineItems$Outbound | undefined;
212
231
  amountDetails?: TransferAmountDetails$Outbound | undefined;
232
+ capture?: TransferCapture$Outbound | undefined;
213
233
  };
214
234
 
215
235
  /** @internal */
@@ -246,6 +266,7 @@ export const CreatedTransfer$outboundSchema: z.ZodType<
246
266
  foreignID: z.string().optional(),
247
267
  lineItems: TransferLineItems$outboundSchema.optional(),
248
268
  amountDetails: TransferAmountDetails$outboundSchema.optional(),
269
+ capture: TransferCapture$outboundSchema.optional(),
249
270
  });
250
271
 
251
272
  export function createdTransferToJSON(
@@ -9,9 +9,23 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type CreateFeePlanAgreement = {
11
11
  /**
12
- * A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
12
+ * A unique identifier for a fee plan: the pricing terms, such as flat-rate or cost-plus, that an account
13
+ *
14
+ * @remarks
15
+ * is charged under its fee plan agreement. Use GET /accounts/{accountID}/fee-plans to list the fee plans
16
+ * available to assign to a given account.
13
17
  */
14
18
  planID: string;
19
+ /**
20
+ * The account's active fee plan agreement to supersede. When set, that agreement is terminated and
21
+ *
22
+ * @remarks
23
+ * the new one takes its place in a single operation, so the account is never without an active fee
24
+ * plan agreement. This new agreement always receives a newly issued agreementID.
25
+ *
26
+ * Omit it if the account doesn't already have an active fee plan agreement.
27
+ */
28
+ priorAgreementID?: string | undefined;
15
29
  };
16
30
 
17
31
  /** @internal */
@@ -21,10 +35,12 @@ export const CreateFeePlanAgreement$inboundSchema: z.ZodType<
21
35
  unknown
22
36
  > = z.object({
23
37
  planID: z.string(),
38
+ priorAgreementID: z.string().optional(),
24
39
  });
25
40
  /** @internal */
26
41
  export type CreateFeePlanAgreement$Outbound = {
27
42
  planID: string;
43
+ priorAgreementID?: string | undefined;
28
44
  };
29
45
 
30
46
  /** @internal */
@@ -34,6 +50,7 @@ export const CreateFeePlanAgreement$outboundSchema: z.ZodType<
34
50
  CreateFeePlanAgreement
35
51
  > = z.object({
36
52
  planID: z.string(),
53
+ priorAgreementID: z.string().optional(),
37
54
  });
38
55
 
39
56
  export function createFeePlanAgreementToJSON(
@@ -97,6 +97,9 @@ export type CreatePaymentLink = {
97
97
  * Options for payment links used to collect payment.
98
98
  */
99
99
  payment?: PaymentLinkPaymentDetails | undefined;
100
+ /**
101
+ * Options for payout links used to send a payout.
102
+ */
100
103
  payout?: PaymentLinkPayoutDetails | undefined;
101
104
  /**
102
105
  * An optional collection of line items for a payment link.
@@ -12,11 +12,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  *
13
13
  * @remarks
14
14
  *
15
- * This request body is optional, an empty body will issue a refund for the full amount of the original transfer.
15
+ * Before v2026.10, this request body may be omitted. In v2026.10 and later, send an empty object to refund the full amount of the original transfer.
16
16
  */
17
17
  export type CreateRefund = {
18
18
  /**
19
- * Amount to refund in cents. If null, the original transfer's full amount will be refunded.
19
+ * Amount to refund. If omitted, the original transfer's full amount will be refunded.
20
20
  */
21
21
  amount?: number | undefined;
22
22
  };
@@ -9,7 +9,12 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type CreateReversal = {
11
11
  /**
12
- * Amount to reverse in cents. Partial amounts will automatically trigger a refund instead of a cancellation.
12
+ * Amount to reverse.
13
+ *
14
+ * @remarks
15
+ * Before v2026.10, specify the amount in integer cents.
16
+ * For supported auth-capture `card-payment` reversals in v2026.10 and later, a transfer with no captures uses the full `capturableAmount`.
17
+ * For those transfers with one final capture, a cancellation uses the full capture amount, while a refund may be partial.
13
18
  */
14
19
  amount: number;
15
20
  };
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  */
13
13
  export type FacilitatorFee = {
14
14
  /**
15
- * Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
15
+ * Total facilitator fee.
16
16
  */
17
17
  total?: number | undefined;
18
18
  /**
@@ -24,7 +24,7 @@ export type FacilitatorFee = {
24
24
  */
25
25
  totalDecimal?: string | undefined;
26
26
  /**
27
- * Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
27
+ * Markup facilitator fee.
28
28
  */
29
29
  markup?: number | undefined;
30
30
  /**
@@ -71,6 +71,14 @@ export type FeePlanAgreement = {
71
71
  * Fixed recurring amount paid in the billing period regardless of usage.
72
72
  */
73
73
  monthlyPlatformFee: MonthlyPlatformFee;
74
+ /**
75
+ * The agreement this one replaced. Only set when the agreement was created by replacing another.
76
+ */
77
+ priorAgreementID?: string | undefined;
78
+ /**
79
+ * The date and time the prior agreement was terminated.
80
+ */
81
+ priorAgreementTerminatedOn?: Date | undefined;
74
82
  };
75
83
 
76
84
  /** @internal */
@@ -90,6 +98,10 @@ export const FeePlanAgreement$inboundSchema: z.ZodType<
90
98
  billableFees: z.array(BillableFee$inboundSchema),
91
99
  minimumCommitment: MinimumCommitment$inboundSchema,
92
100
  monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
101
+ priorAgreementID: z.string().optional(),
102
+ priorAgreementTerminatedOn: z.string().datetime({ offset: true }).transform(
103
+ v => new Date(v)
104
+ ).optional(),
93
105
  });
94
106
  /** @internal */
95
107
  export type FeePlanAgreement$Outbound = {
@@ -104,6 +116,8 @@ export type FeePlanAgreement$Outbound = {
104
116
  billableFees: Array<BillableFee$Outbound>;
105
117
  minimumCommitment: MinimumCommitment$Outbound;
106
118
  monthlyPlatformFee: MonthlyPlatformFee$Outbound;
119
+ priorAgreementID?: string | undefined;
120
+ priorAgreementTerminatedOn?: string | undefined;
107
121
  };
108
122
 
109
123
  /** @internal */
@@ -123,6 +137,9 @@ export const FeePlanAgreement$outboundSchema: z.ZodType<
123
137
  billableFees: z.array(BillableFee$outboundSchema),
124
138
  minimumCommitment: MinimumCommitment$outboundSchema,
125
139
  monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
140
+ priorAgreementID: z.string().optional(),
141
+ priorAgreementTerminatedOn: z.date().transform(v => v.toISOString())
142
+ .optional(),
126
143
  });
127
144
 
128
145
  export function feePlanAgreementToJSON(
@@ -80,6 +80,7 @@ export type FullIssuedCard = {
80
80
  * @remarks
81
81
  *
82
82
  * - `active`: The card is operational and can approve authorizations.
83
+ * - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
83
84
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
84
85
  */
85
86
  state: IssuedCardState;
@@ -87,6 +88,9 @@ export type FullIssuedCard = {
87
88
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
88
89
  */
89
90
  formFactor: IssuedCardFormFactor;
91
+ /**
92
+ * Mutable spend controls for the card.
93
+ */
90
94
  controls?: IssuingControls | undefined;
91
95
  createdOn: Date;
92
96
  updatedOn: Date;
@@ -35,6 +35,7 @@ export * from "./addresserror.js";
35
35
  export * from "./addresssuggestion.js";
36
36
  export * from "./addressupdate.js";
37
37
  export * from "./adjustment.js";
38
+ export * from "./adjustmentfees.js";
38
39
  export * from "./amount.js";
39
40
  export * from "./amountdecimal.js";
40
41
  export * from "./amountdecimalupdate.js";
@@ -70,6 +71,7 @@ export * from "./bankaccountwaitfor.js";
70
71
  export * from "./basicpaymentmethod.js";
71
72
  export * from "./batchgettransfersrequest.js";
72
73
  export * from "./billablefee.js";
74
+ export * from "./billingadjustment.js";
73
75
  export * from "./billingcountandamount.js";
74
76
  export * from "./billinginterchangeprogramfee.js";
75
77
  export * from "./billingsummary.js";
@@ -516,6 +518,7 @@ export * from "./transfer.js";
516
518
  export * from "./transferaccount.js";
517
519
  export * from "./transferachaddendarecord.js";
518
520
  export * from "./transferamountdetails.js";
521
+ export * from "./transfercapture.js";
519
522
  export * from "./transferconfig.js";
520
523
  export * from "./transfercontrols.js";
521
524
  export * from "./transferdestination.js";
@@ -77,6 +77,7 @@ export type IssuedCard = {
77
77
  * @remarks
78
78
  *
79
79
  * - `active`: The card is operational and can approve authorizations.
80
+ * - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
80
81
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
81
82
  */
82
83
  state: IssuedCardState;
@@ -84,6 +85,9 @@ export type IssuedCard = {
84
85
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
85
86
  */
86
87
  formFactor: IssuedCardFormFactor;
88
+ /**
89
+ * Mutable spend controls for the card.
90
+ */
87
91
  controls?: IssuingControls | undefined;
88
92
  createdOn: Date;
89
93
  updatedOn: Date;
@@ -11,10 +11,12 @@ import { ClosedEnum } from "../../types/enums.js";
11
11
  * @remarks
12
12
  *
13
13
  * - `active`: The card is operational and can approve authorizations.
14
+ * - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
14
15
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
15
16
  */
16
17
  export const IssuedCardState = {
17
18
  Active: "active",
19
+ Frozen: "frozen",
18
20
  Closed: "closed",
19
21
  } as const;
20
22
  /**
@@ -23,6 +25,7 @@ export const IssuedCardState = {
23
25
  * @remarks
24
26
  *
25
27
  * - `active`: The card is operational and can approve authorizations.
28
+ * - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
26
29
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
27
30
  */
28
31
  export type IssuedCardState = ClosedEnum<typeof IssuedCardState>;
@@ -13,6 +13,9 @@ import {
13
13
  IssuingVelocityLimit$outboundSchema,
14
14
  } from "./issuingvelocitylimit.js";
15
15
 
16
+ /**
17
+ * Mutable spend controls for the card.
18
+ */
16
19
  export type IssuingControls = {
17
20
  /**
18
21
  * Indicates if the card is single-use. If true, the card closes after the first authorization.
@@ -72,11 +72,19 @@ export type PartnerPricingAgreement = {
72
72
  */
73
73
  monthlyPlatformFee: MonthlyPlatformFee;
74
74
  /**
75
- * The decimal-formatted numerical string of the revenue split for partner.
75
+ * The agreement this one replaced. Only set when the agreement was created by replacing another.
76
+ */
77
+ priorAgreementID?: string | undefined;
78
+ /**
79
+ * The date and time the prior agreement was terminated.
80
+ */
81
+ priorAgreementTerminatedOn?: Date | undefined;
82
+ /**
83
+ * The decimal-formatted numerical string of the revenue split for partner.
76
84
  *
77
85
  * @remarks
78
86
  *
79
- * For example, 2.25% is '2.25'.
87
+ * For example, 2.25% is '2.25'.
80
88
  */
81
89
  revenueShare: string;
82
90
  };
@@ -98,6 +106,10 @@ export const PartnerPricingAgreement$inboundSchema: z.ZodType<
98
106
  billableFees: z.array(BillableFee$inboundSchema),
99
107
  minimumCommitment: MinimumCommitment$inboundSchema,
100
108
  monthlyPlatformFee: MonthlyPlatformFee$inboundSchema,
109
+ priorAgreementID: z.string().optional(),
110
+ priorAgreementTerminatedOn: z.string().datetime({ offset: true }).transform(
111
+ v => new Date(v)
112
+ ).optional(),
101
113
  revenueShare: z.string(),
102
114
  });
103
115
  /** @internal */
@@ -113,6 +125,8 @@ export type PartnerPricingAgreement$Outbound = {
113
125
  billableFees: Array<BillableFee$Outbound>;
114
126
  minimumCommitment: MinimumCommitment$Outbound;
115
127
  monthlyPlatformFee: MonthlyPlatformFee$Outbound;
128
+ priorAgreementID?: string | undefined;
129
+ priorAgreementTerminatedOn?: string | undefined;
116
130
  revenueShare: string;
117
131
  };
118
132
 
@@ -133,6 +147,9 @@ export const PartnerPricingAgreement$outboundSchema: z.ZodType<
133
147
  billableFees: z.array(BillableFee$outboundSchema),
134
148
  minimumCommitment: MinimumCommitment$outboundSchema,
135
149
  monthlyPlatformFee: MonthlyPlatformFee$outboundSchema,
150
+ priorAgreementID: z.string().optional(),
151
+ priorAgreementTerminatedOn: z.date().transform(v => v.toISOString())
152
+ .optional(),
136
153
  revenueShare: z.string(),
137
154
  });
138
155