mollie-api-typescript 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/FUNCTIONS.md +13 -0
  2. package/README.md +84 -0
  3. package/bin/mcp-server.js +5173 -1638
  4. package/bin/mcp-server.js.map +47 -46
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/operations/cancelpayment.d.ts +1458 -19
  10. package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
  11. package/dist/commonjs/models/operations/cancelpayment.js +755 -20
  12. package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
  13. package/dist/commonjs/models/operations/createcustomerpayment.d.ts +1596 -20
  14. package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/createcustomerpayment.js +819 -22
  16. package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
  17. package/dist/commonjs/models/operations/createpayment.d.ts +1596 -20
  18. package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/createpayment.js +810 -22
  20. package/dist/commonjs/models/operations/createpayment.js.map +1 -1
  21. package/dist/commonjs/models/operations/createpaymentlink.d.ts +2 -2
  22. package/dist/commonjs/models/operations/getnextsettlement.d.ts +6 -846
  23. package/dist/commonjs/models/operations/getnextsettlement.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/getnextsettlement.js +3 -586
  25. package/dist/commonjs/models/operations/getnextsettlement.js.map +1 -1
  26. package/dist/commonjs/models/operations/getopensettlement.d.ts +6 -846
  27. package/dist/commonjs/models/operations/getopensettlement.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/getopensettlement.js +3 -586
  29. package/dist/commonjs/models/operations/getopensettlement.js.map +1 -1
  30. package/dist/commonjs/models/operations/getpayment.d.ts +1458 -19
  31. package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/getpayment.js +751 -20
  33. package/dist/commonjs/models/operations/getpayment.js.map +1 -1
  34. package/dist/commonjs/models/operations/getpaymentlink.d.ts +1 -1
  35. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +1466 -27
  36. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +771 -32
  38. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  39. package/dist/commonjs/models/operations/getsettlement.d.ts +6 -846
  40. package/dist/commonjs/models/operations/getsettlement.d.ts.map +1 -1
  41. package/dist/commonjs/models/operations/getsettlement.js +3 -579
  42. package/dist/commonjs/models/operations/getsettlement.js.map +1 -1
  43. package/dist/commonjs/models/operations/getwebhookevent.d.ts +1 -1
  44. package/dist/commonjs/models/operations/listallchargebacks.d.ts +8 -8
  45. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/listallchargebacks.js +8 -14
  47. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  48. package/dist/commonjs/models/operations/listallmethods.d.ts +15 -15
  49. package/dist/commonjs/models/operations/listallmethods.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/listallmethods.js +19 -18
  51. package/dist/commonjs/models/operations/listallmethods.js.map +1 -1
  52. package/dist/commonjs/models/operations/listallrefunds.d.ts +8 -8
  53. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/listallrefunds.js +8 -12
  55. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  56. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +8 -8
  57. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/listallsubscriptions.js +8 -13
  59. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  60. package/dist/commonjs/models/operations/listbalances.d.ts +8 -8
  61. package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/listbalances.js +8 -12
  63. package/dist/commonjs/models/operations/listbalances.js.map +1 -1
  64. package/dist/commonjs/models/operations/listbalancetransactions.d.ts +8 -8
  65. package/dist/commonjs/models/operations/listbalancetransactions.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/listbalancetransactions.js +8 -10
  67. package/dist/commonjs/models/operations/listbalancetransactions.js.map +1 -1
  68. package/dist/commonjs/models/operations/listcaptures.d.ts +8 -8
  69. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/listcaptures.js +8 -12
  71. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  72. package/dist/commonjs/models/operations/listchargebacks.d.ts +8 -8
  73. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/listchargebacks.js +8 -12
  75. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  76. package/dist/commonjs/models/operations/listclients.d.ts +8 -8
  77. package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/listclients.js +8 -12
  79. package/dist/commonjs/models/operations/listclients.js.map +1 -1
  80. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +1472 -33
  81. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/listcustomerpayments.js +776 -42
  83. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  84. package/dist/commonjs/models/operations/listcustomers.d.ts +8 -8
  85. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/listcustomers.js +8 -12
  87. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  88. package/dist/commonjs/models/operations/listinvoices.d.ts +8 -8
  89. package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/listinvoices.js +8 -12
  91. package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
  92. package/dist/commonjs/models/operations/listmandates.d.ts +8 -8
  93. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/listmandates.js +8 -12
  95. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  96. package/dist/commonjs/models/operations/listpaymentlinks.d.ts +9 -9
  97. package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/listpaymentlinks.js +8 -13
  99. package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
  100. package/dist/commonjs/models/operations/listpayments.d.ts +1472 -33
  101. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/listpayments.js +768 -39
  103. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  104. package/dist/commonjs/models/operations/listprofiles.d.ts +8 -8
  105. package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/listprofiles.js +8 -12
  107. package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
  108. package/dist/commonjs/models/operations/listrefunds.d.ts +8 -8
  109. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  110. package/dist/commonjs/models/operations/listrefunds.js +8 -12
  111. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  112. package/dist/commonjs/models/operations/listsalesinvoices.d.ts +8 -8
  113. package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
  114. package/dist/commonjs/models/operations/listsalesinvoices.js +8 -14
  115. package/dist/commonjs/models/operations/listsalesinvoices.js.map +1 -1
  116. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +8 -8
  117. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/listsettlementcaptures.js +8 -11
  119. package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
  120. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +8 -8
  121. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  122. package/dist/commonjs/models/operations/listsettlementchargebacks.js +8 -10
  123. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  124. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +1472 -33
  125. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  126. package/dist/commonjs/models/operations/listsettlementpayments.js +777 -40
  127. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  128. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +8 -8
  129. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  130. package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -12
  131. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  132. package/dist/commonjs/models/operations/listsettlements.d.ts +14 -854
  133. package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
  134. package/dist/commonjs/models/operations/listsettlements.js +11 -596
  135. package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
  136. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +1472 -33
  137. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  138. package/dist/commonjs/models/operations/listsubscriptionpayments.js +777 -39
  139. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  140. package/dist/commonjs/models/operations/listsubscriptions.d.ts +8 -8
  141. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  142. package/dist/commonjs/models/operations/listsubscriptions.js +8 -14
  143. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  144. package/dist/commonjs/models/operations/listterminals.d.ts +8 -8
  145. package/dist/commonjs/models/operations/listterminals.d.ts.map +1 -1
  146. package/dist/commonjs/models/operations/listterminals.js +8 -12
  147. package/dist/commonjs/models/operations/listterminals.js.map +1 -1
  148. package/dist/commonjs/models/operations/listwebhooks.d.ts +8 -8
  149. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  150. package/dist/commonjs/models/operations/listwebhooks.js +8 -12
  151. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  152. package/dist/commonjs/models/operations/updatepayment.d.ts +1458 -19
  153. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  154. package/dist/commonjs/models/operations/updatepayment.js +755 -21
  155. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  156. package/dist/commonjs/models/operations/updatepaymentlink.d.ts +2 -2
  157. package/dist/esm/lib/config.d.ts +2 -2
  158. package/dist/esm/lib/config.js +2 -2
  159. package/dist/esm/mcp-server/mcp-server.js +1 -1
  160. package/dist/esm/mcp-server/server.js +1 -1
  161. package/dist/esm/models/operations/cancelpayment.d.ts +1458 -19
  162. package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
  163. package/dist/esm/models/operations/cancelpayment.js +735 -16
  164. package/dist/esm/models/operations/cancelpayment.js.map +1 -1
  165. package/dist/esm/models/operations/createcustomerpayment.d.ts +1596 -20
  166. package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
  167. package/dist/esm/models/operations/createcustomerpayment.js +796 -16
  168. package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
  169. package/dist/esm/models/operations/createpayment.d.ts +1596 -20
  170. package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
  171. package/dist/esm/models/operations/createpayment.js +787 -16
  172. package/dist/esm/models/operations/createpayment.js.map +1 -1
  173. package/dist/esm/models/operations/createpaymentlink.d.ts +2 -2
  174. package/dist/esm/models/operations/getnextsettlement.d.ts +6 -846
  175. package/dist/esm/models/operations/getnextsettlement.d.ts.map +1 -1
  176. package/dist/esm/models/operations/getnextsettlement.js +2 -556
  177. package/dist/esm/models/operations/getnextsettlement.js.map +1 -1
  178. package/dist/esm/models/operations/getopensettlement.d.ts +6 -846
  179. package/dist/esm/models/operations/getopensettlement.d.ts.map +1 -1
  180. package/dist/esm/models/operations/getopensettlement.js +2 -556
  181. package/dist/esm/models/operations/getopensettlement.js.map +1 -1
  182. package/dist/esm/models/operations/getpayment.d.ts +1458 -19
  183. package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
  184. package/dist/esm/models/operations/getpayment.js +731 -16
  185. package/dist/esm/models/operations/getpayment.js.map +1 -1
  186. package/dist/esm/models/operations/getpaymentlink.d.ts +1 -1
  187. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +1466 -27
  188. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  189. package/dist/esm/models/operations/getpaymentlinkpayments.js +751 -27
  190. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  191. package/dist/esm/models/operations/getsettlement.d.ts +6 -846
  192. package/dist/esm/models/operations/getsettlement.d.ts.map +1 -1
  193. package/dist/esm/models/operations/getsettlement.js +2 -549
  194. package/dist/esm/models/operations/getsettlement.js.map +1 -1
  195. package/dist/esm/models/operations/getwebhookevent.d.ts +1 -1
  196. package/dist/esm/models/operations/listallchargebacks.d.ts +8 -8
  197. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  198. package/dist/esm/models/operations/listallchargebacks.js +8 -14
  199. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  200. package/dist/esm/models/operations/listallmethods.d.ts +15 -15
  201. package/dist/esm/models/operations/listallmethods.d.ts.map +1 -1
  202. package/dist/esm/models/operations/listallmethods.js +16 -15
  203. package/dist/esm/models/operations/listallmethods.js.map +1 -1
  204. package/dist/esm/models/operations/listallrefunds.d.ts +8 -8
  205. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  206. package/dist/esm/models/operations/listallrefunds.js +8 -12
  207. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  208. package/dist/esm/models/operations/listallsubscriptions.d.ts +8 -8
  209. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  210. package/dist/esm/models/operations/listallsubscriptions.js +8 -13
  211. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  212. package/dist/esm/models/operations/listbalances.d.ts +8 -8
  213. package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
  214. package/dist/esm/models/operations/listbalances.js +8 -12
  215. package/dist/esm/models/operations/listbalances.js.map +1 -1
  216. package/dist/esm/models/operations/listbalancetransactions.d.ts +8 -8
  217. package/dist/esm/models/operations/listbalancetransactions.d.ts.map +1 -1
  218. package/dist/esm/models/operations/listbalancetransactions.js +8 -10
  219. package/dist/esm/models/operations/listbalancetransactions.js.map +1 -1
  220. package/dist/esm/models/operations/listcaptures.d.ts +8 -8
  221. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  222. package/dist/esm/models/operations/listcaptures.js +8 -12
  223. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  224. package/dist/esm/models/operations/listchargebacks.d.ts +8 -8
  225. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  226. package/dist/esm/models/operations/listchargebacks.js +8 -12
  227. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  228. package/dist/esm/models/operations/listclients.d.ts +8 -8
  229. package/dist/esm/models/operations/listclients.d.ts.map +1 -1
  230. package/dist/esm/models/operations/listclients.js +8 -12
  231. package/dist/esm/models/operations/listclients.js.map +1 -1
  232. package/dist/esm/models/operations/listcustomerpayments.d.ts +1472 -33
  233. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  234. package/dist/esm/models/operations/listcustomerpayments.js +756 -37
  235. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  236. package/dist/esm/models/operations/listcustomers.d.ts +8 -8
  237. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  238. package/dist/esm/models/operations/listcustomers.js +8 -12
  239. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  240. package/dist/esm/models/operations/listinvoices.d.ts +8 -8
  241. package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
  242. package/dist/esm/models/operations/listinvoices.js +8 -12
  243. package/dist/esm/models/operations/listinvoices.js.map +1 -1
  244. package/dist/esm/models/operations/listmandates.d.ts +8 -8
  245. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  246. package/dist/esm/models/operations/listmandates.js +8 -12
  247. package/dist/esm/models/operations/listmandates.js.map +1 -1
  248. package/dist/esm/models/operations/listpaymentlinks.d.ts +9 -9
  249. package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
  250. package/dist/esm/models/operations/listpaymentlinks.js +8 -13
  251. package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
  252. package/dist/esm/models/operations/listpayments.d.ts +1472 -33
  253. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  254. package/dist/esm/models/operations/listpayments.js +748 -34
  255. package/dist/esm/models/operations/listpayments.js.map +1 -1
  256. package/dist/esm/models/operations/listprofiles.d.ts +8 -8
  257. package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
  258. package/dist/esm/models/operations/listprofiles.js +8 -12
  259. package/dist/esm/models/operations/listprofiles.js.map +1 -1
  260. package/dist/esm/models/operations/listrefunds.d.ts +8 -8
  261. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  262. package/dist/esm/models/operations/listrefunds.js +8 -12
  263. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  264. package/dist/esm/models/operations/listsalesinvoices.d.ts +8 -8
  265. package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
  266. package/dist/esm/models/operations/listsalesinvoices.js +8 -14
  267. package/dist/esm/models/operations/listsalesinvoices.js.map +1 -1
  268. package/dist/esm/models/operations/listsettlementcaptures.d.ts +8 -8
  269. package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
  270. package/dist/esm/models/operations/listsettlementcaptures.js +8 -11
  271. package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
  272. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +8 -8
  273. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  274. package/dist/esm/models/operations/listsettlementchargebacks.js +8 -10
  275. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  276. package/dist/esm/models/operations/listsettlementpayments.d.ts +1472 -33
  277. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  278. package/dist/esm/models/operations/listsettlementpayments.js +757 -35
  279. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  280. package/dist/esm/models/operations/listsettlementrefunds.d.ts +8 -8
  281. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  282. package/dist/esm/models/operations/listsettlementrefunds.js +8 -12
  283. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  284. package/dist/esm/models/operations/listsettlements.d.ts +14 -854
  285. package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
  286. package/dist/esm/models/operations/listsettlements.js +10 -566
  287. package/dist/esm/models/operations/listsettlements.js.map +1 -1
  288. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +1472 -33
  289. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  290. package/dist/esm/models/operations/listsubscriptionpayments.js +757 -34
  291. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  292. package/dist/esm/models/operations/listsubscriptions.d.ts +8 -8
  293. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  294. package/dist/esm/models/operations/listsubscriptions.js +8 -14
  295. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  296. package/dist/esm/models/operations/listterminals.d.ts +8 -8
  297. package/dist/esm/models/operations/listterminals.d.ts.map +1 -1
  298. package/dist/esm/models/operations/listterminals.js +8 -12
  299. package/dist/esm/models/operations/listterminals.js.map +1 -1
  300. package/dist/esm/models/operations/listwebhooks.d.ts +8 -8
  301. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  302. package/dist/esm/models/operations/listwebhooks.js +8 -12
  303. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  304. package/dist/esm/models/operations/updatepayment.d.ts +1458 -19
  305. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  306. package/dist/esm/models/operations/updatepayment.js +735 -16
  307. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  308. package/dist/esm/models/operations/updatepaymentlink.d.ts +2 -2
  309. package/docs/sdks/customers/README.md +26 -0
  310. package/docs/sdks/payments/README.md +26 -0
  311. package/examples/package-lock.json +1 -1
  312. package/examples/paymentsCreate.example.ts +14 -0
  313. package/jsr.json +1 -1
  314. package/package.json +1 -1
  315. package/src/lib/config.ts +2 -2
  316. package/src/mcp-server/mcp-server.ts +1 -1
  317. package/src/mcp-server/server.ts +1 -1
  318. package/src/models/operations/cancelpayment.ts +2821 -1297
  319. package/src/models/operations/createcustomerpayment.ts +4804 -3036
  320. package/src/models/operations/createpayment.ts +4484 -2767
  321. package/src/models/operations/createpaymentlink.ts +2 -2
  322. package/src/models/operations/getnextsettlement.ts +4 -1290
  323. package/src/models/operations/getopensettlement.ts +4 -1290
  324. package/src/models/operations/getpayment.ts +3155 -1650
  325. package/src/models/operations/getpaymentlink.ts +1 -1
  326. package/src/models/operations/getpaymentlinkpayments.ts +3426 -1847
  327. package/src/models/operations/getsettlement.ts +4 -1253
  328. package/src/models/operations/getwebhookevent.ts +1 -1
  329. package/src/models/operations/listallchargebacks.ts +16 -22
  330. package/src/models/operations/listallmethods.ts +27 -34
  331. package/src/models/operations/listallrefunds.ts +16 -20
  332. package/src/models/operations/listallsubscriptions.ts +18 -21
  333. package/src/models/operations/listbalances.ts +16 -20
  334. package/src/models/operations/listbalancetransactions.ts +16 -18
  335. package/src/models/operations/listcaptures.ts +16 -20
  336. package/src/models/operations/listchargebacks.ts +16 -20
  337. package/src/models/operations/listclients.ts +16 -20
  338. package/src/models/operations/listcustomerpayments.ts +3408 -1847
  339. package/src/models/operations/listcustomers.ts +16 -20
  340. package/src/models/operations/listinvoices.ts +16 -20
  341. package/src/models/operations/listmandates.ts +16 -20
  342. package/src/models/operations/listpaymentlinks.ts +17 -22
  343. package/src/models/operations/listpayments.ts +2971 -1455
  344. package/src/models/operations/listprofiles.ts +16 -20
  345. package/src/models/operations/listrefunds.ts +16 -20
  346. package/src/models/operations/listsalesinvoices.ts +16 -22
  347. package/src/models/operations/listsettlementcaptures.ts +18 -19
  348. package/src/models/operations/listsettlementchargebacks.ts +16 -18
  349. package/src/models/operations/listsettlementpayments.ts +3436 -1859
  350. package/src/models/operations/listsettlementrefunds.ts +18 -20
  351. package/src/models/operations/listsettlements.ts +228 -1500
  352. package/src/models/operations/listsubscriptionpayments.ts +3479 -1875
  353. package/src/models/operations/listsubscriptions.ts +16 -22
  354. package/src/models/operations/listterminals.ts +16 -20
  355. package/src/models/operations/listwebhooks.ts +16 -20
  356. package/src/models/operations/updatepayment.ts +3437 -1913
  357. package/src/models/operations/updatepaymentlink.ts +2 -2
