@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,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.CreatePaymentLinkLineItem$outboundSchema = exports.CreatePaymentLinkLineItem$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemToJSON = createPaymentLinkLineItemToJSON;
41
+ exports.createPaymentLinkLineItemFromJSON = createPaymentLinkLineItemFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimal_js_1 = require("./amountdecimal.js");
45
+ const createpaymentlinklineitemoption_js_1 = require("./createpaymentlinklineitemoption.js");
46
+ /** @internal */
47
+ exports.CreatePaymentLinkLineItem$inboundSchema = z.object({
48
+ name: z.string(),
49
+ basePrice: amountdecimal_js_1.AmountDecimal$inboundSchema,
50
+ quantity: z.number().int(),
51
+ options: z.array(createpaymentlinklineitemoption_js_1.CreatePaymentLinkLineItemOption$inboundSchema).optional(),
52
+ imageIDs: z.array(z.string()).optional(),
53
+ productID: z.string().optional(),
54
+ });
55
+ /** @internal */
56
+ exports.CreatePaymentLinkLineItem$outboundSchema = z.object({
57
+ name: z.string(),
58
+ basePrice: amountdecimal_js_1.AmountDecimal$outboundSchema,
59
+ quantity: z.number().int(),
60
+ options: z.array(createpaymentlinklineitemoption_js_1.CreatePaymentLinkLineItemOption$outboundSchema).optional(),
61
+ imageIDs: z.array(z.string()).optional(),
62
+ productID: z.string().optional(),
63
+ });
64
+ function createPaymentLinkLineItemToJSON(createPaymentLinkLineItem) {
65
+ return JSON.stringify(exports.CreatePaymentLinkLineItem$outboundSchema.parse(createPaymentLinkLineItem));
66
+ }
67
+ function createPaymentLinkLineItemFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItem' from JSON`);
69
+ }
70
+ //# sourceMappingURL=createpaymentlinklineitem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitem.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,0EAMC;AACD,8EAQC;AAnGD,0CAA4B;AAC5B,qDAAiD;AAGjD,yDAK4B;AAC5B,6FAK8C;AAgC9C,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,8CAA2B;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC,CAAC,QAAQ,EAAE;IAC1E,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,+CAA4B;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;IAC3E,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AACD,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,44 @@
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 { AmountDecimal, AmountDecimal$Outbound } from "./amountdecimal.js";
5
+ /**
6
+ * Represents a modifier or option applied to a line item.
7
+ */
8
+ export type CreatePaymentLinkLineItemOption = {
9
+ /**
10
+ * The name of the option or modifier.
11
+ */
12
+ name: string;
13
+ /**
14
+ * The quantity of this option.
15
+ */
16
+ quantity: number;
17
+ /**
18
+ * Optional price modification applied by this option. Can be positive, negative, or zero.
19
+ */
20
+ priceModifier?: AmountDecimal | undefined;
21
+ /**
22
+ * Optional list of images associated with this line item option.
23
+ */
24
+ imageIDs?: Array<string> | undefined;
25
+ /**
26
+ * Optional group identifier to categorize related options (e.g., 'toppings').
27
+ */
28
+ group?: string | undefined;
29
+ };
30
+ /** @internal */
31
+ export declare const CreatePaymentLinkLineItemOption$inboundSchema: z.ZodType<CreatePaymentLinkLineItemOption, z.ZodTypeDef, unknown>;
32
+ /** @internal */
33
+ export type CreatePaymentLinkLineItemOption$Outbound = {
34
+ name: string;
35
+ quantity: number;
36
+ priceModifier?: AmountDecimal$Outbound | undefined;
37
+ imageIDs?: Array<string> | undefined;
38
+ group?: string | undefined;
39
+ };
40
+ /** @internal */
41
+ export declare const CreatePaymentLinkLineItemOption$outboundSchema: z.ZodType<CreatePaymentLinkLineItemOption$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItemOption>;
42
+ export declare function createPaymentLinkLineItemOptionToJSON(createPaymentLinkLineItemOption: CreatePaymentLinkLineItemOption): string;
43
+ export declare function createPaymentLinkLineItemOptionFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItemOption, SDKValidationError>;
44
+ //# sourceMappingURL=createpaymentlinklineitemoption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemoption.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemoption.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;AAE5B;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAO/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AACD,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
@@ -0,0 +1,67 @@
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.CreatePaymentLinkLineItemOption$outboundSchema = exports.CreatePaymentLinkLineItemOption$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemOptionToJSON = createPaymentLinkLineItemOptionToJSON;
41
+ exports.createPaymentLinkLineItemOptionFromJSON = createPaymentLinkLineItemOptionFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimal_js_1 = require("./amountdecimal.js");
45
+ /** @internal */
46
+ exports.CreatePaymentLinkLineItemOption$inboundSchema = z.object({
47
+ name: z.string(),
48
+ quantity: z.number().int(),
49
+ priceModifier: amountdecimal_js_1.AmountDecimal$inboundSchema.optional(),
50
+ imageIDs: z.array(z.string()).optional(),
51
+ group: z.string().optional(),
52
+ });
53
+ /** @internal */
54
+ exports.CreatePaymentLinkLineItemOption$outboundSchema = z.object({
55
+ name: z.string(),
56
+ quantity: z.number().int(),
57
+ priceModifier: amountdecimal_js_1.AmountDecimal$outboundSchema.optional(),
58
+ imageIDs: z.array(z.string()).optional(),
59
+ group: z.string().optional(),
60
+ });
61
+ function createPaymentLinkLineItemOptionToJSON(createPaymentLinkLineItemOption) {
62
+ return JSON.stringify(exports.CreatePaymentLinkLineItemOption$outboundSchema.parse(createPaymentLinkLineItemOption));
63
+ }
64
+ function createPaymentLinkLineItemOptionFromJSON(jsonString) {
65
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItemOption$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItemOption' from JSON`);
66
+ }
67
+ //# sourceMappingURL=createpaymentlinklineitemoption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemoption.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEH,sFAQC;AACD,0FAQC;AAxFD,0CAA4B;AAC5B,qDAAiD;AAGjD,yDAK4B;AA4B5B,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,aAAa,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,aAAa,EAAE,+CAA4B,CAAC,QAAQ,EAAE;IACtD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,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,24 @@
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
+ export type CreatePaymentLinkLineItemOptionValidationError = {
6
+ name?: string | undefined;
7
+ group?: string | undefined;
8
+ priceModifier?: AmountDecimalValidationError | undefined;
9
+ quantity?: string | undefined;
10
+ };
11
+ /** @internal */
12
+ export declare const CreatePaymentLinkLineItemOptionValidationError$inboundSchema: z.ZodType<CreatePaymentLinkLineItemOptionValidationError, z.ZodTypeDef, unknown>;
13
+ /** @internal */
14
+ export type CreatePaymentLinkLineItemOptionValidationError$Outbound = {
15
+ name?: string | undefined;
16
+ group?: string | undefined;
17
+ priceModifier?: AmountDecimalValidationError$Outbound | undefined;
18
+ quantity?: string | undefined;
19
+ };
20
+ /** @internal */
21
+ export declare const CreatePaymentLinkLineItemOptionValidationError$outboundSchema: z.ZodType<CreatePaymentLinkLineItemOptionValidationError$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItemOptionValidationError>;
22
+ export declare function createPaymentLinkLineItemOptionValidationErrorToJSON(createPaymentLinkLineItemOptionValidationError: CreatePaymentLinkLineItemOptionValidationError): string;
23
+ export declare function createPaymentLinkLineItemOptionValidationErrorFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItemOptionValidationError, SDKValidationError>;
24
+ //# sourceMappingURL=createpaymentlinklineitemoptionvalidationerror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemoptionvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemoptionvalidationerror.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,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4DAA4D,EACvE,CAAC,CAAC,OAAO,CACP,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,uDAAuD,GAAG;IACpE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6DAA6D,EACxE,CAAC,CAAC,OAAO,CACP,uDAAuD,EACvD,CAAC,CAAC,UAAU,EACZ,8CAA8C,CAM9C,CAAC;AAEL,wBAAgB,oDAAoD,CAClE,8CAA8C,EAC5C,8CAA8C,GAC/C,MAAM,CAMR;AACD,wBAAgB,sDAAsD,CACpE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,8CAA8C,EAC9C,kBAAkB,CACnB,CASA"}
@@ -0,0 +1,65 @@
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.CreatePaymentLinkLineItemOptionValidationError$outboundSchema = exports.CreatePaymentLinkLineItemOptionValidationError$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemOptionValidationErrorToJSON = createPaymentLinkLineItemOptionValidationErrorToJSON;
41
+ exports.createPaymentLinkLineItemOptionValidationErrorFromJSON = createPaymentLinkLineItemOptionValidationErrorFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const amountdecimalvalidationerror_js_1 = require("./amountdecimalvalidationerror.js");
45
+ /** @internal */
46
+ exports.CreatePaymentLinkLineItemOptionValidationError$inboundSchema = z.object({
47
+ name: z.string().optional(),
48
+ group: z.string().optional(),
49
+ priceModifier: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$inboundSchema.optional(),
50
+ quantity: z.string().optional(),
51
+ });
52
+ /** @internal */
53
+ exports.CreatePaymentLinkLineItemOptionValidationError$outboundSchema = z.object({
54
+ name: z.string().optional(),
55
+ group: z.string().optional(),
56
+ priceModifier: amountdecimalvalidationerror_js_1.AmountDecimalValidationError$outboundSchema.optional(),
57
+ quantity: z.string().optional(),
58
+ });
59
+ function createPaymentLinkLineItemOptionValidationErrorToJSON(createPaymentLinkLineItemOptionValidationError) {
60
+ return JSON.stringify(exports.CreatePaymentLinkLineItemOptionValidationError$outboundSchema.parse(createPaymentLinkLineItemOptionValidationError));
61
+ }
62
+ function createPaymentLinkLineItemOptionValidationErrorFromJSON(jsonString) {
63
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItemOptionValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItemOptionValidationError' from JSON`);
64
+ }
65
+ //# sourceMappingURL=createpaymentlinklineitemoptionvalidationerror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemoptionvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemoptionvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,oHASC;AACD,wHAcC;AA3ED,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAS3C,gBAAgB;AACH,QAAA,4DAA4D,GAKnE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,6DAA6D,GAKpE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEL,SAAgB,oDAAoD,CAClE,8CACgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,qEAA6D,CAAC,KAAK,CACjE,8CAA8C,CAC/C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,sDAAsD,CACpE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,oEAA4D,CAAC,KAAK,CAChE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,4EAA4E,CAC7E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,27 @@
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 { CreatePaymentLinkLineItem, CreatePaymentLinkLineItem$Outbound } from "./createpaymentlinklineitem.js";
5
+ /**
6
+ * An optional collection of line items for a payment link.
7
+ *
8
+ * @remarks
9
+ * When line items are provided, their total plus sales tax must equal the payment link amount.
10
+ */
11
+ export type CreatePaymentLinkLineItems = {
12
+ /**
13
+ * The list of line items.
14
+ */
15
+ items: Array<CreatePaymentLinkLineItem>;
16
+ };
17
+ /** @internal */
18
+ export declare const CreatePaymentLinkLineItems$inboundSchema: z.ZodType<CreatePaymentLinkLineItems, z.ZodTypeDef, unknown>;
19
+ /** @internal */
20
+ export type CreatePaymentLinkLineItems$Outbound = {
21
+ items: Array<CreatePaymentLinkLineItem$Outbound>;
22
+ };
23
+ /** @internal */
24
+ export declare const CreatePaymentLinkLineItems$outboundSchema: z.ZodType<CreatePaymentLinkLineItems$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItems>;
25
+ export declare function createPaymentLinkLineItemsToJSON(createPaymentLinkLineItems: CreatePaymentLinkLineItems): string;
26
+ export declare function createPaymentLinkLineItemsFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItems, SDKValidationError>;
27
+ //# sourceMappingURL=createpaymentlinklineitems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitems.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitems.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,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAG1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AACD,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -36,24 +36,24 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PaymentLinkLineItemsValidationError$outboundSchema = exports.PaymentLinkLineItemsValidationError$inboundSchema = void 0;
40
- exports.paymentLinkLineItemsValidationErrorToJSON = paymentLinkLineItemsValidationErrorToJSON;
41
- exports.paymentLinkLineItemsValidationErrorFromJSON = paymentLinkLineItemsValidationErrorFromJSON;
39
+ exports.CreatePaymentLinkLineItems$outboundSchema = exports.CreatePaymentLinkLineItems$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemsToJSON = createPaymentLinkLineItemsToJSON;
41
+ exports.createPaymentLinkLineItemsFromJSON = createPaymentLinkLineItemsFromJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
- const paymentlinklineitemvalidationerror_js_1 = require("./paymentlinklineitemvalidationerror.js");
44
+ const createpaymentlinklineitem_js_1 = require("./createpaymentlinklineitem.js");
45
45
  /** @internal */
