mollie-api-typescript 0.9.5 → 0.9.6

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 (495) hide show
  1. package/bin/mcp-server.js +2840 -1135
  2. package/bin/mcp-server.js.map +84 -69
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/entitybalance.d.ts +42 -42
  8. package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
  9. package/dist/commonjs/models/entitybalance.js +53 -51
  10. package/dist/commonjs/models/entitybalance.js.map +1 -1
  11. package/dist/commonjs/models/entitychargeback.d.ts +8 -8
  12. package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
  13. package/dist/commonjs/models/entitychargeback.js +13 -12
  14. package/dist/commonjs/models/entitychargeback.js.map +1 -1
  15. package/dist/commonjs/models/entityinvoice.d.ts +24 -24
  16. package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
  17. package/dist/commonjs/models/entityinvoice.js +31 -31
  18. package/dist/commonjs/models/entityinvoice.js.map +1 -1
  19. package/dist/commonjs/models/entitysettlement.d.ts +32 -32
  20. package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
  21. package/dist/commonjs/models/entitysettlement.js +43 -43
  22. package/dist/commonjs/models/entitysettlement.js.map +1 -1
  23. package/dist/commonjs/models/index.d.ts +17 -2
  24. package/dist/commonjs/models/index.d.ts.map +1 -1
  25. package/dist/commonjs/models/index.js +17 -2
  26. package/dist/commonjs/models/index.js.map +1 -1
  27. package/dist/commonjs/models/listcustomerresponse.d.ts +107 -0
  28. package/dist/commonjs/models/listcustomerresponse.d.ts.map +1 -0
  29. package/dist/commonjs/models/listcustomerresponse.js +112 -0
  30. package/dist/commonjs/models/listcustomerresponse.js.map +1 -0
  31. package/dist/commonjs/models/listentitybalance.d.ts +300 -0
  32. package/dist/commonjs/models/listentitybalance.d.ts.map +1 -0
  33. package/dist/commonjs/models/listentitybalance.js +245 -0
  34. package/dist/commonjs/models/listentitybalance.js.map +1 -0
  35. package/dist/commonjs/models/listentitychargeback.d.ts +175 -0
  36. package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -0
  37. package/dist/commonjs/models/listentitychargeback.js +146 -0
  38. package/dist/commonjs/models/listentitychargeback.js.map +1 -0
  39. package/dist/commonjs/models/listentityinvoice.d.ts +236 -0
  40. package/dist/commonjs/models/listentityinvoice.d.ts.map +1 -0
  41. package/dist/commonjs/models/listentityinvoice.js +202 -0
  42. package/dist/commonjs/models/listentityinvoice.js.map +1 -0
  43. package/dist/commonjs/models/listentitymethod.d.ts +319 -0
  44. package/dist/commonjs/models/listentitymethod.d.ts.map +1 -0
  45. package/dist/commonjs/models/listentitymethod.js +264 -0
  46. package/dist/commonjs/models/listentitymethod.js.map +1 -0
  47. package/dist/commonjs/models/{entitymethodall.d.ts → listentitymethodall.d.ts} +60 -65
  48. package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -0
  49. package/dist/commonjs/models/listentitymethodall.js +289 -0
  50. package/dist/commonjs/models/listentitymethodall.js.map +1 -0
  51. package/dist/commonjs/models/listentitypermission.d.ts +63 -0
  52. package/dist/commonjs/models/listentitypermission.d.ts.map +1 -0
  53. package/dist/commonjs/models/listentitypermission.js +92 -0
  54. package/dist/commonjs/models/listentitypermission.js.map +1 -0
  55. package/dist/commonjs/models/listentityrefund.d.ts +256 -0
  56. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -0
  57. package/dist/commonjs/models/listentityrefund.js +202 -0
  58. package/dist/commonjs/models/listentityrefund.js.map +1 -0
  59. package/dist/commonjs/models/listentitysettlement.d.ts +321 -0
  60. package/dist/commonjs/models/listentitysettlement.d.ts.map +1 -0
  61. package/dist/commonjs/models/listentitysettlement.js +248 -0
  62. package/dist/commonjs/models/listentitysettlement.js.map +1 -0
  63. package/dist/commonjs/models/listentityterminal.d.ts +130 -0
  64. package/dist/commonjs/models/listentityterminal.d.ts.map +1 -0
  65. package/dist/commonjs/models/listentityterminal.js +124 -0
  66. package/dist/commonjs/models/listentityterminal.js.map +1 -0
  67. package/dist/commonjs/models/listentitywebhook.d.ts +91 -0
  68. package/dist/commonjs/models/listentitywebhook.d.ts.map +1 -0
  69. package/dist/commonjs/models/listentitywebhook.js +105 -0
  70. package/dist/commonjs/models/listentitywebhook.js.map +1 -0
  71. package/dist/commonjs/models/listmandateresponse.d.ts +176 -0
  72. package/dist/commonjs/models/listmandateresponse.d.ts.map +1 -0
  73. package/dist/commonjs/models/listmandateresponse.js +157 -0
  74. package/dist/commonjs/models/listmandateresponse.js.map +1 -0
  75. package/dist/commonjs/models/listpaymentresponse.d.ts +1348 -0
  76. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -0
  77. package/dist/commonjs/models/listpaymentresponse.js +620 -0
  78. package/dist/commonjs/models/listpaymentresponse.js.map +1 -0
  79. package/dist/commonjs/models/listprofileresponse.d.ts +202 -0
  80. package/dist/commonjs/models/listprofileresponse.d.ts.map +1 -0
  81. package/dist/commonjs/models/listprofileresponse.js +159 -0
  82. package/dist/commonjs/models/listprofileresponse.js.map +1 -0
  83. package/dist/commonjs/models/{routegetresponse.d.ts → listroutegetresponse.d.ts} +23 -28
  84. package/dist/commonjs/models/listroutegetresponse.d.ts.map +1 -0
  85. package/dist/commonjs/models/{routegetresponse.js → listroutegetresponse.js} +30 -32
  86. package/dist/commonjs/models/listroutegetresponse.js.map +1 -0
  87. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +375 -0
  88. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -0
  89. package/dist/commonjs/models/listsalesinvoiceresponse.js +267 -0
  90. package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -0
  91. package/dist/commonjs/models/listsubscriptionresponse.d.ts +249 -0
  92. package/dist/commonjs/models/listsubscriptionresponse.d.ts.map +1 -0
  93. package/dist/commonjs/models/listsubscriptionresponse.js +171 -0
  94. package/dist/commonjs/models/listsubscriptionresponse.js.map +1 -0
  95. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +2 -2
  96. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  97. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +2 -2
  98. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  99. package/dist/commonjs/models/operations/listallchargebacks.d.ts +2 -2
  100. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  101. package/dist/commonjs/models/operations/listallchargebacks.js +2 -2
  102. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  103. package/dist/commonjs/models/operations/listallmethods.d.ts +2 -2
  104. package/dist/commonjs/models/operations/listallmethods.d.ts.map +1 -1
  105. package/dist/commonjs/models/operations/listallmethods.js +2 -2
  106. package/dist/commonjs/models/operations/listallmethods.js.map +1 -1
  107. package/dist/commonjs/models/operations/listallrefunds.d.ts +2 -2
  108. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  109. package/dist/commonjs/models/operations/listallrefunds.js +2 -2
  110. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  111. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +2 -2
  112. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/listallsubscriptions.js +4 -2
  114. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  115. package/dist/commonjs/models/operations/listbalances.d.ts +2 -2
  116. package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
  117. package/dist/commonjs/models/operations/listbalances.js +2 -2
  118. package/dist/commonjs/models/operations/listbalances.js.map +1 -1
  119. package/dist/commonjs/models/operations/listchargebacks.d.ts +2 -2
  120. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  121. package/dist/commonjs/models/operations/listchargebacks.js +2 -2
  122. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  123. package/dist/commonjs/models/operations/listclients.d.ts +0 -5
  124. package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
  125. package/dist/commonjs/models/operations/listclients.js +0 -2
  126. package/dist/commonjs/models/operations/listclients.js.map +1 -1
  127. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +2 -2
  128. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  129. package/dist/commonjs/models/operations/listcustomerpayments.js +2 -2
  130. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  131. package/dist/commonjs/models/operations/listcustomers.d.ts +2 -2
  132. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  133. package/dist/commonjs/models/operations/listcustomers.js +2 -2
  134. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  135. package/dist/commonjs/models/operations/listinvoices.d.ts +2 -2
  136. package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
  137. package/dist/commonjs/models/operations/listinvoices.js +2 -2
  138. package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
  139. package/dist/commonjs/models/operations/listmandates.d.ts +2 -2
  140. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  141. package/dist/commonjs/models/operations/listmandates.js +2 -2
  142. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  143. package/dist/commonjs/models/operations/listmethods.d.ts +2 -2
  144. package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
  145. package/dist/commonjs/models/operations/listmethods.js +2 -2
  146. package/dist/commonjs/models/operations/listmethods.js.map +1 -1
  147. package/dist/commonjs/models/operations/listpayments.d.ts +2 -2
  148. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  149. package/dist/commonjs/models/operations/listpayments.js +2 -2
  150. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  151. package/dist/commonjs/models/operations/listpermissions.d.ts +2 -2
  152. package/dist/commonjs/models/operations/listpermissions.d.ts.map +1 -1
  153. package/dist/commonjs/models/operations/listpermissions.js +2 -2
  154. package/dist/commonjs/models/operations/listpermissions.js.map +1 -1
  155. package/dist/commonjs/models/operations/listprofiles.d.ts +2 -2
  156. package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
  157. package/dist/commonjs/models/operations/listprofiles.js +2 -2
  158. package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
  159. package/dist/commonjs/models/operations/listrefunds.d.ts +2 -2
  160. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  161. package/dist/commonjs/models/operations/listrefunds.js +2 -2
  162. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  163. package/dist/commonjs/models/operations/listsalesinvoices.d.ts +2 -2
  164. package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
  165. package/dist/commonjs/models/operations/listsalesinvoices.js +4 -2
  166. package/dist/commonjs/models/operations/listsalesinvoices.js.map +1 -1
  167. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +2 -2
  168. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  169. package/dist/commonjs/models/operations/listsettlementchargebacks.js +2 -2
  170. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  171. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +2 -2
  172. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  173. package/dist/commonjs/models/operations/listsettlementpayments.js +2 -2
  174. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  175. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +2 -2
  176. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  177. package/dist/commonjs/models/operations/listsettlementrefunds.js +2 -2
  178. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  179. package/dist/commonjs/models/operations/listsettlements.d.ts +2 -2
  180. package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
  181. package/dist/commonjs/models/operations/listsettlements.js +2 -2
  182. package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
  183. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +2 -2
  184. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  185. package/dist/commonjs/models/operations/listsubscriptionpayments.js +2 -2
  186. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  187. package/dist/commonjs/models/operations/listsubscriptions.d.ts +2 -2
  188. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  189. package/dist/commonjs/models/operations/listsubscriptions.js +4 -2
  190. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  191. package/dist/commonjs/models/operations/listterminals.d.ts +2 -2
  192. package/dist/commonjs/models/operations/listterminals.d.ts.map +1 -1
  193. package/dist/commonjs/models/operations/listterminals.js +2 -2
  194. package/dist/commonjs/models/operations/listterminals.js.map +1 -1
  195. package/dist/commonjs/models/operations/listwebhooks.d.ts +2 -2
  196. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  197. package/dist/commonjs/models/operations/listwebhooks.js +2 -2
  198. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  199. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +2 -2
  200. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  201. package/dist/commonjs/models/operations/paymentlistroutes.js +2 -2
  202. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  203. package/dist/commonjs/models/paymentresponse.d.ts +48 -48
  204. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  205. package/dist/commonjs/models/paymentresponse.js +67 -62
  206. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  207. package/dist/commonjs/models/profileresponse.d.ts +8 -8
  208. package/dist/commonjs/models/profileresponse.d.ts.map +1 -1
  209. package/dist/commonjs/models/profileresponse.js +11 -12
  210. package/dist/commonjs/models/profileresponse.js.map +1 -1
  211. package/dist/commonjs/models/salesinvoiceresponse.d.ts +40 -40
  212. package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
  213. package/dist/commonjs/models/salesinvoiceresponse.js +56 -51
  214. package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
  215. package/dist/esm/lib/config.d.ts +2 -2
  216. package/dist/esm/lib/config.js +2 -2
  217. package/dist/esm/mcp-server/mcp-server.js +1 -1
  218. package/dist/esm/mcp-server/server.js +1 -1
  219. package/dist/esm/models/entitybalance.d.ts +42 -42
  220. package/dist/esm/models/entitybalance.d.ts.map +1 -1
  221. package/dist/esm/models/entitybalance.js +44 -42
  222. package/dist/esm/models/entitybalance.js.map +1 -1
  223. package/dist/esm/models/entitychargeback.d.ts +8 -8
  224. package/dist/esm/models/entitychargeback.d.ts.map +1 -1
  225. package/dist/esm/models/entitychargeback.js +10 -9
  226. package/dist/esm/models/entitychargeback.js.map +1 -1
  227. package/dist/esm/models/entityinvoice.d.ts +24 -24
  228. package/dist/esm/models/entityinvoice.d.ts.map +1 -1
  229. package/dist/esm/models/entityinvoice.js +24 -24
  230. package/dist/esm/models/entityinvoice.js.map +1 -1
  231. package/dist/esm/models/entitysettlement.d.ts +32 -32
  232. package/dist/esm/models/entitysettlement.d.ts.map +1 -1
  233. package/dist/esm/models/entitysettlement.js +34 -34
  234. package/dist/esm/models/entitysettlement.js.map +1 -1
  235. package/dist/esm/models/index.d.ts +17 -2
  236. package/dist/esm/models/index.d.ts.map +1 -1
  237. package/dist/esm/models/index.js +17 -2
  238. package/dist/esm/models/index.js.map +1 -1
  239. package/dist/esm/models/listcustomerresponse.d.ts +107 -0
  240. package/dist/esm/models/listcustomerresponse.d.ts.map +1 -0
  241. package/dist/esm/models/listcustomerresponse.js +72 -0
  242. package/dist/esm/models/listcustomerresponse.js.map +1 -0
  243. package/dist/esm/models/listentitybalance.d.ts +300 -0
  244. package/dist/esm/models/listentitybalance.d.ts.map +1 -0
  245. package/dist/esm/models/listentitybalance.js +197 -0
  246. package/dist/esm/models/listentitybalance.js.map +1 -0
  247. package/dist/esm/models/listentitychargeback.d.ts +175 -0
  248. package/dist/esm/models/listentitychargeback.d.ts.map +1 -0
  249. package/dist/esm/models/listentitychargeback.js +102 -0
  250. package/dist/esm/models/listentitychargeback.js.map +1 -0
  251. package/dist/esm/models/listentityinvoice.d.ts +236 -0
  252. package/dist/esm/models/listentityinvoice.d.ts.map +1 -0
  253. package/dist/esm/models/listentityinvoice.js +154 -0
  254. package/dist/esm/models/listentityinvoice.js.map +1 -0
  255. package/dist/esm/models/listentitymethod.d.ts +319 -0
  256. package/dist/esm/models/listentitymethod.d.ts.map +1 -0
  257. package/dist/esm/models/listentitymethod.js +214 -0
  258. package/dist/esm/models/listentitymethod.js.map +1 -0
  259. package/dist/esm/models/{entitymethodall.d.ts → listentitymethodall.d.ts} +60 -65
  260. package/dist/esm/models/listentitymethodall.d.ts.map +1 -0
  261. package/dist/esm/models/listentitymethodall.js +237 -0
  262. package/dist/esm/models/listentitymethodall.js.map +1 -0
  263. package/dist/esm/models/listentitypermission.d.ts +63 -0
  264. package/dist/esm/models/listentitypermission.d.ts.map +1 -0
  265. package/dist/esm/models/listentitypermission.js +52 -0
  266. package/dist/esm/models/listentitypermission.js.map +1 -0
  267. package/dist/esm/models/listentityrefund.d.ts +256 -0
  268. package/dist/esm/models/listentityrefund.d.ts.map +1 -0
  269. package/dist/esm/models/listentityrefund.js +154 -0
  270. package/dist/esm/models/listentityrefund.js.map +1 -0
  271. package/dist/esm/models/listentitysettlement.d.ts +321 -0
  272. package/dist/esm/models/listentitysettlement.d.ts.map +1 -0
  273. package/dist/esm/models/listentitysettlement.js +198 -0
  274. package/dist/esm/models/listentitysettlement.js.map +1 -0
  275. package/dist/esm/models/listentityterminal.d.ts +130 -0
  276. package/dist/esm/models/listentityterminal.d.ts.map +1 -0
  277. package/dist/esm/models/listentityterminal.js +84 -0
  278. package/dist/esm/models/listentityterminal.js.map +1 -0
  279. package/dist/esm/models/listentitywebhook.d.ts +91 -0
  280. package/dist/esm/models/listentitywebhook.d.ts.map +1 -0
  281. package/dist/esm/models/listentitywebhook.js +65 -0
  282. package/dist/esm/models/listentitywebhook.js.map +1 -0
  283. package/dist/esm/models/listmandateresponse.d.ts +176 -0
  284. package/dist/esm/models/listmandateresponse.d.ts.map +1 -0
  285. package/dist/esm/models/listmandateresponse.js +115 -0
  286. package/dist/esm/models/listmandateresponse.js.map +1 -0
  287. package/dist/esm/models/listpaymentresponse.d.ts +1348 -0
  288. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -0
  289. package/dist/esm/models/listpaymentresponse.js +558 -0
  290. package/dist/esm/models/listpaymentresponse.js.map +1 -0
  291. package/dist/esm/models/listprofileresponse.d.ts +202 -0
  292. package/dist/esm/models/listprofileresponse.d.ts.map +1 -0
  293. package/dist/esm/models/listprofileresponse.js +117 -0
  294. package/dist/esm/models/listprofileresponse.js.map +1 -0
  295. package/dist/esm/models/{routegetresponse.d.ts → listroutegetresponse.d.ts} +23 -28
  296. package/dist/esm/models/listroutegetresponse.d.ts.map +1 -0
  297. package/dist/esm/models/listroutegetresponse.js +76 -0
  298. package/dist/esm/models/listroutegetresponse.js.map +1 -0
  299. package/dist/esm/models/listsalesinvoiceresponse.d.ts +375 -0
  300. package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -0
  301. package/dist/esm/models/listsalesinvoiceresponse.js +215 -0
  302. package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -0
  303. package/dist/esm/models/listsubscriptionresponse.d.ts +249 -0
  304. package/dist/esm/models/listsubscriptionresponse.d.ts.map +1 -0
  305. package/dist/esm/models/listsubscriptionresponse.js +129 -0
  306. package/dist/esm/models/listsubscriptionresponse.js.map +1 -0
  307. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +2 -2
  308. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  309. package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -2
  310. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  311. package/dist/esm/models/operations/listallchargebacks.d.ts +2 -2
  312. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  313. package/dist/esm/models/operations/listallchargebacks.js +2 -2
  314. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  315. package/dist/esm/models/operations/listallmethods.d.ts +2 -2
  316. package/dist/esm/models/operations/listallmethods.d.ts.map +1 -1
  317. package/dist/esm/models/operations/listallmethods.js +2 -2
  318. package/dist/esm/models/operations/listallmethods.js.map +1 -1
  319. package/dist/esm/models/operations/listallrefunds.d.ts +2 -2
  320. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  321. package/dist/esm/models/operations/listallrefunds.js +2 -2
  322. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  323. package/dist/esm/models/operations/listallsubscriptions.d.ts +2 -2
  324. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  325. package/dist/esm/models/operations/listallsubscriptions.js +4 -2
  326. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  327. package/dist/esm/models/operations/listbalances.d.ts +2 -2
  328. package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
  329. package/dist/esm/models/operations/listbalances.js +2 -2
  330. package/dist/esm/models/operations/listbalances.js.map +1 -1
  331. package/dist/esm/models/operations/listchargebacks.d.ts +2 -2
  332. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  333. package/dist/esm/models/operations/listchargebacks.js +2 -2
  334. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  335. package/dist/esm/models/operations/listclients.d.ts +0 -5
  336. package/dist/esm/models/operations/listclients.d.ts.map +1 -1
  337. package/dist/esm/models/operations/listclients.js +0 -2
  338. package/dist/esm/models/operations/listclients.js.map +1 -1
  339. package/dist/esm/models/operations/listcustomerpayments.d.ts +2 -2
  340. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  341. package/dist/esm/models/operations/listcustomerpayments.js +2 -2
  342. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  343. package/dist/esm/models/operations/listcustomers.d.ts +2 -2
  344. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  345. package/dist/esm/models/operations/listcustomers.js +2 -2
  346. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  347. package/dist/esm/models/operations/listinvoices.d.ts +2 -2
  348. package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
  349. package/dist/esm/models/operations/listinvoices.js +2 -2
  350. package/dist/esm/models/operations/listinvoices.js.map +1 -1
  351. package/dist/esm/models/operations/listmandates.d.ts +2 -2
  352. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  353. package/dist/esm/models/operations/listmandates.js +2 -2
  354. package/dist/esm/models/operations/listmandates.js.map +1 -1
  355. package/dist/esm/models/operations/listmethods.d.ts +2 -2
  356. package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
  357. package/dist/esm/models/operations/listmethods.js +2 -2
  358. package/dist/esm/models/operations/listmethods.js.map +1 -1
  359. package/dist/esm/models/operations/listpayments.d.ts +2 -2
  360. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  361. package/dist/esm/models/operations/listpayments.js +2 -2
  362. package/dist/esm/models/operations/listpayments.js.map +1 -1
  363. package/dist/esm/models/operations/listpermissions.d.ts +2 -2
  364. package/dist/esm/models/operations/listpermissions.d.ts.map +1 -1
  365. package/dist/esm/models/operations/listpermissions.js +2 -2
  366. package/dist/esm/models/operations/listpermissions.js.map +1 -1
  367. package/dist/esm/models/operations/listprofiles.d.ts +2 -2
  368. package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
  369. package/dist/esm/models/operations/listprofiles.js +2 -2
  370. package/dist/esm/models/operations/listprofiles.js.map +1 -1
  371. package/dist/esm/models/operations/listrefunds.d.ts +2 -2
  372. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  373. package/dist/esm/models/operations/listrefunds.js +2 -2
  374. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  375. package/dist/esm/models/operations/listsalesinvoices.d.ts +2 -2
  376. package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
  377. package/dist/esm/models/operations/listsalesinvoices.js +4 -2
  378. package/dist/esm/models/operations/listsalesinvoices.js.map +1 -1
  379. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +2 -2
  380. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  381. package/dist/esm/models/operations/listsettlementchargebacks.js +2 -2
  382. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  383. package/dist/esm/models/operations/listsettlementpayments.d.ts +2 -2
  384. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  385. package/dist/esm/models/operations/listsettlementpayments.js +2 -2
  386. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  387. package/dist/esm/models/operations/listsettlementrefunds.d.ts +2 -2
  388. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  389. package/dist/esm/models/operations/listsettlementrefunds.js +2 -2
  390. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  391. package/dist/esm/models/operations/listsettlements.d.ts +2 -2
  392. package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
  393. package/dist/esm/models/operations/listsettlements.js +2 -2
  394. package/dist/esm/models/operations/listsettlements.js.map +1 -1
  395. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +2 -2
  396. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  397. package/dist/esm/models/operations/listsubscriptionpayments.js +2 -2
  398. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  399. package/dist/esm/models/operations/listsubscriptions.d.ts +2 -2
  400. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  401. package/dist/esm/models/operations/listsubscriptions.js +4 -2
  402. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  403. package/dist/esm/models/operations/listterminals.d.ts +2 -2
  404. package/dist/esm/models/operations/listterminals.d.ts.map +1 -1
  405. package/dist/esm/models/operations/listterminals.js +2 -2
  406. package/dist/esm/models/operations/listterminals.js.map +1 -1
  407. package/dist/esm/models/operations/listwebhooks.d.ts +2 -2
  408. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  409. package/dist/esm/models/operations/listwebhooks.js +2 -2
  410. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  411. package/dist/esm/models/operations/paymentlistroutes.d.ts +2 -2
  412. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  413. package/dist/esm/models/operations/paymentlistroutes.js +2 -2
  414. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  415. package/dist/esm/models/paymentresponse.d.ts +48 -48
  416. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  417. package/dist/esm/models/paymentresponse.js +54 -49
  418. package/dist/esm/models/paymentresponse.js.map +1 -1
  419. package/dist/esm/models/profileresponse.d.ts +8 -8
  420. package/dist/esm/models/profileresponse.d.ts.map +1 -1
  421. package/dist/esm/models/profileresponse.js +8 -9
  422. package/dist/esm/models/profileresponse.js.map +1 -1
  423. package/dist/esm/models/salesinvoiceresponse.d.ts +40 -40
  424. package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
  425. package/dist/esm/models/salesinvoiceresponse.js +45 -40
  426. package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
  427. package/examples/package-lock.json +1 -1
  428. package/jsr.json +1 -1
  429. package/package.json +1 -1
  430. package/src/lib/config.ts +2 -2
  431. package/src/mcp-server/mcp-server.ts +1 -1
  432. package/src/mcp-server/server.ts +1 -1
  433. package/src/models/entitybalance.ts +112 -93
  434. package/src/models/entitychargeback.ts +29 -20
  435. package/src/models/entityinvoice.ts +63 -51
  436. package/src/models/entitysettlement.ts +140 -96
  437. package/src/models/index.ts +17 -2
  438. package/src/models/listcustomerresponse.ts +223 -0
  439. package/src/models/listentitybalance.ts +598 -0
  440. package/src/models/listentitychargeback.ts +361 -0
  441. package/src/models/listentityinvoice.ts +492 -0
  442. package/src/models/listentitymethod.ts +608 -0
  443. package/src/models/{entitymethodall.ts → listentitymethodall.ts} +139 -142
  444. package/src/models/listentitypermission.ts +149 -0
  445. package/src/models/listentityrefund.ts +544 -0
  446. package/src/models/listentitysettlement.ts +651 -0
  447. package/src/models/listentityterminal.ts +253 -0
  448. package/src/models/listentitywebhook.ts +195 -0
  449. package/src/models/listmandateresponse.ts +343 -0
  450. package/src/models/listpaymentresponse.ts +2225 -0
  451. package/src/models/listprofileresponse.ts +365 -0
  452. package/src/models/{routegetresponse.ts → listroutegetresponse.ts} +51 -58
  453. package/src/models/listsalesinvoiceresponse.ts +799 -0
  454. package/src/models/listsubscriptionresponse.ts +447 -0
  455. package/src/models/operations/getpaymentlinkpayments.ts +4 -4
  456. package/src/models/operations/listallchargebacks.ts +4 -4
  457. package/src/models/operations/listallmethods.ts +4 -4
  458. package/src/models/operations/listallrefunds.ts +4 -4
  459. package/src/models/operations/listallsubscriptions.ts +6 -4
  460. package/src/models/operations/listbalances.ts +4 -4
  461. package/src/models/operations/listchargebacks.ts +4 -4
  462. package/src/models/operations/listclients.ts +0 -7
  463. package/src/models/operations/listcustomerpayments.ts +4 -4
  464. package/src/models/operations/listcustomers.ts +4 -4
  465. package/src/models/operations/listinvoices.ts +4 -4
  466. package/src/models/operations/listmandates.ts +4 -4
  467. package/src/models/operations/listmethods.ts +4 -4
  468. package/src/models/operations/listpayments.ts +4 -4
  469. package/src/models/operations/listpermissions.ts +4 -4
  470. package/src/models/operations/listprofiles.ts +4 -4
  471. package/src/models/operations/listrefunds.ts +4 -4
  472. package/src/models/operations/listsalesinvoices.ts +6 -4
  473. package/src/models/operations/listsettlementchargebacks.ts +4 -4
  474. package/src/models/operations/listsettlementpayments.ts +4 -4
  475. package/src/models/operations/listsettlementrefunds.ts +4 -4
  476. package/src/models/operations/listsettlements.ts +4 -4
  477. package/src/models/operations/listsubscriptionpayments.ts +4 -4
  478. package/src/models/operations/listsubscriptions.ts +6 -4
  479. package/src/models/operations/listterminals.ts +4 -4
  480. package/src/models/operations/listwebhooks.ts +4 -4
  481. package/src/models/operations/paymentlistroutes.ts +4 -4
  482. package/src/models/paymentresponse.ts +159 -117
  483. package/src/models/profileresponse.ts +26 -19
  484. package/src/models/salesinvoiceresponse.ts +149 -97
  485. package/dist/commonjs/models/entitymethodall.d.ts.map +0 -1
  486. package/dist/commonjs/models/entitymethodall.js +0 -291
  487. package/dist/commonjs/models/entitymethodall.js.map +0 -1
  488. package/dist/commonjs/models/routegetresponse.d.ts.map +0 -1
  489. package/dist/commonjs/models/routegetresponse.js.map +0 -1
  490. package/dist/esm/models/entitymethodall.d.ts.map +0 -1
  491. package/dist/esm/models/entitymethodall.js +0 -239
  492. package/dist/esm/models/entitymethodall.js.map +0 -1
  493. package/dist/esm/models/routegetresponse.d.ts.map +0 -1
  494. package/dist/esm/models/routegetresponse.js +0 -78
  495. package/dist/esm/models/routegetresponse.js.map +0 -1