@@ -4,6 +4,7 @@
4
4
  import * as z from "zod";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ import { RFCDate } from "../../types/rfcdate.js";
7
8
  /**
8
9
  * Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
9
10
  *
@@ -187,7 +188,7 @@ export const ListCustomerPaymentsSequenceType = {
187
188
  * @remarks
188
189
  * statuses occur at what point.
189
190
  */
190
- export const ListCustomerPaymentsStatus = {
191
+ export const ListCustomerPaymentsStatusEnum = {
191
192
  Open: "open",
192
193
  Pending: "pending",
193
194
  Authorized: "authorized",
@@ -196,6 +197,249 @@ export const ListCustomerPaymentsStatus = {
196
197
  Expired: "expired",
197
198
  Failed: "failed",
198
199
  };
200
+ /**
201
+ * A machine-readable code that indicates the reason for the payment's status.
202
+ */
203
+ export const ListCustomerPaymentsCode = {
204
+ ApprovedOrCompletedSuccessfully: "approved_or_completed_successfully",
205
+ ReferToCardIssuer: "refer_to_card_issuer",
206
+ InvalidMerchant: "invalid_merchant",
207
+ CaptureCard: "capture_card",
208
+ DoNotHonor: "do_not_honor",
209
+ Error: "error",
210
+ PartialApproval: "partial_approval",
211
+ InvalidTransaction: "invalid_transaction",
212
+ InvalidAmount: "invalid_amount",
213
+ InvalidIssuer: "invalid_issuer",
214
+ LostCard: "lost_card",
215
+ StolenCard: "stolen_card",
216
+ InsufficientFunds: "insufficient_funds",
217
+ ExpiredCard: "expired_card",
218
+ InvalidPin: "invalid_pin",
219
+ TransactionNotPermittedToCardholder: "transaction_not_permitted_to_cardholder",
220
+ TransactionNotAllowedAtTerminal: "transaction_not_allowed_at_terminal",
221
+ ExceedsWithdrawalAmountLimit: "exceeds_withdrawal_amount_limit",
222
+ RestrictedCard: "restricted_card",
223
+ SecurityViolation: "security_violation",
224
+ ExceedsWithdrawalCountLimit: "exceeds_withdrawal_count_limit",
225
+ AllowableNumberOfPinTriesExceeded: "allowable_number_of_pin_tries_exceeded",
226
+ NoReasonToDecline: "no_reason_to_decline",
227
+ CannotVerifyPin: "cannot_verify_pin",
228
+ IssuerUnavailable: "issuer_unavailable",
229
+ UnableToRouteTransaction: "unable_to_route_transaction",
230
+ DuplicateTransaction: "duplicate_transaction",
231
+ SystemMalfunction: "system_malfunction",
232
+ HonorWithId: "honor_with_id",
233
+ InvalidCardNumber: "invalid_card_number",
234
+ FormatError: "format_error",
235
+ ContactCardIssuer: "contact_card_issuer",
236
+ PinNotChanged: "pin_not_changed",
237
+ InvalidNonexistentToAccountSpecified: "invalid_nonexistent_to_account_specified",
238
+ InvalidNonexistentFromAccountSpecified: "invalid_nonexistent_from_account_specified",
239
+ InvalidNonexistentAccountSpecified: "invalid_nonexistent_account_specified",
240
+ LifecycleRelated: "lifecycle_related",
241
+ DomesticDebitTransactionNotAllowed: "domestic_debit_transaction_not_allowed",
242
+ PolicyRelated: "policy_related",
243
+ FraudSecurityRelated: "fraud_security_related",
244
+ InvalidAuthorizationLifeCycle: "invalid_authorization_life_cycle",
245
+ PurchaseAmountOnlyNoCashBackAllowed: "purchase_amount_only_no_cash_back_allowed",
246
+ CryptographicFailure: "cryptographic_failure",
247
+ UnacceptablePin: "unacceptable_pin",
248
+ ReferToCardIssuerSpecialCondition: "refer_to_card_issuer_special_condition",
249
+ PickUpCardSpecialCondition: "pick_up_card_special_condition",
250
+ VipApproval: "vip_approval",
251
+ InvalidAccountNumber: "invalid_account_number",
252
+ ReEnterTransaction: "re_enter_transaction",
253
+ NoActionTaken: "no_action_taken",
254
+ UnableToLocateRecord: "unable_to_locate_record",
255
+ FileTemporarilyUnavailable: "file_temporarily_unavailable",
256
+ NoCreditAccount: "no_credit_account",
257
+ ClosedAccount: "closed_account",
258
+ NoCheckingAccount: "no_checking_account",
259
+ NoSavingsAccount: "no_savings_account",
260
+ SuspectedFraud: "suspected_fraud",
261
+ TransactionDoesNotFulfillAmlRequirement: "transaction_does_not_fulfill_aml_requirement",
262
+ PinDataRequired: "pin_data_required",
263
+ UnableToLocatePreviousMessage: "unable_to_locate_previous_message",
264
+ PreviousMessageLocatedInconsistentData: "previous_message_located_inconsistent_data",
265
+ BlockedFirstUsed: "blocked_first_used",
266
+ TransactionReversed: "transaction_reversed",
267
+ CreditIssuerUnavailable: "credit_issuer_unavailable",
268
+ PinCryptographicErrorFound: "pin_cryptographic_error_found",
269
+ NegativeOnlineCamResult: "negative_online_cam_result",
270
+ ViolationOfLaw: "violation_of_law",
271
+ ForceStip: "force_stip",
272
+ CashServiceNotAvailable: "cash_service_not_available",
273
+ CashbackRequestExceedsIssuerLimit: "cashback_request_exceeds_issuer_limit",
274
+ DeclineForCvv2Failure: "decline_for_cvv2_failure",
275
+ TransactionAmountExceedsPreAuthorizedAmount: "transaction_amount_exceeds_pre_authorized_amount",
276
+ InvalidBillerInformation: "invalid_biller_information",
277
+ PinChangeUnblockRequestDeclined: "pin_change_unblock_request_declined",
278
+ UnsafePin: "unsafe_pin",
279
+ CardAuthenticationFailed: "card_authentication_failed",
280
+ StopPaymentOrder: "stop_payment_order",
281
+ RevocationOfAuthorization: "revocation_of_authorization",
282
+ RevocationOfAllAuthorizations: "revocation_of_all_authorizations",
283
+ ForwardToIssuerXa: "forward_to_issuer_xa",
284
+ ForwardToIssuerXd: "forward_to_issuer_xd",
285
+ UnableToGoOnline: "unable_to_go_online",
286
+ AdditionalCustomerAuthenticationRequired: "additional_customer_authentication_required",
287
+ MerchantIdNotFound: "merchant_id_not_found",
288
+ MerchantAccountClosed: "merchant_account_closed",
289
+ TerminalIdNotFound: "terminal_id_not_found",
290
+ TerminalClosed: "terminal_closed",
291
+ InvalidCategoryCode: "invalid_category_code",
292
+ InvalidCurrency: "invalid_currency",
293
+ MissingCvv2Cvc2: "missing_cvv2_cvc2",
294
+ Cvv2NotAllowed: "cvv2_not_allowed",
295
+ MerchantNotRegisteredVbv: "merchant_not_registered_vbv",
296
+ MerchantNotRegisteredForAmex: "merchant_not_registered_for_amex",
297
+ TransactionNotPermittedAtTerminal: "transaction_not_permitted_at_terminal",
298
+ AgreementTerminalNotRelated: "agreement_terminal_not_related",
299
+ InvalidProcessorId: "invalid_processor_id",
300
+ InvalidMerchantData: "invalid_merchant_data",
301
+ SubMerchantAccountClosed: "sub_merchant_account_closed",
302
+ TerminalBusy: "terminal_busy",
303
+ TerminalUnreachable: "terminal_unreachable",
304
+ ServiceFailed: "service_failed",
305
+ InvalidOperation: "invalid_operation",
306
+ AuthorizationError: "authorization_error",
307
+ LoginFailedWithoutReason: "login_failed_without_reason",
308
+ InvalidRetailer: "invalid_retailer",
309
+ CardDoesNotExist: "card_does_not_exist",
310
+ CardIsBlocked: "card_is_blocked",
311
+ InvalidCardId: "invalid_card_id",
312
+ CardIsTransferred: "card_is_transferred",
313
+ CardIsNotActive: "card_is_not_active",
314
+ IncorrectPurchaseValue: "incorrect_purchase_value",
315
+ CardNotAvailable: "card_not_available",
316
+ WrongCurrency: "wrong_currency",
317
+ LoginFailedUnknownUser: "login_failed_unknown_user",
318
+ LoginFailedInvalidPassword: "login_failed_invalid_password",
319
+ InvalidEanCode: "invalid_ean_code",
320
+ };
321
+ /**
322
+ * The card's target audience, if known.
323
+ */
324
+ export const ListCustomerPaymentsCardAudition = {
325
+ Consumer: "consumer",
326
+ Business: "business",
327
+ };
328
+ /**
329
+ * The card's label, if known.
330
+ */
331
+ export const ListCustomerPaymentsCardLabel = {
332
+ AmericanExpress: "American Express",
333
+ CartaSi: "Carta Si",
334
+ CarteBleue: "Carte Bleue",
335
+ Dankort: "Dankort",
336
+ DinersClub: "Diners Club",
337
+ Discover: "Discover",
338
+ Jcb: "JCB",
339
+ Laser: "Laser",
340
+ Maestro: "Maestro",
341
+ Mastercard: "Mastercard",
342
+ Unionpay: "Unionpay",
343
+ Visa: "Visa",
344
+ Vpay: "Vpay",
345
+ };
346
+ /**
347
+ * The card type.
348
+ */
349
+ export const ListCustomerPaymentsCardFunding = {
350
+ Debit: "debit",
351
+ Credit: "credit",
352
+ Prepaid: "prepaid",
353
+ DeferredDebit: "deferred-debit",
354
+ };
355
+ /**
356
+ * The level of security applied during card processing.
357
+ */
358
+ export const ListCustomerPaymentsCardSecurity = {
359
+ Normal: "normal",
360
+ Threedsecure: "3dsecure",
361
+ };
362
+ /**
363
+ * The applicable card fee region.
364
+ */
365
+ export const ListCustomerPaymentsFeeRegion = {
366
+ AmericanExpress: "american-express",
367
+ AmexIntraEea: "amex-intra-eea",
368
+ CarteBancaire: "carte-bancaire",
369
+ IntraEu: "intra-eu",
370
+ IntraEuCorporate: "intra-eu-corporate",
371
+ Domestic: "domestic",
372
+ Maestro: "maestro",
373
+ Other: "other",
374
+ Inter: "inter",
375
+ IntraEea: "intra-eea",
376
+ };
377
+ /**
378
+ * A failure code to help understand why the payment failed.
379
+ */
380
+ export const ListCustomerPaymentsFailureReason = {
381
+ AuthenticationAbandoned: "authentication_abandoned",
382
+ AuthenticationFailed: "authentication_failed",
383
+ AuthenticationRequired: "authentication_required",
384
+ AuthenticationUnavailableAcs: "authentication_unavailable_acs",
385
+ CardDeclined: "card_declined",
386
+ CardExpired: "card_expired",
387
+ InactiveCard: "inactive_card",
388
+ InsufficientFunds: "insufficient_funds",
389
+ InvalidCvv: "invalid_cvv",
390
+ InvalidCardHolderName: "invalid_card_holder_name",
391
+ InvalidCardNumber: "invalid_card_number",
392
+ InvalidCardType: "invalid_card_type",
393
+ PossibleFraud: "possible_fraud",
394
+ RefusedByIssuer: "refused_by_issuer",
395
+ UnknownReason: "unknown_reason",
396
+ };
397
+ /**
398
+ * The wallet used when creating the payment.
399
+ */
400
+ export const ListCustomerPaymentsWallet = {
401
+ Applepay: "applepay",
402
+ };
403
+ /**
404
+ * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
405
+ *
406
+ * @remarks
407
+ * payments, and if the information is made available by PayPal.
408
+ */
409
+ export const ListCustomerPaymentsSellerProtection = {
410
+ Eligible: "Eligible",
411
+ Ineligible: "Ineligible",
412
+ PartiallyEligibleINROnly: "Partially Eligible - INR Only",
413
+ PartiallyEligibleUnauthOnly: "Partially Eligible - Unauth Only",
414
+ PartiallyEligible: "Partially Eligible",
415
+ None: "None",
416
+ Active: "Active",
417
+ FraudControlUnauthPremiumEligible: "Fraud Control - Unauth Premium Eligible",
418
+ };
419
+ /**
420
+ * The method by which the card was read by the terminal.
421
+ */
422
+ export const ListCustomerPaymentsCardReadMethod = {
423
+ Chip: "chip",
424
+ MagneticStripe: "magnetic-stripe",
425
+ NearFieldCommunication: "near-field-communication",
426
+ Contactless: "contactless",
427
+ Moto: "moto",
428
+ };
429
+ /**
430
+ * The method used to verify the cardholder's identity.
431
+ */
432
+ export const ListCustomerPaymentsCardVerificationMethod = {
433
+ NoCvmRequired: "no-cvm-required",
434
+ OnlinePin: "online-pin",
435
+ OfflinePin: "offline-pin",
436
+ ConsumerDevice: "consumer-device",
437
+ Signature: "signature",
438
+ SignatureAndOnlinePin: "signature-and-online-pin",
439
+ OnlinePinAndSignature: "online-pin-and-signature",
440
+ None: "none",
441
+ Failed: "failed",
442
+ };
199
443
  /** @internal */
200
444
  export const ListCustomerPaymentsSort$inboundSchema = z.nativeEnum(ListCustomerPaymentsSort);
201
445
  /** @internal */
@@ -1190,28 +1434,43 @@ export var ListCustomerPaymentsSequenceType$;
1190
1434
  ListCustomerPaymentsSequenceType$.outboundSchema = ListCustomerPaymentsSequenceType$outboundSchema;
1191
1435
  })(ListCustomerPaymentsSequenceType$ || (ListCustomerPaymentsSequenceType$ = {}));