46
- exports.PaymentLinkLineItemsValidationError$inboundSchema = z.object({
47
- items: z.record(paymentlinklineitemvalidationerror_js_1.PaymentLinkLineItemValidationError$inboundSchema).optional(),
46
+ exports.CreatePaymentLinkLineItems$inboundSchema = z.object({
47
+ items: z.array(createpaymentlinklineitem_js_1.CreatePaymentLinkLineItem$inboundSchema),
48
48
  });
49
49
  /** @internal */
50
- exports.PaymentLinkLineItemsValidationError$outboundSchema = z.object({
51
- items: z.record(paymentlinklineitemvalidationerror_js_1.PaymentLinkLineItemValidationError$outboundSchema).optional(),
50
+ exports.CreatePaymentLinkLineItems$outboundSchema = z.object({
51
+ items: z.array(createpaymentlinklineitem_js_1.CreatePaymentLinkLineItem$outboundSchema),
52
52
  });
53
- function paymentLinkLineItemsValidationErrorToJSON(paymentLinkLineItemsValidationError) {
54
- return JSON.stringify(exports.PaymentLinkLineItemsValidationError$outboundSchema.parse(paymentLinkLineItemsValidationError));
53
+ function createPaymentLinkLineItemsToJSON(createPaymentLinkLineItems) {
54
+ return JSON.stringify(exports.CreatePaymentLinkLineItems$outboundSchema.parse(createPaymentLinkLineItems));
55
55
  }
56
- function paymentLinkLineItemsValidationErrorFromJSON(jsonString) {
57
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaymentLinkLineItemsValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentLinkLineItemsValidationError' from JSON`);
56
+ function createPaymentLinkLineItemsFromJSON(jsonString) {
57
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItems$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItems' from JSON`);
58
58
  }
59
- //# sourceMappingURL=paymentlinklineitemsvalidationerror.js.map
59
+ //# sourceMappingURL=createpaymentlinklineitems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitems.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitems.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,4EAMC;AACD,gFAQC;AA7DD,0CAA4B;AAC5B,qDAAiD;AAGjD,iFAKwC;AAexC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sEAAuC,CAAC;CACxD,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,uEAAwC,CAAC;CACzD,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AACD,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,27 @@
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 { CreatePaymentLinkLineItem, CreatePaymentLinkLineItem$Outbound } from "./createpaymentlinklineitem.js";
5
+ /**
6
+ * An optional collection of line items for a payment link.
7
+ *
8
+ * @remarks
9
+ * When line items are provided, their total plus sales tax must equal the payment link amount.
10
+ */
11
+ export type CreatePaymentLinkLineItemsUpdate = {
12
+ /**
13
+ * The list of line items.
14
+ */
15
+ items?: Array<CreatePaymentLinkLineItem> | undefined;
16
+ };
17
+ /** @internal */
18
+ export declare const CreatePaymentLinkLineItemsUpdate$inboundSchema: z.ZodType<CreatePaymentLinkLineItemsUpdate, z.ZodTypeDef, unknown>;
19
+ /** @internal */
20
+ export type CreatePaymentLinkLineItemsUpdate$Outbound = {
21
+ items?: Array<CreatePaymentLinkLineItem$Outbound> | undefined;
22
+ };
23
+ /** @internal */
24
+ export declare const CreatePaymentLinkLineItemsUpdate$outboundSchema: z.ZodType<CreatePaymentLinkLineItemsUpdate$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItemsUpdate>;
25
+ export declare function createPaymentLinkLineItemsUpdateToJSON(createPaymentLinkLineItemsUpdate: CreatePaymentLinkLineItemsUpdate): string;
26
+ export declare function createPaymentLinkLineItemsUpdateFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItemsUpdate, SDKValidationError>;
27
+ //# sourceMappingURL=createpaymentlinklineitemsupdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemsupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemsupdate.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,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,KAAK,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAGhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AACD,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
@@ -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.CreatePaymentLinkLineItemsUpdate$outboundSchema = exports.CreatePaymentLinkLineItemsUpdate$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemsUpdateToJSON = createPaymentLinkLineItemsUpdateToJSON;
41
+ exports.createPaymentLinkLineItemsUpdateFromJSON = createPaymentLinkLineItemsUpdateFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const createpaymentlinklineitem_js_1 = require("./createpaymentlinklineitem.js");
45
+ /** @internal */
46
+ exports.CreatePaymentLinkLineItemsUpdate$inboundSchema = z.object({
47
+ items: z.array(createpaymentlinklineitem_js_1.CreatePaymentLinkLineItem$inboundSchema).optional(),
48
+ });
49
+ /** @internal */
50
+ exports.CreatePaymentLinkLineItemsUpdate$outboundSchema = z.object({
51
+ items: z.array(createpaymentlinklineitem_js_1.CreatePaymentLinkLineItem$outboundSchema).optional(),
52
+ });
53
+ function createPaymentLinkLineItemsUpdateToJSON(createPaymentLinkLineItemsUpdate) {
54
+ return JSON.stringify(exports.CreatePaymentLinkLineItemsUpdate$outboundSchema.parse(createPaymentLinkLineItemsUpdate));
55
+ }
56
+ function createPaymentLinkLineItemsUpdateFromJSON(jsonString) {
57
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItemsUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItemsUpdate' from JSON`);
58
+ }
59
+ //# sourceMappingURL=createpaymentlinklineitemsupdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemsupdate.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemsupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,wFAQC;AACD,4FAQC;AA/DD,0CAA4B;AAC5B,qDAAiD;AAGjD,iFAKwC;AAexC,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sEAAuC,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,uEAAwC,CAAC,CAAC,QAAQ,EAAE;CACpE,CAAC,CAAC;AAEH,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
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 { CreatePaymentLinkLineItemValidationError, CreatePaymentLinkLineItemValidationError$Outbound } from "./createpaymentlinklineitemvalidationerror.js";
5
+ export type CreatePaymentLinkLineItemsValidationError = {
6
+ items?: {
7
+ [k: string]: CreatePaymentLinkLineItemValidationError;
8
+ } | undefined;
9
+ };
10
+ /** @internal */
11
+ export declare const CreatePaymentLinkLineItemsValidationError$inboundSchema: z.ZodType<CreatePaymentLinkLineItemsValidationError, z.ZodTypeDef, unknown>;
12
+ /** @internal */
13
+ export type CreatePaymentLinkLineItemsValidationError$Outbound = {
14
+ items?: {
15
+ [k: string]: CreatePaymentLinkLineItemValidationError$Outbound;
16
+ } | undefined;
17
+ };
18
+ /** @internal */
19
+ export declare const CreatePaymentLinkLineItemsValidationError$outboundSchema: z.ZodType<CreatePaymentLinkLineItemsValidationError$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItemsValidationError>;
20
+ export declare function createPaymentLinkLineItemsValidationErrorToJSON(createPaymentLinkLineItemsValidationError: CreatePaymentLinkLineItemsValidationError): string;
21
+ export declare function createPaymentLinkLineItemsValidationErrorFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItemsValidationError, SDKValidationError>;
22
+ //# sourceMappingURL=createpaymentlinklineitemsvalidationerror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemsvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemsvalidationerror.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,wCAAwC,EAExC,iDAAiD,EAElD,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,yCAAyC,GAAG;IACtD,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,wCAAwC,CAAA;KAAE,GAAG,SAAS,CAAC;CAC/E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kDAAkD,GAAG;IAC/D,KAAK,CAAC,EACF;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,iDAAiD,CAAA;KAAE,GAClE,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,OAAO,CACP,kDAAkD,EAClD,CAAC,CAAC,UAAU,EACZ,yCAAyC,CAIzC,CAAC;AAEL,wBAAgB,+CAA+C,CAC7D,yCAAyC,EACvC,yCAAyC,GAC1C,MAAM,CAMR;AACD,wBAAgB,iDAAiD,CAC/D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,yCAAyC,EACzC,kBAAkB,CACnB,CASA"}
@@ -0,0 +1,61 @@
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.CreatePaymentLinkLineItemsValidationError$outboundSchema = exports.CreatePaymentLinkLineItemsValidationError$inboundSchema = void 0;
40
+ exports.createPaymentLinkLineItemsValidationErrorToJSON = createPaymentLinkLineItemsValidationErrorToJSON;
41
+ exports.createPaymentLinkLineItemsValidationErrorFromJSON = createPaymentLinkLineItemsValidationErrorFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const createpaymentlinklineitemvalidationerror_js_1 = require("./createpaymentlinklineitemvalidationerror.js");
45
+ /** @internal */
46
+ exports.CreatePaymentLinkLineItemsValidationError$inboundSchema = z.object({
47
+ items: z.record(createpaymentlinklineitemvalidationerror_js_1.CreatePaymentLinkLineItemValidationError$inboundSchema)
48
+ .optional(),
49
+ });
50
+ /** @internal */
51
+ exports.CreatePaymentLinkLineItemsValidationError$outboundSchema = z.object({
52
+ items: z.record(createpaymentlinklineitemvalidationerror_js_1.CreatePaymentLinkLineItemValidationError$outboundSchema)
53
+ .optional(),
54
+ });
55
+ function createPaymentLinkLineItemsValidationErrorToJSON(createPaymentLinkLineItemsValidationError) {
56
+ return JSON.stringify(exports.CreatePaymentLinkLineItemsValidationError$outboundSchema.parse(createPaymentLinkLineItemsValidationError));
57
+ }
58
+ function createPaymentLinkLineItemsValidationErrorFromJSON(jsonString) {
59
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreatePaymentLinkLineItemsValidationError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePaymentLinkLineItemsValidationError' from JSON`);
60
+ }
61
+ //# sourceMappingURL=createpaymentlinklineitemsvalidationerror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemsvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemsvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,0GASC;AACD,8GAcC;AAlED,0CAA4B;AAC5B,qDAAiD;AAGjD,+GAKuD;AAMvD,gBAAgB;AACH,QAAA,uDAAuD,GAIhE,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,oGAAsD,CAAC;SACpE,QAAQ,EAAE;CACd,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,wDAAwD,GAK/D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,qGAAuD,CAAC;SACrE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEL,SAAgB,+CAA+C,CAC7D,yCAC2C;IAE3C,OAAO,IAAI,CAAC,SAAS,CACnB,gEAAwD,CAAC,KAAK,CAC5D,yCAAyC,CAC1C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,iDAAiD,CAC/D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,+DAAuD,CAAC,KAAK,CAC3D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,uEAAuE,CACxE,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 { CreatePaymentLinkLineItemOptionValidationError, CreatePaymentLinkLineItemOptionValidationError$Outbound } from "./createpaymentlinklineitemoptionvalidationerror.js";
6
+ export type CreatePaymentLinkLineItemValidationError = {
7
+ productID?: string | undefined;
8
+ name?: string | undefined;
9
+ basePrice?: AmountDecimalValidationError | undefined;
10
+ options?: {
11
+ [k: string]: CreatePaymentLinkLineItemOptionValidationError;
12
+ } | undefined;
13
+ quantity?: string | undefined;
14
+ };
15
+ /** @internal */
16
+ export declare const CreatePaymentLinkLineItemValidationError$inboundSchema: z.ZodType<CreatePaymentLinkLineItemValidationError, z.ZodTypeDef, unknown>;
17
+ /** @internal */
18
+ export type CreatePaymentLinkLineItemValidationError$Outbound = {
19
+ productID?: string | undefined;
20
+ name?: string | undefined;
21
+ basePrice?: AmountDecimalValidationError$Outbound | undefined;
22
+ options?: {
23
+ [k: string]: CreatePaymentLinkLineItemOptionValidationError$Outbound;
24
+ } | undefined;
25
+ quantity?: string | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const CreatePaymentLinkLineItemValidationError$outboundSchema: z.ZodType<CreatePaymentLinkLineItemValidationError$Outbound, z.ZodTypeDef, CreatePaymentLinkLineItemValidationError>;
29
+ export declare function createPaymentLinkLineItemValidationErrorToJSON(createPaymentLinkLineItemValidationError: CreatePaymentLinkLineItemValidationError): string;
30
+ export declare function createPaymentLinkLineItemValidationErrorFromJSON(jsonString: string): SafeParseResult<CreatePaymentLinkLineItemValidationError, SDKValidationError>;
31
+ //# sourceMappingURL=createpaymentlinklineitemvalidationerror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createpaymentlinklineitemvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/createpaymentlinklineitemvalidationerror.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,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,8CAA8C,EAE9C,uDAAuD,EAExD,MAAM,qDAAqD,CAAC;AAE7D,MAAM,MAAM,wCAAwC,GAAG;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrD,OAAO,CAAC,EACJ;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,8CAA8C,CAAA;KAAE,GAC/D,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EAAE,CAAC,CAAC,OAAO,CAC5E,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iDAAiD,GAAG;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAC9D,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,uDAAuD,CAAC;KACtE,GAAG,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,iDAAiD,EACjD,CAAC,CAAC,UAAU,EACZ,wCAAwC,CASxC,CAAC;AAEH,wBAAgB,8CAA8C,CAC5D,wCAAwC,EACtC,wCAAwC,GACzC,MAAM,CAMR;AACD,wBAAgB,gDAAgD,CAC9D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wCAAwC,EACxC,kBAAkB,CACnB,CASA"}