@@ -0,0 +1,2225 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
10
+ import { Result as SafeParseResult } from "../types/fp.js";
11
+ import { RFCDate } from "../types/rfcdate.js";
12
+ import {
13
+ Amount,
14
+ Amount$inboundSchema,
15
+ Amount$Outbound,
16
+ Amount$outboundSchema,
17
+ } from "./amount.js";
18
+ import {
19
+ AmountNullable,
20
+ AmountNullable$inboundSchema,
21
+ AmountNullable$Outbound,
22
+ AmountNullable$outboundSchema,
23
+ } from "./amountnullable.js";
24
+ import {
25
+ CaptureModeResponse,
26
+ CaptureModeResponse$inboundSchema,
27
+ CaptureModeResponse$outboundSchema,
28
+ } from "./capturemoderesponse.js";
29
+ import {
30
+ EntityPaymentRouteResponse,
31
+ EntityPaymentRouteResponse$inboundSchema,
32
+ EntityPaymentRouteResponse$Outbound,
33
+ EntityPaymentRouteResponse$outboundSchema,
34
+ } from "./entitypaymentrouteresponse.js";
35
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
36
+ import {
37
+ LineCategoriesResponse,
38
+ LineCategoriesResponse$inboundSchema,
39
+ LineCategoriesResponse$outboundSchema,
40
+ } from "./linecategoriesresponse.js";
41
+ import {
42
+ LocaleResponse,
43
+ LocaleResponse$inboundSchema,
44
+ LocaleResponse$outboundSchema,
45
+ } from "./localeresponse.js";
46
+ import {
47
+ Metadata,
48
+ Metadata$inboundSchema,
49
+ Metadata$Outbound,
50
+ Metadata$outboundSchema,
51
+ } from "./metadata.js";
52
+ import {
53
+ MethodResponse,
54
+ MethodResponse$inboundSchema,
55
+ MethodResponse$outboundSchema,
56
+ } from "./methodresponse.js";
57
+ import { Mode, Mode$inboundSchema, Mode$outboundSchema } from "./mode.js";
58
+ import {
59
+ PaymentAddress,
60
+ PaymentAddress$inboundSchema,
61
+ PaymentAddress$Outbound,
62
+ PaymentAddress$outboundSchema,
63
+ } from "./paymentaddress.js";
64
+ import {
65
+ PaymentDetailsCardAuditionResponse,
66
+ PaymentDetailsCardAuditionResponse$inboundSchema,
67
+ PaymentDetailsCardAuditionResponse$outboundSchema,
68
+ } from "./paymentdetailscardauditionresponse.js";
69
+ import {
70
+ PaymentDetailsCardFundingResponse,
71
+ PaymentDetailsCardFundingResponse$inboundSchema,
72
+ PaymentDetailsCardFundingResponse$outboundSchema,
73
+ } from "./paymentdetailscardfundingresponse.js";
74
+ import {
75
+ PaymentDetailsCardLabelResponse,
76
+ PaymentDetailsCardLabelResponse$inboundSchema,
77
+ PaymentDetailsCardLabelResponse$outboundSchema,
78
+ } from "./paymentdetailscardlabelresponse.js";
79
+ import {
80
+ PaymentDetailsCardSecurityResponse,
81
+ PaymentDetailsCardSecurityResponse$inboundSchema,
82
+ PaymentDetailsCardSecurityResponse$outboundSchema,
83
+ } from "./paymentdetailscardsecurityresponse.js";
84
+ import {
85
+ PaymentDetailsFailureReasonResponse,
86
+ PaymentDetailsFailureReasonResponse$inboundSchema,
87
+ PaymentDetailsFailureReasonResponse$outboundSchema,
88
+ } from "./paymentdetailsfailurereasonresponse.js";
89
+ import {
90
+ PaymentDetailsFeeRegionResponse,
91
+ PaymentDetailsFeeRegionResponse$inboundSchema,
92
+ PaymentDetailsFeeRegionResponse$outboundSchema,
93
+ } from "./paymentdetailsfeeregionresponse.js";
94
+ import {
95
+ PaymentDetailsReceiptCardReadMethodResponse,
96
+ PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
97
+ PaymentDetailsReceiptCardReadMethodResponse$outboundSchema,
98
+ } from "./paymentdetailsreceiptcardreadmethodresponse.js";
99
+ import {
100
+ PaymentDetailsReceiptCardVerificationMethodResponse,
101
+ PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
102
+ PaymentDetailsReceiptCardVerificationMethodResponse$outboundSchema,
103
+ } from "./paymentdetailsreceiptcardverificationmethodresponse.js";
104
+ import {
105
+ PaymentDetailsSellerProtectionResponse,
106
+ PaymentDetailsSellerProtectionResponse$inboundSchema,
107
+ PaymentDetailsSellerProtectionResponse$outboundSchema,
108
+ } from "./paymentdetailssellerprotectionresponse.js";
109
+ import {
110
+ PaymentDetailsWalletResponse,
111
+ PaymentDetailsWalletResponse$inboundSchema,
112
+ PaymentDetailsWalletResponse$outboundSchema,
113
+ } from "./paymentdetailswalletresponse.js";
114
+ import {
115
+ PaymentLineTypeResponse,
116
+ PaymentLineTypeResponse$inboundSchema,
117
+ PaymentLineTypeResponse$outboundSchema,
118
+ } from "./paymentlinetyperesponse.js";
119
+ import {
120
+ RecurringLineItem,
121
+ RecurringLineItem$inboundSchema,
122
+ RecurringLineItem$Outbound,
123
+ RecurringLineItem$outboundSchema,
124
+ } from "./recurringlineitem.js";
125
+ import {
126
+ SequenceTypeResponse,
127
+ SequenceTypeResponse$inboundSchema,
128
+ SequenceTypeResponse$outboundSchema,
129
+ } from "./sequencetyperesponse.js";
130
+ import {
131
+ StatusReason,
132
+ StatusReason$inboundSchema,
133
+ StatusReason$Outbound,
134
+ StatusReason$outboundSchema,
135
+ } from "./statusreason.js";
136
+ import {
137
+ Url,
138
+ Url$inboundSchema,
139
+ Url$Outbound,
140
+ Url$outboundSchema,
141
+ } from "./url.js";
142
+
143
+ /**
144
+ * The total amount that is already refunded. Only available when refunds are available for this payment. For some
145
+ *
146
+ * @remarks
147
+ * payment methods, this amount may be higher than the payment amount, for example to allow reimbursement of the
148
+ * costs for a return shipment to the customer.
149
+ */
150
+ export type ListPaymentResponseAmountRefunded = {
151
+ /**
152
+ * A three-character ISO 4217 currency code.
153
+ */
154
+ currency: string;
155
+ /**
156
+ * A string containing an exact monetary amount in the given currency.
157
+ */
158
+ value: string;
159
+ };
160
+
161
+ /**
162
+ * The remaining amount that can be refunded. Only available when refunds are available for this payment.
163
+ */
164
+ export type ListPaymentResponseAmountRemaining = {
165
+ /**
166
+ * A three-character ISO 4217 currency code.
167
+ */
168
+ currency: string;
169
+ /**
170
+ * A string containing an exact monetary amount in the given currency.
171
+ */
172
+ value: string;
173
+ };
174
+
175
+ /**
176
+ * The total amount that is already captured for this payment. Only available when this payment supports captures.
177
+ */
178
+ export type ListPaymentResponseAmountCaptured = {
179
+ /**
180
+ * A three-character ISO 4217 currency code.
181
+ */
182
+ currency: string;
183
+ /**
184
+ * A string containing an exact monetary amount in the given currency.
185
+ */
186
+ value: string;
187
+ };
188
+
189
+ /**
190
+ * The total amount that was charged back for this payment. Only available when the total charged back amount is not
191
+ *
192
+ * @remarks
193
+ * zero.
194
+ */
195
+ export type ListPaymentResponseAmountChargedBack = {
196
+ /**
197
+ * A three-character ISO 4217 currency code.
198
+ */
199
+ currency: string;
200
+ /**
201
+ * A string containing an exact monetary amount in the given currency.
202
+ */
203
+ value: string;
204
+ };
205
+
206
+ /**
207
+ * This optional field will contain the approximate amount that will be settled to your account, converted to the
208
+ *
209
+ * @remarks
210
+ * currency your account is settled in.
211
+ *
212
+ * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
213
+ * settled by Mollie the `settlementAmount` is omitted from the response.
214
+ *
215
+ * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
216
+ * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
217
+ */
218
+ export type ListPaymentResponseSettlementAmount = {
219
+ /**
220
+ * A three-character ISO 4217 currency code.
221
+ */
222
+ currency: string;
223
+ /**
224
+ * A string containing an exact monetary amount in the given currency.
225
+ */
226
+ value: string;
227
+ };
228
+
229
+ export type ListPaymentResponseLine = {
230
+ /**
231
+ * The type of product purchased. For example, a physical or a digital product.
232
+ *
233
+ * @remarks
234
+ *
235
+ * The `tip` payment line type is not available when creating a payment.
236
+ */
237
+ type?: PaymentLineTypeResponse | undefined;
238
+ /**
239
+ * A description of the line item. For example *LEGO 4440 Forest Police Station*.
240
+ */
241
+ description: string;
242
+ /**
243
+ * The number of items.
244
+ */
245
+ quantity: number;
246
+ /**
247
+ * The unit for the quantity. For example *pcs*, *kg*, or *cm*.
248
+ */
249
+ quantityUnit?: string | undefined;
250
+ /**
251
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
252
+ */
253
+ unitPrice: Amount;
254
+ /**
255
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
256
+ */
257
+ discountAmount?: Amount | undefined;
258
+ /**
259
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
260
+ */
261
+ totalAmount: Amount;
262
+ /**
263
+ * The VAT rate applied to the line, for example `21.00` for 21%. The vatRate should be passed as a string and
264
+ *
265
+ * @remarks
266
+ * not as a float, to ensure the correct number of decimals are passed.
267
+ */
268
+ vatRate?: string | undefined;
269
+ /**
270
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
271
+ */
272
+ vatAmount?: Amount | undefined;
273
+ /**
274
+ * The SKU, EAN, ISBN or UPC of the product sold.
275
+ */
276
+ sku?: string | undefined;
277
+ /**
278
+ * An array with the voucher categories, in case of a line eligible for a voucher. See the
279
+ *
280
+ * @remarks
281
+ * [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information.
282
+ */
283
+ categories?: Array<LineCategoriesResponse> | undefined;
284
+ /**
285
+ * A link pointing to an image of the product sold.
286
+ */
287
+ imageUrl?: string | undefined;
288
+ /**
289
+ * A link pointing to the product page in your web shop of the product sold.
290
+ */
291
+ productUrl?: string | undefined;
292
+ recurring?: RecurringLineItem | undefined;
293
+ };
294
+
295
+ /**
296
+ * The customer's billing address details. We advise to provide these details to improve fraud protection and
297
+ *
298
+ * @remarks
299
+ * conversion.
300
+ *
301
+ * Should include `email` or a valid postal address consisting of `streetAndNumber`, `postalCode`, `city` and
302
+ * `country`.
303
+ *
304
+ * Required for payment method `in3`, `klarna`, `billie` and `riverty`.
305
+ */
306
+ export type ListPaymentResponseBillingAddress = {
307
+ /**
308
+ * The title of the person, for example *Mr.* or *Mrs.*.
309
+ */
310
+ title?: string | undefined;
311
+ /**
312
+ * The given name (first name) of the person should be at least two characters and cannot contain only
313
+ *
314
+ * @remarks
315
+ * numbers.
316
+ *
317
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
318
+ */
319
+ givenName?: string | undefined;
320
+ /**
321
+ * The given family name (surname) of the person should be at least two characters and cannot contain only
322
+ *
323
+ * @remarks
324
+ * numbers.
325
+ *
326
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
327
+ */
328
+ familyName?: string | undefined;
329
+ /**
330
+ * The name of the organization, in case the addressee is an organization.
331
+ *
332
+ * @remarks
333
+ *
334
+ * Required for payment method `billie`.
335
+ */
336
+ organizationName?: any | undefined;
337
+ /**
338
+ * A street and street number.
339
+ *
340
+ * @remarks
341
+ *
342
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
343
+ */
344
+ streetAndNumber?: string | undefined;
345
+ /**
346
+ * Any additional addressing details, for example an apartment number.
347
+ */
348
+ streetAdditional?: string | undefined;
349
+ /**
350
+ * A postal code. This field may be required if the provided country has a postal code system.
351
+ *
352
+ * @remarks
353
+ *
354
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
355
+ */
356
+ postalCode?: string | undefined;
357
+ /**
358
+ * A valid e-mail address.
359
+ *
360
+ * @remarks
361
+ *
362
+ * If you provide the email address for a `banktransfer` payment, we will automatically send the instructions
363
+ * email upon payment creation. The language of the email will follow the locale parameter of the payment.
364
+ *
365
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
366
+ */
367
+ email?: string | undefined;
368
+ /**
369
+ * If provided, it must be in the [E.164](https://en.wikipedia.org/wiki/E.164) format. For example: +31208202070.
370
+ */
371
+ phone?: string | undefined;
372
+ /**
373
+ * A city name.
374
+ *
375
+ * @remarks
376
+ *
377
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
378
+ */
379
+ city?: string | undefined;
380
+ /**
381
+ * The top-level administrative subdivision of the country. For example: Noord-Holland.
382
+ */
383
+ region?: string | undefined;
384
+ /**
385
+ * A country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
386
+ *
387
+ * @remarks
388
+ *
389
+ * Required for payment methods `billie`, `in3`, `klarna` and `riverty`.
390
+ */
391
+ country?: string | undefined;
392
+ };
393
+
394
+ /**
395
+ * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
396
+ *
397
+ * @remarks
398
+ * merchants.
399
+ *
400
+ * If you use OAuth to create payments on a connected merchant's account, you can charge a fee using this
401
+ * `applicationFee` parameter. If the payment succeeds, the fee will be deducted from the merchant's balance and sent
402
+ * to your own account balance.
403
+ *
404
+ * If instead you want to split a payment on your own account between yourself and a connected merchant, refer to the
405
+ * `routing` parameter.
406
+ */
407
+ export type ListPaymentResponseApplicationFee = {
408
+ /**
409
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
410
+ */
411
+ amount?: Amount | undefined;
412
+ /**
413
+ * The description of the application fee. This will appear on settlement reports towards both you and the
414
+ *
415
+ * @remarks
416
+ * connected merchant.
417
+ */
418
+ description?: string | undefined;
419
+ };
420
+
421
+ /**
422
+ * The payment's status. Refer to the [documentation regarding statuses](https://docs.mollie.com/docs/status-change#/) for more info about which
423
+ *
424
+ * @remarks
425
+ * statuses occur at what point.
426
+ */
427
+ export const ListPaymentResponseStatus = {
428
+ Open: "open",
429
+ Pending: "pending",
430
+ Authorized: "authorized",
431
+ Paid: "paid",
432
+ Canceled: "canceled",
433
+ Expired: "expired",
434
+ Failed: "failed",
435
+ } as const;
436
+ /**
437
+ * The payment's status. Refer to the [documentation regarding statuses](https://docs.mollie.com/docs/status-change#/) for more info about which
438
+ *
439
+ * @remarks
440
+ * statuses occur at what point.
441
+ */
442
+ export type ListPaymentResponseStatus = OpenEnum<
443
+ typeof ListPaymentResponseStatus
444
+ >;
445
+
446
+ /**
447
+ * The Point of sale receipt object.
448
+ */
449
+ export type ListPaymentResponseReceipt = {
450
+ /**
451
+ * A unique code provided by the cardholder’s bank to confirm that the transaction was successfully approved.
452
+ */
453
+ authorizationCode?: string | null | undefined;
454
+ /**
455
+ * The unique number that identifies a specific payment application on a chip card.
456
+ */
457
+ applicationIdentifier?: string | null | undefined;
458
+ /**
459
+ * The method by which the card was read by the terminal.
460
+ */
461
+ cardReadMethod?:
462
+ | PaymentDetailsReceiptCardReadMethodResponse
463
+ | null
464
+ | undefined;
465
+ /**
466
+ * The method used to verify the cardholder's identity.
467
+ */
468
+ cardVerificationMethod?:
469
+ | PaymentDetailsReceiptCardVerificationMethodResponse
470
+ | null
471
+ | undefined;
472
+ };
473
+
474
+ /**
475
+ * Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
476
+ *
477
+ * @remarks
478
+ * the QR code details will be available in this object.
479
+ *
480
+ * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
481
+ * Bancontact QR payments can be completed by the customer using the Bancontact app.
482
+ */
483
+ export type ListPaymentResponseQrCode = {
484
+ /**
485
+ * The height of the QR code image in pixels.
486
+ */
487
+ height?: number | undefined;
488
+ /**
489
+ * The width of the QR code image in pixels.
490
+ */
491
+ width?: number | undefined;
492
+ /**
493
+ * The URL to the QR code image. The image is a PNG file, and can be displayed directly in the browser or
494
+ *
495
+ * @remarks
496
+ * downloaded.
497
+ */
498
+ src?: string | undefined;
499
+ };
500
+
501
+ /**
502
+ * An object containing payment details collected during the payment process. For example, details may include the
503
+ *
504
+ * @remarks
505
+ * customer's card or bank details and a payment reference. For the full list of details, please refer to the
506
+ * [method-specific parameters](extra-payment-parameters) guide.
507
+ */
508
+ export type ListPaymentResponseDetails = {
509
+ /**
510
+ * The customer's name, if made available by the payment method. For card payments, refer to details.cardHolder.
511
+ */
512
+ consumerName?: string | null | undefined;
513
+ /**
514
+ * The customer's account reference.
515
+ *
516
+ * @remarks
517
+ *
518
+ * For banking-based payment methods — such as iDEAL — this is normally either an IBAN or a domestic bank account
519
+ * number.
520
+ *
521
+ * For PayPal, the account reference is an email address.
522
+ *
523
+ * For card and Bancontact payments, refer to details.cardNumber.
524
+ */
525
+ consumerAccount?: string | null | undefined;
526
+ /**
527
+ * The BIC of the customer's bank account, if applicable.
528
+ */
529
+ consumerBic?: string | null | undefined;
530
+ /**
531
+ * For wallet payment methods — such as Apple Pay and PayPal — the shipping address is often already known by the
532
+ *
533
+ * @remarks
534
+ * wallet provider. In these cases the shipping address may be available as a payment detail.
535
+ */
536
+ shippingAddress?: { [k: string]: any } | null | undefined;
537
+ /**
538
+ * For bancontact, it will be the customer's masked card number. For cards, it will be the last 4-digit of the
539
+ *
540
+ * @remarks
541
+ * PAN. For Point-of-sale, it will be the the last 4 digits of the customer's masked card number.
542
+ */
543
+ cardNumber?: string | null | undefined;
544
+ /**
545
+ * The name of the bank that the customer will need to make the bank transfer payment towards.
546
+ */
547
+ bankName?: string | undefined;
548
+ /**
549
+ * The bank account number the customer will need to make the bank transfer payment towards.
550
+ */
551
+ bankAccount?: string | undefined;
552
+ /**
553
+ * The BIC of the bank the customer will need to make the bank transfer payment towards.
554
+ */
555
+ bankBic?: string | undefined;
556
+ /**
557
+ * The Mollie-generated reference the customer needs to use when transfering the amount. Do not apply any
558
+ *
559
+ * @remarks
560
+ * formatting here; show it to the customer as-is.
561
+ */
562
+ transferReference?: string | null | undefined;
563
+ /**
564
+ * A unique fingerprint for a specific card. Can be used to identify returning customers.
565
+ *
566
+ * @remarks
567
+ *
568
+ * In the case of Point-of-sale payments, it's a unique identifier assigned to a cardholder's payment account,
569
+ * linking multiple transactions from wallets and physical card to a single account, also across payment methods
570
+ * or when the card is reissued.
571
+ */
572
+ cardFingerprint?: string | null | undefined;
573
+ /**
574
+ * The customer's name as shown on their card.
575
+ */
576
+ cardHolder?: string | null | undefined;
577
+ /**
578
+ * The card's target audience, if known.
579
+ */
580
+ cardAudition?: PaymentDetailsCardAuditionResponse | null | undefined;
581
+ /**
582
+ * The card's label, if known.
583
+ */
584
+ cardLabel?: PaymentDetailsCardLabelResponse | null | undefined;
585
+ /**
586
+ * The ISO 3166-1 alpha-2 country code of the country the card was issued in.
587
+ */
588
+ cardCountryCode?: string | null | undefined;
589
+ /**
590
+ * The expiry date (MM/YY) of the card as displayed on the card.
591
+ */
592
+ cardExpiryDate?: string | null | undefined;
593
+ /**
594
+ * The card type.
595
+ */
596
+ cardFunding?: PaymentDetailsCardFundingResponse | null | undefined;
597
+ /**
598
+ * The level of security applied during card processing.
599
+ */
600
+ cardSecurity?: PaymentDetailsCardSecurityResponse | null | undefined;
601
+ /**
602
+ * The applicable card fee region.
603
+ */
604
+ feeRegion?: PaymentDetailsFeeRegionResponse | null | undefined;
605
+ /**
606
+ * The first 6 and last 4 digits of the card number.
607
+ */
608
+ cardMaskedNumber?: string | null | undefined;
609
+ /**
610
+ * The outcome of authentication attempted on transactions enforced by 3DS (ie valid only for oneoff and first).
611
+ */
612
+ card3dsEci?: string | null | undefined;
613
+ /**
614
+ * The first 6 digit of the card bank identification number.
615
+ */
616
+ cardBin?: string | null | undefined;
617
+ /**
618
+ * The issuer of the Card.
619
+ */
620
+ cardIssuer?: string | null | undefined;
621
+ /**
622
+ * A failure code to help understand why the payment failed.
623
+ */
624
+ failureReason?: PaymentDetailsFailureReasonResponse | null | undefined;
625
+ /**
626
+ * A human-friendly failure message that can be shown to the customer. The message is translated in accordance
627
+ *
628
+ * @remarks
629
+ * with the payment's locale setting.
630
+ */
631
+ failureMessage?: string | null | undefined;
632
+ /**
633
+ * The wallet used when creating the payment.
634
+ */
635
+ wallet?: PaymentDetailsWalletResponse | null | undefined;
636
+ /**
637
+ * PayPal's reference for the payment.
638
+ */
639
+ paypalReference?: string | null | undefined;
640
+ /**
641
+ * ID of the customer's PayPal account.
642
+ */
643
+ paypalPayerId?: string | null | undefined;
644
+ /**
645
+ * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
646
+ *
647
+ * @remarks
648
+ * payments, and if the information is made available by PayPal.
649
+ */
650
+ sellerProtection?: PaymentDetailsSellerProtectionResponse | null | undefined;
651
+ /**
652
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
653
+ */
654
+ paypalFee?: AmountNullable | null | undefined;
655
+ /**
656
+ * The paysafecard customer reference either provided via the API or otherwise auto-generated by Mollie.
657
+ */
658
+ customerReference?: string | undefined;
659
+ /**
660
+ * The ID of the terminal device where the payment took place on.
661
+ */
662
+ terminalId?: string | undefined;
663
+ /**
664
+ * The first 6 digits & last 4 digits of the customer's masked card number.
665
+ */
666
+ maskedNumber?: string | null | undefined;
667
+ /**
668
+ * The Point of sale receipt object.
669
+ */
670
+ receipt?: ListPaymentResponseReceipt | undefined;
671
+ /**
672
+ * The creditor identifier indicates who is authorized to execute the payment. In this case, it is a
673
+ *
674
+ * @remarks
675
+ * reference to Mollie.
676
+ */
677
+ creditorIdentifier?: string | null | undefined;
678
+ /**
679
+ * Estimated date the payment is debited from the customer's bank account, in YYYY-MM-DD format.
680
+ */
681
+ dueDate?: RFCDate | null | undefined;
682
+ /**
683
+ * Date the payment has been signed by the customer, in YYYY-MM-DD format. Only available if the payment
684
+ *
685
+ * @remarks
686
+ * has been signed.
687
+ */
688
+ signatureDate?: RFCDate | null | undefined;
689
+ /**
690
+ * The official reason why this payment has failed. A detailed description of each reason is available on the
691
+ *
692
+ * @remarks
693
+ * website of the European Payments Council.
694
+ */
695
+ bankReasonCode?: string | null | undefined;
696
+ /**
697
+ * A human-friendly description of the failure reason.
698
+ */
699
+ bankReason?: string | null | undefined;
700
+ /**
701
+ * The end-to-end identifier you provided in the batch file.
702
+ */
703
+ endToEndIdentifier?: string | null | undefined;
704
+ /**
705
+ * The mandate reference you provided in the batch file.
706
+ */
707
+ mandateReference?: string | null | undefined;
708
+ /**
709
+ * The batch reference you provided in the batch file.
710
+ */
711
+ batchReference?: string | null | undefined;
712
+ /**
713
+ * The file reference you provided in the batch file.
714
+ */
715
+ fileReference?: string | null | undefined;
716
+ /**
717
+ * Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
718
+ *
719
+ * @remarks
720
+ * the QR code details will be available in this object.
721
+ *
722
+ * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
723
+ * Bancontact QR payments can be completed by the customer using the Bancontact app.
724
+ */
725
+ qrCode?: ListPaymentResponseQrCode | undefined;
726
+ /**
727
+ * For payments with gift cards: the masked gift card number of the first gift card applied to the payment.
728
+ */
729
+ voucherNumber?: string | undefined;
730
+ /**
731
+ * An array of detail objects for each gift card that was used on this payment, if any.
732
+ */
733
+ giftcards?: Array<{ [k: string]: any }> | undefined;
734
+ /**
735
+ * For payments with vouchers: the brand name of the first voucher applied.
736
+ */
737
+ issuer?: string | undefined;
738
+ /**
739
+ * An array of detail objects for each voucher that was used on this payment, if any.
740
+ */
741
+ vouchers?: Array<{ [k: string]: any }> | undefined;
742
+ /**
743
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
744
+ */
745
+ remainderAmount?: Amount | undefined;
746
+ /**
747
+ * The payment method used to pay the remainder amount, after all gift cards or vouchers were applied.
748
+ */
749
+ remainderMethod?: string | undefined;
750
+ /**
751
+ * Optional include. The full payment method details of the remainder payment.
752
+ */
753
+ remainderDetails?: { [k: string]: any } | undefined;
754
+ /**
755
+ * Multibanco payment reference of the transaction
756
+ */
757
+ multibancoReference?: string | null | undefined;
758
+ /**
759
+ * Multibanco entity reference of the transaction
760
+ */
761
+ multibancoEntity?: string | null | undefined;
762
+ };
763
+
764
+ /**
765
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
766
+ */
767
+ export type ListPaymentResponseLinks = {
768
+ /**
769
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
770
+ */
771
+ self: Url;
772
+ /**
773
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
774
+ */
775
+ checkout?: Url | undefined;
776
+ /**
777
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
778
+ */
779
+ mobileAppCheckout?: Url | undefined;
780
+ /**
781
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
782
+ */
783
+ changePaymentState?: Url | undefined;
784
+ /**
785
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
786
+ */
787
+ dashboard: Url;
788
+ /**
789
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
790
+ */
791
+ refunds?: Url | undefined;
792
+ /**
793
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
794
+ */
795
+ chargebacks?: Url | undefined;
796
+ /**
797
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
798
+ */
799
+ captures?: Url | undefined;
800
+ /**
801
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
802
+ */
803
+ settlement?: Url | undefined;
804
+ /**
805
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
806
+ */
807
+ customer?: Url | undefined;
808
+ /**
809
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
810
+ */
811
+ mandate?: Url | undefined;
812
+ /**
813
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
814
+ */
815
+ subscription?: Url | undefined;
816
+ /**
817
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
818
+ */
819
+ order?: Url | undefined;
820
+ /**
821
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
822
+ */
823
+ terminal?: Url | undefined;
824
+ /**
825
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
826
+ */
827
+ status?: Url | undefined;
828
+ /**
829
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
830
+ */
831
+ payOnline?: Url | undefined;
832
+ };
833
+
834
+ export type ListPaymentResponse = {
835
+ /**
836
+ * Indicates the response contains a payment object. Will always contain the string `payment` for this endpoint.
837
+ */
838
+ resource: string;
839
+ /**
840
+ * The identifier uniquely referring to this payment. Mollie assigns this identifier at payment creation time. Mollie
841
+ *
842
+ * @remarks
843
+ * will always refer to the payment by this ID. Example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
844
+ */
845
+ id: string;
846
+ /**
847
+ * Whether this entity was created in live mode or in test mode.
848
+ */
849
+ mode: Mode;
850
+ /**
851
+ * The description of the payment. This will be shown to your customer on their card or bank statement when possible.
852
+ *
853
+ * @remarks
854
+ * We truncate the description automatically according to the limits of the used payment method. The description is
855
+ * also visible in any exports you generate.
856
+ *
857
+ * We recommend you use a unique identifier so that you can always link the payment to the order in your back office.
858
+ * This is particularly useful for bookkeeping.
859
+ *
860
+ * The maximum length of the description field differs per payment method, with the absolute maximum being 255
861
+ * characters. The API will not reject strings longer than the maximum length but it will truncate them to fit.
862
+ */
863
+ description: string;
864
+ /**
865
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
866
+ */
867
+ amount: Amount;
868
+ /**
869
+ * The total amount that is already refunded. Only available when refunds are available for this payment. For some
870
+ *
871
+ * @remarks
872
+ * payment methods, this amount may be higher than the payment amount, for example to allow reimbursement of the
873
+ * costs for a return shipment to the customer.
874
+ */
875
+ amountRefunded?: ListPaymentResponseAmountRefunded | undefined;
876
+ /**
877
+ * The remaining amount that can be refunded. Only available when refunds are available for this payment.
878
+ */
879
+ amountRemaining?: ListPaymentResponseAmountRemaining | undefined;
880
+ /**
881
+ * The total amount that is already captured for this payment. Only available when this payment supports captures.
882
+ */
883
+ amountCaptured?: ListPaymentResponseAmountCaptured | undefined;
884
+ /**
885
+ * The total amount that was charged back for this payment. Only available when the total charged back amount is not
886
+ *
887
+ * @remarks
888
+ * zero.
889
+ */
890
+ amountChargedBack?: ListPaymentResponseAmountChargedBack | undefined;
891
+ /**
892
+ * This optional field will contain the approximate amount that will be settled to your account, converted to the
893
+ *
894
+ * @remarks
895
+ * currency your account is settled in.
896
+ *
897
+ * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
898
+ * settled by Mollie the `settlementAmount` is omitted from the response.
899
+ *
900
+ * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
901
+ * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
902
+ */
903
+ settlementAmount?: ListPaymentResponseSettlementAmount | undefined;
904
+ /**
905
+ * The URL your customer will be redirected to after the payment process.
906
+ *
907
+ * @remarks
908
+ *
909
+ * It could make sense for the redirectUrl to contain a unique identifier – like your order ID – so you can show the
910
+ * right page referencing the order when your customer returns.
911
+ *
912
+ * The parameter is normally required, but can be omitted for recurring payments (`sequenceType: recurring`) and for
913
+ * Apple Pay payments with an `applePayPaymentToken`.
914
+ */
915
+ redirectUrl?: string | null | undefined;
916
+ /**
917
+ * The URL your customer will be redirected to when the customer explicitly cancels the payment. If this URL is not
918
+ *
919
+ * @remarks
920
+ * provided, the customer will be redirected to the `redirectUrl` instead — see above.
921
+ *
922
+ * Mollie will always give you status updates via webhooks, including for the canceled status. This parameter is
923
+ * therefore entirely optional, but can be useful when implementing a dedicated customer-facing flow to handle
924
+ * payment cancellations.
925
+ */
926
+ cancelUrl?: string | null | undefined;
927
+ /**
928
+ * The webhook URL where we will send payment status updates to.
929
+ *
930
+ * @remarks
931
+ *
932
+ * The webhookUrl is optional, but without a webhook you will miss out on important status changes to your payment.
933
+ *
934
+ * The webhookUrl must be reachable from Mollie's point of view, so you cannot use `localhost`. If you want to use
935
+ * webhook during development on `localhost`, you must use a tool like ngrok to have the webhooks delivered to your
936
+ * local machine.
937
+ */
938
+ webhookUrl?: string | null | undefined;
939
+ /**
940
+ * Optionally provide the order lines for the payment. Each line contains details such as a description of the item
941
+ *
942
+ * @remarks
943
+ * ordered and its price.
944
+ *
945
+ * All lines must have the same currency as the payment.
946
+ *
947
+ * Required for payment methods `billie`, `in3`, `klarna`, `riverty` and `voucher`.
948
+ */
949
+ lines?: Array<ListPaymentResponseLine> | null | undefined;
950
+ /**
951
+ * The customer's billing address details. We advise to provide these details to improve fraud protection and
952
+ *
953
+ * @remarks
954
+ * conversion.
955
+ *
956
+ * Should include `email` or a valid postal address consisting of `streetAndNumber`, `postalCode`, `city` and
957
+ * `country`.
958
+ *
959
+ * Required for payment method `in3`, `klarna`, `billie` and `riverty`.
960
+ */
961
+ billingAddress?: ListPaymentResponseBillingAddress | undefined;
962
+ shippingAddress?: PaymentAddress | undefined;
963
+ /**
964
+ * Allows you to preset the language to be used.
965
+ */
966
+ locale?: LocaleResponse | null | undefined;
967
+ /**
968
+ * This optional field contains your customer's ISO 3166-1 alpha-2 country code, detected by us during checkout. This
969
+ *
970
+ * @remarks
971
+ * field is omitted if the country code was not detected.
972
+ */
973
+ countryCode?: string | null | undefined;
974
+ /**
975
+ * Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
976
+ *
977
+ * @remarks
978
+ * method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
979
+ * parameter enables you to fully integrate the payment method selection into your website.
980
+ *
981
+ * You can also specify the methods in an array. By doing so we will still show the payment method selection screen
982
+ * but will only show the methods specified in the array. For example, you can use this functionality to only show
983
+ * payment methods from a specific country to your customer `['bancontact', 'belfius']`.
984
+ */
985
+ method?: MethodResponse | null | undefined;
986
+ /**
987
+ * For digital goods in most jurisdictions, you must apply the VAT rate from your customer's country. Choose the VAT
988
+ *
989
+ * @remarks
990
+ * rates you have used for the order to ensure your customer's country matches the VAT country.
991
+ *
992
+ * Use this parameter to restrict the payment methods available to your customer to those from a single country.
993
+ *
994
+ * If available, the credit card method will still be offered, but only cards from the allowed country are accepted.
995
+ *
996
+ * The field expects a country code in ISO 3166-1 alpha-2 format, for example `NL`.
997
+ */
998
+ restrictPaymentMethodsToCountry?: string | null | undefined;
999
+ /**
1000
+ * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
1001
+ *
1002
+ * @remarks
1003
+ * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
1004
+ */
1005
+ metadata?: Metadata | null | undefined;
1006
+ /**
1007
+ * Indicate if the funds should be captured immediately or if you want to [place a hold](https://docs.mollie.com/docs/place-a-hold-for-a-payment#/)
1008
+ *
1009
+ * @remarks
1010
+ * and capture at a later time.
1011
+ *
1012
+ * This field needs to be set to `manual` for method `riverty`.
1013
+ */
1014
+ captureMode?: CaptureModeResponse | null | undefined;
1015
+ /**
1016
+ * **Only relevant if you wish to manage authorization and capturing separately.**
1017
+ *
1018
+ * @remarks
1019
+ *
1020
+ * Some payment methods allow placing a hold on the card or bank account. This hold or 'authorization' can then at a
1021
+ * later point either be 'captured' or canceled.
1022
+ *
1023
+ * By default, we charge the customer's card or bank account immediately when they complete the payment. If you set a
1024
+ * capture delay however, we will delay the automatic capturing of the payment for the specified amount of time. For
1025
+ * example `8 hours` or `2 days`.
1026
+ *
1027
+ * To schedule an automatic capture, the `captureMode` must be set to `automatic`.
1028
+ *
1029
+ * The maximum delay is 7 days (168 hours).
1030
+ *
1031
+ * Possible values: `... hours` `... days`
1032
+ */
1033
+ captureDelay?: string | null | undefined;
1034
+ /**
1035
+ * Indicates the date before which the payment needs to be captured, in ISO 8601 format. From this date onwards we
1036
+ *
1037
+ * @remarks
1038
+ * can no longer guarantee a successful capture. The parameter is omitted if the payment is not authorized (yet).
1039
+ */
1040
+ captureBefore?: string | null | undefined;
1041
+ /**
1042
+ * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
1043
+ *
1044
+ * @remarks
1045
+ * merchants.
1046
+ *
1047
+ * If you use OAuth to create payments on a connected merchant's account, you can charge a fee using this
1048
+ * `applicationFee` parameter. If the payment succeeds, the fee will be deducted from the merchant's balance and sent
1049
+ * to your own account balance.
1050
+ *
1051
+ * If instead you want to split a payment on your own account between yourself and a connected merchant, refer to the
1052
+ * `routing` parameter.
1053
+ */
1054
+ applicationFee?: ListPaymentResponseApplicationFee | null | undefined;
1055
+ /**
1056
+ * *This functionality is not enabled by default. Reach out to our partner management team if you wish to use it.*
1057
+ *
1058
+ * @remarks
1059
+ *
1060
+ * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
1061
+ * merchants.
1062
+ *
1063
+ * If you create payments on your own account that you want to split between yourself and one or more connected
1064
+ * merchants, you can use this `routing` parameter to route the payment accordingly.
1065
+ *
1066
+ * The `routing` parameter should contain an array of objects, with each object describing the destination for a
1067
+ * specific portion of the payment.
1068
+ *
1069
+ * It is not necessary to indicate in the array which portion goes to yourself. After all portions of the total
1070
+ * payment amount have been routed, the amount left will be routed to the current organization automatically.
1071
+ *
1072
+ * If instead you use OAuth to create payments on a connected merchant's account, refer to the `applicationFee`
1073
+ * parameter.
1074
+ */
1075
+ routing?: Array<EntityPaymentRouteResponse> | null | undefined;
1076
+ sequenceType: SequenceTypeResponse;
1077
+ /**
1078
+ * If the payment was automatically created via a subscription, the ID of the [subscription](get-subscription) will
1079
+ *
1080
+ * @remarks
1081
+ * be added to the response.
1082
+ */
1083
+ subscriptionId?: string | null | undefined;
1084
+ /**
1085
+ * **Only relevant for recurring payments.**
1086
+ *
1087
+ * @remarks
1088
+ *
1089
+ * When creating recurring payments, the ID of a specific [mandate](get-mandate) can be supplied to indicate which of
1090
+ * the customer's accounts should be credited.
1091
+ */
1092
+ mandateId?: string | null | undefined;
1093
+ customerId?: string | undefined;
1094
+ /**
1095
+ * The identifier referring to the [profile](get-profile) this entity belongs to.
1096
+ *
1097
+ * @remarks
1098
+ *
1099
+ * Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted in the creation
1100
+ * request. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is
1101
+ * required.
1102
+ */
1103
+ profileId: string;
1104
+ /**
1105
+ * The identifier referring to the [settlement](get-settlement) this payment was settled with.
1106
+ */
1107
+ settlementId?: string | null | undefined;
1108
+ /**
1109
+ * If the payment was created for an [order](get-order), the ID of that order will be part of the response.
1110
+ */
1111
+ orderId?: string | null | undefined;
1112
+ status: ListPaymentResponseStatus;
1113
+ /**
1114
+ * This object offers details about the status of a payment. Currently it is only available for point-of-sale
1115
+ *
1116
+ * @remarks
1117
+ * payments.
1118
+ *
1119
+ * You can find more information about the possible values of this object on
1120
+ * [this page](status-reasons).**
1121
+ */
1122
+ statusReason?: StatusReason | null | undefined;
1123
+ /**
1124
+ * Whether the payment can be canceled. This parameter is omitted if the payment reaches a final state.
1125
+ */
1126
+ isCancelable?: boolean | null | undefined;
1127
+ /**
1128
+ * An object containing payment details collected during the payment process. For example, details may include the
1129
+ *
1130
+ * @remarks
1131
+ * customer's card or bank details and a payment reference. For the full list of details, please refer to the
1132
+ * [method-specific parameters](extra-payment-parameters) guide.
1133
+ */
1134
+ details?: ListPaymentResponseDetails | null | undefined;
1135
+ /**
1136
+ * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
1137
+ */
1138
+ createdAt: string;
1139
+ /**
1140
+ * The date and time the payment became authorized, in ISO 8601 format. This parameter is omitted if the payment is
1141
+ *
1142
+ * @remarks
1143
+ * not authorized (yet).
1144
+ */
1145
+ authorizedAt?: string | null | undefined;
1146
+ /**
1147
+ * The date and time the payment became paid, in ISO 8601 format. This parameter is omitted if the payment is not
1148
+ *
1149
+ * @remarks
1150
+ * completed (yet).
1151
+ */
1152
+ paidAt?: string | null | undefined;
1153
+ /**
1154
+ * The date and time the payment was canceled, in ISO 8601 format. This parameter is omitted if the payment is not
1155
+ *
1156
+ * @remarks
1157
+ * canceled (yet).
1158
+ */
1159
+ canceledAt?: string | null | undefined;
1160
+ /**
1161
+ * The date and time the payment will expire, in ISO 8601 format. This parameter is omitted if the payment can no
1162
+ *
1163
+ * @remarks
1164
+ * longer expire.
1165
+ */
1166
+ expiresAt?: string | null | undefined;
1167
+ /**
1168
+ * The date and time the payment was expired, in ISO 8601 format. This parameter is omitted if the payment did not
1169
+ *
1170
+ * @remarks
1171
+ * expire (yet).
1172
+ */
1173
+ expiredAt?: string | null | undefined;
1174
+ /**
1175
+ * The date and time the payment failed, in ISO 8601 format. This parameter is omitted if the payment did not fail
1176
+ *
1177
+ * @remarks
1178
+ * (yet).
1179
+ */
1180
+ failedAt?: string | null | undefined;
1181
+ /**
1182
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
1183
+ */
1184
+ links: ListPaymentResponseLinks;
1185
+ };
1186
+
1187
+ /** @internal */
1188
+ export const ListPaymentResponseAmountRefunded$inboundSchema: z.ZodType<
1189
+ ListPaymentResponseAmountRefunded,
1190
+ z.ZodTypeDef,
1191
+ unknown
1192
+ > = z.object({
1193
+ currency: z.string(),
1194
+ value: z.string(),
1195
+ });
1196
+ /** @internal */
1197
+ export type ListPaymentResponseAmountRefunded$Outbound = {
1198
+ currency: string;
1199
+ value: string;
1200
+ };
1201
+
1202
+ /** @internal */
1203
+ export const ListPaymentResponseAmountRefunded$outboundSchema: z.ZodType<
1204
+ ListPaymentResponseAmountRefunded$Outbound,
1205
+ z.ZodTypeDef,
1206
+ ListPaymentResponseAmountRefunded
1207
+ > = z.object({
1208
+ currency: z.string(),
1209
+ value: z.string(),
1210
+ });
1211
+
1212
+ export function listPaymentResponseAmountRefundedToJSON(
1213
+ listPaymentResponseAmountRefunded: ListPaymentResponseAmountRefunded,
1214
+ ): string {
1215
+ return JSON.stringify(
1216
+ ListPaymentResponseAmountRefunded$outboundSchema.parse(
1217
+ listPaymentResponseAmountRefunded,
1218
+ ),
1219
+ );
1220
+ }
1221
+ export function listPaymentResponseAmountRefundedFromJSON(
1222
+ jsonString: string,
1223
+ ): SafeParseResult<ListPaymentResponseAmountRefunded, SDKValidationError> {
1224
+ return safeParse(
1225
+ jsonString,
1226
+ (x) => ListPaymentResponseAmountRefunded$inboundSchema.parse(JSON.parse(x)),
1227
+ `Failed to parse 'ListPaymentResponseAmountRefunded' from JSON`,
1228
+ );
1229
+ }
1230
+
1231
+ /** @internal */
1232
+ export const ListPaymentResponseAmountRemaining$inboundSchema: z.ZodType<
1233
+ ListPaymentResponseAmountRemaining,
1234
+ z.ZodTypeDef,
1235
+ unknown
1236
+ > = z.object({
1237
+ currency: z.string(),
1238
+ value: z.string(),
1239
+ });
1240
+ /** @internal */
1241
+ export type ListPaymentResponseAmountRemaining$Outbound = {
1242
+ currency: string;
1243
+ value: string;
1244
+ };
1245
+
1246
+ /** @internal */
1247
+ export const ListPaymentResponseAmountRemaining$outboundSchema: z.ZodType<
1248
+ ListPaymentResponseAmountRemaining$Outbound,
1249
+ z.ZodTypeDef,
1250
+ ListPaymentResponseAmountRemaining
1251
+ > = z.object({
1252
+ currency: z.string(),
1253
+ value: z.string(),
1254
+ });
1255
+
1256
+ export function listPaymentResponseAmountRemainingToJSON(
1257
+ listPaymentResponseAmountRemaining: ListPaymentResponseAmountRemaining,
1258
+ ): string {
1259
+ return JSON.stringify(
1260
+ ListPaymentResponseAmountRemaining$outboundSchema.parse(
1261
+ listPaymentResponseAmountRemaining,
1262
+ ),
1263
+ );
1264
+ }
1265
+ export function listPaymentResponseAmountRemainingFromJSON(
1266
+ jsonString: string,
1267
+ ): SafeParseResult<ListPaymentResponseAmountRemaining, SDKValidationError> {
1268
+ return safeParse(
1269
+ jsonString,
1270
+ (x) =>
1271
+ ListPaymentResponseAmountRemaining$inboundSchema.parse(JSON.parse(x)),
1272
+ `Failed to parse 'ListPaymentResponseAmountRemaining' from JSON`,
1273
+ );
1274
+ }
1275
+
1276
+ /** @internal */
1277
+ export const ListPaymentResponseAmountCaptured$inboundSchema: z.ZodType<
1278
+ ListPaymentResponseAmountCaptured,
1279
+ z.ZodTypeDef,
1280
+ unknown
1281
+ > = z.object({
1282
+ currency: z.string(),
1283
+ value: z.string(),
1284
+ });
1285
+ /** @internal */
1286
+ export type ListPaymentResponseAmountCaptured$Outbound = {
1287
+ currency: string;
1288
+ value: string;
1289
+ };
1290
+
1291
+ /** @internal */
1292
+ export const ListPaymentResponseAmountCaptured$outboundSchema: z.ZodType<
1293
+ ListPaymentResponseAmountCaptured$Outbound,
1294
+ z.ZodTypeDef,
1295
+ ListPaymentResponseAmountCaptured
1296
+ > = z.object({
1297
+ currency: z.string(),
1298
+ value: z.string(),
1299
+ });
1300
+
1301
+ export function listPaymentResponseAmountCapturedToJSON(
1302
+ listPaymentResponseAmountCaptured: ListPaymentResponseAmountCaptured,
1303
+ ): string {
1304
+ return JSON.stringify(
1305
+ ListPaymentResponseAmountCaptured$outboundSchema.parse(
1306
+ listPaymentResponseAmountCaptured,
1307
+ ),
1308
+ );
1309
+ }
1310
+ export function listPaymentResponseAmountCapturedFromJSON(
1311
+ jsonString: string,
1312
+ ): SafeParseResult<ListPaymentResponseAmountCaptured, SDKValidationError> {
1313
+ return safeParse(
1314
+ jsonString,
1315
+ (x) => ListPaymentResponseAmountCaptured$inboundSchema.parse(JSON.parse(x)),
1316
+ `Failed to parse 'ListPaymentResponseAmountCaptured' from JSON`,
1317
+ );
1318
+ }
1319
+
1320
+ /** @internal */
1321
+ export const ListPaymentResponseAmountChargedBack$inboundSchema: z.ZodType<
1322
+ ListPaymentResponseAmountChargedBack,
1323
+ z.ZodTypeDef,
1324
+ unknown
1325
+ > = z.object({
1326
+ currency: z.string(),
1327
+ value: z.string(),
1328
+ });
1329
+ /** @internal */
1330
+ export type ListPaymentResponseAmountChargedBack$Outbound = {
1331
+ currency: string;
1332
+ value: string;
1333
+ };
1334
+
1335
+ /** @internal */
1336
+ export const ListPaymentResponseAmountChargedBack$outboundSchema: z.ZodType<
1337
+ ListPaymentResponseAmountChargedBack$Outbound,
1338
+ z.ZodTypeDef,
1339
+ ListPaymentResponseAmountChargedBack
1340
+ > = z.object({
1341
+ currency: z.string(),
1342
+ value: z.string(),
1343
+ });
1344
+
1345
+ export function listPaymentResponseAmountChargedBackToJSON(
1346
+ listPaymentResponseAmountChargedBack: ListPaymentResponseAmountChargedBack,
1347
+ ): string {
1348
+ return JSON.stringify(
1349
+ ListPaymentResponseAmountChargedBack$outboundSchema.parse(
1350
+ listPaymentResponseAmountChargedBack,
1351
+ ),
1352
+ );
1353
+ }
1354
+ export function listPaymentResponseAmountChargedBackFromJSON(
1355
+ jsonString: string,
1356
+ ): SafeParseResult<ListPaymentResponseAmountChargedBack, SDKValidationError> {
1357
+ return safeParse(
1358
+ jsonString,
1359
+ (x) =>
1360
+ ListPaymentResponseAmountChargedBack$inboundSchema.parse(JSON.parse(x)),
1361
+ `Failed to parse 'ListPaymentResponseAmountChargedBack' from JSON`,
1362
+ );
1363
+ }
1364
+
1365
+ /** @internal */
1366
+ export const ListPaymentResponseSettlementAmount$inboundSchema: z.ZodType<
1367
+ ListPaymentResponseSettlementAmount,
1368
+ z.ZodTypeDef,
1369
+ unknown
1370
+ > = z.object({
1371
+ currency: z.string(),
1372
+ value: z.string(),
1373
+ });
1374
+ /** @internal */
1375
+ export type ListPaymentResponseSettlementAmount$Outbound = {
1376
+ currency: string;
1377
+ value: string;
1378
+ };
1379
+
1380
+ /** @internal */
1381
+ export const ListPaymentResponseSettlementAmount$outboundSchema: z.ZodType<
1382
+ ListPaymentResponseSettlementAmount$Outbound,
1383
+ z.ZodTypeDef,
1384
+ ListPaymentResponseSettlementAmount
1385
+ > = z.object({
1386
+ currency: z.string(),
1387
+ value: z.string(),
1388
+ });
1389
+
1390
+ export function listPaymentResponseSettlementAmountToJSON(
1391
+ listPaymentResponseSettlementAmount: ListPaymentResponseSettlementAmount,
1392
+ ): string {
1393
+ return JSON.stringify(
1394
+ ListPaymentResponseSettlementAmount$outboundSchema.parse(
1395
+ listPaymentResponseSettlementAmount,
1396
+ ),
1397
+ );
1398
+ }
1399
+ export function listPaymentResponseSettlementAmountFromJSON(
1400
+ jsonString: string,
1401
+ ): SafeParseResult<ListPaymentResponseSettlementAmount, SDKValidationError> {
1402
+ return safeParse(
1403
+ jsonString,
1404
+ (x) =>
1405
+ ListPaymentResponseSettlementAmount$inboundSchema.parse(JSON.parse(x)),
1406
+ `Failed to parse 'ListPaymentResponseSettlementAmount' from JSON`,
1407
+ );
1408
+ }
1409
+
1410
+ /** @internal */
1411
+ export const ListPaymentResponseLine$inboundSchema: z.ZodType<
1412
+ ListPaymentResponseLine,
1413
+ z.ZodTypeDef,
1414
+ unknown
1415
+ > = z.object({
1416
+ type: PaymentLineTypeResponse$inboundSchema.optional(),
1417
+ description: z.string(),
1418
+ quantity: z.number().int(),
1419
+ quantityUnit: z.string().optional(),
1420
+ unitPrice: Amount$inboundSchema,
1421
+ discountAmount: Amount$inboundSchema.optional(),
1422
+ totalAmount: Amount$inboundSchema,
1423
+ vatRate: z.string().optional(),
1424
+ vatAmount: Amount$inboundSchema.optional(),
1425
+ sku: z.string().optional(),
1426
+ categories: z.array(LineCategoriesResponse$inboundSchema).optional(),
1427
+ imageUrl: z.string().optional(),
1428
+ productUrl: z.string().optional(),
1429
+ recurring: RecurringLineItem$inboundSchema.optional(),
1430
+ });
1431
+ /** @internal */
1432
+ export type ListPaymentResponseLine$Outbound = {
1433
+ type?: string | undefined;
1434
+ description: string;
1435
+ quantity: number;
1436
+ quantityUnit?: string | undefined;
1437
+ unitPrice: Amount$Outbound;
1438
+ discountAmount?: Amount$Outbound | undefined;
1439
+ totalAmount: Amount$Outbound;
1440
+ vatRate?: string | undefined;
1441
+ vatAmount?: Amount$Outbound | undefined;
1442
+ sku?: string | undefined;
1443
+ categories?: Array<string> | undefined;
1444
+ imageUrl?: string | undefined;
1445
+ productUrl?: string | undefined;
1446
+ recurring?: RecurringLineItem$Outbound | undefined;
1447
+ };
1448
+
1449
+ /** @internal */
1450
+ export const ListPaymentResponseLine$outboundSchema: z.ZodType<
1451
+ ListPaymentResponseLine$Outbound,
1452
+ z.ZodTypeDef,
1453
+ ListPaymentResponseLine
1454
+ > = z.object({
1455
+ type: PaymentLineTypeResponse$outboundSchema.optional(),
1456
+ description: z.string(),
1457
+ quantity: z.number().int(),
1458
+ quantityUnit: z.string().optional(),
1459
+ unitPrice: Amount$outboundSchema,
1460
+ discountAmount: Amount$outboundSchema.optional(),
1461
+ totalAmount: Amount$outboundSchema,
1462
+ vatRate: z.string().optional(),
1463
+ vatAmount: Amount$outboundSchema.optional(),
1464
+ sku: z.string().optional(),
1465
+ categories: z.array(LineCategoriesResponse$outboundSchema).optional(),
1466
+ imageUrl: z.string().optional(),
1467
+ productUrl: z.string().optional(),
1468
+ recurring: RecurringLineItem$outboundSchema.optional(),
1469
+ });
1470
+
1471
+ export function listPaymentResponseLineToJSON(
1472
+ listPaymentResponseLine: ListPaymentResponseLine,
1473
+ ): string {
1474
+ return JSON.stringify(
1475
+ ListPaymentResponseLine$outboundSchema.parse(listPaymentResponseLine),
1476
+ );
1477
+ }
1478
+ export function listPaymentResponseLineFromJSON(
1479
+ jsonString: string,
1480
+ ): SafeParseResult<ListPaymentResponseLine, SDKValidationError> {
1481
+ return safeParse(
1482
+ jsonString,
1483
+ (x) => ListPaymentResponseLine$inboundSchema.parse(JSON.parse(x)),
1484
+ `Failed to parse 'ListPaymentResponseLine' from JSON`,
1485
+ );
1486
+ }
1487
+
1488
+ /** @internal */
1489
+ export const ListPaymentResponseBillingAddress$inboundSchema: z.ZodType<
1490
+ ListPaymentResponseBillingAddress,
1491
+ z.ZodTypeDef,
1492
+ unknown
1493
+ > = z.object({
1494
+ title: z.string().optional(),
1495
+ givenName: z.string().optional(),
1496
+ familyName: z.string().optional(),
1497
+ organizationName: z.any().optional(),
1498
+ streetAndNumber: z.string().optional(),
1499
+ streetAdditional: z.string().optional(),
1500
+ postalCode: z.string().optional(),
1501
+ email: z.string().optional(),
1502
+ phone: z.string().optional(),
1503
+ city: z.string().optional(),
1504
+ region: z.string().optional(),
1505
+ country: z.string().optional(),
1506
+ });
1507
+ /** @internal */
1508
+ export type ListPaymentResponseBillingAddress$Outbound = {
1509
+ title?: string | undefined;
1510
+ givenName?: string | undefined;
1511
+ familyName?: string | undefined;
1512
+ organizationName?: any | undefined;
1513
+ streetAndNumber?: string | undefined;
1514
+ streetAdditional?: string | undefined;
1515
+ postalCode?: string | undefined;
1516
+ email?: string | undefined;
1517
+ phone?: string | undefined;
1518
+ city?: string | undefined;
1519
+ region?: string | undefined;
1520
+ country?: string | undefined;
1521
+ };
1522
+
1523
+ /** @internal */
1524
+ export const ListPaymentResponseBillingAddress$outboundSchema: z.ZodType<
1525
+ ListPaymentResponseBillingAddress$Outbound,
1526
+ z.ZodTypeDef,
1527
+ ListPaymentResponseBillingAddress
1528
+ > = z.object({
1529
+ title: z.string().optional(),
1530
+ givenName: z.string().optional(),
1531
+ familyName: z.string().optional(),
1532
+ organizationName: z.any().optional(),
1533
+ streetAndNumber: z.string().optional(),
1534
+ streetAdditional: z.string().optional(),
1535
+ postalCode: z.string().optional(),
1536
+ email: z.string().optional(),
1537
+ phone: z.string().optional(),
1538
+ city: z.string().optional(),
1539
+ region: z.string().optional(),
1540
+ country: z.string().optional(),
1541
+ });
1542
+
1543
+ export function listPaymentResponseBillingAddressToJSON(
1544
+ listPaymentResponseBillingAddress: ListPaymentResponseBillingAddress,
1545
+ ): string {
1546
+ return JSON.stringify(
1547
+ ListPaymentResponseBillingAddress$outboundSchema.parse(
1548
+ listPaymentResponseBillingAddress,
1549
+ ),
1550
+ );
1551
+ }
1552
+ export function listPaymentResponseBillingAddressFromJSON(
1553
+ jsonString: string,
1554
+ ): SafeParseResult<ListPaymentResponseBillingAddress, SDKValidationError> {
1555
+ return safeParse(
1556
+ jsonString,
1557
+ (x) => ListPaymentResponseBillingAddress$inboundSchema.parse(JSON.parse(x)),
1558
+ `Failed to parse 'ListPaymentResponseBillingAddress' from JSON`,
1559
+ );
1560
+ }
1561
+
1562
+ /** @internal */
1563
+ export const ListPaymentResponseApplicationFee$inboundSchema: z.ZodType<
1564
+ ListPaymentResponseApplicationFee,
1565
+ z.ZodTypeDef,
1566
+ unknown
1567
+ > = z.object({
1568
+ amount: Amount$inboundSchema.optional(),
1569
+ description: z.string().optional(),
1570
+ });
1571
+ /** @internal */
1572
+ export type ListPaymentResponseApplicationFee$Outbound = {
1573
+ amount?: Amount$Outbound | undefined;
1574
+ description?: string | undefined;
1575
+ };
1576
+
1577
+ /** @internal */
1578
+ export const ListPaymentResponseApplicationFee$outboundSchema: z.ZodType<
1579
+ ListPaymentResponseApplicationFee$Outbound,
1580
+ z.ZodTypeDef,
1581
+ ListPaymentResponseApplicationFee
1582
+ > = z.object({
1583
+ amount: Amount$outboundSchema.optional(),
1584
+ description: z.string().optional(),
1585
+ });
1586
+
1587
+ export function listPaymentResponseApplicationFeeToJSON(
1588
+ listPaymentResponseApplicationFee: ListPaymentResponseApplicationFee,
1589
+ ): string {
1590
+ return JSON.stringify(
1591
+ ListPaymentResponseApplicationFee$outboundSchema.parse(
1592
+ listPaymentResponseApplicationFee,
1593
+ ),
1594
+ );
1595
+ }
1596
+ export function listPaymentResponseApplicationFeeFromJSON(
1597
+ jsonString: string,
1598
+ ): SafeParseResult<ListPaymentResponseApplicationFee, SDKValidationError> {
1599
+ return safeParse(
1600
+ jsonString,
1601
+ (x) => ListPaymentResponseApplicationFee$inboundSchema.parse(JSON.parse(x)),
1602
+ `Failed to parse 'ListPaymentResponseApplicationFee' from JSON`,
1603
+ );
1604
+ }
1605
+
1606
+ /** @internal */
1607
+ export const ListPaymentResponseStatus$inboundSchema: z.ZodType<
1608
+ ListPaymentResponseStatus,
1609
+ z.ZodTypeDef,
1610
+ unknown
1611
+ > = openEnums.inboundSchema(ListPaymentResponseStatus);
1612
+ /** @internal */
1613
+ export const ListPaymentResponseStatus$outboundSchema: z.ZodType<
1614
+ string,
1615
+ z.ZodTypeDef,
1616
+ ListPaymentResponseStatus
1617
+ > = openEnums.outboundSchema(ListPaymentResponseStatus);
1618
+
1619
+ /** @internal */
1620
+ export const ListPaymentResponseReceipt$inboundSchema: z.ZodType<
1621
+ ListPaymentResponseReceipt,
1622
+ z.ZodTypeDef,
1623
+ unknown
1624
+ > = z.object({
1625
+ authorizationCode: z.nullable(z.string()).optional(),
1626
+ applicationIdentifier: z.nullable(z.string()).optional(),
1627
+ cardReadMethod: z.nullable(
1628
+ PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
1629
+ ).optional(),
1630
+ cardVerificationMethod: z.nullable(
1631
+ PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
1632
+ ).optional(),
1633
+ });
1634
+ /** @internal */
1635
+ export type ListPaymentResponseReceipt$Outbound = {
1636
+ authorizationCode?: string | null | undefined;
1637
+ applicationIdentifier?: string | null | undefined;
1638
+ cardReadMethod?: string | null | undefined;
1639
+ cardVerificationMethod?: string | null | undefined;
1640
+ };
1641
+
1642
+ /** @internal */
1643
+ export const ListPaymentResponseReceipt$outboundSchema: z.ZodType<
1644
+ ListPaymentResponseReceipt$Outbound,
1645
+ z.ZodTypeDef,
1646
+ ListPaymentResponseReceipt
1647
+ > = z.object({
1648
+ authorizationCode: z.nullable(z.string()).optional(),
1649
+ applicationIdentifier: z.nullable(z.string()).optional(),
1650
+ cardReadMethod: z.nullable(
1651
+ PaymentDetailsReceiptCardReadMethodResponse$outboundSchema,
1652
+ ).optional(),
1653
+ cardVerificationMethod: z.nullable(
1654
+ PaymentDetailsReceiptCardVerificationMethodResponse$outboundSchema,
1655
+ ).optional(),
1656
+ });
1657
+
1658
+ export function listPaymentResponseReceiptToJSON(
1659
+ listPaymentResponseReceipt: ListPaymentResponseReceipt,
1660
+ ): string {
1661
+ return JSON.stringify(
1662
+ ListPaymentResponseReceipt$outboundSchema.parse(listPaymentResponseReceipt),
1663
+ );
1664
+ }
1665
+ export function listPaymentResponseReceiptFromJSON(
1666
+ jsonString: string,
1667
+ ): SafeParseResult<ListPaymentResponseReceipt, SDKValidationError> {
1668
+ return safeParse(
1669
+ jsonString,
1670
+ (x) => ListPaymentResponseReceipt$inboundSchema.parse(JSON.parse(x)),
1671
+ `Failed to parse 'ListPaymentResponseReceipt' from JSON`,
1672
+ );
1673
+ }
1674
+
1675
+ /** @internal */
1676
+ export const ListPaymentResponseQrCode$inboundSchema: z.ZodType<
1677
+ ListPaymentResponseQrCode,
1678
+ z.ZodTypeDef,
1679
+ unknown
1680
+ > = z.object({
1681
+ height: z.number().int().optional(),
1682
+ width: z.number().int().optional(),
1683
+ src: z.string().optional(),
1684
+ });
1685
+ /** @internal */
1686
+ export type ListPaymentResponseQrCode$Outbound = {
1687
+ height?: number | undefined;
1688
+ width?: number | undefined;
1689
+ src?: string | undefined;
1690
+ };
1691
+
1692
+ /** @internal */
1693
+ export const ListPaymentResponseQrCode$outboundSchema: z.ZodType<
1694
+ ListPaymentResponseQrCode$Outbound,
1695
+ z.ZodTypeDef,
1696
+ ListPaymentResponseQrCode
1697
+ > = z.object({
1698
+ height: z.number().int().optional(),
1699
+ width: z.number().int().optional(),
1700
+ src: z.string().optional(),
1701
+ });
1702
+
1703
+ export function listPaymentResponseQrCodeToJSON(
1704
+ listPaymentResponseQrCode: ListPaymentResponseQrCode,
1705
+ ): string {
1706
+ return JSON.stringify(
1707
+ ListPaymentResponseQrCode$outboundSchema.parse(listPaymentResponseQrCode),
1708
+ );
1709
+ }
1710
+ export function listPaymentResponseQrCodeFromJSON(
1711
+ jsonString: string,
1712
+ ): SafeParseResult<ListPaymentResponseQrCode, SDKValidationError> {
1713
+ return safeParse(
1714
+ jsonString,
1715
+ (x) => ListPaymentResponseQrCode$inboundSchema.parse(JSON.parse(x)),
1716
+ `Failed to parse 'ListPaymentResponseQrCode' from JSON`,
1717
+ );
1718
+ }
1719
+
1720
+ /** @internal */
1721
+ export const ListPaymentResponseDetails$inboundSchema: z.ZodType<
1722
+ ListPaymentResponseDetails,
1723
+ z.ZodTypeDef,
1724
+ unknown
1725
+ > = z.object({
1726
+ consumerName: z.nullable(z.string()).optional(),
1727
+ consumerAccount: z.nullable(z.string()).optional(),
1728
+ consumerBic: z.nullable(z.string()).optional(),
1729
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1730
+ cardNumber: z.nullable(z.string()).optional(),
1731
+ bankName: z.string().optional(),
1732
+ bankAccount: z.string().optional(),
1733
+ bankBic: z.string().optional(),
1734
+ transferReference: z.nullable(z.string()).optional(),
1735
+ cardFingerprint: z.nullable(z.string()).optional(),
1736
+ cardHolder: z.nullable(z.string()).optional(),
1737
+ cardAudition: z.nullable(PaymentDetailsCardAuditionResponse$inboundSchema)
1738
+ .optional(),
1739
+ cardLabel: z.nullable(PaymentDetailsCardLabelResponse$inboundSchema)
1740
+ .optional(),
1741
+ cardCountryCode: z.nullable(z.string()).optional(),
1742
+ cardExpiryDate: z.nullable(z.string()).optional(),
1743
+ cardFunding: z.nullable(PaymentDetailsCardFundingResponse$inboundSchema)
1744
+ .optional(),
1745
+ cardSecurity: z.nullable(PaymentDetailsCardSecurityResponse$inboundSchema)
1746
+ .optional(),
1747
+ feeRegion: z.nullable(PaymentDetailsFeeRegionResponse$inboundSchema)
1748
+ .optional(),
1749
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1750
+ card3dsEci: z.nullable(z.string()).optional(),
1751
+ cardBin: z.nullable(z.string()).optional(),
1752
+ cardIssuer: z.nullable(z.string()).optional(),
1753
+ failureReason: z.nullable(PaymentDetailsFailureReasonResponse$inboundSchema)
1754
+ .optional(),
1755
+ failureMessage: z.nullable(z.string()).optional(),
1756
+ wallet: z.nullable(PaymentDetailsWalletResponse$inboundSchema).optional(),
1757
+ paypalReference: z.nullable(z.string()).optional(),
1758
+ paypalPayerId: z.nullable(z.string()).optional(),
1759
+ sellerProtection: z.nullable(
1760
+ PaymentDetailsSellerProtectionResponse$inboundSchema,
1761
+ ).optional(),
1762
+ paypalFee: z.nullable(AmountNullable$inboundSchema).optional(),
1763
+ customerReference: z.string().optional(),
1764
+ terminalId: z.string().optional(),
1765
+ maskedNumber: z.nullable(z.string()).optional(),
1766
+ receipt: z.lazy(() => ListPaymentResponseReceipt$inboundSchema).optional(),
1767
+ creditorIdentifier: z.nullable(z.string()).optional(),
1768
+ dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
1769
+ signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
1770
+ .optional(),
1771
+ bankReasonCode: z.nullable(z.string()).optional(),
1772
+ bankReason: z.nullable(z.string()).optional(),
1773
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1774
+ mandateReference: z.nullable(z.string()).optional(),
1775
+ batchReference: z.nullable(z.string()).optional(),
1776
+ fileReference: z.nullable(z.string()).optional(),
1777
+ qrCode: z.lazy(() => ListPaymentResponseQrCode$inboundSchema).optional(),
1778
+ voucherNumber: z.string().optional(),
1779
+ giftcards: z.array(z.record(z.any())).optional(),
1780
+ issuer: z.string().optional(),
1781
+ vouchers: z.array(z.record(z.any())).optional(),
1782
+ remainderAmount: Amount$inboundSchema.optional(),
1783
+ remainderMethod: z.string().optional(),
1784
+ remainderDetails: z.record(z.any()).optional(),
1785
+ multibancoReference: z.nullable(z.string()).optional(),
1786
+ multibancoEntity: z.nullable(z.string()).optional(),
1787
+ });
1788
+ /** @internal */
1789
+ export type ListPaymentResponseDetails$Outbound = {
1790
+ consumerName?: string | null | undefined;
1791
+ consumerAccount?: string | null | undefined;
1792
+ consumerBic?: string | null | undefined;
1793
+ shippingAddress?: { [k: string]: any } | null | undefined;
1794
+ cardNumber?: string | null | undefined;
1795
+ bankName?: string | undefined;
1796
+ bankAccount?: string | undefined;
1797
+ bankBic?: string | undefined;
1798
+ transferReference?: string | null | undefined;
1799
+ cardFingerprint?: string | null | undefined;
1800
+ cardHolder?: string | null | undefined;
1801
+ cardAudition?: string | null | undefined;
1802
+ cardLabel?: string | null | undefined;
1803
+ cardCountryCode?: string | null | undefined;
1804
+ cardExpiryDate?: string | null | undefined;
1805
+ cardFunding?: string | null | undefined;
1806
+ cardSecurity?: string | null | undefined;
1807
+ feeRegion?: string | null | undefined;
1808
+ cardMaskedNumber?: string | null | undefined;
1809
+ card3dsEci?: string | null | undefined;
1810
+ cardBin?: string | null | undefined;
1811
+ cardIssuer?: string | null | undefined;
1812
+ failureReason?: string | null | undefined;
1813
+ failureMessage?: string | null | undefined;
1814
+ wallet?: string | null | undefined;
1815
+ paypalReference?: string | null | undefined;
1816
+ paypalPayerId?: string | null | undefined;
1817
+ sellerProtection?: string | null | undefined;
1818
+ paypalFee?: AmountNullable$Outbound | null | undefined;
1819
+ customerReference?: string | undefined;
1820
+ terminalId?: string | undefined;
1821
+ maskedNumber?: string | null | undefined;
1822
+ receipt?: ListPaymentResponseReceipt$Outbound | undefined;
1823
+ creditorIdentifier?: string | null | undefined;
1824
+ dueDate?: string | null | undefined;
1825
+ signatureDate?: string | null | undefined;
1826
+ bankReasonCode?: string | null | undefined;
1827
+ bankReason?: string | null | undefined;
1828
+ endToEndIdentifier?: string | null | undefined;
1829
+ mandateReference?: string | null | undefined;
1830
+ batchReference?: string | null | undefined;
1831
+ fileReference?: string | null | undefined;
1832
+ qrCode?: ListPaymentResponseQrCode$Outbound | undefined;
1833
+ voucherNumber?: string | undefined;
1834
+ giftcards?: Array<{ [k: string]: any }> | undefined;
1835
+ issuer?: string | undefined;
1836
+ vouchers?: Array<{ [k: string]: any }> | undefined;
1837
+ remainderAmount?: Amount$Outbound | undefined;
1838
+ remainderMethod?: string | undefined;
1839
+ remainderDetails?: { [k: string]: any } | undefined;
1840
+ multibancoReference?: string | null | undefined;
1841
+ multibancoEntity?: string | null | undefined;
1842
+ };
1843
+
1844
+ /** @internal */
1845
+ export const ListPaymentResponseDetails$outboundSchema: z.ZodType<
1846
+ ListPaymentResponseDetails$Outbound,
1847
+ z.ZodTypeDef,
1848
+ ListPaymentResponseDetails
1849
+ > = z.object({
1850
+ consumerName: z.nullable(z.string()).optional(),
1851
+ consumerAccount: z.nullable(z.string()).optional(),
1852
+ consumerBic: z.nullable(z.string()).optional(),
1853
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
1854
+ cardNumber: z.nullable(z.string()).optional(),
1855
+ bankName: z.string().optional(),
1856
+ bankAccount: z.string().optional(),
1857
+ bankBic: z.string().optional(),
1858
+ transferReference: z.nullable(z.string()).optional(),
1859
+ cardFingerprint: z.nullable(z.string()).optional(),
1860
+ cardHolder: z.nullable(z.string()).optional(),
1861
+ cardAudition: z.nullable(PaymentDetailsCardAuditionResponse$outboundSchema)
1862
+ .optional(),
1863
+ cardLabel: z.nullable(PaymentDetailsCardLabelResponse$outboundSchema)
1864
+ .optional(),
1865
+ cardCountryCode: z.nullable(z.string()).optional(),
1866
+ cardExpiryDate: z.nullable(z.string()).optional(),
1867
+ cardFunding: z.nullable(PaymentDetailsCardFundingResponse$outboundSchema)
1868
+ .optional(),
1869
+ cardSecurity: z.nullable(PaymentDetailsCardSecurityResponse$outboundSchema)
1870
+ .optional(),
1871
+ feeRegion: z.nullable(PaymentDetailsFeeRegionResponse$outboundSchema)
1872
+ .optional(),
1873
+ cardMaskedNumber: z.nullable(z.string()).optional(),
1874
+ card3dsEci: z.nullable(z.string()).optional(),
1875
+ cardBin: z.nullable(z.string()).optional(),
1876
+ cardIssuer: z.nullable(z.string()).optional(),
1877
+ failureReason: z.nullable(PaymentDetailsFailureReasonResponse$outboundSchema)
1878
+ .optional(),
1879
+ failureMessage: z.nullable(z.string()).optional(),
1880
+ wallet: z.nullable(PaymentDetailsWalletResponse$outboundSchema).optional(),
1881
+ paypalReference: z.nullable(z.string()).optional(),
1882
+ paypalPayerId: z.nullable(z.string()).optional(),
1883
+ sellerProtection: z.nullable(
1884
+ PaymentDetailsSellerProtectionResponse$outboundSchema,
1885
+ ).optional(),
1886
+ paypalFee: z.nullable(AmountNullable$outboundSchema).optional(),
1887
+ customerReference: z.string().optional(),
1888
+ terminalId: z.string().optional(),
1889
+ maskedNumber: z.nullable(z.string()).optional(),
1890
+ receipt: z.lazy(() => ListPaymentResponseReceipt$outboundSchema).optional(),
1891
+ creditorIdentifier: z.nullable(z.string()).optional(),
1892
+ dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1893
+ .optional(),
1894
+ signatureDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
1895
+ .optional(),
1896
+ bankReasonCode: z.nullable(z.string()).optional(),
1897
+ bankReason: z.nullable(z.string()).optional(),
1898
+ endToEndIdentifier: z.nullable(z.string()).optional(),
1899
+ mandateReference: z.nullable(z.string()).optional(),
1900
+ batchReference: z.nullable(z.string()).optional(),
1901
+ fileReference: z.nullable(z.string()).optional(),
1902
+ qrCode: z.lazy(() => ListPaymentResponseQrCode$outboundSchema).optional(),
1903
+ voucherNumber: z.string().optional(),
1904
+ giftcards: z.array(z.record(z.any())).optional(),
1905
+ issuer: z.string().optional(),
1906
+ vouchers: z.array(z.record(z.any())).optional(),
1907
+ remainderAmount: Amount$outboundSchema.optional(),
1908
+ remainderMethod: z.string().optional(),
1909
+ remainderDetails: z.record(z.any()).optional(),
1910
+ multibancoReference: z.nullable(z.string()).optional(),
1911
+ multibancoEntity: z.nullable(z.string()).optional(),
1912
+ });
1913
+
1914
+ export function listPaymentResponseDetailsToJSON(
1915
+ listPaymentResponseDetails: ListPaymentResponseDetails,
1916
+ ): string {
1917
+ return JSON.stringify(
1918
+ ListPaymentResponseDetails$outboundSchema.parse(listPaymentResponseDetails),
1919
+ );
1920
+ }
1921
+ export function listPaymentResponseDetailsFromJSON(
1922
+ jsonString: string,
1923
+ ): SafeParseResult<ListPaymentResponseDetails, SDKValidationError> {
1924
+ return safeParse(
1925
+ jsonString,
1926
+ (x) => ListPaymentResponseDetails$inboundSchema.parse(JSON.parse(x)),
1927
+ `Failed to parse 'ListPaymentResponseDetails' from JSON`,
1928
+ );
1929
+ }
1930
+
1931
+ /** @internal */
1932
+ export const ListPaymentResponseLinks$inboundSchema: z.ZodType<
1933
+ ListPaymentResponseLinks,
1934
+ z.ZodTypeDef,
1935
+ unknown
1936
+ > = z.object({
1937
+ self: Url$inboundSchema,
1938
+ checkout: Url$inboundSchema.optional(),
1939
+ mobileAppCheckout: Url$inboundSchema.optional(),
1940
+ changePaymentState: Url$inboundSchema.optional(),
1941
+ dashboard: Url$inboundSchema,
1942
+ refunds: Url$inboundSchema.optional(),
1943
+ chargebacks: Url$inboundSchema.optional(),
1944
+ captures: Url$inboundSchema.optional(),
1945
+ settlement: Url$inboundSchema.optional(),
1946
+ customer: Url$inboundSchema.optional(),
1947
+ mandate: Url$inboundSchema.optional(),
1948
+ subscription: Url$inboundSchema.optional(),
1949
+ order: Url$inboundSchema.optional(),
1950
+ terminal: Url$inboundSchema.optional(),
1951
+ status: Url$inboundSchema.optional(),
1952
+ payOnline: Url$inboundSchema.optional(),
1953
+ });
1954
+ /** @internal */
1955
+ export type ListPaymentResponseLinks$Outbound = {
1956
+ self: Url$Outbound;
1957
+ checkout?: Url$Outbound | undefined;
1958
+ mobileAppCheckout?: Url$Outbound | undefined;
1959
+ changePaymentState?: Url$Outbound | undefined;
1960
+ dashboard: Url$Outbound;
1961
+ refunds?: Url$Outbound | undefined;
1962
+ chargebacks?: Url$Outbound | undefined;
1963
+ captures?: Url$Outbound | undefined;
1964
+ settlement?: Url$Outbound | undefined;
1965
+ customer?: Url$Outbound | undefined;
1966
+ mandate?: Url$Outbound | undefined;
1967
+ subscription?: Url$Outbound | undefined;
1968
+ order?: Url$Outbound | undefined;
1969
+ terminal?: Url$Outbound | undefined;
1970
+ status?: Url$Outbound | undefined;
1971
+ payOnline?: Url$Outbound | undefined;
1972
+ };
1973
+
1974
+ /** @internal */
1975
+ export const ListPaymentResponseLinks$outboundSchema: z.ZodType<
1976
+ ListPaymentResponseLinks$Outbound,
1977
+ z.ZodTypeDef,
1978
+ ListPaymentResponseLinks
1979
+ > = z.object({
1980
+ self: Url$outboundSchema,
1981
+ checkout: Url$outboundSchema.optional(),
1982
+ mobileAppCheckout: Url$outboundSchema.optional(),
1983
+ changePaymentState: Url$outboundSchema.optional(),
1984
+ dashboard: Url$outboundSchema,
1985
+ refunds: Url$outboundSchema.optional(),
1986
+ chargebacks: Url$outboundSchema.optional(),
1987
+ captures: Url$outboundSchema.optional(),
1988
+ settlement: Url$outboundSchema.optional(),
1989
+ customer: Url$outboundSchema.optional(),
1990
+ mandate: Url$outboundSchema.optional(),
1991
+ subscription: Url$outboundSchema.optional(),
1992
+ order: Url$outboundSchema.optional(),
1993
+ terminal: Url$outboundSchema.optional(),
1994
+ status: Url$outboundSchema.optional(),
1995
+ payOnline: Url$outboundSchema.optional(),
1996
+ });
1997
+
1998
+ export function listPaymentResponseLinksToJSON(
1999
+ listPaymentResponseLinks: ListPaymentResponseLinks,
2000
+ ): string {
2001
+ return JSON.stringify(
2002
+ ListPaymentResponseLinks$outboundSchema.parse(listPaymentResponseLinks),
2003
+ );
2004
+ }
2005
+ export function listPaymentResponseLinksFromJSON(
2006
+ jsonString: string,
2007
+ ): SafeParseResult<ListPaymentResponseLinks, SDKValidationError> {
2008
+ return safeParse(
2009
+ jsonString,
2010
+ (x) => ListPaymentResponseLinks$inboundSchema.parse(JSON.parse(x)),
2011
+ `Failed to parse 'ListPaymentResponseLinks' from JSON`,
2012
+ );
2013
+ }
2014
+
2015
+ /** @internal */
2016
+ export const ListPaymentResponse$inboundSchema: z.ZodType<
2017
+ ListPaymentResponse,
2018
+ z.ZodTypeDef,
2019
+ unknown
2020
+ > = z.object({
2021
+ resource: z.string(),
2022
+ id: z.string(),
2023
+ mode: Mode$inboundSchema,
2024
+ description: z.string(),
2025
+ amount: Amount$inboundSchema,
2026
+ amountRefunded: z.lazy(() => ListPaymentResponseAmountRefunded$inboundSchema)
2027
+ .optional(),
2028
+ amountRemaining: z.lazy(() =>
2029
+ ListPaymentResponseAmountRemaining$inboundSchema
2030
+ ).optional(),
2031
+ amountCaptured: z.lazy(() => ListPaymentResponseAmountCaptured$inboundSchema)
2032
+ .optional(),
2033
+ amountChargedBack: z.lazy(() =>
2034
+ ListPaymentResponseAmountChargedBack$inboundSchema
2035
+ ).optional(),
2036
+ settlementAmount: z.lazy(() =>
2037
+ ListPaymentResponseSettlementAmount$inboundSchema
2038
+ ).optional(),
2039
+ redirectUrl: z.nullable(z.string()).optional(),
2040
+ cancelUrl: z.nullable(z.string()).optional(),
2041
+ webhookUrl: z.nullable(z.string()).optional(),
2042
+ lines: z.nullable(
2043
+ z.array(z.lazy(() => ListPaymentResponseLine$inboundSchema)),
2044
+ ).optional(),
2045
+ billingAddress: z.lazy(() => ListPaymentResponseBillingAddress$inboundSchema)
2046
+ .optional(),
2047
+ shippingAddress: PaymentAddress$inboundSchema.optional(),
2048
+ locale: z.nullable(LocaleResponse$inboundSchema).optional(),
2049
+ countryCode: z.nullable(z.string()).optional(),
2050
+ method: z.nullable(MethodResponse$inboundSchema).optional(),
2051
+ restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
2052
+ metadata: z.nullable(Metadata$inboundSchema).optional(),
2053
+ captureMode: z.nullable(CaptureModeResponse$inboundSchema).optional(),
2054
+ captureDelay: z.nullable(z.string()).optional(),
2055
+ captureBefore: z.nullable(z.string()).optional(),
2056
+ applicationFee: z.nullable(
2057
+ z.lazy(() => ListPaymentResponseApplicationFee$inboundSchema),
2058
+ ).optional(),
2059
+ routing: z.nullable(z.array(EntityPaymentRouteResponse$inboundSchema))
2060
+ .optional(),
2061
+ sequenceType: SequenceTypeResponse$inboundSchema,
2062
+ subscriptionId: z.nullable(z.string()).optional(),
2063
+ mandateId: z.nullable(z.string()).optional(),
2064
+ customerId: z.string().optional(),
2065
+ profileId: z.string(),
2066
+ settlementId: z.nullable(z.string()).optional(),
2067
+ orderId: z.nullable(z.string()).optional(),
2068
+ status: ListPaymentResponseStatus$inboundSchema,
2069
+ statusReason: z.nullable(StatusReason$inboundSchema).optional(),
2070
+ isCancelable: z.nullable(z.boolean()).optional(),
2071
+ details: z.nullable(z.lazy(() => ListPaymentResponseDetails$inboundSchema))
2072
+ .optional(),
2073
+ createdAt: z.string(),
2074
+ authorizedAt: z.nullable(z.string()).optional(),
2075
+ paidAt: z.nullable(z.string()).optional(),
2076
+ canceledAt: z.nullable(z.string()).optional(),
2077
+ expiresAt: z.nullable(z.string()).optional(),
2078
+ expiredAt: z.nullable(z.string()).optional(),
2079
+ failedAt: z.nullable(z.string()).optional(),
2080
+ _links: z.lazy(() => ListPaymentResponseLinks$inboundSchema),
2081
+ }).transform((v) => {
2082
+ return remap$(v, {
2083
+ "_links": "links",
2084
+ });
2085
+ });
2086
+ /** @internal */
2087
+ export type ListPaymentResponse$Outbound = {
2088
+ resource: string;
2089
+ id: string;
2090
+ mode: string;
2091
+ description: string;
2092
+ amount: Amount$Outbound;
2093
+ amountRefunded?: ListPaymentResponseAmountRefunded$Outbound | undefined;
2094
+ amountRemaining?: ListPaymentResponseAmountRemaining$Outbound | undefined;
2095
+ amountCaptured?: ListPaymentResponseAmountCaptured$Outbound | undefined;
2096
+ amountChargedBack?: ListPaymentResponseAmountChargedBack$Outbound | undefined;
2097
+ settlementAmount?: ListPaymentResponseSettlementAmount$Outbound | undefined;
2098
+ redirectUrl?: string | null | undefined;
2099
+ cancelUrl?: string | null | undefined;
2100
+ webhookUrl?: string | null | undefined;
2101
+ lines?: Array<ListPaymentResponseLine$Outbound> | null | undefined;
2102
+ billingAddress?: ListPaymentResponseBillingAddress$Outbound | undefined;
2103
+ shippingAddress?: PaymentAddress$Outbound | undefined;
2104
+ locale?: string | null | undefined;
2105
+ countryCode?: string | null | undefined;
2106
+ method?: string | null | undefined;
2107
+ restrictPaymentMethodsToCountry?: string | null | undefined;
2108
+ metadata?: Metadata$Outbound | null | undefined;
2109
+ captureMode?: string | null | undefined;
2110
+ captureDelay?: string | null | undefined;
2111
+ captureBefore?: string | null | undefined;
2112
+ applicationFee?:
2113
+ | ListPaymentResponseApplicationFee$Outbound
2114
+ | null
2115
+ | undefined;
2116
+ routing?: Array<EntityPaymentRouteResponse$Outbound> | null | undefined;
2117
+ sequenceType: string;
2118
+ subscriptionId?: string | null | undefined;
2119
+ mandateId?: string | null | undefined;
2120
+ customerId?: string | undefined;
2121
+ profileId: string;
2122
+ settlementId?: string | null | undefined;
2123
+ orderId?: string | null | undefined;
2124
+ status: string;
2125
+ statusReason?: StatusReason$Outbound | null | undefined;
2126
+ isCancelable?: boolean | null | undefined;
2127
+ details?: ListPaymentResponseDetails$Outbound | null | undefined;
2128
+ createdAt: string;
2129
+ authorizedAt?: string | null | undefined;
2130
+ paidAt?: string | null | undefined;
2131
+ canceledAt?: string | null | undefined;
2132
+ expiresAt?: string | null | undefined;
2133
+ expiredAt?: string | null | undefined;
2134
+ failedAt?: string | null | undefined;
2135
+ _links: ListPaymentResponseLinks$Outbound;
2136
+ };
2137
+
2138
+ /** @internal */
2139
+ export const ListPaymentResponse$outboundSchema: z.ZodType<
2140
+ ListPaymentResponse$Outbound,
2141
+ z.ZodTypeDef,
2142
+ ListPaymentResponse
2143
+ > = z.object({
2144
+ resource: z.string(),
2145
+ id: z.string(),
2146
+ mode: Mode$outboundSchema,
2147
+ description: z.string(),
2148
+ amount: Amount$outboundSchema,
2149
+ amountRefunded: z.lazy(() => ListPaymentResponseAmountRefunded$outboundSchema)
2150
+ .optional(),
2151
+ amountRemaining: z.lazy(() =>
2152
+ ListPaymentResponseAmountRemaining$outboundSchema
2153
+ ).optional(),
2154
+ amountCaptured: z.lazy(() => ListPaymentResponseAmountCaptured$outboundSchema)
2155
+ .optional(),
2156
+ amountChargedBack: z.lazy(() =>
2157
+ ListPaymentResponseAmountChargedBack$outboundSchema
2158
+ ).optional(),
2159
+ settlementAmount: z.lazy(() =>
2160
+ ListPaymentResponseSettlementAmount$outboundSchema
2161
+ ).optional(),
2162
+ redirectUrl: z.nullable(z.string()).optional(),
2163
+ cancelUrl: z.nullable(z.string()).optional(),
2164
+ webhookUrl: z.nullable(z.string()).optional(),
2165
+ lines: z.nullable(
2166
+ z.array(z.lazy(() => ListPaymentResponseLine$outboundSchema)),
2167
+ ).optional(),
2168
+ billingAddress: z.lazy(() => ListPaymentResponseBillingAddress$outboundSchema)
2169
+ .optional(),
2170
+ shippingAddress: PaymentAddress$outboundSchema.optional(),
2171
+ locale: z.nullable(LocaleResponse$outboundSchema).optional(),
2172
+ countryCode: z.nullable(z.string()).optional(),
2173
+ method: z.nullable(MethodResponse$outboundSchema).optional(),
2174
+ restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
2175
+ metadata: z.nullable(Metadata$outboundSchema).optional(),
2176
+ captureMode: z.nullable(CaptureModeResponse$outboundSchema).optional(),
2177
+ captureDelay: z.nullable(z.string()).optional(),
2178
+ captureBefore: z.nullable(z.string()).optional(),
2179
+ applicationFee: z.nullable(
2180
+ z.lazy(() => ListPaymentResponseApplicationFee$outboundSchema),
2181
+ ).optional(),
2182
+ routing: z.nullable(z.array(EntityPaymentRouteResponse$outboundSchema))
2183
+ .optional(),
2184
+ sequenceType: SequenceTypeResponse$outboundSchema,
2185
+ subscriptionId: z.nullable(z.string()).optional(),
2186
+ mandateId: z.nullable(z.string()).optional(),
2187
+ customerId: z.string().optional(),
2188
+ profileId: z.string(),
2189
+ settlementId: z.nullable(z.string()).optional(),
2190
+ orderId: z.nullable(z.string()).optional(),
2191
+ status: ListPaymentResponseStatus$outboundSchema,
2192
+ statusReason: z.nullable(StatusReason$outboundSchema).optional(),
2193
+ isCancelable: z.nullable(z.boolean()).optional(),
2194
+ details: z.nullable(z.lazy(() => ListPaymentResponseDetails$outboundSchema))
2195
+ .optional(),
2196
+ createdAt: z.string(),
2197
+ authorizedAt: z.nullable(z.string()).optional(),
2198
+ paidAt: z.nullable(z.string()).optional(),
2199
+ canceledAt: z.nullable(z.string()).optional(),
2200
+ expiresAt: z.nullable(z.string()).optional(),
2201
+ expiredAt: z.nullable(z.string()).optional(),
2202
+ failedAt: z.nullable(z.string()).optional(),
2203
+ links: z.lazy(() => ListPaymentResponseLinks$outboundSchema),
2204
+ }).transform((v) => {
2205
+ return remap$(v, {
2206
+ links: "_links",
2207
+ });
2208
+ });
2209
+
2210
+ export function listPaymentResponseToJSON(
2211
+ listPaymentResponse: ListPaymentResponse,
2212
+ ): string {
2213
+ return JSON.stringify(
2214
+ ListPaymentResponse$outboundSchema.parse(listPaymentResponse),
2215
+ );
2216
+ }
2217
+ export function listPaymentResponseFromJSON(
2218
+ jsonString: string,
2219
+ ): SafeParseResult<ListPaymentResponse, SDKValidationError> {
2220
+ return safeParse(
2221
+ jsonString,
2222
+ (x) => ListPaymentResponse$inboundSchema.parse(JSON.parse(x)),
2223
+ `Failed to parse 'ListPaymentResponse' from JSON`,
2224
+ );
2225
+ }