1192
1436
  /** @internal */
1193
- export const ListCustomerPaymentsStatus$inboundSchema = z.nativeEnum(ListCustomerPaymentsStatus);
1437
+ export const ListCustomerPaymentsStatusEnum$inboundSchema = z.nativeEnum(ListCustomerPaymentsStatusEnum);
1194
1438
  /** @internal */
1195
- export const ListCustomerPaymentsStatus$outboundSchema = ListCustomerPaymentsStatus$inboundSchema;
1439
+ export const ListCustomerPaymentsStatusEnum$outboundSchema = ListCustomerPaymentsStatusEnum$inboundSchema;
1196
1440
  /**
1197
1441
  * @internal
1198
1442
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1199
1443
  */
1200
- export var ListCustomerPaymentsStatus$;
1201
- (function (ListCustomerPaymentsStatus$) {
1202
- /** @deprecated use `ListCustomerPaymentsStatus$inboundSchema` instead. */
1203
- ListCustomerPaymentsStatus$.inboundSchema = ListCustomerPaymentsStatus$inboundSchema;
1204
- /** @deprecated use `ListCustomerPaymentsStatus$outboundSchema` instead. */
1205
- ListCustomerPaymentsStatus$.outboundSchema = ListCustomerPaymentsStatus$outboundSchema;
1206
- })(ListCustomerPaymentsStatus$ || (ListCustomerPaymentsStatus$ = {}));
1444
+ export var ListCustomerPaymentsStatusEnum$;
1445
+ (function (ListCustomerPaymentsStatusEnum$) {
1446
+ /** @deprecated use `ListCustomerPaymentsStatusEnum$inboundSchema` instead. */
1447
+ ListCustomerPaymentsStatusEnum$.inboundSchema = ListCustomerPaymentsStatusEnum$inboundSchema;
1448
+ /** @deprecated use `ListCustomerPaymentsStatusEnum$outboundSchema` instead. */
1449
+ ListCustomerPaymentsStatusEnum$.outboundSchema = ListCustomerPaymentsStatusEnum$outboundSchema;
1450
+ })(ListCustomerPaymentsStatusEnum$ || (ListCustomerPaymentsStatusEnum$ = {}));
1451
+ /** @internal */
1452
+ export const ListCustomerPaymentsCode$inboundSchema = z.nativeEnum(ListCustomerPaymentsCode);
1453
+ /** @internal */
1454
+ export const ListCustomerPaymentsCode$outboundSchema = ListCustomerPaymentsCode$inboundSchema;
1455
+ /**
1456
+ * @internal
1457
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1458
+ */
1459
+ export var ListCustomerPaymentsCode$;
1460
+ (function (ListCustomerPaymentsCode$) {
1461
+ /** @deprecated use `ListCustomerPaymentsCode$inboundSchema` instead. */
1462
+ ListCustomerPaymentsCode$.inboundSchema = ListCustomerPaymentsCode$inboundSchema;
1463
+ /** @deprecated use `ListCustomerPaymentsCode$outboundSchema` instead. */
1464
+ ListCustomerPaymentsCode$.outboundSchema = ListCustomerPaymentsCode$outboundSchema;
1465
+ })(ListCustomerPaymentsCode$ || (ListCustomerPaymentsCode$ = {}));
1207
1466
  /** @internal */
