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
  * The type of product purchased. For example, a physical or a digital product.
9
10
  *
@@ -335,7 +336,7 @@ export const CreateCustomerPaymentSequenceTypeResponse = {
335
336
  * @remarks
336
337
  * statuses occur at what point.
337
338
  */
338
- export const CreateCustomerPaymentStatus = {
339
+ export const CreateCustomerPaymentStatusEnum = {
339
340
  Open: "open",
340
341
  Pending: "pending",
341
342
  Authorized: "authorized",
@@ -344,6 +345,249 @@ export const CreateCustomerPaymentStatus = {
344
345
  Expired: "expired",
345
346
  Failed: "failed",
346
347
  };
348
+ /**
349
+ * A machine-readable code that indicates the reason for the payment's status.
350
+ */
351
+ export const CreateCustomerPaymentCode = {
352
+ ApprovedOrCompletedSuccessfully: "approved_or_completed_successfully",
353
+ ReferToCardIssuer: "refer_to_card_issuer",
354
+ InvalidMerchant: "invalid_merchant",
355
+ CaptureCard: "capture_card",
356
+ DoNotHonor: "do_not_honor",
357
+ Error: "error",
358
+ PartialApproval: "partial_approval",
359
+ InvalidTransaction: "invalid_transaction",
360
+ InvalidAmount: "invalid_amount",
361
+ InvalidIssuer: "invalid_issuer",
362
+ LostCard: "lost_card",
363
+ StolenCard: "stolen_card",
364
+ InsufficientFunds: "insufficient_funds",
365
+ ExpiredCard: "expired_card",
366
+ InvalidPin: "invalid_pin",
367
+ TransactionNotPermittedToCardholder: "transaction_not_permitted_to_cardholder",
368
+ TransactionNotAllowedAtTerminal: "transaction_not_allowed_at_terminal",
369
+ ExceedsWithdrawalAmountLimit: "exceeds_withdrawal_amount_limit",
370
+ RestrictedCard: "restricted_card",
371
+ SecurityViolation: "security_violation",
372
+ ExceedsWithdrawalCountLimit: "exceeds_withdrawal_count_limit",
373
+ AllowableNumberOfPinTriesExceeded: "allowable_number_of_pin_tries_exceeded",
374
+ NoReasonToDecline: "no_reason_to_decline",
375
+ CannotVerifyPin: "cannot_verify_pin",
376
+ IssuerUnavailable: "issuer_unavailable",
377
+ UnableToRouteTransaction: "unable_to_route_transaction",
378
+ DuplicateTransaction: "duplicate_transaction",
379
+ SystemMalfunction: "system_malfunction",
380
+ HonorWithId: "honor_with_id",
381
+ InvalidCardNumber: "invalid_card_number",
382
+ FormatError: "format_error",
383
+ ContactCardIssuer: "contact_card_issuer",
384
+ PinNotChanged: "pin_not_changed",
385
+ InvalidNonexistentToAccountSpecified: "invalid_nonexistent_to_account_specified",
386
+ InvalidNonexistentFromAccountSpecified: "invalid_nonexistent_from_account_specified",
387
+ InvalidNonexistentAccountSpecified: "invalid_nonexistent_account_specified",
388
+ LifecycleRelated: "lifecycle_related",
389
+ DomesticDebitTransactionNotAllowed: "domestic_debit_transaction_not_allowed",
390
+ PolicyRelated: "policy_related",
391
+ FraudSecurityRelated: "fraud_security_related",
392
+ InvalidAuthorizationLifeCycle: "invalid_authorization_life_cycle",
393
+ PurchaseAmountOnlyNoCashBackAllowed: "purchase_amount_only_no_cash_back_allowed",
394
+ CryptographicFailure: "cryptographic_failure",
395
+ UnacceptablePin: "unacceptable_pin",
396
+ ReferToCardIssuerSpecialCondition: "refer_to_card_issuer_special_condition",
397
+ PickUpCardSpecialCondition: "pick_up_card_special_condition",
398
+ VipApproval: "vip_approval",
399
+ InvalidAccountNumber: "invalid_account_number",
400
+ ReEnterTransaction: "re_enter_transaction",
401
+ NoActionTaken: "no_action_taken",
402
+ UnableToLocateRecord: "unable_to_locate_record",
403
+ FileTemporarilyUnavailable: "file_temporarily_unavailable",
404
+ NoCreditAccount: "no_credit_account",
405
+ ClosedAccount: "closed_account",
406
+ NoCheckingAccount: "no_checking_account",
407
+ NoSavingsAccount: "no_savings_account",
408
+ SuspectedFraud: "suspected_fraud",
409
+ TransactionDoesNotFulfillAmlRequirement: "transaction_does_not_fulfill_aml_requirement",
410
+ PinDataRequired: "pin_data_required",
411
+ UnableToLocatePreviousMessage: "unable_to_locate_previous_message",
412
+ PreviousMessageLocatedInconsistentData: "previous_message_located_inconsistent_data",
413
+ BlockedFirstUsed: "blocked_first_used",
414
+ TransactionReversed: "transaction_reversed",
415
+ CreditIssuerUnavailable: "credit_issuer_unavailable",
416
+ PinCryptographicErrorFound: "pin_cryptographic_error_found",
417
+ NegativeOnlineCamResult: "negative_online_cam_result",
418
+ ViolationOfLaw: "violation_of_law",
419
+ ForceStip: "force_stip",
420
+ CashServiceNotAvailable: "cash_service_not_available",
421
+ CashbackRequestExceedsIssuerLimit: "cashback_request_exceeds_issuer_limit",
422
+ DeclineForCvv2Failure: "decline_for_cvv2_failure",
423
+ TransactionAmountExceedsPreAuthorizedAmount: "transaction_amount_exceeds_pre_authorized_amount",
424
+ InvalidBillerInformation: "invalid_biller_information",
425
+ PinChangeUnblockRequestDeclined: "pin_change_unblock_request_declined",
426
+ UnsafePin: "unsafe_pin",
427
+ CardAuthenticationFailed: "card_authentication_failed",
428
+ StopPaymentOrder: "stop_payment_order",
429
+ RevocationOfAuthorization: "revocation_of_authorization",
430
+ RevocationOfAllAuthorizations: "revocation_of_all_authorizations",
431
+ ForwardToIssuerXa: "forward_to_issuer_xa",
432
+ ForwardToIssuerXd: "forward_to_issuer_xd",
433
+ UnableToGoOnline: "unable_to_go_online",
434
+ AdditionalCustomerAuthenticationRequired: "additional_customer_authentication_required",
435
+ MerchantIdNotFound: "merchant_id_not_found",
436
+ MerchantAccountClosed: "merchant_account_closed",
437
+ TerminalIdNotFound: "terminal_id_not_found",
438
+ TerminalClosed: "terminal_closed",
439
+ InvalidCategoryCode: "invalid_category_code",
440
+ InvalidCurrency: "invalid_currency",
441
+ MissingCvv2Cvc2: "missing_cvv2_cvc2",
442
+ Cvv2NotAllowed: "cvv2_not_allowed",
443
+ MerchantNotRegisteredVbv: "merchant_not_registered_vbv",
444
+ MerchantNotRegisteredForAmex: "merchant_not_registered_for_amex",
445
+ TransactionNotPermittedAtTerminal: "transaction_not_permitted_at_terminal",
446
+ AgreementTerminalNotRelated: "agreement_terminal_not_related",
447
+ InvalidProcessorId: "invalid_processor_id",
448
+ InvalidMerchantData: "invalid_merchant_data",
449
+ SubMerchantAccountClosed: "sub_merchant_account_closed",
450
+ TerminalBusy: "terminal_busy",
451
+ TerminalUnreachable: "terminal_unreachable",
452
+ ServiceFailed: "service_failed",
453
+ InvalidOperation: "invalid_operation",
454
+ AuthorizationError: "authorization_error",
455
+ LoginFailedWithoutReason: "login_failed_without_reason",
456
+ InvalidRetailer: "invalid_retailer",
457
+ CardDoesNotExist: "card_does_not_exist",
458
+ CardIsBlocked: "card_is_blocked",
459
+ InvalidCardId: "invalid_card_id",
460
+ CardIsTransferred: "card_is_transferred",
461
+ CardIsNotActive: "card_is_not_active",
462
+ IncorrectPurchaseValue: "incorrect_purchase_value",
463
+ CardNotAvailable: "card_not_available",
464
+ WrongCurrency: "wrong_currency",
465
+ LoginFailedUnknownUser: "login_failed_unknown_user",
466
+ LoginFailedInvalidPassword: "login_failed_invalid_password",
467
+ InvalidEanCode: "invalid_ean_code",
468
+ };
469
+ /**
470
+ * The card's target audience, if known.
471
+ */
472
+ export const CreateCustomerPaymentCardAudition = {
473
+ Consumer: "consumer",
474
+ Business: "business",
475
+ };
476
+ /**
477
+ * The card's label, if known.
478
+ */
479
+ export const CreateCustomerPaymentCardLabel = {
480
+ AmericanExpress: "American Express",
481
+ CartaSi: "Carta Si",
482
+ CarteBleue: "Carte Bleue",
483
+ Dankort: "Dankort",
484
+ DinersClub: "Diners Club",
485
+ Discover: "Discover",
486
+ Jcb: "JCB",
487
+ Laser: "Laser",
488
+ Maestro: "Maestro",
489
+ Mastercard: "Mastercard",
490
+ Unionpay: "Unionpay",
491
+ Visa: "Visa",
492
+ Vpay: "Vpay",
493
+ };
494
+ /**
495
+ * The card type.
496
+ */
497
+ export const CreateCustomerPaymentCardFunding = {
498
+ Debit: "debit",
499
+ Credit: "credit",
500
+ Prepaid: "prepaid",
501
+ DeferredDebit: "deferred-debit",
502
+ };
503
+ /**
504
+ * The level of security applied during card processing.
505
+ */
506
+ export const CreateCustomerPaymentCardSecurity = {
507
+ Normal: "normal",
508
+ Threedsecure: "3dsecure",
509
+ };
510
+ /**
511
+ * The applicable card fee region.
512
+ */
513
+ export const CreateCustomerPaymentFeeRegion = {
514
+ AmericanExpress: "american-express",
515
+ AmexIntraEea: "amex-intra-eea",
516
+ CarteBancaire: "carte-bancaire",
517
+ IntraEu: "intra-eu",
518
+ IntraEuCorporate: "intra-eu-corporate",
519
+ Domestic: "domestic",
520
+ Maestro: "maestro",
521
+ Other: "other",
522
+ Inter: "inter",
523
+ IntraEea: "intra-eea",
524
+ };
525
+ /**
526
+ * A failure code to help understand why the payment failed.
527
+ */
528
+ export const CreateCustomerPaymentFailureReason = {
529
+ AuthenticationAbandoned: "authentication_abandoned",
530
+ AuthenticationFailed: "authentication_failed",
531
+ AuthenticationRequired: "authentication_required",
532
+ AuthenticationUnavailableAcs: "authentication_unavailable_acs",
533
+ CardDeclined: "card_declined",
534
+ CardExpired: "card_expired",
535
+ InactiveCard: "inactive_card",
536
+ InsufficientFunds: "insufficient_funds",
537
+ InvalidCvv: "invalid_cvv",
538
+ InvalidCardHolderName: "invalid_card_holder_name",
539
+ InvalidCardNumber: "invalid_card_number",
540
+ InvalidCardType: "invalid_card_type",
541
+ PossibleFraud: "possible_fraud",
542
+ RefusedByIssuer: "refused_by_issuer",
543
+ UnknownReason: "unknown_reason",
544
+ };
545
+ /**
546
+ * The wallet used when creating the payment.
547
+ */
548
+ export const CreateCustomerPaymentWallet = {
549
+ Applepay: "applepay",
550
+ };
551
+ /**
552
+ * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
553
+ *
554
+ * @remarks
555
+ * payments, and if the information is made available by PayPal.
556
+ */
557
+ export const CreateCustomerPaymentSellerProtection = {
558
+ Eligible: "Eligible",
559
+ Ineligible: "Ineligible",
560
+ PartiallyEligibleINROnly: "Partially Eligible - INR Only",
561
+ PartiallyEligibleUnauthOnly: "Partially Eligible - Unauth Only",
562
+ PartiallyEligible: "Partially Eligible",
563
+ None: "None",
564
+ Active: "Active",
565
+ FraudControlUnauthPremiumEligible: "Fraud Control - Unauth Premium Eligible",
566
+ };
567
+ /**
568
+ * The method by which the card was read by the terminal.
569
+ */
570
+ export const CreateCustomerPaymentCardReadMethod = {
571
+ Chip: "chip",
572
+ MagneticStripe: "magnetic-stripe",
573
+ NearFieldCommunication: "near-field-communication",
574
+ Contactless: "contactless",
575
+ Moto: "moto",
576
+ };
577
+ /**
578
+ * The method used to verify the cardholder's identity.
579
+ */
580
+ export const CreateCustomerPaymentCardVerificationMethod = {
581
+ NoCvmRequired: "no-cvm-required",
582
+ OnlinePin: "online-pin",
583
+ OfflinePin: "offline-pin",
584
+ ConsumerDevice: "consumer-device",
585
+ Signature: "signature",
586
+ SignatureAndOnlinePin: "signature-and-online-pin",
587
+ OnlinePinAndSignature: "online-pin-and-signature",
588
+ None: "none",
589
+ Failed: "failed",
590
+ };
347
591
  /** @internal */
348
592
  export const CreateCustomerPaymentAmountRequest$inboundSchema = z.object({
349
593
  currency: z.string(),
@@ -1063,6 +1307,35 @@ export var CreateCustomerPaymentSequenceTypeRequest$;
1063
1307
  CreateCustomerPaymentSequenceTypeRequest$.outboundSchema = CreateCustomerPaymentSequenceTypeRequest$outboundSchema;
1064
1308
  })(CreateCustomerPaymentSequenceTypeRequest$ || (CreateCustomerPaymentSequenceTypeRequest$ = {}));
1065
1309
  /** @internal */
1310
+ export const CreateCustomerPaymentCompany$inboundSchema = z.object({
1311
+ registrationNumber: z.string().optional(),
1312
+ vatNumber: z.string().optional(),
1313
+ entityType: z.string().optional(),
1314
+ });
1315
+ /** @internal */
1316
+ export const CreateCustomerPaymentCompany$outboundSchema = z.object({
1317
+ registrationNumber: z.string().optional(),
1318
+ vatNumber: z.string().optional(),
1319
+ entityType: z.string().optional(),
1320
+ });
1321
+ /**
1322
+ * @internal
1323
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1324
+ */
1325
+ export var CreateCustomerPaymentCompany$;
1326
+ (function (CreateCustomerPaymentCompany$) {
1327
+ /** @deprecated use `CreateCustomerPaymentCompany$inboundSchema` instead. */
1328
+ CreateCustomerPaymentCompany$.inboundSchema = CreateCustomerPaymentCompany$inboundSchema;
1329
+ /** @deprecated use `CreateCustomerPaymentCompany$outboundSchema` instead. */
1330
+ CreateCustomerPaymentCompany$.outboundSchema = CreateCustomerPaymentCompany$outboundSchema;
1331
+ })(CreateCustomerPaymentCompany$ || (CreateCustomerPaymentCompany$ = {}));
1332
+ export function createCustomerPaymentCompanyToJSON(createCustomerPaymentCompany) {
1333
+ return JSON.stringify(CreateCustomerPaymentCompany$outboundSchema.parse(createCustomerPaymentCompany));
1334
+ }
1335
+ export function createCustomerPaymentCompanyFromJSON(jsonString) {
1336
+ return safeParse(jsonString, (x) => CreateCustomerPaymentCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentCompany' from JSON`);
1337
+ }
1338
+ /** @internal */
1066
1339
  export const CreateCustomerPaymentRequestBody$inboundSchema = z.object({
1067
1340
  description: z.string(),
1068
1341
  amount: z.lazy(() => CreateCustomerPaymentAmountRequest$inboundSchema),
@@ -1090,6 +1363,17 @@ export const CreateCustomerPaymentRequestBody$inboundSchema = z.object({
1090
1363
  profileId: z.string().optional(),
1091
1364
  dueDate: z.string().optional(),
1092
1365
  testmode: z.nullable(z.boolean()).optional(),
1366
+ applePayPaymentToken: z.string().optional(),
1367
+ company: z.lazy(() => CreateCustomerPaymentCompany$inboundSchema).optional(),
1368
+ cardToken: z.string().optional(),
1369
+ voucherNumber: z.string().optional(),
1370
+ voucherPin: z.string().optional(),
1371
+ consumerDateOfBirth: z.string().transform(v => new RFCDate(v)).optional(),
1372
+ extraMerchantData: z.record(z.any()).optional(),
1373
+ sessionId: z.string().optional(),
1374
+ digitalGoods: z.boolean().optional(),
1375
+ customerReference: z.string().optional(),
1376
+ terminalId: z.string().optional(),
1093
1377
  });
1094
1378
  /** @internal */
1095
1379
  export const CreateCustomerPaymentRequestBody$outboundSchema = z.object({
@@ -1118,6 +1402,18 @@ export const CreateCustomerPaymentRequestBody$outboundSchema = z.object({
1118
1402
  profileId: z.string().optional(),
1119
1403
  dueDate: z.string().optional(),
1120
1404
  testmode: z.nullable(z.boolean()).optional(),
1405
+ applePayPaymentToken: z.string().optional(),
1406
+ company: z.lazy(() => CreateCustomerPaymentCompany$outboundSchema).optional(),
1407
+ cardToken: z.string().optional(),
1408
+ voucherNumber: z.string().optional(),
1409
+ voucherPin: z.string().optional(),
1410
+ consumerDateOfBirth: z.instanceof(RFCDate).transform(v => v.toString())
1411
+ .optional(),
1412
+ extraMerchantData: z.record(z.any()).optional(),
1413
+ sessionId: z.string().optional(),
1414
+ digitalGoods: z.boolean().optional(),
1415
+ customerReference: z.string().optional(),
1416
+ terminalId: z.string().optional(),
1121
1417
  });
1122
1418
  /**
1123
1419
  * @internal
@@ -2169,28 +2465,43 @@ export var CreateCustomerPaymentSequenceTypeResponse$;
2169
2465
  CreateCustomerPaymentSequenceTypeResponse$.outboundSchema = CreateCustomerPaymentSequenceTypeResponse$outboundSchema;
2170
2466
  })(CreateCustomerPaymentSequenceTypeResponse$ || (CreateCustomerPaymentSequenceTypeResponse$ = {}));
2171
2467
  /** @internal */
2172
- export const CreateCustomerPaymentStatus$inboundSchema = z.nativeEnum(CreateCustomerPaymentStatus);
2468
+ export const CreateCustomerPaymentStatusEnum$inboundSchema = z.nativeEnum(CreateCustomerPaymentStatusEnum);
2469
+ /** @internal */
2470
+ export const CreateCustomerPaymentStatusEnum$outboundSchema = CreateCustomerPaymentStatusEnum$inboundSchema;
2471
+ /**
2472
+ * @internal
2473
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2474
+ */
2475
+ export var CreateCustomerPaymentStatusEnum$;
2476
+ (function (CreateCustomerPaymentStatusEnum$) {
2477
+ /** @deprecated use `CreateCustomerPaymentStatusEnum$inboundSchema` instead. */
2478
+ CreateCustomerPaymentStatusEnum$.inboundSchema = CreateCustomerPaymentStatusEnum$inboundSchema;
2479
+ /** @deprecated use `CreateCustomerPaymentStatusEnum$outboundSchema` instead. */
2480
+ CreateCustomerPaymentStatusEnum$.outboundSchema = CreateCustomerPaymentStatusEnum$outboundSchema;
2481
+ })(CreateCustomerPaymentStatusEnum$ || (CreateCustomerPaymentStatusEnum$ = {}));
2482
+ /** @internal */
2483
+ export const CreateCustomerPaymentCode$inboundSchema = z.nativeEnum(CreateCustomerPaymentCode);
2173
2484
  /** @internal */
2174
- export const CreateCustomerPaymentStatus$outboundSchema = CreateCustomerPaymentStatus$inboundSchema;
2485
+ export const CreateCustomerPaymentCode$outboundSchema = CreateCustomerPaymentCode$inboundSchema;
2175
2486
  /**
2176
2487
  * @internal
2177
2488
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2178
2489
  */
2179
- export var CreateCustomerPaymentStatus$;
2180
- (function (CreateCustomerPaymentStatus$) {
2181
- /** @deprecated use `CreateCustomerPaymentStatus$inboundSchema` instead. */
2182
- CreateCustomerPaymentStatus$.inboundSchema = CreateCustomerPaymentStatus$inboundSchema;
2183
- /** @deprecated use `CreateCustomerPaymentStatus$outboundSchema` instead. */
2184
- CreateCustomerPaymentStatus$.outboundSchema = CreateCustomerPaymentStatus$outboundSchema;
2185
- })(CreateCustomerPaymentStatus$ || (CreateCustomerPaymentStatus$ = {}));
2490
+ export var CreateCustomerPaymentCode$;
2491
+ (function (CreateCustomerPaymentCode$) {
2492
+ /** @deprecated use `CreateCustomerPaymentCode$inboundSchema` instead. */
2493
+ CreateCustomerPaymentCode$.inboundSchema = CreateCustomerPaymentCode$inboundSchema;
2494
+ /** @deprecated use `CreateCustomerPaymentCode$outboundSchema` instead. */
2495
+ CreateCustomerPaymentCode$.outboundSchema = CreateCustomerPaymentCode$outboundSchema;
2496
+ })(CreateCustomerPaymentCode$ || (CreateCustomerPaymentCode$ = {}));
2186
2497
  /** @internal */
2187
2498
  export const CreateCustomerPaymentStatusReason$inboundSchema = z.object({
2188
- code: z.string(),
2499
+ code: CreateCustomerPaymentCode$inboundSchema,
2189
2500
  message: z.string(),
2190
2501
  });
2191
2502
  /** @internal */
2192
2503
  export const CreateCustomerPaymentStatusReason$outboundSchema = z.object({
2193
- code: z.string(),
2504
+ code: CreateCustomerPaymentCode$outboundSchema,
2194
2505
  message: z.string(),
2195
2506
  });
2196
2507
  /**
@@ -2211,6 +2522,411 @@ export function createCustomerPaymentStatusReasonFromJSON(jsonString) {
2211
2522
  return safeParse(jsonString, (x) => CreateCustomerPaymentStatusReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentStatusReason' from JSON`);
2212
2523
  }
2213
2524
  /** @internal */
2525
+ export const CreateCustomerPaymentCardAudition$inboundSchema = z.nativeEnum(CreateCustomerPaymentCardAudition);
2526
+ /** @internal */
2527
+ export const CreateCustomerPaymentCardAudition$outboundSchema = CreateCustomerPaymentCardAudition$inboundSchema;
2528
+ /**
2529
+ * @internal
2530
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2531
+ */
2532
+ export var CreateCustomerPaymentCardAudition$;
2533
+ (function (CreateCustomerPaymentCardAudition$) {
2534
+ /** @deprecated use `CreateCustomerPaymentCardAudition$inboundSchema` instead. */
2535
+ CreateCustomerPaymentCardAudition$.inboundSchema = CreateCustomerPaymentCardAudition$inboundSchema;
2536
+ /** @deprecated use `CreateCustomerPaymentCardAudition$outboundSchema` instead. */
2537
+ CreateCustomerPaymentCardAudition$.outboundSchema = CreateCustomerPaymentCardAudition$outboundSchema;
2538
+ })(CreateCustomerPaymentCardAudition$ || (CreateCustomerPaymentCardAudition$ = {}));
2539
+ /** @internal */
2540
+ export const CreateCustomerPaymentCardLabel$inboundSchema = z.nativeEnum(CreateCustomerPaymentCardLabel);
2541
+ /** @internal */
2542
+ export const CreateCustomerPaymentCardLabel$outboundSchema = CreateCustomerPaymentCardLabel$inboundSchema;
2543
+ /**
2544
+ * @internal
2545
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2546
+ */
2547
+ export var CreateCustomerPaymentCardLabel$;
2548
+ (function (CreateCustomerPaymentCardLabel$) {
2549
+ /** @deprecated use `CreateCustomerPaymentCardLabel$inboundSchema` instead. */
2550
+ CreateCustomerPaymentCardLabel$.inboundSchema = CreateCustomerPaymentCardLabel$inboundSchema;
2551
+ /** @deprecated use `CreateCustomerPaymentCardLabel$outboundSchema` instead. */
2552
+ CreateCustomerPaymentCardLabel$.outboundSchema = CreateCustomerPaymentCardLabel$outboundSchema;
2553
+ })(CreateCustomerPaymentCardLabel$ || (CreateCustomerPaymentCardLabel$ = {}));
2554
+ /** @internal */
2555
+ export const CreateCustomerPaymentCardFunding$inboundSchema = z.nativeEnum(CreateCustomerPaymentCardFunding);
2556
+ /** @internal */
2557
+ export const CreateCustomerPaymentCardFunding$outboundSchema = CreateCustomerPaymentCardFunding$inboundSchema;
2558
+ /**
2559
+ * @internal
2560
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2561
+ */
2562
+ export var CreateCustomerPaymentCardFunding$;
2563
+ (function (CreateCustomerPaymentCardFunding$) {
2564
+ /** @deprecated use `CreateCustomerPaymentCardFunding$inboundSchema` instead. */
2565
+ CreateCustomerPaymentCardFunding$.inboundSchema = CreateCustomerPaymentCardFunding$inboundSchema;
2566
+ /** @deprecated use `CreateCustomerPaymentCardFunding$outboundSchema` instead. */
2567
+ CreateCustomerPaymentCardFunding$.outboundSchema = CreateCustomerPaymentCardFunding$outboundSchema;
2568
+ })(CreateCustomerPaymentCardFunding$ || (CreateCustomerPaymentCardFunding$ = {}));
2569
+ /** @internal */
2570
+ export const CreateCustomerPaymentCardSecurity$inboundSchema = z.nativeEnum(CreateCustomerPaymentCardSecurity);
2571
+ /** @internal */
2572
+ export const CreateCustomerPaymentCardSecurity$outboundSchema = CreateCustomerPaymentCardSecurity$inboundSchema;
2573
+ /**
2574
+ * @internal
2575
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2576
+ */
2577
+ export var CreateCustomerPaymentCardSecurity$;
2578
+ (function (CreateCustomerPaymentCardSecurity$) {
2579
+ /** @deprecated use `CreateCustomerPaymentCardSecurity$inboundSchema` instead. */
2580
+ CreateCustomerPaymentCardSecurity$.inboundSchema = CreateCustomerPaymentCardSecurity$inboundSchema;
2581
+ /** @deprecated use `CreateCustomerPaymentCardSecurity$outboundSchema` instead. */
2582
+ CreateCustomerPaymentCardSecurity$.outboundSchema = CreateCustomerPaymentCardSecurity$outboundSchema;
2583
+ })(CreateCustomerPaymentCardSecurity$ || (CreateCustomerPaymentCardSecurity$ = {}));
2584
+ /** @internal */
2585
+ export const CreateCustomerPaymentFeeRegion$inboundSchema = z.nativeEnum(CreateCustomerPaymentFeeRegion);
2586
+ /** @internal */
2587
+ export const CreateCustomerPaymentFeeRegion$outboundSchema = CreateCustomerPaymentFeeRegion$inboundSchema;
2588
+ /**
2589
+ * @internal
2590
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2591
+ */
2592
+ export var CreateCustomerPaymentFeeRegion$;
2593
+ (function (CreateCustomerPaymentFeeRegion$) {
2594
+ /** @deprecated use `CreateCustomerPaymentFeeRegion$inboundSchema` instead. */
2595
+ CreateCustomerPaymentFeeRegion$.inboundSchema = CreateCustomerPaymentFeeRegion$inboundSchema;
2596
+ /** @deprecated use `CreateCustomerPaymentFeeRegion$outboundSchema` instead. */
2597
+ CreateCustomerPaymentFeeRegion$.outboundSchema = CreateCustomerPaymentFeeRegion$outboundSchema;
2598
+ })(CreateCustomerPaymentFeeRegion$ || (CreateCustomerPaymentFeeRegion$ = {}));
2599
+ /** @internal */
2600
+ export const CreateCustomerPaymentFailureReason$inboundSchema = z.nativeEnum(CreateCustomerPaymentFailureReason);
2601
+ /** @internal */
2602
+ export const CreateCustomerPaymentFailureReason$outboundSchema = CreateCustomerPaymentFailureReason$inboundSchema;
2603
+ /**
2604
+ * @internal
2605
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2606
+ */
2607
+ export var CreateCustomerPaymentFailureReason$;
2608
+ (function (CreateCustomerPaymentFailureReason$) {
2609
+ /** @deprecated use `CreateCustomerPaymentFailureReason$inboundSchema` instead. */
2610
+ CreateCustomerPaymentFailureReason$.inboundSchema = CreateCustomerPaymentFailureReason$inboundSchema;
2611
+ /** @deprecated use `CreateCustomerPaymentFailureReason$outboundSchema` instead. */
2612
+ CreateCustomerPaymentFailureReason$.outboundSchema = CreateCustomerPaymentFailureReason$outboundSchema;
2613
+ })(CreateCustomerPaymentFailureReason$ || (CreateCustomerPaymentFailureReason$ = {}));
2614
+ /** @internal */
2615
+ export const CreateCustomerPaymentWallet$inboundSchema = z.nativeEnum(CreateCustomerPaymentWallet);
2616
+ /** @internal */
2617
+ export const CreateCustomerPaymentWallet$outboundSchema = CreateCustomerPaymentWallet$inboundSchema;
2618
+ /**
2619
+ * @internal
2620
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2621
+ */
2622
+ export var CreateCustomerPaymentWallet$;
2623
+ (function (CreateCustomerPaymentWallet$) {
2624
+ /** @deprecated use `CreateCustomerPaymentWallet$inboundSchema` instead. */
2625
+ CreateCustomerPaymentWallet$.inboundSchema = CreateCustomerPaymentWallet$inboundSchema;
2626
+ /** @deprecated use `CreateCustomerPaymentWallet$outboundSchema` instead. */
2627
+ CreateCustomerPaymentWallet$.outboundSchema = CreateCustomerPaymentWallet$outboundSchema;
2628
+ })(CreateCustomerPaymentWallet$ || (CreateCustomerPaymentWallet$ = {}));
2629
+ /** @internal */
2630
+ export const CreateCustomerPaymentSellerProtection$inboundSchema = z.nativeEnum(CreateCustomerPaymentSellerProtection);
2631
+ /** @internal */
2632
+ export const CreateCustomerPaymentSellerProtection$outboundSchema = CreateCustomerPaymentSellerProtection$inboundSchema;
2633
+ /**
2634
+ * @internal
2635
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2636
+ */
2637
+ export var CreateCustomerPaymentSellerProtection$;
2638
+ (function (CreateCustomerPaymentSellerProtection$) {
2639
+ /** @deprecated use `CreateCustomerPaymentSellerProtection$inboundSchema` instead. */
2640
+ CreateCustomerPaymentSellerProtection$.inboundSchema = CreateCustomerPaymentSellerProtection$inboundSchema;
2641
+ /** @deprecated use `CreateCustomerPaymentSellerProtection$outboundSchema` instead. */
2642
+ CreateCustomerPaymentSellerProtection$.outboundSchema = CreateCustomerPaymentSellerProtection$outboundSchema;
2643
+ })(CreateCustomerPaymentSellerProtection$ || (CreateCustomerPaymentSellerProtection$ = {}));
2644
+ /** @internal */
2645
+ export const CreateCustomerPaymentPaypalFee$inboundSchema = z.object({
2646
+ currency: z.string(),
2647
+ value: z.string(),
2648
+ });
2649
+ /** @internal */
2650
+ export const CreateCustomerPaymentPaypalFee$outboundSchema = z.object({
2651
+ currency: z.string(),
2652
+ value: z.string(),
2653
+ });
2654
+ /**
2655
+ * @internal
2656
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2657
+ */
2658
+ export var CreateCustomerPaymentPaypalFee$;
2659
+ (function (CreateCustomerPaymentPaypalFee$) {
2660
+ /** @deprecated use `CreateCustomerPaymentPaypalFee$inboundSchema` instead. */
2661
+ CreateCustomerPaymentPaypalFee$.inboundSchema = CreateCustomerPaymentPaypalFee$inboundSchema;
2662
+ /** @deprecated use `CreateCustomerPaymentPaypalFee$outboundSchema` instead. */
2663
+ CreateCustomerPaymentPaypalFee$.outboundSchema = CreateCustomerPaymentPaypalFee$outboundSchema;
2664
+ })(CreateCustomerPaymentPaypalFee$ || (CreateCustomerPaymentPaypalFee$ = {}));
2665
+ export function createCustomerPaymentPaypalFeeToJSON(createCustomerPaymentPaypalFee) {
2666
+ return JSON.stringify(CreateCustomerPaymentPaypalFee$outboundSchema.parse(createCustomerPaymentPaypalFee));
2667
+ }
2668
+ export function createCustomerPaymentPaypalFeeFromJSON(jsonString) {
2669
+ return safeParse(jsonString, (x) => CreateCustomerPaymentPaypalFee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentPaypalFee' from JSON`);
2670
+ }
2671
+ /** @internal */
2672
+ export const CreateCustomerPaymentCardReadMethod$inboundSchema = z.nativeEnum(CreateCustomerPaymentCardReadMethod);
2673
+ /** @internal */
2674
+ export const CreateCustomerPaymentCardReadMethod$outboundSchema = CreateCustomerPaymentCardReadMethod$inboundSchema;
2675
+ /**
2676
+ * @internal
2677
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2678
+ */
2679
+ export var CreateCustomerPaymentCardReadMethod$;
2680
+ (function (CreateCustomerPaymentCardReadMethod$) {
2681
+ /** @deprecated use `CreateCustomerPaymentCardReadMethod$inboundSchema` instead. */
2682
+ CreateCustomerPaymentCardReadMethod$.inboundSchema = CreateCustomerPaymentCardReadMethod$inboundSchema;
2683
+ /** @deprecated use `CreateCustomerPaymentCardReadMethod$outboundSchema` instead. */
2684
+ CreateCustomerPaymentCardReadMethod$.outboundSchema = CreateCustomerPaymentCardReadMethod$outboundSchema;
2685
+ })(CreateCustomerPaymentCardReadMethod$ || (CreateCustomerPaymentCardReadMethod$ = {}));
2686
+ /** @internal */
2687
+ export const CreateCustomerPaymentCardVerificationMethod$inboundSchema = z
2688
+ .nativeEnum(CreateCustomerPaymentCardVerificationMethod);
2689
+ /** @internal */
2690
+ export const CreateCustomerPaymentCardVerificationMethod$outboundSchema = CreateCustomerPaymentCardVerificationMethod$inboundSchema;
2691
+ /**
2692
+ * @internal
2693
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2694
+ */
2695
+ export var CreateCustomerPaymentCardVerificationMethod$;
2696
+ (function (CreateCustomerPaymentCardVerificationMethod$) {
2697
+ /** @deprecated use `CreateCustomerPaymentCardVerificationMethod$inboundSchema` instead. */
2698
+ CreateCustomerPaymentCardVerificationMethod$.inboundSchema = CreateCustomerPaymentCardVerificationMethod$inboundSchema;
2699
+ /** @deprecated use `CreateCustomerPaymentCardVerificationMethod$outboundSchema` instead. */
2700
+ CreateCustomerPaymentCardVerificationMethod$.outboundSchema = CreateCustomerPaymentCardVerificationMethod$outboundSchema;
2701
+ })(CreateCustomerPaymentCardVerificationMethod$ || (CreateCustomerPaymentCardVerificationMethod$ = {}));
2702
+ /** @internal */
2703
+ export const CreateCustomerPaymentReceipt$inboundSchema = z.object({
2704
+ authorizationCode: z.nullable(z.string()).optional(),
2705
+ applicationIdentifier: z.nullable(z.string()).optional(),
2706
+ cardReadMethod: z.nullable(CreateCustomerPaymentCardReadMethod$inboundSchema)
2707
+ .optional(),
2708
+ cardVerificationMethod: z.nullable(CreateCustomerPaymentCardVerificationMethod$inboundSchema).optional(),
2709
+ });
2710
+ /** @internal */
2711
+ export const CreateCustomerPaymentReceipt$outboundSchema = z.object({
2712
+ authorizationCode: z.nullable(z.string()).optional(),
2713
+ applicationIdentifier: z.nullable(z.string()).optional(),
2714
+ cardReadMethod: z.nullable(CreateCustomerPaymentCardReadMethod$outboundSchema)
2715
+ .optional(),
2716
+ cardVerificationMethod: z.nullable(CreateCustomerPaymentCardVerificationMethod$outboundSchema).optional(),
2717
+ });
2718
+ /**
2719
+ * @internal
2720
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2721
+ */
2722
+ export var CreateCustomerPaymentReceipt$;
2723
+ (function (CreateCustomerPaymentReceipt$) {
2724
+ /** @deprecated use `CreateCustomerPaymentReceipt$inboundSchema` instead. */
2725
+ CreateCustomerPaymentReceipt$.inboundSchema = CreateCustomerPaymentReceipt$inboundSchema;
2726
+ /** @deprecated use `CreateCustomerPaymentReceipt$outboundSchema` instead. */
2727
+ CreateCustomerPaymentReceipt$.outboundSchema = CreateCustomerPaymentReceipt$outboundSchema;
2728
+ })(CreateCustomerPaymentReceipt$ || (CreateCustomerPaymentReceipt$ = {}));
2729
+ export function createCustomerPaymentReceiptToJSON(createCustomerPaymentReceipt) {
2730
+ return JSON.stringify(CreateCustomerPaymentReceipt$outboundSchema.parse(createCustomerPaymentReceipt));
2731
+ }
2732
+ export function createCustomerPaymentReceiptFromJSON(jsonString) {
2733
+ return safeParse(jsonString, (x) => CreateCustomerPaymentReceipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentReceipt' from JSON`);
2734
+ }
2735
+ /** @internal */
2736
+ export const CreateCustomerPaymentQrCode$inboundSchema = z.object({
2737
+ height: z.number().int().optional(),
2738
+ width: z.number().int().optional(),
2739
+ src: z.string().optional(),
2740
+ });
2741
+ /** @internal */
2742
+ export const CreateCustomerPaymentQrCode$outboundSchema = z.object({
2743
+ height: z.number().int().optional(),
2744
+ width: z.number().int().optional(),
2745
+ src: z.string().optional(),
2746
+ });
2747
+ /**
2748
+ * @internal
2749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2750
+ */
2751
+ export var CreateCustomerPaymentQrCode$;
2752
+ (function (CreateCustomerPaymentQrCode$) {
2753
+ /** @deprecated use `CreateCustomerPaymentQrCode$inboundSchema` instead. */
2754
+ CreateCustomerPaymentQrCode$.inboundSchema = CreateCustomerPaymentQrCode$inboundSchema;
2755
+ /** @deprecated use `CreateCustomerPaymentQrCode$outboundSchema` instead. */
2756
+ CreateCustomerPaymentQrCode$.outboundSchema = CreateCustomerPaymentQrCode$outboundSchema;
2757
+ })(CreateCustomerPaymentQrCode$ || (CreateCustomerPaymentQrCode$ = {}));
2758
+ export function createCustomerPaymentQrCodeToJSON(createCustomerPaymentQrCode) {
2759
+ return JSON.stringify(CreateCustomerPaymentQrCode$outboundSchema.parse(createCustomerPaymentQrCode));
2760
+ }
2761
+ export function createCustomerPaymentQrCodeFromJSON(jsonString) {
2762
+ return safeParse(jsonString, (x) => CreateCustomerPaymentQrCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentQrCode' from JSON`);
2763
+ }
2764
+ /** @internal */
2765
+ export const CreateCustomerPaymentRemainderAmount$inboundSchema = z.object({
2766
+ currency: z.string(),
2767
+ value: z.string(),
2768
+ });
2769
+ /** @internal */
2770
+ export const CreateCustomerPaymentRemainderAmount$outboundSchema = z.object({
2771
+ currency: z.string(),
2772
+ value: z.string(),
2773
+ });
2774
+ /**
2775
+ * @internal
2776
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2777
+ */
2778
+ export var CreateCustomerPaymentRemainderAmount$;
2779
+ (function (CreateCustomerPaymentRemainderAmount$) {
2780
+ /** @deprecated use `CreateCustomerPaymentRemainderAmount$inboundSchema` instead. */
2781
+ CreateCustomerPaymentRemainderAmount$.inboundSchema = CreateCustomerPaymentRemainderAmount$inboundSchema;
2782
+ /** @deprecated use `CreateCustomerPaymentRemainderAmount$outboundSchema` instead. */
2783
+ CreateCustomerPaymentRemainderAmount$.outboundSchema = CreateCustomerPaymentRemainderAmount$outboundSchema;
2784
+ })(CreateCustomerPaymentRemainderAmount$ || (CreateCustomerPaymentRemainderAmount$ = {}));
2785
+ export function createCustomerPaymentRemainderAmountToJSON(createCustomerPaymentRemainderAmount) {
2786
+ return JSON.stringify(CreateCustomerPaymentRemainderAmount$outboundSchema.parse(createCustomerPaymentRemainderAmount));
2787
+ }
2788
+ export function createCustomerPaymentRemainderAmountFromJSON(jsonString) {
2789
+ return safeParse(jsonString, (x) => CreateCustomerPaymentRemainderAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentRemainderAmount' from JSON`);
2790
+ }
2791
+ /** @internal */
2792
+ export const CreateCustomerPaymentDetails$inboundSchema = z.object({
2793
+ consumerName: z.nullable(z.string()).optional(),
2794
+ consumerAccount: z.nullable(z.string()).optional(),
2795
+ consumerBic: z.nullable(z.string()).optional(),
2796
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
2797
+ cardNumber: z.nullable(z.string()).optional(),
2798
+ bankName: z.string().optional(),
2799
+ bankAccount: z.string().optional(),
2800
+ bankBic: z.string().optional(),
2801
+ transferReference: z.nullable(z.string()).optional(),
2802
+ cardFingerprint: z.nullable(z.string()).optional(),
2803
+ cardHolder: z.nullable(z.string()).optional(),
2804
+ cardAudition: z.nullable(CreateCustomerPaymentCardAudition$inboundSchema)
2805
+ .optional(),
2806
+ cardLabel: z.nullable(CreateCustomerPaymentCardLabel$inboundSchema)
2807
+ .optional(),
2808
+ cardCountryCode: z.nullable(z.string()).optional(),
2809
+ cardExpiryDate: z.nullable(z.string()).optional(),
2810
+ cardFunding: z.nullable(CreateCustomerPaymentCardFunding$inboundSchema)
2811
+ .optional(),
2812
+ cardSecurity: z.nullable(CreateCustomerPaymentCardSecurity$inboundSchema)
2813
+ .optional(),
2814
+ feeRegion: z.nullable(CreateCustomerPaymentFeeRegion$inboundSchema)
2815
+ .optional(),
2816
+ cardMaskedNumber: z.nullable(z.string()).optional(),
2817
+ card3dsEci: z.nullable(z.string()).optional(),
2818
+ cardBin: z.nullable(z.string()).optional(),
2819
+ cardIssuer: z.nullable(z.string()).optional(),
2820
+ failureReason: z.nullable(CreateCustomerPaymentFailureReason$inboundSchema)
2821
+ .optional(),
2822
+ failureMessage: z.nullable(z.string()).optional(),
2823
+ wallet: z.nullable(CreateCustomerPaymentWallet$inboundSchema).optional(),
2824
+ paypalReference: z.nullable(z.string()).optional(),
2825
+ paypalPayerId: z.nullable(z.string()).optional(),
2826
+ sellerProtection: z.nullable(CreateCustomerPaymentSellerProtection$inboundSchema).optional(),
2827
+ paypalFee: z.nullable(z.lazy(() => CreateCustomerPaymentPaypalFee$inboundSchema)).optional(),
2828
+ customerReference: z.string().optional(),
2829
+ terminalId: z.string().optional(),
2830
+ maskedNumber: z.nullable(z.string()).optional(),
2831
+ receipt: z.lazy(() => CreateCustomerPaymentReceipt$inboundSchema).optional(),
2832
+ creditorIdentifier: z.nullable(z.string()).optional(),
2833
+ dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
2834
+ signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
2835
+ .optional(),
2836
+ bankReasonCode: z.nullable(z.string()).optional(),
2837
+ bankReason: z.nullable(z.string()).optional(),
2838
+ endToEndIdentifier: z.nullable(z.string()).optional(),
2839
+ mandateReference: z.nullable(z.string()).optional(),
2840
+ batchReference: z.nullable(z.string()).optional(),
2841
+ fileReference: z.nullable(z.string()).optional(),
2842
+ qrCode: z.lazy(() => CreateCustomerPaymentQrCode$inboundSchema).optional(),
2843
+ voucherNumber: z.string().optional(),
2844
+ giftcards: z.array(z.record(z.any())).optional(),
2845
+ issuer: z.string().optional(),
2846
+ vouchers: z.array(z.record(z.any())).optional(),
2847
+ remainderAmount: z.lazy(() => CreateCustomerPaymentRemainderAmount$inboundSchema).optional(),
2848
+ remainderMethod: z.string().optional(),
2849
+ remainderDetails: z.record(z.any()).optional(),
2850
+ });
2851
+ /** @internal */
2852
+ export const CreateCustomerPaymentDetails$outboundSchema = z.object({
2853
+ consumerName: z.nullable(z.string()).optional(),
2854
+ consumerAccount: z.nullable(z.string()).optional(),
2855
+ consumerBic: z.nullable(z.string()).optional(),
2856
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
2857
+ cardNumber: z.nullable(z.string()).optional(),
2858
+ bankName: z.string().optional(),
2859
+ bankAccount: z.string().optional(),
2860
+ bankBic: z.string().optional(),
2861
+ transferReference: z.nullable(z.string()).optional(),
2862
+ cardFingerprint: z.nullable(z.string()).optional(),
2863
+ cardHolder: z.nullable(z.string()).optional(),
2864
+ cardAudition: z.nullable(CreateCustomerPaymentCardAudition$outboundSchema)
2865
+ .optional(),
2866
+ cardLabel: z.nullable(CreateCustomerPaymentCardLabel$outboundSchema)
2867
+ .optional(),
2868
+ cardCountryCode: z.nullable(z.string()).optional(),
2869
+ cardExpiryDate: z.nullable(z.string()).optional(),
2870
+ cardFunding: z.nullable(CreateCustomerPaymentCardFunding$outboundSchema)
2871
+ .optional(),
2872
+ cardSecurity: z.nullable(CreateCustomerPaymentCardSecurity$outboundSchema)
2873
+ .optional(),
2874
+ feeRegion: z.nullable(CreateCustomerPaymentFeeRegion$outboundSchema)
2875
+ .optional(),
2876
+ cardMaskedNumber: z.nullable(z.string()).optional(),
2877
+ card3dsEci: z.nullable(z.string()).optional(),
2878
+ cardBin: z.nullable(z.string()).optional(),
2879
+ cardIssuer: z.nullable(z.string()).optional(),
2880
+ failureReason: z.nullable(CreateCustomerPaymentFailureReason$outboundSchema)
2881
+ .optional(),
2882
+ failureMessage: z.nullable(z.string()).optional(),
2883
+ wallet: z.nullable(CreateCustomerPaymentWallet$outboundSchema).optional(),
2884
+ paypalReference: z.nullable(z.string()).optional(),
2885
+ paypalPayerId: z.nullable(z.string()).optional(),
2886
+ sellerProtection: z.nullable(CreateCustomerPaymentSellerProtection$outboundSchema).optional(),
2887
+ paypalFee: z.nullable(z.lazy(() => CreateCustomerPaymentPaypalFee$outboundSchema)).optional(),
2888
+ customerReference: z.string().optional(),
2889
+ terminalId: z.string().optional(),
2890
+ maskedNumber: z.nullable(z.string()).optional(),
2891
+ receipt: z.lazy(() => CreateCustomerPaymentReceipt$outboundSchema).optional(),
2892
+ creditorIdentifier: z.nullable(z.string()).optional(),
2893
+ dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
2894
+ .optional(),
2895
+ signatureDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
2896
+ .optional(),
2897
+ bankReasonCode: z.nullable(z.string()).optional(),
2898
+ bankReason: z.nullable(z.string()).optional(),
2899
+ endToEndIdentifier: z.nullable(z.string()).optional(),
2900
+ mandateReference: z.nullable(z.string()).optional(),
2901
+ batchReference: z.nullable(z.string()).optional(),
2902
+ fileReference: z.nullable(z.string()).optional(),
2903
+ qrCode: z.lazy(() => CreateCustomerPaymentQrCode$outboundSchema).optional(),
2904
+ voucherNumber: z.string().optional(),
2905
+ giftcards: z.array(z.record(z.any())).optional(),
2906
+ issuer: z.string().optional(),
2907
+ vouchers: z.array(z.record(z.any())).optional(),
2908
+ remainderAmount: z.lazy(() => CreateCustomerPaymentRemainderAmount$outboundSchema).optional(),
2909
+ remainderMethod: z.string().optional(),
2910
+ remainderDetails: z.record(z.any()).optional(),
2911
+ });
2912
+ /**
2913
+ * @internal
2914
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2915
+ */
2916
+ export var CreateCustomerPaymentDetails$;
2917
+ (function (CreateCustomerPaymentDetails$) {
2918
+ /** @deprecated use `CreateCustomerPaymentDetails$inboundSchema` instead. */
2919
+ CreateCustomerPaymentDetails$.inboundSchema = CreateCustomerPaymentDetails$inboundSchema;
2920
+ /** @deprecated use `CreateCustomerPaymentDetails$outboundSchema` instead. */
2921
+ CreateCustomerPaymentDetails$.outboundSchema = CreateCustomerPaymentDetails$outboundSchema;
2922
+ })(CreateCustomerPaymentDetails$ || (CreateCustomerPaymentDetails$ = {}));
2923
+ export function createCustomerPaymentDetailsToJSON(createCustomerPaymentDetails) {
2924
+ return JSON.stringify(CreateCustomerPaymentDetails$outboundSchema.parse(createCustomerPaymentDetails));
2925
+ }
2926
+ export function createCustomerPaymentDetailsFromJSON(jsonString) {
2927
+ return safeParse(jsonString, (x) => CreateCustomerPaymentDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentDetails' from JSON`);
2928
+ }
2929
+ /** @internal */
2214
2930
  export const CreateCustomerPaymentSelfResponse$inboundSchema = z.object({
2215
2931
  href: z.string(),
2216
2932
  type: z.string(),
@@ -2616,6 +3332,60 @@ export function createCustomerPaymentDocumentationFromJSON(jsonString) {
2616
3332
  return safeParse(jsonString, (x) => CreateCustomerPaymentDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentDocumentation' from JSON`);
2617
3333
  }
2618
3334
  /** @internal */
3335
+ export const CreateCustomerPaymentLinksStatus$inboundSchema = z.object({
3336
+ href: z.string(),
3337
+ type: z.string(),
3338
+ });
3339
+ /** @internal */
3340
+ export const CreateCustomerPaymentLinksStatus$outboundSchema = z.object({
3341
+ href: z.string(),
3342
+ type: z.string(),
3343
+ });
3344
+ /**
3345
+ * @internal
3346
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3347
+ */
3348
+ export var CreateCustomerPaymentLinksStatus$;
3349
+ (function (CreateCustomerPaymentLinksStatus$) {
3350
+ /** @deprecated use `CreateCustomerPaymentLinksStatus$inboundSchema` instead. */
3351
+ CreateCustomerPaymentLinksStatus$.inboundSchema = CreateCustomerPaymentLinksStatus$inboundSchema;
3352
+ /** @deprecated use `CreateCustomerPaymentLinksStatus$outboundSchema` instead. */
3353
+ CreateCustomerPaymentLinksStatus$.outboundSchema = CreateCustomerPaymentLinksStatus$outboundSchema;
3354
+ })(CreateCustomerPaymentLinksStatus$ || (CreateCustomerPaymentLinksStatus$ = {}));
3355
+ export function createCustomerPaymentLinksStatusToJSON(createCustomerPaymentLinksStatus) {
3356
+ return JSON.stringify(CreateCustomerPaymentLinksStatus$outboundSchema.parse(createCustomerPaymentLinksStatus));
3357
+ }
3358
+ export function createCustomerPaymentLinksStatusFromJSON(jsonString) {
3359
+ return safeParse(jsonString, (x) => CreateCustomerPaymentLinksStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentLinksStatus' from JSON`);
3360
+ }
3361
+ /** @internal */
3362
+ export const CreateCustomerPaymentPayOnline$inboundSchema = z.object({
3363
+ href: z.string(),
3364
+ type: z.string(),
3365
+ });
3366
+ /** @internal */
3367
+ export const CreateCustomerPaymentPayOnline$outboundSchema = z.object({
3368
+ href: z.string(),
3369
+ type: z.string(),
3370
+ });
3371
+ /**
3372
+ * @internal
3373
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3374
+ */
3375
+ export var CreateCustomerPaymentPayOnline$;
3376
+ (function (CreateCustomerPaymentPayOnline$) {
3377
+ /** @deprecated use `CreateCustomerPaymentPayOnline$inboundSchema` instead. */
3378
+ CreateCustomerPaymentPayOnline$.inboundSchema = CreateCustomerPaymentPayOnline$inboundSchema;
3379
+ /** @deprecated use `CreateCustomerPaymentPayOnline$outboundSchema` instead. */
3380
+ CreateCustomerPaymentPayOnline$.outboundSchema = CreateCustomerPaymentPayOnline$outboundSchema;
3381
+ })(CreateCustomerPaymentPayOnline$ || (CreateCustomerPaymentPayOnline$ = {}));
3382
+ export function createCustomerPaymentPayOnlineToJSON(createCustomerPaymentPayOnline) {
3383
+ return JSON.stringify(CreateCustomerPaymentPayOnline$outboundSchema.parse(createCustomerPaymentPayOnline));
3384
+ }
3385
+ export function createCustomerPaymentPayOnlineFromJSON(jsonString) {
3386
+ return safeParse(jsonString, (x) => CreateCustomerPaymentPayOnline$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCustomerPaymentPayOnline' from JSON`);
3387
+ }
3388
+ /** @internal */
2619
3389
  export const CreateCustomerPaymentLinksResponse$inboundSchema = z.object({
2620
3390
  self: z.lazy(() => CreateCustomerPaymentSelfResponse$inboundSchema),
2621
3391
  checkout: z.lazy(() => CreateCustomerPaymentCheckout$inboundSchema)
@@ -2640,6 +3410,10 @@ export const CreateCustomerPaymentLinksResponse$inboundSchema = z.object({
2640
3410
  .optional(),
2641
3411
  documentation: z.lazy(() => CreateCustomerPaymentDocumentation$inboundSchema)
2642
3412
  .optional(),
3413
+ status: z.lazy(() => CreateCustomerPaymentLinksStatus$inboundSchema)
3414
+ .optional(),
3415
+ payOnline: z.lazy(() => CreateCustomerPaymentPayOnline$inboundSchema)
3416
+ .optional(),
2643
3417
  });
2644
3418
  /** @internal */
2645
3419
  export const CreateCustomerPaymentLinksResponse$outboundSchema = z.object({
@@ -2666,6 +3440,10 @@ export const CreateCustomerPaymentLinksResponse$outboundSchema = z.object({
2666
3440
  .optional(),
2667
3441
  documentation: z.lazy(() => CreateCustomerPaymentDocumentation$outboundSchema)
2668
3442
  .optional(),
3443
+ status: z.lazy(() => CreateCustomerPaymentLinksStatus$outboundSchema)
3444
+ .optional(),
3445
+ payOnline: z.lazy(() => CreateCustomerPaymentPayOnline$outboundSchema)
3446
+ .optional(),
2669
3447
  });
2670
3448
  /**
2671
3449
  * @internal
@@ -2721,10 +3499,11 @@ export const CreateCustomerPaymentResponse$inboundSchema = z.object({
2721
3499
  profileId: z.string(),
2722
3500
  settlementId: z.nullable(z.string()).optional(),
2723
3501
  orderId: z.nullable(z.string()).optional(),
2724
- status: CreateCustomerPaymentStatus$inboundSchema,
3502
+ status: CreateCustomerPaymentStatusEnum$inboundSchema,
2725
3503
  statusReason: z.nullable(z.lazy(() => CreateCustomerPaymentStatusReason$inboundSchema)).optional(),
2726
3504
  isCancelable: z.nullable(z.boolean()).optional(),
2727
- details: z.nullable(z.record(z.any())).optional(),
3505
+ details: z.nullable(z.lazy(() => CreateCustomerPaymentDetails$inboundSchema))
3506
+ .optional(),
2728
3507
  createdAt: z.string(),
2729
3508
  authorizedAt: z.nullable(z.string()).optional(),
2730
3509
  paidAt: z.nullable(z.string()).optional(),
@@ -2775,10 +3554,11 @@ export const CreateCustomerPaymentResponse$outboundSchema = z.object({
2775
3554
  profileId: z.string(),
2776
3555
  settlementId: z.nullable(z.string()).optional(),
2777
3556
  orderId: z.nullable(z.string()).optional(),
2778
- status: CreateCustomerPaymentStatus$outboundSchema,
3557
+ status: CreateCustomerPaymentStatusEnum$outboundSchema,
2779
3558
  statusReason: z.nullable(z.lazy(() => CreateCustomerPaymentStatusReason$outboundSchema)).optional(),
2780
3559
  isCancelable: z.nullable(z.boolean()).optional(),
2781
- details: z.nullable(z.record(z.any())).optional(),
3560
+ details: z.nullable(z.lazy(() => CreateCustomerPaymentDetails$outboundSchema))
3561
+ .optional(),
2782
3562
  createdAt: z.string(),
2783
3563
  authorizedAt: z.nullable(z.string()).optional(),
2784
3564
  paidAt: z.nullable(z.string()).optional(),