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
  * Whether this entity was created in live mode or in test mode.
9
10
  */
@@ -177,7 +178,7 @@ export const CancelPaymentSequenceType = {
177
178
  * @remarks
178
179
  * statuses occur at what point.
179
180
  */
180
- export const CancelPaymentStatus = {
181
+ export const CancelPaymentStatusEnum = {
181
182
  Open: "open",
182
183
  Pending: "pending",
183
184
  Authorized: "authorized",
@@ -186,6 +187,249 @@ export const CancelPaymentStatus = {
186
187
  Expired: "expired",
187
188
  Failed: "failed",
188
189
  };
190
+ /**
191
+ * A machine-readable code that indicates the reason for the payment's status.
192
+ */
193
+ export const CancelPaymentCode = {
194
+ ApprovedOrCompletedSuccessfully: "approved_or_completed_successfully",
195
+ ReferToCardIssuer: "refer_to_card_issuer",
196
+ InvalidMerchant: "invalid_merchant",
197
+ CaptureCard: "capture_card",
198
+ DoNotHonor: "do_not_honor",
199
+ Error: "error",
200
+ PartialApproval: "partial_approval",
201
+ InvalidTransaction: "invalid_transaction",
202
+ InvalidAmount: "invalid_amount",
203
+ InvalidIssuer: "invalid_issuer",
204
+ LostCard: "lost_card",
205
+ StolenCard: "stolen_card",
206
+ InsufficientFunds: "insufficient_funds",
207
+ ExpiredCard: "expired_card",
208
+ InvalidPin: "invalid_pin",
209
+ TransactionNotPermittedToCardholder: "transaction_not_permitted_to_cardholder",
210
+ TransactionNotAllowedAtTerminal: "transaction_not_allowed_at_terminal",
211
+ ExceedsWithdrawalAmountLimit: "exceeds_withdrawal_amount_limit",
212
+ RestrictedCard: "restricted_card",
213
+ SecurityViolation: "security_violation",
214
+ ExceedsWithdrawalCountLimit: "exceeds_withdrawal_count_limit",
215
+ AllowableNumberOfPinTriesExceeded: "allowable_number_of_pin_tries_exceeded",
216
+ NoReasonToDecline: "no_reason_to_decline",
217
+ CannotVerifyPin: "cannot_verify_pin",
218
+ IssuerUnavailable: "issuer_unavailable",
219
+ UnableToRouteTransaction: "unable_to_route_transaction",
220
+ DuplicateTransaction: "duplicate_transaction",
221
+ SystemMalfunction: "system_malfunction",
222
+ HonorWithId: "honor_with_id",
223
+ InvalidCardNumber: "invalid_card_number",
224
+ FormatError: "format_error",
225
+ ContactCardIssuer: "contact_card_issuer",
226
+ PinNotChanged: "pin_not_changed",
227
+ InvalidNonexistentToAccountSpecified: "invalid_nonexistent_to_account_specified",
228
+ InvalidNonexistentFromAccountSpecified: "invalid_nonexistent_from_account_specified",
229
+ InvalidNonexistentAccountSpecified: "invalid_nonexistent_account_specified",
230
+ LifecycleRelated: "lifecycle_related",
231
+ DomesticDebitTransactionNotAllowed: "domestic_debit_transaction_not_allowed",
232
+ PolicyRelated: "policy_related",
233
+ FraudSecurityRelated: "fraud_security_related",
234
+ InvalidAuthorizationLifeCycle: "invalid_authorization_life_cycle",
235
+ PurchaseAmountOnlyNoCashBackAllowed: "purchase_amount_only_no_cash_back_allowed",
236
+ CryptographicFailure: "cryptographic_failure",
237
+ UnacceptablePin: "unacceptable_pin",
238
+ ReferToCardIssuerSpecialCondition: "refer_to_card_issuer_special_condition",
239
+ PickUpCardSpecialCondition: "pick_up_card_special_condition",
240
+ VipApproval: "vip_approval",
241
+ InvalidAccountNumber: "invalid_account_number",
242
+ ReEnterTransaction: "re_enter_transaction",
243
+ NoActionTaken: "no_action_taken",
244
+ UnableToLocateRecord: "unable_to_locate_record",
245
+ FileTemporarilyUnavailable: "file_temporarily_unavailable",
246
+ NoCreditAccount: "no_credit_account",
247
+ ClosedAccount: "closed_account",
248
+ NoCheckingAccount: "no_checking_account",
249
+ NoSavingsAccount: "no_savings_account",
250
+ SuspectedFraud: "suspected_fraud",
251
+ TransactionDoesNotFulfillAmlRequirement: "transaction_does_not_fulfill_aml_requirement",
252
+ PinDataRequired: "pin_data_required",
253
+ UnableToLocatePreviousMessage: "unable_to_locate_previous_message",
254
+ PreviousMessageLocatedInconsistentData: "previous_message_located_inconsistent_data",
255
+ BlockedFirstUsed: "blocked_first_used",
256
+ TransactionReversed: "transaction_reversed",
257
+ CreditIssuerUnavailable: "credit_issuer_unavailable",
258
+ PinCryptographicErrorFound: "pin_cryptographic_error_found",
259
+ NegativeOnlineCamResult: "negative_online_cam_result",
260
+ ViolationOfLaw: "violation_of_law",
261
+ ForceStip: "force_stip",
262
+ CashServiceNotAvailable: "cash_service_not_available",
263
+ CashbackRequestExceedsIssuerLimit: "cashback_request_exceeds_issuer_limit",
264
+ DeclineForCvv2Failure: "decline_for_cvv2_failure",
265
+ TransactionAmountExceedsPreAuthorizedAmount: "transaction_amount_exceeds_pre_authorized_amount",
266
+ InvalidBillerInformation: "invalid_biller_information",
267
+ PinChangeUnblockRequestDeclined: "pin_change_unblock_request_declined",
268
+ UnsafePin: "unsafe_pin",
269
+ CardAuthenticationFailed: "card_authentication_failed",
270
+ StopPaymentOrder: "stop_payment_order",
271
+ RevocationOfAuthorization: "revocation_of_authorization",
272
+ RevocationOfAllAuthorizations: "revocation_of_all_authorizations",
273
+ ForwardToIssuerXa: "forward_to_issuer_xa",
274
+ ForwardToIssuerXd: "forward_to_issuer_xd",
275
+ UnableToGoOnline: "unable_to_go_online",
276
+ AdditionalCustomerAuthenticationRequired: "additional_customer_authentication_required",
277
+ MerchantIdNotFound: "merchant_id_not_found",
278
+ MerchantAccountClosed: "merchant_account_closed",
279
+ TerminalIdNotFound: "terminal_id_not_found",
280
+ TerminalClosed: "terminal_closed",
281
+ InvalidCategoryCode: "invalid_category_code",
282
+ InvalidCurrency: "invalid_currency",
283
+ MissingCvv2Cvc2: "missing_cvv2_cvc2",
284
+ Cvv2NotAllowed: "cvv2_not_allowed",
285
+ MerchantNotRegisteredVbv: "merchant_not_registered_vbv",
286
+ MerchantNotRegisteredForAmex: "merchant_not_registered_for_amex",
287
+ TransactionNotPermittedAtTerminal: "transaction_not_permitted_at_terminal",
288
+ AgreementTerminalNotRelated: "agreement_terminal_not_related",
289
+ InvalidProcessorId: "invalid_processor_id",
290
+ InvalidMerchantData: "invalid_merchant_data",
291
+ SubMerchantAccountClosed: "sub_merchant_account_closed",
292
+ TerminalBusy: "terminal_busy",
293
+ TerminalUnreachable: "terminal_unreachable",
294
+ ServiceFailed: "service_failed",
295
+ InvalidOperation: "invalid_operation",
296
+ AuthorizationError: "authorization_error",
297
+ LoginFailedWithoutReason: "login_failed_without_reason",
298
+ InvalidRetailer: "invalid_retailer",
299
+ CardDoesNotExist: "card_does_not_exist",
300
+ CardIsBlocked: "card_is_blocked",
301
+ InvalidCardId: "invalid_card_id",
302
+ CardIsTransferred: "card_is_transferred",
303
+ CardIsNotActive: "card_is_not_active",
304
+ IncorrectPurchaseValue: "incorrect_purchase_value",
305
+ CardNotAvailable: "card_not_available",
306
+ WrongCurrency: "wrong_currency",
307
+ LoginFailedUnknownUser: "login_failed_unknown_user",
308
+ LoginFailedInvalidPassword: "login_failed_invalid_password",
309
+ InvalidEanCode: "invalid_ean_code",
310
+ };
311
+ /**
312
+ * The card's target audience, if known.
313
+ */
314
+ export const CancelPaymentCardAudition = {
315
+ Consumer: "consumer",
316
+ Business: "business",
317
+ };
318
+ /**
319
+ * The card's label, if known.
320
+ */
321
+ export const CancelPaymentCardLabel = {
322
+ AmericanExpress: "American Express",
323
+ CartaSi: "Carta Si",
324
+ CarteBleue: "Carte Bleue",
325
+ Dankort: "Dankort",
326
+ DinersClub: "Diners Club",
327
+ Discover: "Discover",
328
+ Jcb: "JCB",
329
+ Laser: "Laser",
330
+ Maestro: "Maestro",
331
+ Mastercard: "Mastercard",
332
+ Unionpay: "Unionpay",
333
+ Visa: "Visa",
334
+ Vpay: "Vpay",
335
+ };
336
+ /**
337
+ * The card type.
338
+ */
339
+ export const CancelPaymentCardFunding = {
340
+ Debit: "debit",
341
+ Credit: "credit",
342
+ Prepaid: "prepaid",
343
+ DeferredDebit: "deferred-debit",
344
+ };
345
+ /**
346
+ * The level of security applied during card processing.
347
+ */
348
+ export const CancelPaymentCardSecurity = {
349
+ Normal: "normal",
350
+ Threedsecure: "3dsecure",
351
+ };
352
+ /**
353
+ * The applicable card fee region.
354
+ */
355
+ export const CancelPaymentFeeRegion = {
356
+ AmericanExpress: "american-express",
357
+ AmexIntraEea: "amex-intra-eea",
358
+ CarteBancaire: "carte-bancaire",
359
+ IntraEu: "intra-eu",
360
+ IntraEuCorporate: "intra-eu-corporate",
361
+ Domestic: "domestic",
362
+ Maestro: "maestro",
363
+ Other: "other",
364
+ Inter: "inter",
365
+ IntraEea: "intra-eea",
366
+ };
367
+ /**
368
+ * A failure code to help understand why the payment failed.
369
+ */
370
+ export const CancelPaymentFailureReason = {
371
+ AuthenticationAbandoned: "authentication_abandoned",
372
+ AuthenticationFailed: "authentication_failed",
373
+ AuthenticationRequired: "authentication_required",
374
+ AuthenticationUnavailableAcs: "authentication_unavailable_acs",
375
+ CardDeclined: "card_declined",
376
+ CardExpired: "card_expired",
377
+ InactiveCard: "inactive_card",
378
+ InsufficientFunds: "insufficient_funds",
379
+ InvalidCvv: "invalid_cvv",
380
+ InvalidCardHolderName: "invalid_card_holder_name",
381
+ InvalidCardNumber: "invalid_card_number",
382
+ InvalidCardType: "invalid_card_type",
383
+ PossibleFraud: "possible_fraud",
384
+ RefusedByIssuer: "refused_by_issuer",
385
+ UnknownReason: "unknown_reason",
386
+ };
387
+ /**
388
+ * The wallet used when creating the payment.
389
+ */
390
+ export const CancelPaymentWallet = {
391
+ Applepay: "applepay",
392
+ };
393
+ /**
394
+ * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
395
+ *
396
+ * @remarks
397
+ * payments, and if the information is made available by PayPal.
398
+ */
399
+ export const CancelPaymentSellerProtection = {
400
+ Eligible: "Eligible",
401
+ Ineligible: "Ineligible",
402
+ PartiallyEligibleINROnly: "Partially Eligible - INR Only",
403
+ PartiallyEligibleUnauthOnly: "Partially Eligible - Unauth Only",
404
+ PartiallyEligible: "Partially Eligible",
405
+ None: "None",
406
+ Active: "Active",
407
+ FraudControlUnauthPremiumEligible: "Fraud Control - Unauth Premium Eligible",
408
+ };
409
+ /**
410
+ * The method by which the card was read by the terminal.
411
+ */
412
+ export const CancelPaymentCardReadMethod = {
413
+ Chip: "chip",
414
+ MagneticStripe: "magnetic-stripe",
415
+ NearFieldCommunication: "near-field-communication",
416
+ Contactless: "contactless",
417
+ Moto: "moto",
418
+ };
419
+ /**
420
+ * The method used to verify the cardholder's identity.
421
+ */
422
+ export const CancelPaymentCardVerificationMethod = {
423
+ NoCvmRequired: "no-cvm-required",
424
+ OnlinePin: "online-pin",
425
+ OfflinePin: "offline-pin",
426
+ ConsumerDevice: "consumer-device",
427
+ Signature: "signature",
428
+ SignatureAndOnlinePin: "signature-and-online-pin",
429
+ OnlinePinAndSignature: "online-pin-and-signature",
430
+ None: "none",
431
+ Failed: "failed",
432
+ };
189
433
  /** @internal */
190
434
  export const CancelPaymentRequestBody$inboundSchema = z.object({
191
435
  testmode: z.nullable(z.boolean()).optional(),
@@ -1237,28 +1481,43 @@ export var CancelPaymentSequenceType$;
1237
1481
  CancelPaymentSequenceType$.outboundSchema = CancelPaymentSequenceType$outboundSchema;
1238
1482
  })(CancelPaymentSequenceType$ || (CancelPaymentSequenceType$ = {}));
1239
1483
  /** @internal */
1240
- export const CancelPaymentStatus$inboundSchema = z.nativeEnum(CancelPaymentStatus);
1484
+ export const CancelPaymentStatusEnum$inboundSchema = z.nativeEnum(CancelPaymentStatusEnum);
1485
+ /** @internal */
1486
+ export const CancelPaymentStatusEnum$outboundSchema = CancelPaymentStatusEnum$inboundSchema;
1487
+ /**
1488
+ * @internal
1489
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1490
+ */
1491
+ export var CancelPaymentStatusEnum$;
1492
+ (function (CancelPaymentStatusEnum$) {
1493
+ /** @deprecated use `CancelPaymentStatusEnum$inboundSchema` instead. */
1494
+ CancelPaymentStatusEnum$.inboundSchema = CancelPaymentStatusEnum$inboundSchema;
1495
+ /** @deprecated use `CancelPaymentStatusEnum$outboundSchema` instead. */
1496
+ CancelPaymentStatusEnum$.outboundSchema = CancelPaymentStatusEnum$outboundSchema;
1497
+ })(CancelPaymentStatusEnum$ || (CancelPaymentStatusEnum$ = {}));
1498
+ /** @internal */
1499
+ export const CancelPaymentCode$inboundSchema = z.nativeEnum(CancelPaymentCode);
1241
1500
  /** @internal */
1242
- export const CancelPaymentStatus$outboundSchema = CancelPaymentStatus$inboundSchema;
1501
+ export const CancelPaymentCode$outboundSchema = CancelPaymentCode$inboundSchema;
1243
1502
  /**
1244
1503
  * @internal
1245
1504
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1246
1505
  */
1247
- export var CancelPaymentStatus$;
1248
- (function (CancelPaymentStatus$) {
1249
- /** @deprecated use `CancelPaymentStatus$inboundSchema` instead. */
1250
- CancelPaymentStatus$.inboundSchema = CancelPaymentStatus$inboundSchema;
1251
- /** @deprecated use `CancelPaymentStatus$outboundSchema` instead. */
1252
- CancelPaymentStatus$.outboundSchema = CancelPaymentStatus$outboundSchema;
1253
- })(CancelPaymentStatus$ || (CancelPaymentStatus$ = {}));
1506
+ export var CancelPaymentCode$;
1507
+ (function (CancelPaymentCode$) {
1508
+ /** @deprecated use `CancelPaymentCode$inboundSchema` instead. */
1509
+ CancelPaymentCode$.inboundSchema = CancelPaymentCode$inboundSchema;
1510
+ /** @deprecated use `CancelPaymentCode$outboundSchema` instead. */
1511
+ CancelPaymentCode$.outboundSchema = CancelPaymentCode$outboundSchema;
1512
+ })(CancelPaymentCode$ || (CancelPaymentCode$ = {}));
1254
1513
  /** @internal */
1255
1514
  export const CancelPaymentStatusReason$inboundSchema = z.object({
1256
- code: z.string(),
1515
+ code: CancelPaymentCode$inboundSchema,
1257
1516
  message: z.string(),
1258
1517
  });
1259
1518
  /** @internal */
1260
1519
  export const CancelPaymentStatusReason$outboundSchema = z.object({
1261
- code: z.string(),
1520
+ code: CancelPaymentCode$outboundSchema,
1262
1521
  message: z.string(),
1263
1522
  });
1264
1523
  /**
@@ -1279,6 +1538,406 @@ export function cancelPaymentStatusReasonFromJSON(jsonString) {
1279
1538
  return safeParse(jsonString, (x) => CancelPaymentStatusReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentStatusReason' from JSON`);
1280
1539
  }
1281
1540
  /** @internal */
1541
+ export const CancelPaymentCardAudition$inboundSchema = z.nativeEnum(CancelPaymentCardAudition);
1542
+ /** @internal */
1543
+ export const CancelPaymentCardAudition$outboundSchema = CancelPaymentCardAudition$inboundSchema;
1544
+ /**
1545
+ * @internal
1546
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
+ */
1548
+ export var CancelPaymentCardAudition$;
1549
+ (function (CancelPaymentCardAudition$) {
1550
+ /** @deprecated use `CancelPaymentCardAudition$inboundSchema` instead. */
1551
+ CancelPaymentCardAudition$.inboundSchema = CancelPaymentCardAudition$inboundSchema;
1552
+ /** @deprecated use `CancelPaymentCardAudition$outboundSchema` instead. */
1553
+ CancelPaymentCardAudition$.outboundSchema = CancelPaymentCardAudition$outboundSchema;
1554
+ })(CancelPaymentCardAudition$ || (CancelPaymentCardAudition$ = {}));
1555
+ /** @internal */
1556
+ export const CancelPaymentCardLabel$inboundSchema = z.nativeEnum(CancelPaymentCardLabel);
1557
+ /** @internal */
1558
+ export const CancelPaymentCardLabel$outboundSchema = CancelPaymentCardLabel$inboundSchema;
1559
+ /**
1560
+ * @internal
1561
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1562
+ */
1563
+ export var CancelPaymentCardLabel$;
1564
+ (function (CancelPaymentCardLabel$) {
1565
+ /** @deprecated use `CancelPaymentCardLabel$inboundSchema` instead. */
1566
+ CancelPaymentCardLabel$.inboundSchema = CancelPaymentCardLabel$inboundSchema;
1567
+ /** @deprecated use `CancelPaymentCardLabel$outboundSchema` instead. */
1568
+ CancelPaymentCardLabel$.outboundSchema = CancelPaymentCardLabel$outboundSchema;
1569
+ })(CancelPaymentCardLabel$ || (CancelPaymentCardLabel$ = {}));
1570
+ /** @internal */
1571
+ export const CancelPaymentCardFunding$inboundSchema = z.nativeEnum(CancelPaymentCardFunding);
1572
+ /** @internal */
1573
+ export const CancelPaymentCardFunding$outboundSchema = CancelPaymentCardFunding$inboundSchema;
1574
+ /**
1575
+ * @internal
1576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1577
+ */
1578
+ export var CancelPaymentCardFunding$;
1579
+ (function (CancelPaymentCardFunding$) {
1580
+ /** @deprecated use `CancelPaymentCardFunding$inboundSchema` instead. */
1581
+ CancelPaymentCardFunding$.inboundSchema = CancelPaymentCardFunding$inboundSchema;
1582
+ /** @deprecated use `CancelPaymentCardFunding$outboundSchema` instead. */
1583
+ CancelPaymentCardFunding$.outboundSchema = CancelPaymentCardFunding$outboundSchema;
1584
+ })(CancelPaymentCardFunding$ || (CancelPaymentCardFunding$ = {}));
1585
+ /** @internal */
1586
+ export const CancelPaymentCardSecurity$inboundSchema = z.nativeEnum(CancelPaymentCardSecurity);
1587
+ /** @internal */
1588
+ export const CancelPaymentCardSecurity$outboundSchema = CancelPaymentCardSecurity$inboundSchema;
1589
+ /**
1590
+ * @internal
1591
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1592
+ */
1593
+ export var CancelPaymentCardSecurity$;
1594
+ (function (CancelPaymentCardSecurity$) {
1595
+ /** @deprecated use `CancelPaymentCardSecurity$inboundSchema` instead. */
1596
+ CancelPaymentCardSecurity$.inboundSchema = CancelPaymentCardSecurity$inboundSchema;
1597
+ /** @deprecated use `CancelPaymentCardSecurity$outboundSchema` instead. */
1598
+ CancelPaymentCardSecurity$.outboundSchema = CancelPaymentCardSecurity$outboundSchema;
1599
+ })(CancelPaymentCardSecurity$ || (CancelPaymentCardSecurity$ = {}));
1600
+ /** @internal */
1601
+ export const CancelPaymentFeeRegion$inboundSchema = z.nativeEnum(CancelPaymentFeeRegion);
1602
+ /** @internal */
1603
+ export const CancelPaymentFeeRegion$outboundSchema = CancelPaymentFeeRegion$inboundSchema;
1604
+ /**
1605
+ * @internal
1606
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1607
+ */
1608
+ export var CancelPaymentFeeRegion$;
1609
+ (function (CancelPaymentFeeRegion$) {
1610
+ /** @deprecated use `CancelPaymentFeeRegion$inboundSchema` instead. */
1611
+ CancelPaymentFeeRegion$.inboundSchema = CancelPaymentFeeRegion$inboundSchema;
1612
+ /** @deprecated use `CancelPaymentFeeRegion$outboundSchema` instead. */
1613
+ CancelPaymentFeeRegion$.outboundSchema = CancelPaymentFeeRegion$outboundSchema;
1614
+ })(CancelPaymentFeeRegion$ || (CancelPaymentFeeRegion$ = {}));
1615
+ /** @internal */
1616
+ export const CancelPaymentFailureReason$inboundSchema = z.nativeEnum(CancelPaymentFailureReason);
1617
+ /** @internal */
1618
+ export const CancelPaymentFailureReason$outboundSchema = CancelPaymentFailureReason$inboundSchema;
1619
+ /**
1620
+ * @internal
1621
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1622
+ */
1623
+ export var CancelPaymentFailureReason$;
1624
+ (function (CancelPaymentFailureReason$) {
1625
+ /** @deprecated use `CancelPaymentFailureReason$inboundSchema` instead. */
1626
+ CancelPaymentFailureReason$.inboundSchema = CancelPaymentFailureReason$inboundSchema;
1627
+ /** @deprecated use `CancelPaymentFailureReason$outboundSchema` instead. */
1628
+ CancelPaymentFailureReason$.outboundSchema = CancelPaymentFailureReason$outboundSchema;
1629
+ })(CancelPaymentFailureReason$ || (CancelPaymentFailureReason$ = {}));
1630
+ /** @internal */
1631
+ export const CancelPaymentWallet$inboundSchema = z.nativeEnum(CancelPaymentWallet);
1632
+ /** @internal */
1633
+ export const CancelPaymentWallet$outboundSchema = CancelPaymentWallet$inboundSchema;
1634
+ /**
1635
+ * @internal
1636
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1637
+ */
1638
+ export var CancelPaymentWallet$;
1639
+ (function (CancelPaymentWallet$) {
1640
+ /** @deprecated use `CancelPaymentWallet$inboundSchema` instead. */
1641
+ CancelPaymentWallet$.inboundSchema = CancelPaymentWallet$inboundSchema;
1642
+ /** @deprecated use `CancelPaymentWallet$outboundSchema` instead. */
1643
+ CancelPaymentWallet$.outboundSchema = CancelPaymentWallet$outboundSchema;
1644
+ })(CancelPaymentWallet$ || (CancelPaymentWallet$ = {}));
1645
+ /** @internal */
1646
+ export const CancelPaymentSellerProtection$inboundSchema = z.nativeEnum(CancelPaymentSellerProtection);
1647
+ /** @internal */
1648
+ export const CancelPaymentSellerProtection$outboundSchema = CancelPaymentSellerProtection$inboundSchema;
1649
+ /**
1650
+ * @internal
1651
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1652
+ */
1653
+ export var CancelPaymentSellerProtection$;
1654
+ (function (CancelPaymentSellerProtection$) {
1655
+ /** @deprecated use `CancelPaymentSellerProtection$inboundSchema` instead. */
1656
+ CancelPaymentSellerProtection$.inboundSchema = CancelPaymentSellerProtection$inboundSchema;
1657
+ /** @deprecated use `CancelPaymentSellerProtection$outboundSchema` instead. */
1658
+ CancelPaymentSellerProtection$.outboundSchema = CancelPaymentSellerProtection$outboundSchema;
1659
+ })(CancelPaymentSellerProtection$ || (CancelPaymentSellerProtection$ = {}));
1660
+ /** @internal */
1661
+ export const CancelPaymentPaypalFee$inboundSchema = z.object({
1662
+ currency: z.string(),
1663
+ value: z.string(),
1664
+ });
1665
+ /** @internal */
1666
+ export const CancelPaymentPaypalFee$outboundSchema = z.object({
1667
+ currency: z.string(),
1668
+ value: z.string(),
1669
+ });
1670
+ /**
1671
+ * @internal
1672
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1673
+ */
1674
+ export var CancelPaymentPaypalFee$;
1675
+ (function (CancelPaymentPaypalFee$) {
1676
+ /** @deprecated use `CancelPaymentPaypalFee$inboundSchema` instead. */
1677
+ CancelPaymentPaypalFee$.inboundSchema = CancelPaymentPaypalFee$inboundSchema;
1678
+ /** @deprecated use `CancelPaymentPaypalFee$outboundSchema` instead. */
1679
+ CancelPaymentPaypalFee$.outboundSchema = CancelPaymentPaypalFee$outboundSchema;
1680
+ })(CancelPaymentPaypalFee$ || (CancelPaymentPaypalFee$ = {}));
1681
+ export function cancelPaymentPaypalFeeToJSON(cancelPaymentPaypalFee) {
1682
+ return JSON.stringify(CancelPaymentPaypalFee$outboundSchema.parse(cancelPaymentPaypalFee));
1683
+ }
1684
+ export function cancelPaymentPaypalFeeFromJSON(jsonString) {
1685
+ return safeParse(jsonString, (x) => CancelPaymentPaypalFee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentPaypalFee' from JSON`);
1686
+ }
1687
+ /** @internal */
1688
+ export const CancelPaymentCardReadMethod$inboundSchema = z.nativeEnum(CancelPaymentCardReadMethod);
1689
+ /** @internal */
1690
+ export const CancelPaymentCardReadMethod$outboundSchema = CancelPaymentCardReadMethod$inboundSchema;
1691
+ /**
1692
+ * @internal
1693
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1694
+ */
1695
+ export var CancelPaymentCardReadMethod$;
1696
+ (function (CancelPaymentCardReadMethod$) {
1697
+ /** @deprecated use `CancelPaymentCardReadMethod$inboundSchema` instead. */
1698
+ CancelPaymentCardReadMethod$.inboundSchema = CancelPaymentCardReadMethod$inboundSchema;
1699
+ /** @deprecated use `CancelPaymentCardReadMethod$outboundSchema` instead. */
1700
+ CancelPaymentCardReadMethod$.outboundSchema = CancelPaymentCardReadMethod$outboundSchema;
1701
+ })(CancelPaymentCardReadMethod$ || (CancelPaymentCardReadMethod$ = {}));
1702
+ /** @internal */
1703
+ export const CancelPaymentCardVerificationMethod$inboundSchema = z.nativeEnum(CancelPaymentCardVerificationMethod);
1704
+ /** @internal */
1705
+ export const CancelPaymentCardVerificationMethod$outboundSchema = CancelPaymentCardVerificationMethod$inboundSchema;
1706
+ /**
1707
+ * @internal
1708
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1709
+ */
1710
+ export var CancelPaymentCardVerificationMethod$;
1711
+ (function (CancelPaymentCardVerificationMethod$) {
1712
+ /** @deprecated use `CancelPaymentCardVerificationMethod$inboundSchema` instead. */
1713
+ CancelPaymentCardVerificationMethod$.inboundSchema = CancelPaymentCardVerificationMethod$inboundSchema;
1714
+ /** @deprecated use `CancelPaymentCardVerificationMethod$outboundSchema` instead. */
1715
+ CancelPaymentCardVerificationMethod$.outboundSchema = CancelPaymentCardVerificationMethod$outboundSchema;
1716
+ })(CancelPaymentCardVerificationMethod$ || (CancelPaymentCardVerificationMethod$ = {}));
1717
+ /** @internal */
1718
+ export const CancelPaymentReceipt$inboundSchema = z.object({
1719
+ authorizationCode: z.nullable(z.string()).optional(),
1720
+ applicationIdentifier: z.nullable(z.string()).optional(),
1721
+ cardReadMethod: z.nullable(CancelPaymentCardReadMethod$inboundSchema)
1722
+ .optional(),
1723
+ cardVerificationMethod: z.nullable(CancelPaymentCardVerificationMethod$inboundSchema).optional(),
1724
+ });
1725
+ /** @internal */
1726
+ export const CancelPaymentReceipt$outboundSchema = z.object({
1727
+ authorizationCode: z.nullable(z.string()).optional(),
1728
+ applicationIdentifier: z.nullable(z.string()).optional(),
1729
+ cardReadMethod: z.nullable(CancelPaymentCardReadMethod$outboundSchema)
1730
+ .optional(),
1731
+ cardVerificationMethod: z.nullable(CancelPaymentCardVerificationMethod$outboundSchema).optional(),
1732
+ });
1733
+ /**
1734
+ * @internal
1735
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1736
+ */
1737
+ export var CancelPaymentReceipt$;
1738
+ (function (CancelPaymentReceipt$) {
1739
+ /** @deprecated use `CancelPaymentReceipt$inboundSchema` instead. */
1740
+ CancelPaymentReceipt$.inboundSchema = CancelPaymentReceipt$inboundSchema;
1741
+ /** @deprecated use `CancelPaymentReceipt$outboundSchema` instead. */
1742
+ CancelPaymentReceipt$.outboundSchema = CancelPaymentReceipt$outboundSchema;
1743
+ })(CancelPaymentReceipt$ || (CancelPaymentReceipt$ = {}));
1744
+ export function cancelPaymentReceiptToJSON(cancelPaymentReceipt) {
1745
+ return JSON.stringify(CancelPaymentReceipt$outboundSchema.parse(cancelPaymentReceipt));
1746
+ }
1747
+ export function cancelPaymentReceiptFromJSON(jsonString) {
1748
+ return safeParse(jsonString, (x) => CancelPaymentReceipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentReceipt' from JSON`);
1749
+ }
1750
+ /** @internal */
1751
+ export const CancelPaymentQrCode$inboundSchema = z.object({
1752
+ height: z.number().int().optional(),
1753
+ width: z.number().int().optional(),
1754
+ src: z.string().optional(),
1755
+ });
1756
+ /** @internal */
1757
+ export const CancelPaymentQrCode$outboundSchema = z.object({
1758
+ height: z.number().int().optional(),
1759
+ width: z.number().int().optional(),
1760
+ src: z.string().optional(),
1761
+ });
1762
+ /**
1763
+ * @internal
1764
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1765
+ */
1766
+ export var CancelPaymentQrCode$;
1767
+ (function (CancelPaymentQrCode$) {
1768
+ /** @deprecated use `CancelPaymentQrCode$inboundSchema` instead. */
1769
+ CancelPaymentQrCode$.inboundSchema = CancelPaymentQrCode$inboundSchema;
1770
+ /** @deprecated use `CancelPaymentQrCode$outboundSchema` instead. */
1771
+ CancelPaymentQrCode$.outboundSchema = CancelPaymentQrCode$outboundSchema;
1772
+ })(CancelPaymentQrCode$ || (CancelPaymentQrCode$ = {}));
1773
+ export function cancelPaymentQrCodeToJSON(cancelPaymentQrCode) {
1774
+ return JSON.stringify(CancelPaymentQrCode$outboundSchema.parse(cancelPaymentQrCode));
1775
+ }
1776
+ export function cancelPaymentQrCodeFromJSON(jsonString) {
1777
+ return safeParse(jsonString, (x) => CancelPaymentQrCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentQrCode' from JSON`);
1778
+ }
1779
+ /** @internal */
1780
+ export const CancelPaymentRemainderAmount$inboundSchema = z.object({
1781
+ currency: z.string(),
1782
+ value: z.string(),
1783
+ });
1784
+ /** @internal */
1785
+ export const CancelPaymentRemainderAmount$outboundSchema = z.object({
1786
+ currency: z.string(),
1787
+ value: z.string(),
1788
+ });
1789
+ /**
1790
+ * @internal
1791
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1792
+ */
1793
+ export var CancelPaymentRemainderAmount$;
1794
+ (function (CancelPaymentRemainderAmount$) {
1795
+ /** @deprecated use `CancelPaymentRemainderAmount$inboundSchema` instead. */
1796
+ CancelPaymentRemainderAmount$.inboundSchema = CancelPaymentRemainderAmount$inboundSchema;
1797
+ /** @deprecated use `CancelPaymentRemainderAmount$outboundSchema` instead. */
1798
+ CancelPaymentRemainderAmount$.outboundSchema = CancelPaymentRemainderAmount$outboundSchema;
1799
+ })(CancelPaymentRemainderAmount$ || (CancelPaymentRemainderAmount$ = {}));
1800
+ export function cancelPaymentRemainderAmountToJSON(cancelPaymentRemainderAmount) {
1801
+ return JSON.stringify(CancelPaymentRemainderAmount$outboundSchema.parse(cancelPaymentRemainderAmount));
1802
+ }
1803
+ export function cancelPaymentRemainderAmountFromJSON(jsonString) {
1804
+ return safeParse(jsonString, (x) => CancelPaymentRemainderAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentRemainderAmount' from JSON`);
1805
+ }
1806
+ /** @internal */
1807
+ export const CancelPaymentDetails$inboundSchema = z.object({
1808
+ consumerName: z.nullable(z.string()).optional(),
1809
+ consumerAccount: z.nullable(z.string()).optional(),
1810
+ consumerBic: z.nullable(z.string()).optional(),
1811
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1812
+ cardNumber: z.nullable(z.string()).optional(),
1813
+ bankName: z.string().optional(),
1814
+ bankAccount: z.string().optional(),
1815
+ bankBic: z.string().optional(),
1816
+ transferReference: z.nullable(z.string()).optional(),
1817
+ cardFingerprint: z.nullable(z.string()).optional(),
1818
+ cardHolder: z.nullable(z.string()).optional(),
1819
+ cardAudition: z.nullable(CancelPaymentCardAudition$inboundSchema).optional(),
1820
+ cardLabel: z.nullable(CancelPaymentCardLabel$inboundSchema).optional(),
1821
+ cardCountryCode: z.nullable(z.string()).optional(),
1822
+ cardExpiryDate: z.nullable(z.string()).optional(),
1823
+ cardFunding: z.nullable(CancelPaymentCardFunding$inboundSchema).optional(),
1824
+ cardSecurity: z.nullable(CancelPaymentCardSecurity$inboundSchema).optional(),
1825
+ feeRegion: z.nullable(CancelPaymentFeeRegion$inboundSchema).optional(),
1826
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1827
+ card3dsEci: z.nullable(z.string()).optional(),
1828
+ cardBin: z.nullable(z.string()).optional(),
1829
+ cardIssuer: z.nullable(z.string()).optional(),
1830
+ failureReason: z.nullable(CancelPaymentFailureReason$inboundSchema)
1831
+ .optional(),
1832
+ failureMessage: z.nullable(z.string()).optional(),
1833
+ wallet: z.nullable(CancelPaymentWallet$inboundSchema).optional(),
1834
+ paypalReference: z.nullable(z.string()).optional(),
1835
+ paypalPayerId: z.nullable(z.string()).optional(),
1836
+ sellerProtection: z.nullable(CancelPaymentSellerProtection$inboundSchema)
1837
+ .optional(),
1838
+ paypalFee: z.nullable(z.lazy(() => CancelPaymentPaypalFee$inboundSchema))
1839
+ .optional(),
1840
+ customerReference: z.string().optional(),
1841
+ terminalId: z.string().optional(),
1842
+ maskedNumber: z.nullable(z.string()).optional(),
1843
+ receipt: z.lazy(() => CancelPaymentReceipt$inboundSchema).optional(),
1844
+ creditorIdentifier: z.nullable(z.string()).optional(),
1845
+ dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
1846
+ signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
1847
+ .optional(),
1848
+ bankReasonCode: z.nullable(z.string()).optional(),
1849
+ bankReason: z.nullable(z.string()).optional(),
1850
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1851
+ mandateReference: z.nullable(z.string()).optional(),
1852
+ batchReference: z.nullable(z.string()).optional(),
1853
+ fileReference: z.nullable(z.string()).optional(),
1854
+ qrCode: z.lazy(() => CancelPaymentQrCode$inboundSchema).optional(),
1855
+ voucherNumber: z.string().optional(),
1856
+ giftcards: z.array(z.record(z.any())).optional(),
1857
+ issuer: z.string().optional(),
1858
+ vouchers: z.array(z.record(z.any())).optional(),
1859
+ remainderAmount: z.lazy(() => CancelPaymentRemainderAmount$inboundSchema)
1860
+ .optional(),
1861
+ remainderMethod: z.string().optional(),
1862
+ remainderDetails: z.record(z.any()).optional(),
1863
+ });
1864
+ /** @internal */
1865
+ export const CancelPaymentDetails$outboundSchema = z.object({
1866
+ consumerName: z.nullable(z.string()).optional(),
1867
+ consumerAccount: z.nullable(z.string()).optional(),
1868
+ consumerBic: z.nullable(z.string()).optional(),
1869
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1870
+ cardNumber: z.nullable(z.string()).optional(),
1871
+ bankName: z.string().optional(),
1872
+ bankAccount: z.string().optional(),
1873
+ bankBic: z.string().optional(),
1874
+ transferReference: z.nullable(z.string()).optional(),
1875
+ cardFingerprint: z.nullable(z.string()).optional(),
1876
+ cardHolder: z.nullable(z.string()).optional(),
1877
+ cardAudition: z.nullable(CancelPaymentCardAudition$outboundSchema).optional(),
1878
+ cardLabel: z.nullable(CancelPaymentCardLabel$outboundSchema).optional(),
1879
+ cardCountryCode: z.nullable(z.string()).optional(),
1880
+ cardExpiryDate: z.nullable(z.string()).optional(),
1881
+ cardFunding: z.nullable(CancelPaymentCardFunding$outboundSchema).optional(),
1882
+ cardSecurity: z.nullable(CancelPaymentCardSecurity$outboundSchema).optional(),
1883
+ feeRegion: z.nullable(CancelPaymentFeeRegion$outboundSchema).optional(),
1884
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1885
+ card3dsEci: z.nullable(z.string()).optional(),
1886
+ cardBin: z.nullable(z.string()).optional(),
1887
+ cardIssuer: z.nullable(z.string()).optional(),
1888
+ failureReason: z.nullable(CancelPaymentFailureReason$outboundSchema)
1889
+ .optional(),
1890
+ failureMessage: z.nullable(z.string()).optional(),
1891
+ wallet: z.nullable(CancelPaymentWallet$outboundSchema).optional(),
1892
+ paypalReference: z.nullable(z.string()).optional(),
1893
+ paypalPayerId: z.nullable(z.string()).optional(),
1894
+ sellerProtection: z.nullable(CancelPaymentSellerProtection$outboundSchema)
1895
+ .optional(),
1896
+ paypalFee: z.nullable(z.lazy(() => CancelPaymentPaypalFee$outboundSchema))
1897
+ .optional(),
1898
+ customerReference: z.string().optional(),
1899
+ terminalId: z.string().optional(),
1900
+ maskedNumber: z.nullable(z.string()).optional(),
1901
+ receipt: z.lazy(() => CancelPaymentReceipt$outboundSchema).optional(),
1902
+ creditorIdentifier: z.nullable(z.string()).optional(),
1903
+ dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1904
+ .optional(),
1905
+ signatureDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1906
+ .optional(),
1907
+ bankReasonCode: z.nullable(z.string()).optional(),
1908
+ bankReason: z.nullable(z.string()).optional(),
1909
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1910
+ mandateReference: z.nullable(z.string()).optional(),
1911
+ batchReference: z.nullable(z.string()).optional(),
1912
+ fileReference: z.nullable(z.string()).optional(),
1913
+ qrCode: z.lazy(() => CancelPaymentQrCode$outboundSchema).optional(),
1914
+ voucherNumber: z.string().optional(),
1915
+ giftcards: z.array(z.record(z.any())).optional(),
1916
+ issuer: z.string().optional(),
1917
+ vouchers: z.array(z.record(z.any())).optional(),
1918
+ remainderAmount: z.lazy(() => CancelPaymentRemainderAmount$outboundSchema)
1919
+ .optional(),
1920
+ remainderMethod: z.string().optional(),
1921
+ remainderDetails: z.record(z.any()).optional(),
1922
+ });
1923
+ /**
1924
+ * @internal
1925
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1926
+ */
1927
+ export var CancelPaymentDetails$;
1928
+ (function (CancelPaymentDetails$) {
1929
+ /** @deprecated use `CancelPaymentDetails$inboundSchema` instead. */
1930
+ CancelPaymentDetails$.inboundSchema = CancelPaymentDetails$inboundSchema;
1931
+ /** @deprecated use `CancelPaymentDetails$outboundSchema` instead. */
1932
+ CancelPaymentDetails$.outboundSchema = CancelPaymentDetails$outboundSchema;
1933
+ })(CancelPaymentDetails$ || (CancelPaymentDetails$ = {}));
1934
+ export function cancelPaymentDetailsToJSON(cancelPaymentDetails) {
1935
+ return JSON.stringify(CancelPaymentDetails$outboundSchema.parse(cancelPaymentDetails));
1936
+ }
1937
+ export function cancelPaymentDetailsFromJSON(jsonString) {
1938
+ return safeParse(jsonString, (x) => CancelPaymentDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentDetails' from JSON`);
1939
+ }
1940
+ /** @internal */
1282
1941
  export const CancelPaymentSelf$inboundSchema = z.object({
1283
1942
  href: z.string(),
1284
1943
  type: z.string(),
@@ -1684,6 +2343,60 @@ export function cancelPaymentDocumentationFromJSON(jsonString) {
1684
2343
  return safeParse(jsonString, (x) => CancelPaymentDocumentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentDocumentation' from JSON`);
1685
2344
  }
1686
2345
  /** @internal */
2346
+ export const CancelPaymentLinksStatus$inboundSchema = z.object({
2347
+ href: z.string(),
2348
+ type: z.string(),
2349
+ });
2350
+ /** @internal */
2351
+ export const CancelPaymentLinksStatus$outboundSchema = z.object({
2352
+ href: z.string(),
2353
+ type: z.string(),
2354
+ });
2355
+ /**
2356
+ * @internal
2357
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2358
+ */
2359
+ export var CancelPaymentLinksStatus$;
2360
+ (function (CancelPaymentLinksStatus$) {
2361
+ /** @deprecated use `CancelPaymentLinksStatus$inboundSchema` instead. */
2362
+ CancelPaymentLinksStatus$.inboundSchema = CancelPaymentLinksStatus$inboundSchema;
2363
+ /** @deprecated use `CancelPaymentLinksStatus$outboundSchema` instead. */
2364
+ CancelPaymentLinksStatus$.outboundSchema = CancelPaymentLinksStatus$outboundSchema;
2365
+ })(CancelPaymentLinksStatus$ || (CancelPaymentLinksStatus$ = {}));
2366
+ export function cancelPaymentLinksStatusToJSON(cancelPaymentLinksStatus) {
2367
+ return JSON.stringify(CancelPaymentLinksStatus$outboundSchema.parse(cancelPaymentLinksStatus));
2368
+ }
2369
+ export function cancelPaymentLinksStatusFromJSON(jsonString) {
2370
+ return safeParse(jsonString, (x) => CancelPaymentLinksStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentLinksStatus' from JSON`);
2371
+ }
2372
+ /** @internal */
2373
+ export const CancelPaymentPayOnline$inboundSchema = z.object({
2374
+ href: z.string(),
2375
+ type: z.string(),
2376
+ });
2377
+ /** @internal */
2378
+ export const CancelPaymentPayOnline$outboundSchema = z.object({
2379
+ href: z.string(),
2380
+ type: z.string(),
2381
+ });
2382
+ /**
2383
+ * @internal
2384
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2385
+ */
2386
+ export var CancelPaymentPayOnline$;
2387
+ (function (CancelPaymentPayOnline$) {
2388
+ /** @deprecated use `CancelPaymentPayOnline$inboundSchema` instead. */
2389
+ CancelPaymentPayOnline$.inboundSchema = CancelPaymentPayOnline$inboundSchema;
2390
+ /** @deprecated use `CancelPaymentPayOnline$outboundSchema` instead. */
2391
+ CancelPaymentPayOnline$.outboundSchema = CancelPaymentPayOnline$outboundSchema;
2392
+ })(CancelPaymentPayOnline$ || (CancelPaymentPayOnline$ = {}));
2393
+ export function cancelPaymentPayOnlineToJSON(cancelPaymentPayOnline) {
2394
+ return JSON.stringify(CancelPaymentPayOnline$outboundSchema.parse(cancelPaymentPayOnline));
2395
+ }
2396
+ export function cancelPaymentPayOnlineFromJSON(jsonString) {
2397
+ return safeParse(jsonString, (x) => CancelPaymentPayOnline$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelPaymentPayOnline' from JSON`);
2398
+ }
2399
+ /** @internal */
1687
2400
  export const CancelPaymentLinks$inboundSchema = z.object({
1688
2401
  self: z.lazy(() => CancelPaymentSelf$inboundSchema),
1689
2402
  checkout: z.lazy(() => CancelPaymentCheckout$inboundSchema).optional(),
@@ -1703,6 +2416,8 @@ export const CancelPaymentLinks$inboundSchema = z.object({
1703
2416
  terminal: z.lazy(() => CancelPaymentTerminal$inboundSchema).optional(),
1704
2417
  documentation: z.lazy(() => CancelPaymentDocumentation$inboundSchema)
1705
2418
  .optional(),
2419
+ status: z.lazy(() => CancelPaymentLinksStatus$inboundSchema).optional(),
2420
+ payOnline: z.lazy(() => CancelPaymentPayOnline$inboundSchema).optional(),
1706
2421
  });
1707
2422
  /** @internal */
1708
2423
  export const CancelPaymentLinks$outboundSchema = z.object({
@@ -1724,6 +2439,8 @@ export const CancelPaymentLinks$outboundSchema = z.object({
1724
2439
  terminal: z.lazy(() => CancelPaymentTerminal$outboundSchema).optional(),
1725
2440
  documentation: z.lazy(() => CancelPaymentDocumentation$outboundSchema)
1726
2441
  .optional(),
2442
+ status: z.lazy(() => CancelPaymentLinksStatus$outboundSchema).optional(),
2443
+ payOnline: z.lazy(() => CancelPaymentPayOnline$outboundSchema).optional(),
1727
2444
  });
1728
2445
  /**
1729
2446
  * @internal
@@ -1786,10 +2503,11 @@ export const CancelPaymentResponse$inboundSchema = z.object({
1786
2503
  profileId: z.string(),
1787
2504
  settlementId: z.nullable(z.string()).optional(),
1788
2505
  orderId: z.nullable(z.string()).optional(),
1789
- status: CancelPaymentStatus$inboundSchema,
2506
+ status: CancelPaymentStatusEnum$inboundSchema,
1790
2507
  statusReason: z.nullable(z.lazy(() => CancelPaymentStatusReason$inboundSchema)).optional(),
1791
2508
  isCancelable: z.nullable(z.boolean()).optional(),
1792
- details: z.nullable(z.record(z.any())).optional(),
2509
+ details: z.nullable(z.lazy(() => CancelPaymentDetails$inboundSchema))
2510
+ .optional(),
1793
2511
  createdAt: z.string(),
1794
2512
  authorizedAt: z.nullable(z.string()).optional(),
1795
2513
  paidAt: z.nullable(z.string()).optional(),
@@ -1846,10 +2564,11 @@ export const CancelPaymentResponse$outboundSchema = z.object({
1846
2564
  profileId: z.string(),
1847
2565
  settlementId: z.nullable(z.string()).optional(),
1848
2566
  orderId: z.nullable(z.string()).optional(),
1849
- status: CancelPaymentStatus$outboundSchema,
2567
+ status: CancelPaymentStatusEnum$outboundSchema,
1850
2568
  statusReason: z.nullable(z.lazy(() => CancelPaymentStatusReason$outboundSchema)).optional(),
1851
2569
  isCancelable: z.nullable(z.boolean()).optional(),
1852
- details: z.nullable(z.record(z.any())).optional(),
2570
+ details: z.nullable(z.lazy(() => CancelPaymentDetails$outboundSchema))
2571
+ .optional(),
1853
2572
  createdAt: z.string(),
1854
2573
  authorizedAt: z.nullable(z.string()).optional(),
1855
2574
  paidAt: z.nullable(z.string()).optional(),