1208
1467
  export const ListCustomerPaymentsStatusReason$inboundSchema = z.object({
1209
- code: z.string(),
1468
+ code: ListCustomerPaymentsCode$inboundSchema,
1210
1469
  message: z.string(),
1211
1470
  });
1212
1471
  /** @internal */
1213
1472
  export const ListCustomerPaymentsStatusReason$outboundSchema = z.object({
1214
- code: z.string(),
1473
+ code: ListCustomerPaymentsCode$outboundSchema,
1215
1474
  message: z.string(),
1216
1475
  });
1217
1476
  /**
@@ -1232,6 +1491,409 @@ export function listCustomerPaymentsStatusReasonFromJSON(jsonString) {
1232
1491
  return safeParse(jsonString, (x) => ListCustomerPaymentsStatusReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsStatusReason' from JSON`);
1233
1492
  }
1234
1493
  /** @internal */
1494
+ export const ListCustomerPaymentsCardAudition$inboundSchema = z.nativeEnum(ListCustomerPaymentsCardAudition);
1495
+ /** @internal */
1496
+ export const ListCustomerPaymentsCardAudition$outboundSchema = ListCustomerPaymentsCardAudition$inboundSchema;
1497
+ /**
1498
+ * @internal
1499
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1500
+ */
1501
+ export var ListCustomerPaymentsCardAudition$;
1502
+ (function (ListCustomerPaymentsCardAudition$) {
1503
+ /** @deprecated use `ListCustomerPaymentsCardAudition$inboundSchema` instead. */
1504
+ ListCustomerPaymentsCardAudition$.inboundSchema = ListCustomerPaymentsCardAudition$inboundSchema;
1505
+ /** @deprecated use `ListCustomerPaymentsCardAudition$outboundSchema` instead. */
1506
+ ListCustomerPaymentsCardAudition$.outboundSchema = ListCustomerPaymentsCardAudition$outboundSchema;
1507
+ })(ListCustomerPaymentsCardAudition$ || (ListCustomerPaymentsCardAudition$ = {}));
1508
+ /** @internal */
1509
+ export const ListCustomerPaymentsCardLabel$inboundSchema = z.nativeEnum(ListCustomerPaymentsCardLabel);
1510
+ /** @internal */
1511
+ export const ListCustomerPaymentsCardLabel$outboundSchema = ListCustomerPaymentsCardLabel$inboundSchema;
1512
+ /**
1513
+ * @internal
1514
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1515
+ */
1516
+ export var ListCustomerPaymentsCardLabel$;
1517
+ (function (ListCustomerPaymentsCardLabel$) {
1518
+ /** @deprecated use `ListCustomerPaymentsCardLabel$inboundSchema` instead. */
1519
+ ListCustomerPaymentsCardLabel$.inboundSchema = ListCustomerPaymentsCardLabel$inboundSchema;
1520
+ /** @deprecated use `ListCustomerPaymentsCardLabel$outboundSchema` instead. */
1521
+ ListCustomerPaymentsCardLabel$.outboundSchema = ListCustomerPaymentsCardLabel$outboundSchema;
1522
+ })(ListCustomerPaymentsCardLabel$ || (ListCustomerPaymentsCardLabel$ = {}));
1523
+ /** @internal */
1524
+ export const ListCustomerPaymentsCardFunding$inboundSchema = z.nativeEnum(ListCustomerPaymentsCardFunding);
1525
+ /** @internal */
1526
+ export const ListCustomerPaymentsCardFunding$outboundSchema = ListCustomerPaymentsCardFunding$inboundSchema;
1527
+ /**
1528
+ * @internal
1529
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1530
+ */
1531
+ export var ListCustomerPaymentsCardFunding$;
1532
+ (function (ListCustomerPaymentsCardFunding$) {
1533
+ /** @deprecated use `ListCustomerPaymentsCardFunding$inboundSchema` instead. */
1534
+ ListCustomerPaymentsCardFunding$.inboundSchema = ListCustomerPaymentsCardFunding$inboundSchema;
1535
+ /** @deprecated use `ListCustomerPaymentsCardFunding$outboundSchema` instead. */
1536
+ ListCustomerPaymentsCardFunding$.outboundSchema = ListCustomerPaymentsCardFunding$outboundSchema;
1537
+ })(ListCustomerPaymentsCardFunding$ || (ListCustomerPaymentsCardFunding$ = {}));
1538
+ /** @internal */
1539
+ export const ListCustomerPaymentsCardSecurity$inboundSchema = z.nativeEnum(ListCustomerPaymentsCardSecurity);
1540
+ /** @internal */
1541
+ export const ListCustomerPaymentsCardSecurity$outboundSchema = ListCustomerPaymentsCardSecurity$inboundSchema;
1542
+ /**
1543
+ * @internal
1544
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1545
+ */
1546
+ export var ListCustomerPaymentsCardSecurity$;
1547
+ (function (ListCustomerPaymentsCardSecurity$) {
1548
+ /** @deprecated use `ListCustomerPaymentsCardSecurity$inboundSchema` instead. */
1549
+ ListCustomerPaymentsCardSecurity$.inboundSchema = ListCustomerPaymentsCardSecurity$inboundSchema;
1550
+ /** @deprecated use `ListCustomerPaymentsCardSecurity$outboundSchema` instead. */
1551
+ ListCustomerPaymentsCardSecurity$.outboundSchema = ListCustomerPaymentsCardSecurity$outboundSchema;
1552
+ })(ListCustomerPaymentsCardSecurity$ || (ListCustomerPaymentsCardSecurity$ = {}));
1553
+ /** @internal */
1554
+ export const ListCustomerPaymentsFeeRegion$inboundSchema = z.nativeEnum(ListCustomerPaymentsFeeRegion);
1555
+ /** @internal */
1556
+ export const ListCustomerPaymentsFeeRegion$outboundSchema = ListCustomerPaymentsFeeRegion$inboundSchema;
1557
+ /**
1558
+ * @internal
1559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1560
+ */
1561
+ export var ListCustomerPaymentsFeeRegion$;
1562
+ (function (ListCustomerPaymentsFeeRegion$) {
1563
+ /** @deprecated use `ListCustomerPaymentsFeeRegion$inboundSchema` instead. */
1564
+ ListCustomerPaymentsFeeRegion$.inboundSchema = ListCustomerPaymentsFeeRegion$inboundSchema;
1565
+ /** @deprecated use `ListCustomerPaymentsFeeRegion$outboundSchema` instead. */
1566
+ ListCustomerPaymentsFeeRegion$.outboundSchema = ListCustomerPaymentsFeeRegion$outboundSchema;
1567
+ })(ListCustomerPaymentsFeeRegion$ || (ListCustomerPaymentsFeeRegion$ = {}));
1568
+ /** @internal */
1569
+ export const ListCustomerPaymentsFailureReason$inboundSchema = z.nativeEnum(ListCustomerPaymentsFailureReason);
1570
+ /** @internal */
1571
+ export const ListCustomerPaymentsFailureReason$outboundSchema = ListCustomerPaymentsFailureReason$inboundSchema;
1572
+ /**
1573
+ * @internal
1574
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1575
+ */
1576
+ export var ListCustomerPaymentsFailureReason$;
1577
+ (function (ListCustomerPaymentsFailureReason$) {
1578
+ /** @deprecated use `ListCustomerPaymentsFailureReason$inboundSchema` instead. */
1579
+ ListCustomerPaymentsFailureReason$.inboundSchema = ListCustomerPaymentsFailureReason$inboundSchema;
1580
+ /** @deprecated use `ListCustomerPaymentsFailureReason$outboundSchema` instead. */
1581
+ ListCustomerPaymentsFailureReason$.outboundSchema = ListCustomerPaymentsFailureReason$outboundSchema;
1582
+ })(ListCustomerPaymentsFailureReason$ || (ListCustomerPaymentsFailureReason$ = {}));
1583
+ /** @internal */
1584
+ export const ListCustomerPaymentsWallet$inboundSchema = z.nativeEnum(ListCustomerPaymentsWallet);
1585
+ /** @internal */
1586
+ export const ListCustomerPaymentsWallet$outboundSchema = ListCustomerPaymentsWallet$inboundSchema;
1587
+ /**
1588
+ * @internal
1589
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1590
+ */
1591
+ export var ListCustomerPaymentsWallet$;
1592
+ (function (ListCustomerPaymentsWallet$) {
1593
+ /** @deprecated use `ListCustomerPaymentsWallet$inboundSchema` instead. */
1594
+ ListCustomerPaymentsWallet$.inboundSchema = ListCustomerPaymentsWallet$inboundSchema;
1595
+ /** @deprecated use `ListCustomerPaymentsWallet$outboundSchema` instead. */
1596
+ ListCustomerPaymentsWallet$.outboundSchema = ListCustomerPaymentsWallet$outboundSchema;
1597
+ })(ListCustomerPaymentsWallet$ || (ListCustomerPaymentsWallet$ = {}));
1598
+ /** @internal */
1599
+ export const ListCustomerPaymentsSellerProtection$inboundSchema = z.nativeEnum(ListCustomerPaymentsSellerProtection);
1600
+ /** @internal */
1601
+ export const ListCustomerPaymentsSellerProtection$outboundSchema = ListCustomerPaymentsSellerProtection$inboundSchema;
1602
+ /**
1603
+ * @internal
1604
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1605
+ */
1606
+ export var ListCustomerPaymentsSellerProtection$;
1607
+ (function (ListCustomerPaymentsSellerProtection$) {
1608
+ /** @deprecated use `ListCustomerPaymentsSellerProtection$inboundSchema` instead. */
1609
+ ListCustomerPaymentsSellerProtection$.inboundSchema = ListCustomerPaymentsSellerProtection$inboundSchema;
1610
+ /** @deprecated use `ListCustomerPaymentsSellerProtection$outboundSchema` instead. */
1611
+ ListCustomerPaymentsSellerProtection$.outboundSchema = ListCustomerPaymentsSellerProtection$outboundSchema;
1612
+ })(ListCustomerPaymentsSellerProtection$ || (ListCustomerPaymentsSellerProtection$ = {}));
1613
+ /** @internal */
1614
+ export const ListCustomerPaymentsPaypalFee$inboundSchema = z.object({
1615
+ currency: z.string(),
1616
+ value: z.string(),
1617
+ });
1618
+ /** @internal */
1619
+ export const ListCustomerPaymentsPaypalFee$outboundSchema = z.object({
1620
+ currency: z.string(),
1621
+ value: z.string(),
1622
+ });
1623
+ /**
1624
+ * @internal
1625
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1626
+ */
1627
+ export var ListCustomerPaymentsPaypalFee$;
1628
+ (function (ListCustomerPaymentsPaypalFee$) {
1629
+ /** @deprecated use `ListCustomerPaymentsPaypalFee$inboundSchema` instead. */
1630
+ ListCustomerPaymentsPaypalFee$.inboundSchema = ListCustomerPaymentsPaypalFee$inboundSchema;
1631
+ /** @deprecated use `ListCustomerPaymentsPaypalFee$outboundSchema` instead. */
1632
+ ListCustomerPaymentsPaypalFee$.outboundSchema = ListCustomerPaymentsPaypalFee$outboundSchema;
1633
+ })(ListCustomerPaymentsPaypalFee$ || (ListCustomerPaymentsPaypalFee$ = {}));
1634
+ export function listCustomerPaymentsPaypalFeeToJSON(listCustomerPaymentsPaypalFee) {
1635
+ return JSON.stringify(ListCustomerPaymentsPaypalFee$outboundSchema.parse(listCustomerPaymentsPaypalFee));
1636
+ }
1637
+ export function listCustomerPaymentsPaypalFeeFromJSON(jsonString) {
1638
+ return safeParse(jsonString, (x) => ListCustomerPaymentsPaypalFee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsPaypalFee' from JSON`);
1639
+ }
1640
+ /** @internal */
1641
+ export const ListCustomerPaymentsCardReadMethod$inboundSchema = z.nativeEnum(ListCustomerPaymentsCardReadMethod);
1642
+ /** @internal */
1643
+ export const ListCustomerPaymentsCardReadMethod$outboundSchema = ListCustomerPaymentsCardReadMethod$inboundSchema;
1644
+ /**
1645
+ * @internal
1646
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1647
+ */
1648
+ export var ListCustomerPaymentsCardReadMethod$;
1649
+ (function (ListCustomerPaymentsCardReadMethod$) {
1650
+ /** @deprecated use `ListCustomerPaymentsCardReadMethod$inboundSchema` instead. */
1651
+ ListCustomerPaymentsCardReadMethod$.inboundSchema = ListCustomerPaymentsCardReadMethod$inboundSchema;
1652
+ /** @deprecated use `ListCustomerPaymentsCardReadMethod$outboundSchema` instead. */
1653
+ ListCustomerPaymentsCardReadMethod$.outboundSchema = ListCustomerPaymentsCardReadMethod$outboundSchema;
1654
+ })(ListCustomerPaymentsCardReadMethod$ || (ListCustomerPaymentsCardReadMethod$ = {}));
1655
+ /** @internal */
1656
+ export const ListCustomerPaymentsCardVerificationMethod$inboundSchema = z
1657
+ .nativeEnum(ListCustomerPaymentsCardVerificationMethod);
1658
+ /** @internal */
1659
+ export const ListCustomerPaymentsCardVerificationMethod$outboundSchema = ListCustomerPaymentsCardVerificationMethod$inboundSchema;
1660
+ /**
1661
+ * @internal
1662
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1663
+ */
1664
+ export var ListCustomerPaymentsCardVerificationMethod$;
1665
+ (function (ListCustomerPaymentsCardVerificationMethod$) {
1666
+ /** @deprecated use `ListCustomerPaymentsCardVerificationMethod$inboundSchema` instead. */
1667
+ ListCustomerPaymentsCardVerificationMethod$.inboundSchema = ListCustomerPaymentsCardVerificationMethod$inboundSchema;
1668
+ /** @deprecated use `ListCustomerPaymentsCardVerificationMethod$outboundSchema` instead. */
1669
+ ListCustomerPaymentsCardVerificationMethod$.outboundSchema = ListCustomerPaymentsCardVerificationMethod$outboundSchema;
1670
+ })(ListCustomerPaymentsCardVerificationMethod$ || (ListCustomerPaymentsCardVerificationMethod$ = {}));
1671
+ /** @internal */
1672
+ export const ListCustomerPaymentsReceipt$inboundSchema = z.object({
1673
+ authorizationCode: z.nullable(z.string()).optional(),
1674
+ applicationIdentifier: z.nullable(z.string()).optional(),
1675
+ cardReadMethod: z.nullable(ListCustomerPaymentsCardReadMethod$inboundSchema)
1676
+ .optional(),
1677
+ cardVerificationMethod: z.nullable(ListCustomerPaymentsCardVerificationMethod$inboundSchema).optional(),
1678
+ });
1679
+ /** @internal */
1680
+ export const ListCustomerPaymentsReceipt$outboundSchema = z.object({
1681
+ authorizationCode: z.nullable(z.string()).optional(),
1682
+ applicationIdentifier: z.nullable(z.string()).optional(),
1683
+ cardReadMethod: z.nullable(ListCustomerPaymentsCardReadMethod$outboundSchema)
1684
+ .optional(),
1685
+ cardVerificationMethod: z.nullable(ListCustomerPaymentsCardVerificationMethod$outboundSchema).optional(),
1686
+ });
1687
+ /**
1688
+ * @internal
1689
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1690
+ */
1691
+ export var ListCustomerPaymentsReceipt$;
1692
+ (function (ListCustomerPaymentsReceipt$) {
1693
+ /** @deprecated use `ListCustomerPaymentsReceipt$inboundSchema` instead. */
1694
+ ListCustomerPaymentsReceipt$.inboundSchema = ListCustomerPaymentsReceipt$inboundSchema;
1695
+ /** @deprecated use `ListCustomerPaymentsReceipt$outboundSchema` instead. */
1696
+ ListCustomerPaymentsReceipt$.outboundSchema = ListCustomerPaymentsReceipt$outboundSchema;
1697
+ })(ListCustomerPaymentsReceipt$ || (ListCustomerPaymentsReceipt$ = {}));
1698
+ export function listCustomerPaymentsReceiptToJSON(listCustomerPaymentsReceipt) {
1699
+ return JSON.stringify(ListCustomerPaymentsReceipt$outboundSchema.parse(listCustomerPaymentsReceipt));
1700
+ }
1701
+ export function listCustomerPaymentsReceiptFromJSON(jsonString) {
1702
+ return safeParse(jsonString, (x) => ListCustomerPaymentsReceipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsReceipt' from JSON`);
1703
+ }
1704
+ /** @internal */
1705
+ export const ListCustomerPaymentsQrCode$inboundSchema = z.object({
1706
+ height: z.number().int().optional(),
1707
+ width: z.number().int().optional(),
1708
+ src: z.string().optional(),
1709
+ });
1710
+ /** @internal */
1711
+ export const ListCustomerPaymentsQrCode$outboundSchema = z.object({
1712
+ height: z.number().int().optional(),
1713
+ width: z.number().int().optional(),
1714
+ src: z.string().optional(),
1715
+ });
1716
+ /**
1717
+ * @internal
1718
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1719
+ */
1720
+ export var ListCustomerPaymentsQrCode$;
1721
+ (function (ListCustomerPaymentsQrCode$) {
1722
+ /** @deprecated use `ListCustomerPaymentsQrCode$inboundSchema` instead. */
1723
+ ListCustomerPaymentsQrCode$.inboundSchema = ListCustomerPaymentsQrCode$inboundSchema;
1724
+ /** @deprecated use `ListCustomerPaymentsQrCode$outboundSchema` instead. */
1725
+ ListCustomerPaymentsQrCode$.outboundSchema = ListCustomerPaymentsQrCode$outboundSchema;
1726
+ })(ListCustomerPaymentsQrCode$ || (ListCustomerPaymentsQrCode$ = {}));
1727
+ export function listCustomerPaymentsQrCodeToJSON(listCustomerPaymentsQrCode) {
1728
+ return JSON.stringify(ListCustomerPaymentsQrCode$outboundSchema.parse(listCustomerPaymentsQrCode));
1729
+ }
1730
+ export function listCustomerPaymentsQrCodeFromJSON(jsonString) {
1731
+ return safeParse(jsonString, (x) => ListCustomerPaymentsQrCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsQrCode' from JSON`);
1732
+ }
1733
+ /** @internal */
1734
+ export const ListCustomerPaymentsRemainderAmount$inboundSchema = z.object({
1735
+ currency: z.string(),
1736
+ value: z.string(),
1737
+ });
1738
+ /** @internal */
1739
+ export const ListCustomerPaymentsRemainderAmount$outboundSchema = z.object({
1740
+ currency: z.string(),
1741
+ value: z.string(),
1742
+ });
1743
+ /**
1744
+ * @internal
1745
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1746
+ */
1747
+ export var ListCustomerPaymentsRemainderAmount$;
1748
+ (function (ListCustomerPaymentsRemainderAmount$) {
1749
+ /** @deprecated use `ListCustomerPaymentsRemainderAmount$inboundSchema` instead. */
1750
+ ListCustomerPaymentsRemainderAmount$.inboundSchema = ListCustomerPaymentsRemainderAmount$inboundSchema;
1751
+ /** @deprecated use `ListCustomerPaymentsRemainderAmount$outboundSchema` instead. */
1752
+ ListCustomerPaymentsRemainderAmount$.outboundSchema = ListCustomerPaymentsRemainderAmount$outboundSchema;
1753
+ })(ListCustomerPaymentsRemainderAmount$ || (ListCustomerPaymentsRemainderAmount$ = {}));
1754
+ export function listCustomerPaymentsRemainderAmountToJSON(listCustomerPaymentsRemainderAmount) {
1755
+ return JSON.stringify(ListCustomerPaymentsRemainderAmount$outboundSchema.parse(listCustomerPaymentsRemainderAmount));
1756
+ }
1757
+ export function listCustomerPaymentsRemainderAmountFromJSON(jsonString) {
1758
+ return safeParse(jsonString, (x) => ListCustomerPaymentsRemainderAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsRemainderAmount' from JSON`);
1759
+ }
1760
+ /** @internal */
1761
+ export const ListCustomerPaymentsDetails$inboundSchema = z.object({
1762
+ consumerName: z.nullable(z.string()).optional(),
1763
+ consumerAccount: z.nullable(z.string()).optional(),
1764
+ consumerBic: z.nullable(z.string()).optional(),
1765
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1766
+ cardNumber: z.nullable(z.string()).optional(),
1767
+ bankName: z.string().optional(),
1768
+ bankAccount: z.string().optional(),
1769
+ bankBic: z.string().optional(),
1770
+ transferReference: z.nullable(z.string()).optional(),
1771
+ cardFingerprint: z.nullable(z.string()).optional(),
1772
+ cardHolder: z.nullable(z.string()).optional(),
1773
+ cardAudition: z.nullable(ListCustomerPaymentsCardAudition$inboundSchema)
1774
+ .optional(),
1775
+ cardLabel: z.nullable(ListCustomerPaymentsCardLabel$inboundSchema).optional(),
1776
+ cardCountryCode: z.nullable(z.string()).optional(),
1777
+ cardExpiryDate: z.nullable(z.string()).optional(),
1778
+ cardFunding: z.nullable(ListCustomerPaymentsCardFunding$inboundSchema)
1779
+ .optional(),
1780
+ cardSecurity: z.nullable(ListCustomerPaymentsCardSecurity$inboundSchema)
1781
+ .optional(),
1782
+ feeRegion: z.nullable(ListCustomerPaymentsFeeRegion$inboundSchema).optional(),
1783
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1784
+ card3dsEci: z.nullable(z.string()).optional(),
1785
+ cardBin: z.nullable(z.string()).optional(),
1786
+ cardIssuer: z.nullable(z.string()).optional(),
1787
+ failureReason: z.nullable(ListCustomerPaymentsFailureReason$inboundSchema)
1788
+ .optional(),
1789
+ failureMessage: z.nullable(z.string()).optional(),
1790
+ wallet: z.nullable(ListCustomerPaymentsWallet$inboundSchema).optional(),
1791
+ paypalReference: z.nullable(z.string()).optional(),
1792
+ paypalPayerId: z.nullable(z.string()).optional(),
1793
+ sellerProtection: z.nullable(ListCustomerPaymentsSellerProtection$inboundSchema).optional(),
1794
+ paypalFee: z.nullable(z.lazy(() => ListCustomerPaymentsPaypalFee$inboundSchema)).optional(),
1795
+ customerReference: z.string().optional(),
1796
+ terminalId: z.string().optional(),
1797
+ maskedNumber: z.nullable(z.string()).optional(),
1798
+ receipt: z.lazy(() => ListCustomerPaymentsReceipt$inboundSchema).optional(),
1799
+ creditorIdentifier: z.nullable(z.string()).optional(),
1800
+ dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
1801
+ signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
1802
+ .optional(),
1803
+ bankReasonCode: z.nullable(z.string()).optional(),
1804
+ bankReason: z.nullable(z.string()).optional(),
1805
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1806
+ mandateReference: z.nullable(z.string()).optional(),
1807
+ batchReference: z.nullable(z.string()).optional(),
1808
+ fileReference: z.nullable(z.string()).optional(),
1809
+ qrCode: z.lazy(() => ListCustomerPaymentsQrCode$inboundSchema).optional(),
1810
+ voucherNumber: z.string().optional(),
1811
+ giftcards: z.array(z.record(z.any())).optional(),
1812
+ issuer: z.string().optional(),
1813
+ vouchers: z.array(z.record(z.any())).optional(),
1814
+ remainderAmount: z.lazy(() => ListCustomerPaymentsRemainderAmount$inboundSchema).optional(),
1815
+ remainderMethod: z.string().optional(),
1816
+ remainderDetails: z.record(z.any()).optional(),
1817
+ });
1818
+ /** @internal */
1819
+ export const ListCustomerPaymentsDetails$outboundSchema = z.object({
1820
+ consumerName: z.nullable(z.string()).optional(),
1821
+ consumerAccount: z.nullable(z.string()).optional(),
1822
+ consumerBic: z.nullable(z.string()).optional(),
1823
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1824
+ cardNumber: z.nullable(z.string()).optional(),
1825
+ bankName: z.string().optional(),
1826
+ bankAccount: z.string().optional(),
1827
+ bankBic: z.string().optional(),
1828
+ transferReference: z.nullable(z.string()).optional(),
1829
+ cardFingerprint: z.nullable(z.string()).optional(),
1830
+ cardHolder: z.nullable(z.string()).optional(),
1831
+ cardAudition: z.nullable(ListCustomerPaymentsCardAudition$outboundSchema)
1832
+ .optional(),
1833
+ cardLabel: z.nullable(ListCustomerPaymentsCardLabel$outboundSchema)
1834
+ .optional(),
1835
+ cardCountryCode: z.nullable(z.string()).optional(),
1836
+ cardExpiryDate: z.nullable(z.string()).optional(),
1837
+ cardFunding: z.nullable(ListCustomerPaymentsCardFunding$outboundSchema)
1838
+ .optional(),
1839
+ cardSecurity: z.nullable(ListCustomerPaymentsCardSecurity$outboundSchema)
1840
+ .optional(),
1841
+ feeRegion: z.nullable(ListCustomerPaymentsFeeRegion$outboundSchema)
1842
+ .optional(),
1843
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1844
+ card3dsEci: z.nullable(z.string()).optional(),
1845
+ cardBin: z.nullable(z.string()).optional(),
1846
+ cardIssuer: z.nullable(z.string()).optional(),
1847
+ failureReason: z.nullable(ListCustomerPaymentsFailureReason$outboundSchema)
1848
+ .optional(),
1849
+ failureMessage: z.nullable(z.string()).optional(),
1850
+ wallet: z.nullable(ListCustomerPaymentsWallet$outboundSchema).optional(),
1851
+ paypalReference: z.nullable(z.string()).optional(),
1852
+ paypalPayerId: z.nullable(z.string()).optional(),
1853
+ sellerProtection: z.nullable(ListCustomerPaymentsSellerProtection$outboundSchema).optional(),
1854
+ paypalFee: z.nullable(z.lazy(() => ListCustomerPaymentsPaypalFee$outboundSchema)).optional(),
1855
+ customerReference: z.string().optional(),
1856
+ terminalId: z.string().optional(),
1857
+ maskedNumber: z.nullable(z.string()).optional(),
1858
+ receipt: z.lazy(() => ListCustomerPaymentsReceipt$outboundSchema).optional(),
1859
+ creditorIdentifier: z.nullable(z.string()).optional(),
1860
+ dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1861
+ .optional(),
1862
+ signatureDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1863
+ .optional(),
1864
+ bankReasonCode: z.nullable(z.string()).optional(),
1865
+ bankReason: z.nullable(z.string()).optional(),
1866
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1867
+ mandateReference: z.nullable(z.string()).optional(),
1868
+ batchReference: z.nullable(z.string()).optional(),
1869
+ fileReference: z.nullable(z.string()).optional(),
1870
+ qrCode: z.lazy(() => ListCustomerPaymentsQrCode$outboundSchema).optional(),
1871
+ voucherNumber: z.string().optional(),
1872
+ giftcards: z.array(z.record(z.any())).optional(),
1873
+ issuer: z.string().optional(),
1874
+ vouchers: z.array(z.record(z.any())).optional(),
1875
+ remainderAmount: z.lazy(() => ListCustomerPaymentsRemainderAmount$outboundSchema).optional(),
1876
+ remainderMethod: z.string().optional(),
1877
+ remainderDetails: z.record(z.any()).optional(),
1878
+ });
1879
+ /**
1880
+ * @internal
1881
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1882
+ */
1883
+ export var ListCustomerPaymentsDetails$;
1884
+ (function (ListCustomerPaymentsDetails$) {
1885
+ /** @deprecated use `ListCustomerPaymentsDetails$inboundSchema` instead. */
1886
+ ListCustomerPaymentsDetails$.inboundSchema = ListCustomerPaymentsDetails$inboundSchema;
1887
+ /** @deprecated use `ListCustomerPaymentsDetails$outboundSchema` instead. */
1888
+ ListCustomerPaymentsDetails$.outboundSchema = ListCustomerPaymentsDetails$outboundSchema;
1889
+ })(ListCustomerPaymentsDetails$ || (ListCustomerPaymentsDetails$ = {}));
1890
+ export function listCustomerPaymentsDetailsToJSON(listCustomerPaymentsDetails) {
1891
+ return JSON.stringify(ListCustomerPaymentsDetails$outboundSchema.parse(listCustomerPaymentsDetails));
1892
+ }
1893
+ export function listCustomerPaymentsDetailsFromJSON(jsonString) {
1894
+ return safeParse(jsonString, (x) => ListCustomerPaymentsDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsDetails' from JSON`);
1895
+ }
1896
+ /** @internal */
1235
1897
  export const ListCustomerPaymentsPaymentSelf$inboundSchema = z.object({
1236
1898
  href: z.string(),
1237
1899
  type: z.string(),
@@ -1637,6 +2299,60 @@ export function listCustomerPaymentsPaymentDocumentationFromJSON(jsonString) {
1637
2299
  return safeParse(jsonString, (x) => ListCustomerPaymentsPaymentDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsPaymentDocumentation' from JSON`);
1638
2300
  }
1639
2301
  /** @internal */
2302
+ export const ListCustomerPaymentsLinksStatus$inboundSchema = z.object({
2303
+ href: z.string(),
2304
+ type: z.string(),
2305
+ });
2306
+ /** @internal */
2307
+ export const ListCustomerPaymentsLinksStatus$outboundSchema = z.object({
2308
+ href: z.string(),
2309
+ type: z.string(),
2310
+ });
2311
+ /**
2312
+ * @internal
2313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2314
+ */
2315
+ export var ListCustomerPaymentsLinksStatus$;
2316
+ (function (ListCustomerPaymentsLinksStatus$) {
2317
+ /** @deprecated use `ListCustomerPaymentsLinksStatus$inboundSchema` instead. */
2318
+ ListCustomerPaymentsLinksStatus$.inboundSchema = ListCustomerPaymentsLinksStatus$inboundSchema;
2319
+ /** @deprecated use `ListCustomerPaymentsLinksStatus$outboundSchema` instead. */
2320
+ ListCustomerPaymentsLinksStatus$.outboundSchema = ListCustomerPaymentsLinksStatus$outboundSchema;
2321
+ })(ListCustomerPaymentsLinksStatus$ || (ListCustomerPaymentsLinksStatus$ = {}));
2322
+ export function listCustomerPaymentsLinksStatusToJSON(listCustomerPaymentsLinksStatus) {
2323
+ return JSON.stringify(ListCustomerPaymentsLinksStatus$outboundSchema.parse(listCustomerPaymentsLinksStatus));
2324
+ }
2325
+ export function listCustomerPaymentsLinksStatusFromJSON(jsonString) {
2326
+ return safeParse(jsonString, (x) => ListCustomerPaymentsLinksStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsLinksStatus' from JSON`);
2327
+ }
2328
+ /** @internal */
2329
+ export const ListCustomerPaymentsPayOnline$inboundSchema = z.object({
2330
+ href: z.string(),
2331
+ type: z.string(),
2332
+ });
2333
+ /** @internal */
2334
+ export const ListCustomerPaymentsPayOnline$outboundSchema = z.object({
2335
+ href: z.string(),
2336
+ type: z.string(),
2337
+ });
2338
+ /**
2339
+ * @internal
2340
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2341
+ */
2342
+ export var ListCustomerPaymentsPayOnline$;
2343
+ (function (ListCustomerPaymentsPayOnline$) {
2344
+ /** @deprecated use `ListCustomerPaymentsPayOnline$inboundSchema` instead. */
2345
+ ListCustomerPaymentsPayOnline$.inboundSchema = ListCustomerPaymentsPayOnline$inboundSchema;
2346
+ /** @deprecated use `ListCustomerPaymentsPayOnline$outboundSchema` instead. */
2347
+ ListCustomerPaymentsPayOnline$.outboundSchema = ListCustomerPaymentsPayOnline$outboundSchema;
2348
+ })(ListCustomerPaymentsPayOnline$ || (ListCustomerPaymentsPayOnline$ = {}));
2349
+ export function listCustomerPaymentsPayOnlineToJSON(listCustomerPaymentsPayOnline) {
2350
+ return JSON.stringify(ListCustomerPaymentsPayOnline$outboundSchema.parse(listCustomerPaymentsPayOnline));
2351
+ }
2352
+ export function listCustomerPaymentsPayOnlineFromJSON(jsonString) {
2353
+ return safeParse(jsonString, (x) => ListCustomerPaymentsPayOnline$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCustomerPaymentsPayOnline' from JSON`);
2354
+ }
2355
+ /** @internal */
1640
2356
  export const ListCustomerPaymentsPaymentLinks$inboundSchema = z.object({
1641
2357
  self: z.lazy(() => ListCustomerPaymentsPaymentSelf$inboundSchema),
1642
2358
  checkout: z.lazy(() => ListCustomerPaymentsCheckout$inboundSchema).optional(),
@@ -1656,6 +2372,10 @@ export const ListCustomerPaymentsPaymentLinks$inboundSchema = z.object({
1656
2372
  order: z.lazy(() => ListCustomerPaymentsOrder$inboundSchema).optional(),
1657
2373
  terminal: z.lazy(() => ListCustomerPaymentsTerminal$inboundSchema).optional(),
1658
2374
  documentation: z.lazy(() => ListCustomerPaymentsPaymentDocumentation$inboundSchema).optional(),
2375
+ status: z.lazy(() => ListCustomerPaymentsLinksStatus$inboundSchema)
2376
+ .optional(),
2377
+ payOnline: z.lazy(() => ListCustomerPaymentsPayOnline$inboundSchema)
2378
+ .optional(),
1659
2379
  });
1660
2380
  /** @internal */
1661
2381
  export const ListCustomerPaymentsPaymentLinks$outboundSchema = z.object({
@@ -1681,6 +2401,10 @@ export const ListCustomerPaymentsPaymentLinks$outboundSchema = z.object({
1681
2401
  terminal: z.lazy(() => ListCustomerPaymentsTerminal$outboundSchema)
1682
2402
  .optional(),
1683
2403
  documentation: z.lazy(() => ListCustomerPaymentsPaymentDocumentation$outboundSchema).optional(),
2404
+ status: z.lazy(() => ListCustomerPaymentsLinksStatus$outboundSchema)
2405
+ .optional(),
2406
+ payOnline: z.lazy(() => ListCustomerPaymentsPayOnline$outboundSchema)
2407
+ .optional(),
1684
2408
  });
1685
2409
  /**
1686
2410
  * @internal
@@ -1738,10 +2462,11 @@ export const ListCustomerPaymentsPaymentOutput$inboundSchema = z.object({
1738
2462
  profileId: z.string(),
1739
2463
  settlementId: z.nullable(z.string()).optional(),
1740
2464
  orderId: z.nullable(z.string()).optional(),
1741
- status: ListCustomerPaymentsStatus$inboundSchema,
2465
+ status: ListCustomerPaymentsStatusEnum$inboundSchema,
1742
2466
  statusReason: z.nullable(z.lazy(() => ListCustomerPaymentsStatusReason$inboundSchema)).optional(),
1743
2467
  isCancelable: z.nullable(z.boolean()).optional(),
1744
- details: z.nullable(z.record(z.any())).optional(),
2468
+ details: z.nullable(z.lazy(() => ListCustomerPaymentsDetails$inboundSchema))
2469
+ .optional(),
1745
2470
  createdAt: z.string(),
1746
2471
  authorizedAt: z.nullable(z.string()).optional(),
1747
2472
  paidAt: z.nullable(z.string()).optional(),
@@ -1791,10 +2516,11 @@ export const ListCustomerPaymentsPaymentOutput$outboundSchema = z.object({
1791
2516
  profileId: z.string(),
1792
2517
  settlementId: z.nullable(z.string()).optional(),
1793
2518
  orderId: z.nullable(z.string()).optional(),
1794
- status: ListCustomerPaymentsStatus$outboundSchema,
2519
+ status: ListCustomerPaymentsStatusEnum$outboundSchema,
1795
2520
  statusReason: z.nullable(z.lazy(() => ListCustomerPaymentsStatusReason$outboundSchema)).optional(),
1796
2521
  isCancelable: z.nullable(z.boolean()).optional(),
1797
- details: z.nullable(z.record(z.any())).optional(),
2522
+ details: z.nullable(z.lazy(() => ListCustomerPaymentsDetails$outboundSchema))
2523
+ .optional(),
1798
2524
  createdAt: z.string(),
1799
2525
  authorizedAt: z.nullable(z.string()).optional(),
1800
2526
  paidAt: z.nullable(z.string()).optional(),
@@ -1960,22 +2686,17 @@ export function listCustomerPaymentsDocumentationFromJSON(jsonString) {
1960
2686
  }
1961
2687
  /** @internal */
1962
2688
  export const ListCustomerPaymentsLinks$inboundSchema = z.object({
1963
- self: z.lazy(() => ListCustomerPaymentsSelf$inboundSchema).optional(),
1964
- previous: z.nullable(z.lazy(() => ListCustomerPaymentsPrevious$inboundSchema))
1965
- .optional(),
1966
- next: z.nullable(z.lazy(() => ListCustomerPaymentsNext$inboundSchema))
1967
- .optional(),
1968
- documentation: z.lazy(() => ListCustomerPaymentsDocumentation$inboundSchema)
1969
- .optional(),
2689
+ self: z.lazy(() => ListCustomerPaymentsSelf$inboundSchema),
2690
+ previous: z.nullable(z.lazy(() => ListCustomerPaymentsPrevious$inboundSchema)),
2691
+ next: z.nullable(z.lazy(() => ListCustomerPaymentsNext$inboundSchema)),
2692
+ documentation: z.lazy(() => ListCustomerPaymentsDocumentation$inboundSchema),
1970
2693
  });
1971
2694
  /** @internal */
1972
2695
  export const ListCustomerPaymentsLinks$outboundSchema = z.object({
1973
- self: z.lazy(() => ListCustomerPaymentsSelf$outboundSchema).optional(),
1974
- previous: z.nullable(z.lazy(() => ListCustomerPaymentsPrevious$outboundSchema)).optional(),
1975
- next: z.nullable(z.lazy(() => ListCustomerPaymentsNext$outboundSchema))
1976
- .optional(),
1977
- documentation: z.lazy(() => ListCustomerPaymentsDocumentation$outboundSchema)
1978
- .optional(),
2696
+ self: z.lazy(() => ListCustomerPaymentsSelf$outboundSchema),
2697
+ previous: z.nullable(z.lazy(() => ListCustomerPaymentsPrevious$outboundSchema)),
2698
+ next: z.nullable(z.lazy(() => ListCustomerPaymentsNext$outboundSchema)),
2699
+ documentation: z.lazy(() => ListCustomerPaymentsDocumentation$outboundSchema),
1979
2700
  });
1980
2701
  /**
1981
2702
  * @internal
@@ -1996,10 +2717,9 @@ export function listCustomerPaymentsLinksFromJSON(jsonString) {
1996
2717
  }
1997
2718
  /** @internal */
1998
2719
  export const ListCustomerPaymentsResponse$inboundSchema = z.object({
1999
- count: z.number().int().optional(),
2000
- _embedded: z.lazy(() => ListCustomerPaymentsEmbedded$inboundSchema)
2001
- .optional(),
2002
- _links: z.lazy(() => ListCustomerPaymentsLinks$inboundSchema).optional(),
2720
+ count: z.number().int(),
2721
+ _embedded: z.lazy(() => ListCustomerPaymentsEmbedded$inboundSchema),
2722
+ _links: z.lazy(() => ListCustomerPaymentsLinks$inboundSchema),
2003
2723
  }).transform((v) => {
2004
2724
  return remap$(v, {
2005
2725
  "_embedded": "embedded",
@@ -2008,10 +2728,9 @@ export const ListCustomerPaymentsResponse$inboundSchema = z.object({
2008
2728
  });
2009
2729
  /** @internal */
2010
2730
  export const ListCustomerPaymentsResponse$outboundSchema = z.object({
2011
- count: z.number().int().optional(),
2012
- embedded: z.lazy(() => ListCustomerPaymentsEmbedded$outboundSchema)
2013
- .optional(),
2014
- links: z.lazy(() => ListCustomerPaymentsLinks$outboundSchema).optional(),
2731
+ count: z.number().int(),
2732
+ embedded: z.lazy(() => ListCustomerPaymentsEmbedded$outboundSchema),
2733
+ links: z.lazy(() => ListCustomerPaymentsLinks$outboundSchema),
2015
2734
  }).transform((v) => {
2016
2735
  return remap$(v, {
2017
2736
  embedded: "_embedded",