@moovio/sdk 0.21.14 → 0.21.16

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 (335) hide show
  1. package/README.md +96 -47
  2. package/bin/mcp-server.js +2433 -819
  3. package/bin/mcp-server.js.map +63 -22
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/invoicesCreateInvoice.d.ts +18 -0
  6. package/funcs/invoicesCreateInvoice.d.ts.map +1 -0
  7. package/funcs/invoicesCreateInvoice.js +139 -0
  8. package/funcs/invoicesCreateInvoice.js.map +1 -0
  9. package/funcs/invoicesGetInvoice.d.ts +17 -0
  10. package/funcs/invoicesGetInvoice.d.ts.map +1 -0
  11. package/funcs/invoicesGetInvoice.js +129 -0
  12. package/funcs/invoicesGetInvoice.js.map +1 -0
  13. package/funcs/invoicesListInvoices.d.ts +18 -0
  14. package/funcs/invoicesListInvoices.d.ts.map +1 -0
  15. package/funcs/invoicesListInvoices.js +135 -0
  16. package/funcs/invoicesListInvoices.js.map +1 -0
  17. package/funcs/invoicesMarkPaidInvoice.d.ts +19 -0
  18. package/funcs/invoicesMarkPaidInvoice.d.ts.map +1 -0
  19. package/funcs/invoicesMarkPaidInvoice.js +144 -0
  20. package/funcs/invoicesMarkPaidInvoice.js.map +1 -0
  21. package/funcs/invoicesUpdateInvoice.d.ts +18 -0
  22. package/funcs/invoicesUpdateInvoice.d.ts.map +1 -0
  23. package/funcs/invoicesUpdateInvoice.js +143 -0
  24. package/funcs/invoicesUpdateInvoice.js.map +1 -0
  25. package/jsr.json +1 -1
  26. package/lib/config.d.ts +3 -3
  27. package/lib/config.js +3 -3
  28. package/mcp-server/mcp-server.js +1 -1
  29. package/mcp-server/server.d.ts.map +1 -1
  30. package/mcp-server/server.js +11 -1
  31. package/mcp-server/server.js.map +1 -1
  32. package/mcp-server/tools/invoicesCreateInvoice.d.ts +8 -0
  33. package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +1 -0
  34. package/mcp-server/tools/invoicesCreateInvoice.js +65 -0
  35. package/mcp-server/tools/invoicesCreateInvoice.js.map +1 -0
  36. package/mcp-server/tools/invoicesGetInvoice.d.ts +8 -0
  37. package/mcp-server/tools/invoicesGetInvoice.d.ts.map +1 -0
  38. package/mcp-server/tools/invoicesGetInvoice.js +65 -0
  39. package/mcp-server/tools/invoicesGetInvoice.js.map +1 -0
  40. package/mcp-server/tools/invoicesListInvoices.d.ts +8 -0
  41. package/mcp-server/tools/invoicesListInvoices.d.ts.map +1 -0
  42. package/mcp-server/tools/invoicesListInvoices.js +65 -0
  43. package/mcp-server/tools/invoicesListInvoices.js.map +1 -0
  44. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts +8 -0
  45. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts.map +1 -0
  46. package/mcp-server/tools/invoicesMarkPaidInvoice.js +66 -0
  47. package/mcp-server/tools/invoicesMarkPaidInvoice.js.map +1 -0
  48. package/mcp-server/tools/invoicesUpdateInvoice.d.ts +8 -0
  49. package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +1 -0
  50. package/mcp-server/tools/invoicesUpdateInvoice.js +65 -0
  51. package/mcp-server/tools/invoicesUpdateInvoice.js.map +1 -0
  52. package/models/components/amountdecimalupdate.d.ts +29 -0
  53. package/models/components/amountdecimalupdate.d.ts.map +1 -0
  54. package/models/components/{paymentlinklineitemsupdate.js → amountdecimalupdate.js} +14 -13
  55. package/models/components/amountdecimalupdate.js.map +1 -0
  56. package/models/components/createinvoice.d.ts +32 -0
  57. package/models/components/createinvoice.d.ts.map +1 -0
  58. package/models/components/createinvoice.js +72 -0
  59. package/models/components/createinvoice.js.map +1 -0
  60. package/models/components/createpaymentlink.d.ts +3 -3
  61. package/models/components/createpaymentlink.d.ts.map +1 -1
  62. package/models/components/createpaymentlink.js +3 -3
  63. package/models/components/createpaymentlink.js.map +1 -1
  64. package/models/components/createpaymentlinklineitem.d.ts +50 -0
  65. package/models/components/createpaymentlinklineitem.d.ts.map +1 -0
  66. package/models/components/createpaymentlinklineitem.js +70 -0
  67. package/models/components/createpaymentlinklineitem.js.map +1 -0
  68. package/models/components/createpaymentlinklineitemoption.d.ts +44 -0
  69. package/models/components/createpaymentlinklineitemoption.d.ts.map +1 -0
  70. package/models/components/createpaymentlinklineitemoption.js +67 -0
  71. package/models/components/createpaymentlinklineitemoption.js.map +1 -0
  72. package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts +24 -0
  73. package/models/components/createpaymentlinklineitemoptionvalidationerror.d.ts.map +1 -0
  74. package/models/components/createpaymentlinklineitemoptionvalidationerror.js +65 -0
  75. package/models/components/createpaymentlinklineitemoptionvalidationerror.js.map +1 -0
  76. package/models/components/createpaymentlinklineitems.d.ts +27 -0
  77. package/models/components/createpaymentlinklineitems.d.ts.map +1 -0
  78. package/models/components/{paymentlinklineitemsvalidationerror.js → createpaymentlinklineitems.js} +13 -13
  79. package/models/components/createpaymentlinklineitems.js.map +1 -0
  80. package/models/components/createpaymentlinklineitemsupdate.d.ts +27 -0
  81. package/models/components/createpaymentlinklineitemsupdate.d.ts.map +1 -0
  82. package/models/components/createpaymentlinklineitemsupdate.js +59 -0
  83. package/models/components/createpaymentlinklineitemsupdate.js.map +1 -0
  84. package/models/components/createpaymentlinklineitemsvalidationerror.d.ts +22 -0
  85. package/models/components/createpaymentlinklineitemsvalidationerror.d.ts.map +1 -0
  86. package/models/components/createpaymentlinklineitemsvalidationerror.js +61 -0
  87. package/models/components/createpaymentlinklineitemsvalidationerror.js.map +1 -0
  88. package/models/components/createpaymentlinklineitemvalidationerror.d.ts +31 -0
  89. package/models/components/createpaymentlinklineitemvalidationerror.d.ts.map +1 -0
  90. package/models/components/createpaymentlinklineitemvalidationerror.js +68 -0
  91. package/models/components/createpaymentlinklineitemvalidationerror.js.map +1 -0
  92. package/models/components/index.d.ts +26 -4
  93. package/models/components/index.d.ts.map +1 -1
  94. package/models/components/index.js +26 -4
  95. package/models/components/index.js.map +1 -1
  96. package/models/components/invoice.d.ts +81 -0
  97. package/models/components/invoice.d.ts.map +1 -0
  98. package/models/components/invoice.js +107 -0
  99. package/models/components/invoice.js.map +1 -0
  100. package/models/components/invoiceexternalpayment.d.ts +35 -0
  101. package/models/components/invoiceexternalpayment.d.ts.map +1 -0
  102. package/models/components/invoiceexternalpayment.js +75 -0
  103. package/models/components/invoiceexternalpayment.js.map +1 -0
  104. package/models/components/invoicelineitem.d.ts +45 -0
  105. package/models/components/invoicelineitem.d.ts.map +1 -0
  106. package/models/components/invoicelineitem.js +68 -0
  107. package/models/components/invoicelineitem.js.map +1 -0
  108. package/models/components/invoicelineitemoption.d.ts +39 -0
  109. package/models/components/invoicelineitemoption.d.ts.map +1 -0
  110. package/models/components/invoicelineitemoption.js +65 -0
  111. package/models/components/invoicelineitemoption.js.map +1 -0
  112. package/models/components/invoicelineitemoptionvalidationerror.d.ts +24 -0
  113. package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +1 -0
  114. package/models/components/{paymentlinklineitemoptionvalidationerror.js → invoicelineitemoptionvalidationerror.js} +10 -10
  115. package/models/components/invoicelineitemoptionvalidationerror.js.map +1 -0
  116. package/models/components/invoicelineitems.d.ts +24 -0
  117. package/models/components/invoicelineitems.d.ts.map +1 -0
  118. package/models/components/invoicelineitems.js +59 -0
  119. package/models/components/invoicelineitems.js.map +1 -0
  120. package/models/components/invoicelineitemsupdate.d.ts +24 -0
  121. package/models/components/invoicelineitemsupdate.d.ts.map +1 -0
  122. package/models/components/invoicelineitemsupdate.js +59 -0
  123. package/models/components/invoicelineitemsupdate.js.map +1 -0
  124. package/models/components/invoicelineitemsvalidationerror.d.ts +22 -0
  125. package/models/components/invoicelineitemsvalidationerror.d.ts.map +1 -0
  126. package/models/components/invoicelineitemsvalidationerror.js +59 -0
  127. package/models/components/invoicelineitemsvalidationerror.js.map +1 -0
  128. package/models/components/invoicelineitemvalidationerror.d.ts +31 -0
  129. package/models/components/invoicelineitemvalidationerror.d.ts.map +1 -0
  130. package/models/components/{paymentlinklineitemvalidationerror.js → invoicelineitemvalidationerror.js} +13 -13
  131. package/models/components/invoicelineitemvalidationerror.js.map +1 -0
  132. package/models/components/invoicepayment.d.ts +23 -0
  133. package/models/components/invoicepayment.d.ts.map +1 -0
  134. package/models/components/invoicepayment.js +70 -0
  135. package/models/components/invoicepayment.js.map +1 -0
  136. package/models/components/invoicestatus.d.ts +16 -0
  137. package/models/components/invoicestatus.d.ts.map +1 -0
  138. package/models/components/invoicestatus.js +53 -0
  139. package/models/components/invoicestatus.js.map +1 -0
  140. package/models/components/invoicetransferpayment.d.ts +28 -0
  141. package/models/components/invoicetransferpayment.d.ts.map +1 -0
  142. package/models/components/invoicetransferpayment.js +68 -0
  143. package/models/components/invoicetransferpayment.js.map +1 -0
  144. package/models/components/markinvoicepaid.d.ts +21 -0
  145. package/models/components/markinvoicepaid.d.ts.map +1 -0
  146. package/models/components/markinvoicepaid.js +63 -0
  147. package/models/components/markinvoicepaid.js.map +1 -0
  148. package/models/components/paymentlinklineitem.d.ts +6 -0
  149. package/models/components/paymentlinklineitem.d.ts.map +1 -1
  150. package/models/components/paymentlinklineitem.js +3 -0
  151. package/models/components/paymentlinklineitem.js.map +1 -1
  152. package/models/components/paymentlinklineitemimagemetadata.d.ts +35 -0
  153. package/models/components/paymentlinklineitemimagemetadata.d.ts.map +1 -0
  154. package/models/components/paymentlinklineitemimagemetadata.js +64 -0
  155. package/models/components/paymentlinklineitemimagemetadata.js.map +1 -0
  156. package/models/components/paymentlinklineitemoption.d.ts +6 -0
  157. package/models/components/paymentlinklineitemoption.d.ts.map +1 -1
  158. package/models/components/paymentlinklineitemoption.js +3 -0
  159. package/models/components/paymentlinklineitemoption.js.map +1 -1
  160. package/models/components/updateinvoice.d.ts +36 -0
  161. package/models/components/updateinvoice.d.ts.map +1 -0
  162. package/models/components/updateinvoice.js +71 -0
  163. package/models/components/updateinvoice.js.map +1 -0
  164. package/models/components/updatepaymentlink.d.ts +3 -3
  165. package/models/components/updatepaymentlink.d.ts.map +1 -1
  166. package/models/components/updatepaymentlink.js +3 -3
  167. package/models/components/updatepaymentlink.js.map +1 -1
  168. package/models/components/webhookdata.d.ts +4 -2
  169. package/models/components/webhookdata.d.ts.map +1 -1
  170. package/models/components/webhookdata.js +6 -0
  171. package/models/components/webhookdata.js.map +1 -1
  172. package/models/components/webhookdatainvoicecreated.d.ts +19 -0
  173. package/models/components/webhookdatainvoicecreated.d.ts.map +1 -0
  174. package/models/components/webhookdatainvoicecreated.js +60 -0
  175. package/models/components/webhookdatainvoicecreated.js.map +1 -0
  176. package/models/components/webhookdatainvoiceupdated.d.ts +22 -0
  177. package/models/components/webhookdatainvoiceupdated.d.ts.map +1 -0
  178. package/models/components/webhookdatainvoiceupdated.js +63 -0
  179. package/models/components/webhookdatainvoiceupdated.js.map +1 -0
  180. package/models/components/webhookeventtype.d.ts +2 -0
  181. package/models/components/webhookeventtype.d.ts.map +1 -1
  182. package/models/components/webhookeventtype.js +2 -0
  183. package/models/components/webhookeventtype.js.map +1 -1
  184. package/models/errors/createinvoiceerror.d.ts +40 -0
  185. package/models/errors/createinvoiceerror.d.ts.map +1 -0
  186. package/models/errors/createinvoiceerror.js +100 -0
  187. package/models/errors/createinvoiceerror.js.map +1 -0
  188. package/models/errors/createpaymentlinkerror.d.ts +3 -3
  189. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  190. package/models/errors/createpaymentlinkerror.js +3 -3
  191. package/models/errors/createpaymentlinkerror.js.map +1 -1
  192. package/models/errors/index.d.ts +4 -0
  193. package/models/errors/index.d.ts.map +1 -1
  194. package/models/errors/index.js +4 -0
  195. package/models/errors/index.js.map +1 -1
  196. package/models/errors/listinvoicesvalidationerror.d.ts +33 -0
  197. package/models/errors/listinvoicesvalidationerror.d.ts.map +1 -0
  198. package/models/errors/listinvoicesvalidationerror.js +88 -0
  199. package/models/errors/listinvoicesvalidationerror.js.map +1 -0
  200. package/models/errors/markinvoicepaiderror.d.ts +30 -0
  201. package/models/errors/markinvoicepaiderror.d.ts.map +1 -0
  202. package/models/errors/markinvoicepaiderror.js +83 -0
  203. package/models/errors/markinvoicepaiderror.js.map +1 -0
  204. package/models/errors/updateinvoiceerror.d.ts +40 -0
  205. package/models/errors/updateinvoiceerror.d.ts.map +1 -0
  206. package/models/errors/updateinvoiceerror.js +99 -0
  207. package/models/errors/updateinvoiceerror.js.map +1 -0
  208. package/models/errors/updatepaymentlinkerror.d.ts +3 -3
  209. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  210. package/models/errors/updatepaymentlinkerror.js +3 -3
  211. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  212. package/models/operations/createinvoice.d.ts +66 -0
  213. package/models/operations/createinvoice.d.ts.map +1 -0
  214. package/models/operations/createinvoice.js +122 -0
  215. package/models/operations/createinvoice.js.map +1 -0
  216. package/models/operations/getinvoice.d.ts +66 -0
  217. package/models/operations/getinvoice.d.ts.map +1 -0
  218. package/models/operations/getinvoice.js +114 -0
  219. package/models/operations/getinvoice.js.map +1 -0
  220. package/models/operations/index.d.ts +5 -0
  221. package/models/operations/index.d.ts.map +1 -1
  222. package/models/operations/index.js +5 -0
  223. package/models/operations/index.js.map +1 -1
  224. package/models/operations/listinvoices.d.ts +72 -0
  225. package/models/operations/listinvoices.d.ts.map +1 -0
  226. package/models/operations/listinvoices.js +120 -0
  227. package/models/operations/listinvoices.js.map +1 -0
  228. package/models/operations/markpaidinvoice.d.ts +68 -0
  229. package/models/operations/markpaidinvoice.d.ts.map +1 -0
  230. package/models/operations/markpaidinvoice.js +124 -0
  231. package/models/operations/markpaidinvoice.js.map +1 -0
  232. package/models/operations/updateinvoice.d.ts +68 -0
  233. package/models/operations/updateinvoice.d.ts.map +1 -0
  234. package/models/operations/updateinvoice.js +124 -0
  235. package/models/operations/updateinvoice.js.map +1 -0
  236. package/package.json +1 -1
  237. package/sdk/invoices.d.ts +41 -0
  238. package/sdk/invoices.d.ts.map +1 -0
  239. package/sdk/invoices.js +63 -0
  240. package/sdk/invoices.js.map +1 -0
  241. package/sdk/sdk.d.ts +3 -0
  242. package/sdk/sdk.d.ts.map +1 -1
  243. package/sdk/sdk.js +4 -0
  244. package/sdk/sdk.js.map +1 -1
  245. package/src/funcs/invoicesCreateInvoice.ts +201 -0
  246. package/src/funcs/invoicesGetInvoice.ts +185 -0
  247. package/src/funcs/invoicesListInvoices.ts +194 -0
  248. package/src/funcs/invoicesMarkPaidInvoice.ts +208 -0
  249. package/src/funcs/invoicesUpdateInvoice.ts +207 -0
  250. package/src/lib/config.ts +3 -3
  251. package/src/mcp-server/mcp-server.ts +1 -1
  252. package/src/mcp-server/server.ts +11 -1
  253. package/src/mcp-server/tools/invoicesCreateInvoice.ts +38 -0
  254. package/src/mcp-server/tools/invoicesGetInvoice.ts +38 -0
  255. package/src/mcp-server/tools/invoicesListInvoices.ts +38 -0
  256. package/src/mcp-server/tools/invoicesMarkPaidInvoice.ts +39 -0
  257. package/src/mcp-server/tools/invoicesUpdateInvoice.ts +38 -0
  258. package/src/models/components/amountdecimalupdate.ts +65 -0
  259. package/src/models/components/createinvoice.ts +84 -0
  260. package/src/models/components/createpaymentlink.ts +10 -10
  261. package/src/models/components/createpaymentlinklineitem.ts +104 -0
  262. package/src/models/components/createpaymentlinklineitemoption.ts +93 -0
  263. package/src/models/components/createpaymentlinklineitemoptionvalidationerror.ts +80 -0
  264. package/src/models/components/createpaymentlinklineitems.ts +66 -0
  265. package/src/models/components/createpaymentlinklineitemsupdate.ts +68 -0
  266. package/src/models/components/createpaymentlinklineitemsvalidationerror.ts +71 -0
  267. package/src/models/components/createpaymentlinklineitemvalidationerror.ts +96 -0
  268. package/src/models/components/index.ts +26 -4
  269. package/src/models/components/invoice.ts +178 -0
  270. package/src/models/components/invoiceexternalpayment.ts +91 -0
  271. package/src/models/components/invoicelineitem.ts +95 -0
  272. package/src/models/components/invoicelineitemoption.ts +84 -0
  273. package/src/models/components/{paymentlinklineitemoptionvalidationerror.ts → invoicelineitemoptionvalidationerror.ts} +15 -21
  274. package/src/models/components/invoicelineitems.ts +63 -0
  275. package/src/models/components/invoicelineitemsupdate.ts +63 -0
  276. package/src/models/components/invoicelineitemsvalidationerror.ts +59 -0
  277. package/src/models/components/invoicelineitemvalidationerror.ts +85 -0
  278. package/src/models/components/invoicepayment.ts +77 -0
  279. package/src/models/components/invoicestatus.ts +25 -0
  280. package/src/models/components/invoicetransferpayment.ts +68 -0
  281. package/src/models/components/markinvoicepaid.ts +58 -0
  282. package/src/models/components/paymentlinklineitem.ts +13 -0
  283. package/src/models/components/paymentlinklineitemimagemetadata.ts +77 -0
  284. package/src/models/components/paymentlinklineitemoption.ts +13 -0
  285. package/src/models/components/updateinvoice.ts +94 -0
  286. package/src/models/components/updatepaymentlink.ts +10 -10
  287. package/src/models/components/webhookdata.ts +20 -0
  288. package/src/models/components/webhookdatainvoicecreated.ts +55 -0
  289. package/src/models/components/webhookdatainvoiceupdated.ts +64 -0
  290. package/src/models/components/webhookeventtype.ts +2 -0
  291. package/src/models/errors/createinvoiceerror.ts +102 -0
  292. package/src/models/errors/createpaymentlinkerror.ts +6 -6
  293. package/src/models/errors/index.ts +4 -0
  294. package/src/models/errors/listinvoicesvalidationerror.ts +86 -0
  295. package/src/models/errors/markinvoicepaiderror.ts +78 -0
  296. package/src/models/errors/updateinvoiceerror.ts +100 -0
  297. package/src/models/errors/updatepaymentlinkerror.ts +6 -6
  298. package/src/models/operations/createinvoice.ts +187 -0
  299. package/src/models/operations/getinvoice.ts +179 -0
  300. package/src/models/operations/index.ts +5 -0
  301. package/src/models/operations/listinvoices.ts +191 -0
  302. package/src/models/operations/markpaidinvoice.ts +191 -0
  303. package/src/models/operations/updateinvoice.ts +191 -0
  304. package/src/sdk/invoices.ts +100 -0
  305. package/src/sdk/sdk.ts +6 -0
  306. package/src/types/enums.ts +1 -21
  307. package/src/types/index.ts +2 -1
  308. package/src/types/unrecognized.ts +27 -0
  309. package/types/enums.d.ts +1 -8
  310. package/types/enums.d.ts.map +1 -1
  311. package/types/enums.js +3 -21
  312. package/types/enums.js.map +1 -1
  313. package/types/index.d.ts +2 -1
  314. package/types/index.d.ts.map +1 -1
  315. package/types/index.js +15 -0
  316. package/types/index.js.map +1 -1
  317. package/types/unrecognized.d.ts +10 -0
  318. package/types/unrecognized.d.ts.map +1 -0
  319. package/types/unrecognized.js +26 -0
  320. package/types/unrecognized.js.map +1 -0
  321. package/models/components/paymentlinklineitemoptionvalidationerror.d.ts +0 -24
  322. package/models/components/paymentlinklineitemoptionvalidationerror.d.ts.map +0 -1
  323. package/models/components/paymentlinklineitemoptionvalidationerror.js.map +0 -1
  324. package/models/components/paymentlinklineitemsupdate.d.ts +0 -27
  325. package/models/components/paymentlinklineitemsupdate.d.ts.map +0 -1
  326. package/models/components/paymentlinklineitemsupdate.js.map +0 -1
  327. package/models/components/paymentlinklineitemsvalidationerror.d.ts +0 -22
  328. package/models/components/paymentlinklineitemsvalidationerror.d.ts.map +0 -1
  329. package/models/components/paymentlinklineitemsvalidationerror.js.map +0 -1
  330. package/models/components/paymentlinklineitemvalidationerror.d.ts +0 -31
  331. package/models/components/paymentlinklineitemvalidationerror.d.ts.map +0 -1
  332. package/models/components/paymentlinklineitemvalidationerror.js.map +0 -1
  333. package/src/models/components/paymentlinklineitemsupdate.ts +0 -66
  334. package/src/models/components/paymentlinklineitemsvalidationerror.ts +0 -62
  335. package/src/models/components/paymentlinklineitemvalidationerror.ts +0 -88
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.InvoiceLineItemsValidationError$outboundSchema = exports.InvoiceLineItemsValidationError$inboundSchema = void 0;
40
+ exports.invoiceLineItemsValidationErrorToJSON = invoiceLineItemsValidationErrorToJSON;
41
+ exports.invoiceLineItemsValidationErrorFromJSON = invoiceLineItemsValidationErrorFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const invoicelineitemvalidationerror_js_1 = require("./invoicelineitemvalidationerror.js");
45
+ /** @internal */
46
+ exports.InvoiceLineItemsValidationError$inboundSchema = z.object({
47
+ items: z.record(invoicelineitemvalidationerror_js_1.InvoiceLineItemValidationError$inboundSchema).optional(),
48
+ });
49
+ /** @internal */
50
+ exports.InvoiceLineItemsValidationError$outboundSchema = z.object({
51
+ items: z.record(invoicelineitemvalidationerror_js_1.InvoiceLineItemValidationError$outboundSchema).optional(),
52
+ });
53
+ function invoiceLineItemsValidationErrorToJSON(invoiceLineItemsValidationError) {
54
+ return JSON.stringify(exports.InvoiceLineItemsValidationError$outboundSchema.parse(invoiceLineItemsValidationError));
55
+ }
56
+ function invoiceLineItemsValidationErrorFromJSON(jsonString) {
57
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoiceLineItemsValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceLineItemsValidationError' from JSON`);
58
+ }
59
+ //# sourceMappingURL=invoicelineitemsvalidationerror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicelineitemsvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/invoicelineitemsvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCH,sFAQC;AACD,0FAQC;AAtDD,0CAA4B;AAC5B,qDAAiD;AAGjD,2FAK6C;AAM7C,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,gFAA4C,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,iFAA6C,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,31 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
5
+ import { InvoiceLineItemOptionValidationError, InvoiceLineItemOptionValidationError$Outbound } from "./invoicelineitemoptionvalidationerror.js";
6
+ export type InvoiceLineItemValidationError = {
7
+ productID?: string | undefined;
8
+ name?: string | undefined;
9
+ basePrice?: AmountDecimalValidationError | undefined;
10
+ options?: {
11
+ [k: string]: InvoiceLineItemOptionValidationError;
12
+ } | undefined;
13
+ quantity?: string | undefined;
14
+ };
15
+ /** @internal */
16
+ export declare const InvoiceLineItemValidationError$inboundSchema: z.ZodType<InvoiceLineItemValidationError, z.ZodTypeDef, unknown>;
17
+ /** @internal */
18
+ export type InvoiceLineItemValidationError$Outbound = {
19
+ productID?: string | undefined;
20
+ name?: string | undefined;
21
+ basePrice?: AmountDecimalValidationError$Outbound | undefined;
22
+ options?: {
23
+ [k: string]: InvoiceLineItemOptionValidationError$Outbound;
24
+ } | undefined;
25
+ quantity?: string | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const InvoiceLineItemValidationError$outboundSchema: z.ZodType<InvoiceLineItemValidationError$Outbound, z.ZodTypeDef, InvoiceLineItemValidationError>;
29
+ export declare function invoiceLineItemValidationErrorToJSON(invoiceLineItemValidationError: InvoiceLineItemValidationError): string;
30
+ export declare function invoiceLineItemValidationErrorFromJSON(jsonString: string): SafeParseResult<InvoiceLineItemValidationError, SDKValidationError>;
31
+ //# sourceMappingURL=invoicelineitemvalidationerror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicelineitemvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/invoicelineitemvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iC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GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
@@ -36,35 +36,35 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PaymentLinkLineItemValidationError$outboundSchema = exports.PaymentLinkLineItemValidationError$inboundSchema = void 0;
40
- exports.paymentLinkLineItemValidationErrorToJSON = paymentLinkLineItemValidationErrorToJSON;
41
- exports.paymentLinkLineItemValidationErrorFromJSON = paymentLinkLineItemValidationErrorFromJSON;
39
+ exports.InvoiceLineItemValidationError$outboundSchema = exports.InvoiceLineItemValidationError$inboundSchema = void 0;
40
+ exports.invoiceLineItemValidationErrorToJSON = invoiceLineItemValidationErrorToJSON;
41
+ exports.invoiceLineItemValidationErrorFromJSON = invoiceLineItemValidationErrorFromJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  const amountdecimalvalidationerror_js_1 = require("./amountdecimalvalidationerror.js");
45
- const paymentlinklineitemoptionvalidationerror_js_1 = require("./paymentlinklineitemoptionvalidationerror.js");
45
+ const invoicelineitemoptionvalidationerror_js_1 = require("./invoicelineitemoptionvalidationerror.js");
46
46
  /** @internal */
47
- exports.PaymentLinkLineItemValidationError$inboundSchema = z.object({
47
+ exports.InvoiceLineItemValidationError$inboundSchema = z.object({
48
48
  productID: z.string().optional(),
49
49
  name: z.string().optional(),
50
50
  basePrice: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$inboundSchema.optional(),
51
- options: z.record(paymentlinklineitemoptionvalidationerror_js_1.PaymentLinkLineItemOptionValidationError$inboundSchema)
51
+ options: z.record(invoicelineitemoptionvalidationerror_js_1.InvoiceLineItemOptionValidationError$inboundSchema)
52
52
  .optional(),
53
53
  quantity: z.string().optional(),
54
54
  });
55
55
  /** @internal */
56
- exports.PaymentLinkLineItemValidationError$outboundSchema = z.object({
56
+ exports.InvoiceLineItemValidationError$outboundSchema = z.object({
57
57
  productID: z.string().optional(),
58
58
  name: z.string().optional(),
59
59
  basePrice: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$outboundSchema.optional(),
60
- options: z.record(paymentlinklineitemoptionvalidationerror_js_1.PaymentLinkLineItemOptionValidationError$outboundSchema)
60
+ options: z.record(invoicelineitemoptionvalidationerror_js_1.InvoiceLineItemOptionValidationError$outboundSchema)
61
61
  .optional(),
62
62
  quantity: z.string().optional(),
63
63
  });
64
- function paymentLinkLineItemValidationErrorToJSON(paymentLinkLineItemValidationError) {
65
- return JSON.stringify(exports.PaymentLinkLineItemValidationError$outboundSchema.parse(paymentLinkLineItemValidationError));
64
+ function invoiceLineItemValidationErrorToJSON(invoiceLineItemValidationError) {
65
+ return JSON.stringify(exports.InvoiceLineItemValidationError$outboundSchema.parse(invoiceLineItemValidationError));
66
66
  }
67
- function paymentLinkLineItemValidationErrorFromJSON(jsonString) {
68
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaymentLinkLineItemValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentLinkLineItemValidationError' from JSON`);
67
+ function invoiceLineItemValidationErrorFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoiceLineItemValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceLineItemValidationError' from JSON`);
69
69
  }
70
- //# sourceMappingURL=paymentlinklineitemvalidationerror.js.map
70
+ //# sourceMappingURL=invoicelineitemvalidationerror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicelineitemvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/invoicelineitemvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEH,oFAQC;AACD,wFAQC;AAhFD,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAC3C,uGAKmD;AAUnD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IAChE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,4FAAkD,CAAC;SAClE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,6FAAmD,CAAC;SACnE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,sCAAsC,CACpD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oDAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { InvoiceExternalPayment, InvoiceExternalPayment$Outbound } from "./invoiceexternalpayment.js";
5
+ import { InvoiceTransferPayment, InvoiceTransferPayment$Outbound } from "./invoicetransferpayment.js";
6
+ export type InvoicePayment = (InvoiceExternalPayment & {
7
+ paymentType: "external";
8
+ }) | (InvoiceTransferPayment & {
9
+ paymentType: "transfer";
10
+ });
11
+ /** @internal */
12
+ export declare const InvoicePayment$inboundSchema: z.ZodType<InvoicePayment, z.ZodTypeDef, unknown>;
13
+ /** @internal */
14
+ export type InvoicePayment$Outbound = (InvoiceExternalPayment$Outbound & {
15
+ paymentType: "external";
16
+ }) | (InvoiceTransferPayment$Outbound & {
17
+ paymentType: "transfer";
18
+ });
19
+ /** @internal */
20
+ export declare const InvoicePayment$outboundSchema: z.ZodType<InvoicePayment$Outbound, z.ZodTypeDef, InvoicePayment>;
21
+ export declare function invoicePaymentToJSON(invoicePayment: InvoicePayment): string;
22
+ export declare function invoicePaymentFromJSON(jsonString: string): SafeParseResult<InvoicePayment, SDKValidationError>;
23
+ //# sourceMappingURL=invoicepayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicepayment.d.ts","sourceRoot":"","sources":["../../src/models/components/invoicepayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,cAAc,GACtB,CAAC,sBAAsB,GAAG;IAAE,WAAW,EAAE,UAAU,CAAA;CAAE,CAAC,GACtD,CAAC,sBAAsB,GAAG;IAAE,WAAW,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAC/B,CAAC,+BAA+B,GAAG;IAAE,WAAW,EAAE,UAAU,CAAA;CAAE,CAAC,GAC/D,CAAC,+BAA+B,GAAG;IAAE,WAAW,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEpE,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAYd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.InvoicePayment$outboundSchema = exports.InvoicePayment$inboundSchema = void 0;
40
+ exports.invoicePaymentToJSON = invoicePaymentToJSON;
41
+ exports.invoicePaymentFromJSON = invoicePaymentFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const invoiceexternalpayment_js_1 = require("./invoiceexternalpayment.js");
45
+ const invoicetransferpayment_js_1 = require("./invoicetransferpayment.js");
46
+ /** @internal */
47
+ exports.InvoicePayment$inboundSchema = z.union([
48
+ invoiceexternalpayment_js_1.InvoiceExternalPayment$inboundSchema.and(z.object({ paymentType: z.literal("external") }).transform((v) => ({
49
+ paymentType: v.paymentType,
50
+ }))),
51
+ invoicetransferpayment_js_1.InvoiceTransferPayment$inboundSchema.and(z.object({ paymentType: z.literal("transfer") }).transform((v) => ({
52
+ paymentType: v.paymentType,
53
+ }))),
54
+ ]);
55
+ /** @internal */
56
+ exports.InvoicePayment$outboundSchema = z.union([
57
+ invoiceexternalpayment_js_1.InvoiceExternalPayment$outboundSchema.and(z.object({ paymentType: z.literal("external") }).transform((v) => ({
58
+ paymentType: v.paymentType,
59
+ }))),
60
+ invoicetransferpayment_js_1.InvoiceTransferPayment$outboundSchema.and(z.object({ paymentType: z.literal("transfer") }).transform((v) => ({
61
+ paymentType: v.paymentType,
62
+ }))),
63
+ ]);
64
+ function invoicePaymentToJSON(invoicePayment) {
65
+ return JSON.stringify(exports.InvoicePayment$outboundSchema.parse(invoicePayment));
66
+ }
67
+ function invoicePaymentFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoicePayment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoicePayment' from JSON`);
69
+ }
70
+ //# sourceMappingURL=invoicepayment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicepayment.js","sourceRoot":"","sources":["../../src/models/components/invoicepayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,oDAEC;AACD,wDAQC;AAxED,0CAA4B;AAC5B,qDAAiD;AAGjD,2EAKqC;AACrC,2EAKqC;AAMrC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,KAAK,CAAC;IACV,gEAAoC,CAAC,GAAG,CACtC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CACJ;IACD,gEAAoC,CAAC,GAAG,CACtC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,KAAK,CAAC;IACV,iEAAqC,CAAC,GAAG,CACvC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CACJ;IACD,iEAAqC,CAAC,GAAG,CACvC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,WAAW;KAC3B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const InvoiceStatus: {
4
+ readonly Draft: "draft";
5
+ readonly Unpaid: "unpaid";
6
+ readonly PaymentPending: "payment-pending";
7
+ readonly Paid: "paid";
8
+ readonly Overdue: "overdue";
9
+ readonly Canceled: "canceled";
10
+ };
11
+ export type InvoiceStatus = ClosedEnum<typeof InvoiceStatus>;
12
+ /** @internal */
13
+ export declare const InvoiceStatus$inboundSchema: z.ZodNativeEnum<typeof InvoiceStatus>;
14
+ /** @internal */
15
+ export declare const InvoiceStatus$outboundSchema: z.ZodNativeEnum<typeof InvoiceStatus>;
16
+ //# sourceMappingURL=invoicestatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicestatus.d.ts","sourceRoot":"","sources":["../../src/models/components/invoicestatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAChC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.InvoiceStatus$outboundSchema = exports.InvoiceStatus$inboundSchema = exports.InvoiceStatus = void 0;
40
+ const z = __importStar(require("zod/v3"));
41
+ exports.InvoiceStatus = {
42
+ Draft: "draft",
43
+ Unpaid: "unpaid",
44
+ PaymentPending: "payment-pending",
45
+ Paid: "paid",
46
+ Overdue: "overdue",
47
+ Canceled: "canceled",
48
+ };
49
+ /** @internal */
50
+ exports.InvoiceStatus$inboundSchema = z.nativeEnum(exports.InvoiceStatus);
51
+ /** @internal */
52
+ exports.InvoiceStatus$outboundSchema = exports.InvoiceStatus$inboundSchema;
53
+ //# sourceMappingURL=invoicestatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicestatus.js","sourceRoot":"","sources":["../../src/models/components/invoicestatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,iBAAiB;IACjC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAChC,gBAAgB;AACH,QAAA,4BAA4B,GAErC,mCAA2B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const PaymentType: {
6
+ readonly Transfer: "transfer";
7
+ };
8
+ export type PaymentType = ClosedEnum<typeof PaymentType>;
9
+ export type InvoiceTransferPayment = {
10
+ paymentType: PaymentType;
11
+ transferID: string;
12
+ };
13
+ /** @internal */
14
+ export declare const PaymentType$inboundSchema: z.ZodNativeEnum<typeof PaymentType>;
15
+ /** @internal */
16
+ export declare const PaymentType$outboundSchema: z.ZodNativeEnum<typeof PaymentType>;
17
+ /** @internal */
18
+ export declare const InvoiceTransferPayment$inboundSchema: z.ZodType<InvoiceTransferPayment, z.ZodTypeDef, unknown>;
19
+ /** @internal */
20
+ export type InvoiceTransferPayment$Outbound = {
21
+ paymentType: string;
22
+ transferID: string;
23
+ };
24
+ /** @internal */
25
+ export declare const InvoiceTransferPayment$outboundSchema: z.ZodType<InvoiceTransferPayment$Outbound, z.ZodTypeDef, InvoiceTransferPayment>;
26
+ export declare function invoiceTransferPaymentToJSON(invoiceTransferPayment: InvoiceTransferPayment): string;
27
+ export declare function invoiceTransferPaymentFromJSON(jsonString: string): SafeParseResult<InvoiceTransferPayment, SDKValidationError>;
28
+ //# sourceMappingURL=invoicetransferpayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicetransferpayment.d.ts","sourceRoot":"","sources":["../../src/models/components/invoicetransferpayment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,WAAW;;CAEd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAC3B,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE5B,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAItB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.InvoiceTransferPayment$outboundSchema = exports.InvoiceTransferPayment$inboundSchema = exports.PaymentType$outboundSchema = exports.PaymentType$inboundSchema = exports.PaymentType = void 0;
40
+ exports.invoiceTransferPaymentToJSON = invoiceTransferPaymentToJSON;
41
+ exports.invoiceTransferPaymentFromJSON = invoiceTransferPaymentFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ exports.PaymentType = {
45
+ Transfer: "transfer",
46
+ };
47
+ /** @internal */
48
+ exports.PaymentType$inboundSchema = z
49
+ .nativeEnum(exports.PaymentType);
50
+ /** @internal */
51
+ exports.PaymentType$outboundSchema = exports.PaymentType$inboundSchema;
52
+ /** @internal */
53
+ exports.InvoiceTransferPayment$inboundSchema = z.object({
54
+ paymentType: exports.PaymentType$inboundSchema,
55
+ transferID: z.string(),
56
+ });
57
+ /** @internal */
58
+ exports.InvoiceTransferPayment$outboundSchema = z.object({
59
+ paymentType: exports.PaymentType$outboundSchema,
60
+ transferID: z.string(),
61
+ });
62
+ function invoiceTransferPaymentToJSON(invoiceTransferPayment) {
63
+ return JSON.stringify(exports.InvoiceTransferPayment$outboundSchema.parse(invoiceTransferPayment));
64
+ }
65
+ function invoiceTransferPaymentFromJSON(jsonString) {
66
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoiceTransferPayment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceTransferPayment' from JSON`);
67
+ }
68
+ //# sourceMappingURL=invoicetransferpayment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoicetransferpayment.js","sourceRoot":"","sources":["../../src/models/components/invoicetransferpayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,oEAMC;AACD,wEAQC;AA/DD,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAQX,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,UAAU,CAAC,mBAAW,CAAC,CAAC;AAC3B,gBAAgB;AACH,QAAA,0BAA0B,GACrC,iCAAyB,CAAC;AAE5B,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,iCAAyB;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,kCAA0B;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AACD,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type MarkInvoicePaid = {
5
+ foreignID?: string | undefined;
6
+ description?: string | undefined;
7
+ paymentDate?: Date | undefined;
8
+ };
9
+ /** @internal */
10
+ export declare const MarkInvoicePaid$inboundSchema: z.ZodType<MarkInvoicePaid, z.ZodTypeDef, unknown>;
11
+ /** @internal */
12
+ export type MarkInvoicePaid$Outbound = {
13
+ foreignID?: string | undefined;
14
+ description?: string | undefined;
15
+ paymentDate?: string | undefined;
16
+ };
17
+ /** @internal */
18
+ export declare const MarkInvoicePaid$outboundSchema: z.ZodType<MarkInvoicePaid$Outbound, z.ZodTypeDef, MarkInvoicePaid>;
19
+ export declare function markInvoicePaidToJSON(markInvoicePaid: MarkInvoicePaid): string;
20
+ export declare function markInvoicePaidFromJSON(jsonString: string): SafeParseResult<MarkInvoicePaid, SDKValidationError>;
21
+ //# sourceMappingURL=markinvoicepaid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markinvoicepaid.d.ts","sourceRoot":"","sources":["../../src/models/components/markinvoicepaid.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAKf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MarkInvoicePaid$outboundSchema = exports.MarkInvoicePaid$inboundSchema = void 0;
40
+ exports.markInvoicePaidToJSON = markInvoicePaidToJSON;
41
+ exports.markInvoicePaidFromJSON = markInvoicePaidFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.MarkInvoicePaid$inboundSchema = z.object({
46
+ foreignID: z.string().optional(),
47
+ description: z.string().optional(),
48
+ paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
49
+ .optional(),
50
+ });
51
+ /** @internal */
52
+ exports.MarkInvoicePaid$outboundSchema = z.object({
53
+ foreignID: z.string().optional(),
54
+ description: z.string().optional(),
55
+ paymentDate: z.date().transform(v => v.toISOString()).optional(),
56
+ });
57
+ function markInvoicePaidToJSON(markInvoicePaid) {
58
+ return JSON.stringify(exports.MarkInvoicePaid$outboundSchema.parse(markInvoicePaid));
59
+ }
60
+ function markInvoicePaidFromJSON(jsonString) {
61
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MarkInvoicePaid$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MarkInvoicePaid' from JSON`);
62
+ }
63
+ //# sourceMappingURL=markinvoicepaid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markinvoicepaid.js","sourceRoot":"","sources":["../../src/models/components/markinvoicepaid.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,sDAIC;AACD,0DAQC;AArDD,0CAA4B;AAC5B,qDAAiD;AAUjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SAC3E,QAAQ,EAAE;CACd,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -2,6 +2,7 @@ import * as z from "zod/v3";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { AmountDecimal, AmountDecimal$Outbound } from "./amountdecimal.js";
5
+ import { PaymentLinkLineItemImageMetadata, PaymentLinkLineItemImageMetadata$Outbound } from "./paymentlinklineitemimagemetadata.js";
5
6
  import { PaymentLinkLineItemOption, PaymentLinkLineItemOption$Outbound } from "./paymentlinklineitemoption.js";
6
7
  /**
7
8
  * Represents a single line item in a payment link, including optional modifiers and quantity.
@@ -23,6 +24,10 @@ export type PaymentLinkLineItem = {
23
24
  * Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
24
25
  */
25
26
  options?: Array<PaymentLinkLineItemOption> | undefined;
27
+ /**
28
+ * Optional list of images associated with this line item.
29
+ */
30
+ images?: Array<PaymentLinkLineItemImageMetadata> | undefined;
26
31
  /**
27
32
  * Optional unique identifier associating the line item with a product.
28
33
  */
@@ -36,6 +41,7 @@ export type PaymentLinkLineItem$Outbound = {
36
41
  basePrice: AmountDecimal$Outbound;
37
42
  quantity: number;
38
43
  options?: Array<PaymentLinkLineItemOption$Outbound> | undefined;
44
+ images?: Array<PaymentLinkLineItemImageMetadata$Outbound> | undefined;
39
45
  productID?: string | undefined;
40
46
  };
41
47
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"paymentlinklineitem.d.ts","sourceRoot":"","sources":["../../src/models/components/paymentlinklineitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,sBAAsB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,GAAG,SAAS,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAOnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
1
+ {"version":3,"file":"paymentlinklineitem.d.ts","sourceRoot":"","sources":["../../src/models/components/paymentlinklineitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB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 @@ exports.paymentLinkLineItemFromJSON = paymentLinkLineItemFromJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  const amountdecimal_js_1 = require("./amountdecimal.js");
45
+ const paymentlinklineitemimagemetadata_js_1 = require("./paymentlinklineitemimagemetadata.js");
45
46
  const paymentlinklineitemoption_js_1 = require("./paymentlinklineitemoption.js");
46
47
  /** @internal */
47
48
  exports.PaymentLinkLineItem$inboundSchema = z.object({
@@ -49,6 +50,7 @@ exports.PaymentLinkLineItem$inboundSchema = z.object({
49
50
  basePrice: amountdecimal_js_1.AmountDecimal$inboundSchema,
50
51
  quantity: z.number().int(),
51
52
  options: z.array(paymentlinklineitemoption_js_1.PaymentLinkLineItemOption$inboundSchema).optional(),
53
+ images: z.array(paymentlinklineitemimagemetadata_js_1.PaymentLinkLineItemImageMetadata$inboundSchema).optional(),
52
54
  productID: z.string().optional(),
53
55
  });
54
56
  /** @internal */
@@ -57,6 +59,7 @@ exports.PaymentLinkLineItem$outboundSchema = z.object({
57
59
  basePrice: amountdecimal_js_1.AmountDecimal$outboundSchema,
58
60
  quantity: z.number().int(),
59
61
  options: z.array(paymentlinklineitemoption_js_1.PaymentLinkLineItemOption$outboundSchema).optional(),
62
+ images: z.array(paymentlinklineitemimagemetadata_js_1.PaymentLinkLineItemImageMetadata$outboundSchema).optional(),
60
63
  productID: z.string().optional(),
61
64
  });
62
65
  function paymentLinkLineItemToJSON(paymentLinkLineItem) {
@@ -1 +1 @@
1
- {"version":3,"file":"paymentlinklineitem.js","sourceRoot":"","sources":["../../src/models/components/paymentlinklineitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EH,8DAMC;AACD,kEAQC;AA5FD,0CAA4B;AAC5B,qDAAiD;AAGjD,yDAK4B;AAC5B,iFAKwC;AA4BxC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,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