mollie-api-typescript 1.12.2 → 1.12.4

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 (231) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/lib/retries.js +7 -0
  4. package/dist/commonjs/lib/retries.js.map +1 -1
  5. package/dist/commonjs/models/captureresponse.d.ts +0 -36
  6. package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
  7. package/dist/commonjs/models/captureresponse.js +1 -11
  8. package/dist/commonjs/models/captureresponse.js.map +1 -1
  9. package/dist/commonjs/models/entitybalance.d.ts +0 -16
  10. package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
  11. package/dist/commonjs/models/entitybalance.js.map +1 -1
  12. package/dist/commonjs/models/entitychargeback.d.ts +0 -38
  13. package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
  14. package/dist/commonjs/models/entitychargeback.js +1 -11
  15. package/dist/commonjs/models/entitychargeback.js.map +1 -1
  16. package/dist/commonjs/models/entityinvoice.d.ts +0 -13
  17. package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
  18. package/dist/commonjs/models/entityinvoice.js.map +1 -1
  19. package/dist/commonjs/models/entitymethodget.d.ts +0 -3
  20. package/dist/commonjs/models/entitymethodget.d.ts.map +1 -1
  21. package/dist/commonjs/models/entitymethodget.js.map +1 -1
  22. package/dist/commonjs/models/entityrefundresponse.d.ts +0 -42
  23. package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
  24. package/dist/commonjs/models/entityrefundresponse.js +1 -11
  25. package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
  26. package/dist/commonjs/models/entitysettlement.d.ts +0 -3
  27. package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
  28. package/dist/commonjs/models/entitysettlement.js.map +1 -1
  29. package/dist/commonjs/models/index.d.ts +1 -0
  30. package/dist/commonjs/models/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/index.js +1 -0
  32. package/dist/commonjs/models/index.js.map +1 -1
  33. package/dist/commonjs/models/listcaptureresponse.d.ts +0 -36
  34. package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
  35. package/dist/commonjs/models/listcaptureresponse.js +1 -11
  36. package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
  37. package/dist/commonjs/models/listentitybalance.d.ts +0 -16
  38. package/dist/commonjs/models/listentitybalance.d.ts.map +1 -1
  39. package/dist/commonjs/models/listentitybalance.js.map +1 -1
  40. package/dist/commonjs/models/listentitychargeback.d.ts +0 -38
  41. package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -1
  42. package/dist/commonjs/models/listentitychargeback.js +1 -11
  43. package/dist/commonjs/models/listentitychargeback.js.map +1 -1
  44. package/dist/commonjs/models/listentityinvoice.d.ts +0 -13
  45. package/dist/commonjs/models/listentityinvoice.d.ts.map +1 -1
  46. package/dist/commonjs/models/listentityinvoice.js.map +1 -1
  47. package/dist/commonjs/models/listentitymethod.d.ts +0 -3
  48. package/dist/commonjs/models/listentitymethod.d.ts.map +1 -1
  49. package/dist/commonjs/models/listentitymethod.js.map +1 -1
  50. package/dist/commonjs/models/listentitymethodall.d.ts +0 -3
  51. package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -1
  52. package/dist/commonjs/models/listentitymethodall.js.map +1 -1
  53. package/dist/commonjs/models/listentityrefund.d.ts +0 -42
  54. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
  55. package/dist/commonjs/models/listentityrefund.js +1 -11
  56. package/dist/commonjs/models/listentityrefund.js.map +1 -1
  57. package/dist/commonjs/models/listentitysettlement.d.ts +0 -3
  58. package/dist/commonjs/models/listentitysettlement.d.ts.map +1 -1
  59. package/dist/commonjs/models/listentitysettlement.js.map +1 -1
  60. package/dist/commonjs/models/listpaymentresponse.d.ts +2 -404
  61. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  62. package/dist/commonjs/models/listpaymentresponse.js +3 -113
  63. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  64. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +0 -15
  65. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
  66. package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
  67. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +20 -20
  68. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
  69. package/dist/commonjs/models/listsettlementcaptureresponse.js +11 -11
  70. package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
  71. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +26 -26
  72. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -1
  73. package/dist/commonjs/models/listsettlementchargebackresponse.js +11 -11
  74. package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -1
  75. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +24 -392
  76. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  77. package/dist/commonjs/models/listsettlementpaymentresponse.js +13 -114
  78. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  79. package/dist/commonjs/models/listsettlementrefundresponse.d.ts +30 -30
  80. package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
  81. package/dist/commonjs/models/listsettlementrefundresponse.js +11 -11
  82. package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
  83. package/dist/commonjs/models/paymentdetails.d.ts +367 -0
  84. package/dist/commonjs/models/paymentdetails.d.ts.map +1 -0
  85. package/dist/commonjs/models/paymentdetails.js +144 -0
  86. package/dist/commonjs/models/paymentdetails.js.map +1 -0
  87. package/dist/commonjs/models/paymentrequest.d.ts +61 -26
  88. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  89. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  90. package/dist/commonjs/models/paymentresponse.d.ts +2 -404
  91. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  92. package/dist/commonjs/models/paymentresponse.js +3 -114
  93. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  94. package/dist/commonjs/models/salesinvoiceresponse.d.ts +0 -15
  95. package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
  96. package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
  97. package/dist/commonjs/models/statusreason.d.ts +59 -41
  98. package/dist/commonjs/models/statusreason.d.ts.map +1 -1
  99. package/dist/commonjs/models/statusreason.js +70 -42
  100. package/dist/commonjs/models/statusreason.js.map +1 -1
  101. package/dist/esm/lib/config.d.ts +3 -3
  102. package/dist/esm/lib/config.js +3 -3
  103. package/dist/esm/lib/retries.js +7 -0
  104. package/dist/esm/lib/retries.js.map +1 -1
  105. package/dist/esm/models/captureresponse.d.ts +0 -36
  106. package/dist/esm/models/captureresponse.d.ts.map +1 -1
  107. package/dist/esm/models/captureresponse.js +0 -9
  108. package/dist/esm/models/captureresponse.js.map +1 -1
  109. package/dist/esm/models/entitybalance.d.ts +0 -16
  110. package/dist/esm/models/entitybalance.d.ts.map +1 -1
  111. package/dist/esm/models/entitybalance.js.map +1 -1
  112. package/dist/esm/models/entitychargeback.d.ts +0 -38
  113. package/dist/esm/models/entitychargeback.d.ts.map +1 -1
  114. package/dist/esm/models/entitychargeback.js +0 -9
  115. package/dist/esm/models/entitychargeback.js.map +1 -1
  116. package/dist/esm/models/entityinvoice.d.ts +0 -13
  117. package/dist/esm/models/entityinvoice.d.ts.map +1 -1
  118. package/dist/esm/models/entityinvoice.js.map +1 -1
  119. package/dist/esm/models/entitymethodget.d.ts +0 -3
  120. package/dist/esm/models/entitymethodget.d.ts.map +1 -1
  121. package/dist/esm/models/entitymethodget.js.map +1 -1
  122. package/dist/esm/models/entityrefundresponse.d.ts +0 -42
  123. package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
  124. package/dist/esm/models/entityrefundresponse.js +0 -9
  125. package/dist/esm/models/entityrefundresponse.js.map +1 -1
  126. package/dist/esm/models/entitysettlement.d.ts +0 -3
  127. package/dist/esm/models/entitysettlement.d.ts.map +1 -1
  128. package/dist/esm/models/entitysettlement.js.map +1 -1
  129. package/dist/esm/models/index.d.ts +1 -0
  130. package/dist/esm/models/index.d.ts.map +1 -1
  131. package/dist/esm/models/index.js +1 -0
  132. package/dist/esm/models/index.js.map +1 -1
  133. package/dist/esm/models/listcaptureresponse.d.ts +0 -36
  134. package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
  135. package/dist/esm/models/listcaptureresponse.js +0 -9
  136. package/dist/esm/models/listcaptureresponse.js.map +1 -1
  137. package/dist/esm/models/listentitybalance.d.ts +0 -16
  138. package/dist/esm/models/listentitybalance.d.ts.map +1 -1
  139. package/dist/esm/models/listentitybalance.js.map +1 -1
  140. package/dist/esm/models/listentitychargeback.d.ts +0 -38
  141. package/dist/esm/models/listentitychargeback.d.ts.map +1 -1
  142. package/dist/esm/models/listentitychargeback.js +0 -9
  143. package/dist/esm/models/listentitychargeback.js.map +1 -1
  144. package/dist/esm/models/listentityinvoice.d.ts +0 -13
  145. package/dist/esm/models/listentityinvoice.d.ts.map +1 -1
  146. package/dist/esm/models/listentityinvoice.js.map +1 -1
  147. package/dist/esm/models/listentitymethod.d.ts +0 -3
  148. package/dist/esm/models/listentitymethod.d.ts.map +1 -1
  149. package/dist/esm/models/listentitymethod.js.map +1 -1
  150. package/dist/esm/models/listentitymethodall.d.ts +0 -3
  151. package/dist/esm/models/listentitymethodall.d.ts.map +1 -1
  152. package/dist/esm/models/listentitymethodall.js.map +1 -1
  153. package/dist/esm/models/listentityrefund.d.ts +0 -42
  154. package/dist/esm/models/listentityrefund.d.ts.map +1 -1
  155. package/dist/esm/models/listentityrefund.js +0 -9
  156. package/dist/esm/models/listentityrefund.js.map +1 -1
  157. package/dist/esm/models/listentitysettlement.d.ts +0 -3
  158. package/dist/esm/models/listentitysettlement.d.ts.map +1 -1
  159. package/dist/esm/models/listentitysettlement.js.map +1 -1
  160. package/dist/esm/models/listpaymentresponse.d.ts +2 -404
  161. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  162. package/dist/esm/models/listpaymentresponse.js +2 -108
  163. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  164. package/dist/esm/models/listsalesinvoiceresponse.d.ts +0 -15
  165. package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
  166. package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
  167. package/dist/esm/models/listsettlementcaptureresponse.d.ts +20 -20
  168. package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
  169. package/dist/esm/models/listsettlementcaptureresponse.js +9 -9
  170. package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
  171. package/dist/esm/models/listsettlementchargebackresponse.d.ts +26 -26
  172. package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -1
  173. package/dist/esm/models/listsettlementchargebackresponse.js +9 -9
  174. package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -1
  175. package/dist/esm/models/listsettlementpaymentresponse.d.ts +24 -392
  176. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  177. package/dist/esm/models/listsettlementpaymentresponse.js +11 -109
  178. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  179. package/dist/esm/models/listsettlementrefundresponse.d.ts +30 -30
  180. package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
  181. package/dist/esm/models/listsettlementrefundresponse.js +9 -9
  182. package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
  183. package/dist/esm/models/paymentdetails.d.ts +367 -0
  184. package/dist/esm/models/paymentdetails.d.ts.map +1 -0
  185. package/dist/esm/models/paymentdetails.js +105 -0
  186. package/dist/esm/models/paymentdetails.js.map +1 -0
  187. package/dist/esm/models/paymentrequest.d.ts +61 -26
  188. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  189. package/dist/esm/models/paymentrequest.js.map +1 -1
  190. package/dist/esm/models/paymentresponse.d.ts +2 -404
  191. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  192. package/dist/esm/models/paymentresponse.js +2 -109
  193. package/dist/esm/models/paymentresponse.js.map +1 -1
  194. package/dist/esm/models/salesinvoiceresponse.d.ts +0 -15
  195. package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
  196. package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
  197. package/dist/esm/models/statusreason.d.ts +59 -41
  198. package/dist/esm/models/statusreason.d.ts.map +1 -1
  199. package/dist/esm/models/statusreason.js +68 -41
  200. package/dist/esm/models/statusreason.js.map +1 -1
  201. package/jsr.json +1 -1
  202. package/package.json +1 -1
  203. package/src/lib/config.ts +3 -3
  204. package/src/lib/retries.ts +8 -0
  205. package/src/models/captureresponse.ts +0 -57
  206. package/src/models/entitybalance.ts +0 -16
  207. package/src/models/entitychargeback.ts +0 -59
  208. package/src/models/entityinvoice.ts +0 -13
  209. package/src/models/entitymethodget.ts +0 -3
  210. package/src/models/entityrefundresponse.ts +0 -64
  211. package/src/models/entitysettlement.ts +0 -3
  212. package/src/models/index.ts +1 -0
  213. package/src/models/listcaptureresponse.ts +0 -58
  214. package/src/models/listentitybalance.ts +0 -16
  215. package/src/models/listentitychargeback.ts +0 -60
  216. package/src/models/listentityinvoice.ts +0 -13
  217. package/src/models/listentitymethod.ts +0 -3
  218. package/src/models/listentitymethodall.ts +0 -3
  219. package/src/models/listentityrefund.ts +0 -63
  220. package/src/models/listentitysettlement.ts +0 -3
  221. package/src/models/listpaymentresponse.ts +5 -579
  222. package/src/models/listsalesinvoiceresponse.ts +0 -15
  223. package/src/models/listsettlementcaptureresponse.ts +47 -47
  224. package/src/models/listsettlementchargebackresponse.ts +59 -59
  225. package/src/models/listsettlementpaymentresponse.ts +55 -579
  226. package/src/models/listsettlementrefundresponse.ts +61 -61
  227. package/src/models/paymentdetails.ts +521 -0
  228. package/src/models/paymentrequest.ts +61 -26
  229. package/src/models/paymentresponse.ts +5 -577
  230. package/src/models/salesinvoiceresponse.ts +0 -15
  231. package/src/models/statusreason.ts +121 -44
@@ -195,9 +195,6 @@ export type ListEntitySettlement = {
195
195
  */
196
196
  settledAt?: string | null | undefined;
197
197
  status: ListEntitySettlementStatus;
198
- /**
199
- * The total amount of the settlement.
200
- */
201
198
  amount: ListEntitySettlementAmount;
202
199
  /**
203
200
  * The balance token that the settlement was settled to.
@@ -9,12 +9,7 @@ import { safeParse } from "../lib/schemas.js";
9
9
  import * as openEnums from "../types/enums.js";
10
10
  import { OpenEnum } from "../types/enums.js";
11
11
  import { Result as SafeParseResult } from "../types/fp.js";
12
- import { RFCDate } from "../types/rfcdate.js";
13
12
  import { Amount, Amount$inboundSchema } from "./amount.js";
14
- import {
15
- AmountNullable,
16
- AmountNullable$inboundSchema,
17
- } from "./amountnullable.js";
18
13
  import {
19
14
  CaptureModeResponse,
20
15
  CaptureModeResponse$inboundSchema,
@@ -43,45 +38,9 @@ import {
43
38
  PaymentAddress$inboundSchema,
44
39
  } from "./paymentaddress.js";
45
40
  import {
46
- PaymentDetailsCardAuditionResponse,
47
- PaymentDetailsCardAuditionResponse$inboundSchema,
48
- } from "./paymentdetailscardauditionresponse.js";
49
- import {
50
- PaymentDetailsCardFundingResponse,
51
- PaymentDetailsCardFundingResponse$inboundSchema,
52
- } from "./paymentdetailscardfundingresponse.js";
53
- import {
54
- PaymentDetailsCardLabelResponse,
55
- PaymentDetailsCardLabelResponse$inboundSchema,
56
- } from "./paymentdetailscardlabelresponse.js";
57
- import {
58
- PaymentDetailsCardSecurityResponse,
59
- PaymentDetailsCardSecurityResponse$inboundSchema,
60
- } from "./paymentdetailscardsecurityresponse.js";
61
- import {
62
- PaymentDetailsFailureReasonResponse,
63
- PaymentDetailsFailureReasonResponse$inboundSchema,
64
- } from "./paymentdetailsfailurereasonresponse.js";
65
- import {
66
- PaymentDetailsFeeRegionResponse,
67
- PaymentDetailsFeeRegionResponse$inboundSchema,
68
- } from "./paymentdetailsfeeregionresponse.js";
69
- import {
70
- PaymentDetailsReceiptCardReadMethodResponse,
71
- PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
72
- } from "./paymentdetailsreceiptcardreadmethodresponse.js";
73
- import {
74
- PaymentDetailsReceiptCardVerificationMethodResponse,
75
- PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
76
- } from "./paymentdetailsreceiptcardverificationmethodresponse.js";
77
- import {
78
- PaymentDetailsSellerProtectionResponse,
79
- PaymentDetailsSellerProtectionResponse$inboundSchema,
80
- } from "./paymentdetailssellerprotectionresponse.js";
81
- import {
82
- PaymentDetailsWalletResponse,
83
- PaymentDetailsWalletResponse$inboundSchema,
84
- } from "./paymentdetailswalletresponse.js";
41
+ PaymentDetails,
42
+ PaymentDetails$inboundSchema,
43
+ } from "./paymentdetails.js";
85
44
  import {
86
45
  PaymentLineTypeResponse,
87
46
  PaymentLineTypeResponse$inboundSchema,
@@ -161,31 +120,6 @@ export type ListPaymentResponseAmountChargedBack = {
161
120
  value: string;
162
121
  };
163
122
 
164
- /**
165
- * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
166
- *
167
- * @remarks
168
- * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
169
- *
170
- * The amount that will be settled to your account, converted to the currency your account is settled in. Only
171
- * available once the payment is finalized and the final settlement amount has been determined.
172
- *
173
- * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
174
- * Mollie, this field is omitted from the response.
175
- *
176
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
177
- */
178
- export type ListPaymentResponseSettlementAmount = {
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
123
  export type ListPaymentResponseLine = {
190
124
  /**
191
125
  * The type of product purchased. For example, a physical or a digital product.
@@ -405,328 +339,6 @@ export type ListPaymentResponseStatus = OpenEnum<
405
339
  typeof ListPaymentResponseStatus
406
340
  >;
407
341
 
408
- /**
409
- * The Point of sale receipt object.
410
- */
411
- export type ListPaymentResponseReceipt = {
412
- /**
413
- * A unique code provided by the cardholder’s bank to confirm that the transaction was successfully approved.
414
- */
415
- authorizationCode?: string | null | undefined;
416
- /**
417
- * The unique number that identifies a specific payment application on a chip card.
418
- */
419
- applicationIdentifier?: string | null | undefined;
420
- /**
421
- * The method by which the card was read by the terminal.
422
- */
423
- cardReadMethod?:
424
- | PaymentDetailsReceiptCardReadMethodResponse
425
- | null
426
- | undefined;
427
- /**
428
- * The method used to verify the cardholder's identity.
429
- */
430
- cardVerificationMethod?:
431
- | PaymentDetailsReceiptCardVerificationMethodResponse
432
- | null
433
- | undefined;
434
- };
435
-
436
- /**
437
- * Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
438
- *
439
- * @remarks
440
- * the QR code details will be available in this object.
441
- *
442
- * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
443
- * Bancontact QR payments can be completed by the customer using the Bancontact app.
444
- */
445
- export type ListPaymentResponseQrCode = {
446
- /**
447
- * The height of the QR code image in pixels.
448
- */
449
- height?: number | undefined;
450
- /**
451
- * The width of the QR code image in pixels.
452
- */
453
- width?: number | undefined;
454
- /**
455
- * The URL to the QR code image. The image is a PNG file, and can be displayed directly in the browser or
456
- *
457
- * @remarks
458
- * downloaded.
459
- */
460
- src?: string | undefined;
461
- };
462
-
463
- /**
464
- * An object containing payment details collected during the payment process. For example, details may include the
465
- *
466
- * @remarks
467
- * customer's card or bank details and a payment reference. For the full list of details, please refer to the
468
- * [method-specific parameters](extra-payment-parameters) guide.
469
- */
470
- export type ListPaymentResponseDetails = {
471
- /**
472
- * The customer's name, if made available by the payment method. For card payments, refer to details.cardHolder.
473
- */
474
- consumerName?: string | null | undefined;
475
- /**
476
- * The customer's account reference.
477
- *
478
- * @remarks
479
- *
480
- * For banking-based payment methods — such as iDEAL — this is normally either an IBAN or a domestic bank account
481
- * number.
482
- *
483
- * For PayPal, the account reference is an email address.
484
- *
485
- * For card and Bancontact payments, refer to details.cardNumber.
486
- */
487
- consumerAccount?: string | null | undefined;
488
- /**
489
- * The BIC of the customer's bank account, if applicable.
490
- */
491
- consumerBic?: string | null | undefined;
492
- /**
493
- * For wallet payment methods — such as Apple Pay and PayPal — the shipping address is often already known by the
494
- *
495
- * @remarks
496
- * wallet provider. In these cases the shipping address may be available as a payment detail.
497
- */
498
- shippingAddress?: { [k: string]: any } | null | undefined;
499
- /**
500
- * For bancontact, it will be the customer's masked card number. For cards, it will be the last 4-digit of the
501
- *
502
- * @remarks
503
- * PAN. For Point-of-sale, it will be the the last 4 digits of the customer's masked card number.
504
- */
505
- cardNumber?: string | null | undefined;
506
- /**
507
- * The name of the bank that the customer will need to make the bank transfer payment towards.
508
- */
509
- bankName?: string | undefined;
510
- /**
511
- * The bank account number the customer will need to make the bank transfer payment towards.
512
- */
513
- bankAccount?: string | undefined;
514
- /**
515
- * The BIC of the bank the customer will need to make the bank transfer payment towards.
516
- */
517
- bankBic?: string | undefined;
518
- /**
519
- * The Mollie-generated reference the customer needs to use when transfering the amount. Do not apply any
520
- *
521
- * @remarks
522
- * formatting here; show it to the customer as-is.
523
- */
524
- transferReference?: string | null | undefined;
525
- /**
526
- * A unique fingerprint for a specific card. Can be used to identify returning customers.
527
- *
528
- * @remarks
529
- *
530
- * In the case of Point-of-sale payments, it's a unique identifier assigned to a cardholder's payment account,
531
- * linking multiple transactions from wallets and physical card to a single account, also across payment methods
532
- * or when the card is reissued.
533
- */
534
- cardFingerprint?: string | null | undefined;
535
- /**
536
- * The customer's name as shown on their card.
537
- */
538
- cardHolder?: string | null | undefined;
539
- /**
540
- * The card's target audience, if known.
541
- */
542
- cardAudition?: PaymentDetailsCardAuditionResponse | null | undefined;
543
- /**
544
- * The card's label, if known.
545
- */
546
- cardLabel?: PaymentDetailsCardLabelResponse | null | undefined;
547
- /**
548
- * The ISO 3166-1 alpha-2 country code of the country the card was issued in.
549
- */
550
- cardCountryCode?: string | null | undefined;
551
- /**
552
- * The expiry date (MM/YY) of the card as displayed on the card.
553
- */
554
- cardExpiryDate?: string | null | undefined;
555
- /**
556
- * The card type.
557
- */
558
- cardFunding?: PaymentDetailsCardFundingResponse | null | undefined;
559
- /**
560
- * The level of security applied during card processing.
561
- */
562
- cardSecurity?: PaymentDetailsCardSecurityResponse | null | undefined;
563
- /**
564
- * The applicable card fee region.
565
- */
566
- feeRegion?: PaymentDetailsFeeRegionResponse | null | undefined;
567
- /**
568
- * The first 6 and last 4 digits of the card number.
569
- */
570
- cardMaskedNumber?: string | null | undefined;
571
- /**
572
- * The outcome of authentication attempted on transactions enforced by 3DS (ie valid only for oneoff and first).
573
- */
574
- card3dsEci?: string | null | undefined;
575
- /**
576
- * The first 6 digit of the card bank identification number.
577
- */
578
- cardBin?: string | null | undefined;
579
- /**
580
- * The issuer of the Card.
581
- */
582
- cardIssuer?: string | null | undefined;
583
- /**
584
- * A failure code to help understand why the payment failed.
585
- */
586
- failureReason?: PaymentDetailsFailureReasonResponse | null | undefined;
587
- /**
588
- * A human-friendly failure message that can be shown to the customer. The message is translated in accordance
589
- *
590
- * @remarks
591
- * with the payment's locale setting.
592
- */
593
- failureMessage?: string | null | undefined;
594
- /**
595
- * The wallet used when creating the payment.
596
- */
597
- wallet?: PaymentDetailsWalletResponse | null | undefined;
598
- /**
599
- * PayPal's reference for the payment.
600
- */
601
- paypalReference?: string | null | undefined;
602
- /**
603
- * ID of the customer's PayPal account.
604
- */
605
- paypalPayerId?: string | null | undefined;
606
- /**
607
- * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
608
- *
609
- * @remarks
610
- * payments, and if the information is made available by PayPal.
611
- */
612
- sellerProtection?: PaymentDetailsSellerProtectionResponse | null | undefined;
613
- /**
614
- * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
615
- */
616
- paypalFee?: AmountNullable | null | undefined;
617
- /**
618
- * The paysafecard customer reference either provided via the API or otherwise auto-generated by Mollie.
619
- */
620
- customerReference?: string | undefined;
621
- /**
622
- * The ID of the terminal device where the payment took place on.
623
- */
624
- terminalId?: string | undefined;
625
- /**
626
- * The first 6 digits & last 4 digits of the customer's masked card number.
627
- */
628
- maskedNumber?: string | null | undefined;
629
- /**
630
- * The Point of sale receipt object.
631
- */
632
- receipt?: ListPaymentResponseReceipt | undefined;
633
- /**
634
- * The creditor identifier indicates who is authorized to execute the payment. In this case, it is a
635
- *
636
- * @remarks
637
- * reference to Mollie.
638
- */
639
- creditorIdentifier?: string | null | undefined;
640
- /**
641
- * Estimated date the payment is debited from the customer's bank account, in YYYY-MM-DD format.
642
- */
643
- dueDate?: RFCDate | null | undefined;
644
- /**
645
- * Date the payment has been signed by the customer, in YYYY-MM-DD format. Only available if the payment
646
- *
647
- * @remarks
648
- * has been signed.
649
- */
650
- signatureDate?: RFCDate | null | undefined;
651
- /**
652
- * The official reason why this payment has failed. A detailed description of each reason is available on the
653
- *
654
- * @remarks
655
- * website of the European Payments Council.
656
- */
657
- bankReasonCode?: string | null | undefined;
658
- /**
659
- * A human-friendly description of the failure reason.
660
- */
661
- bankReason?: string | null | undefined;
662
- /**
663
- * The end-to-end identifier you provided in the batch file.
664
- */
665
- endToEndIdentifier?: string | null | undefined;
666
- /**
667
- * The mandate reference you provided in the batch file.
668
- */
669
- mandateReference?: string | null | undefined;
670
- /**
671
- * The batch reference you provided in the batch file.
672
- */
673
- batchReference?: string | null | undefined;
674
- /**
675
- * The file reference you provided in the batch file.
676
- */
677
- fileReference?: string | null | undefined;
678
- /**
679
- * Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
680
- *
681
- * @remarks
682
- * the QR code details will be available in this object.
683
- *
684
- * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
685
- * Bancontact QR payments can be completed by the customer using the Bancontact app.
686
- */
687
- qrCode?: ListPaymentResponseQrCode | undefined;
688
- /**
689
- * For payments with gift cards: the masked gift card number of the first gift card applied to the payment.
690
- */
691
- voucherNumber?: string | undefined;
692
- /**
693
- * An array of detail objects for each gift card that was used on this payment, if any.
694
- */
695
- giftcards?: Array<{ [k: string]: any }> | undefined;
696
- /**
697
- * For payments with vouchers: the brand name of the first voucher applied.
698
- */
699
- issuer?: string | undefined;
700
- /**
701
- * An array of detail objects for each voucher that was used on this payment, if any.
702
- */
703
- vouchers?: Array<{ [k: string]: any }> | undefined;
704
- /**
705
- * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
706
- */
707
- remainderAmount?: Amount | undefined;
708
- /**
709
- * The payment method used to pay the remainder amount, after all gift cards or vouchers were applied.
710
- */
711
- remainderMethod?: string | undefined;
712
- /**
713
- * Optional include. The full payment method details of the remainder payment.
714
- */
715
- remainderDetails?: { [k: string]: any } | undefined;
716
- /**
717
- * Multibanco payment reference of the transaction
718
- */
719
- multibancoReference?: string | null | undefined;
720
- /**
721
- * Multibanco entity reference of the transaction
722
- */
723
- multibancoEntity?: string | null | undefined;
724
- /**
725
- * Bizum payment reference of the transaction
726
- */
727
- bizumReference?: string | null | undefined;
728
- };
729
-
730
342
  /**
731
343
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
732
344
  */
@@ -831,44 +443,10 @@ export type ListPaymentResponse = {
831
443
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
832
444
  */
833
445
  amount: Amount;
834
- /**
835
- * The total amount that is already refunded. Only available when refunds are available for this payment. For some
836
- *
837
- * @remarks
838
- * payment methods, this amount may be higher than the payment amount, for example to allow reimbursement of the
839
- * costs for a return shipment to the customer.
840
- */
841
446
  amountRefunded?: ListPaymentResponseAmountRefunded | undefined;
842
- /**
843
- * The remaining amount that can be refunded. Only available when refunds are available for this payment.
844
- */
845
447
  amountRemaining?: ListPaymentResponseAmountRemaining | undefined;
846
- /**
847
- * The total amount that is already captured for this payment. Only available when this payment supports captures.
848
- */
849
448
  amountCaptured?: ListPaymentResponseAmountCaptured | undefined;
850
- /**
851
- * The total amount that was charged back for this payment. Only available when the total charged back amount is not
852
- *
853
- * @remarks
854
- * zero.
855
- */
856
449
  amountChargedBack?: ListPaymentResponseAmountChargedBack | undefined;
857
- /**
858
- * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
859
- *
860
- * @remarks
861
- * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
862
- *
863
- * The amount that will be settled to your account, converted to the currency your account is settled in. Only
864
- * available once the payment is finalized and the final settlement amount has been determined.
865
- *
866
- * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
867
- * Mollie, this field is omitted from the response.
868
- *
869
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
870
- */
871
- settlementAmount?: ListPaymentResponseSettlementAmount | undefined;
872
450
  /**
873
451
  * The URL your customer will be redirected to after the payment process.
874
452
  *
@@ -1099,7 +677,7 @@ export type ListPaymentResponse = {
1099
677
  * customer's card or bank details and a payment reference. For the full list of details, please refer to the
1100
678
  * [method-specific parameters](extra-payment-parameters) guide.
1101
679
  */
1102
- details?: ListPaymentResponseDetails | null | undefined;
680
+ details?: PaymentDetails | null | undefined;
1103
681
  /**
1104
682
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
1105
683
  */
@@ -1234,27 +812,6 @@ export function listPaymentResponseAmountChargedBackFromJSON(
1234
812
  );
1235
813
  }
1236
814
 
1237
- /** @internal */
1238
- export const ListPaymentResponseSettlementAmount$inboundSchema: z.ZodType<
1239
- ListPaymentResponseSettlementAmount,
1240
- z.ZodTypeDef,
1241
- unknown
1242
- > = z.object({
1243
- currency: z.string(),
1244
- value: z.string(),
1245
- });
1246
-
1247
- export function listPaymentResponseSettlementAmountFromJSON(
1248
- jsonString: string,
1249
- ): SafeParseResult<ListPaymentResponseSettlementAmount, SDKValidationError> {
1250
- return safeParse(
1251
- jsonString,
1252
- (x) =>
1253
- ListPaymentResponseSettlementAmount$inboundSchema.parse(JSON.parse(x)),
1254
- `Failed to parse 'ListPaymentResponseSettlementAmount' from JSON`,
1255
- );
1256
- }
1257
-
1258
815
  /** @internal */
1259
816
  export const ListPaymentResponseLine$inboundSchema: z.ZodType<
1260
817
  ListPaymentResponseLine,
@@ -1344,133 +901,6 @@ export const ListPaymentResponseStatus$inboundSchema: z.ZodType<
1344
901
  unknown
1345
902
  > = openEnums.inboundSchema(ListPaymentResponseStatus);
1346
903
 
1347
- /** @internal */
1348
- export const ListPaymentResponseReceipt$inboundSchema: z.ZodType<
1349
- ListPaymentResponseReceipt,
1350
- z.ZodTypeDef,
1351
- unknown
1352
- > = z.object({
1353
- authorizationCode: z.nullable(z.string()).optional(),
1354
- applicationIdentifier: z.nullable(z.string()).optional(),
1355
- cardReadMethod: z.nullable(
1356
- PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
1357
- ).optional(),
1358
- cardVerificationMethod: z.nullable(
1359
- PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
1360
- ).optional(),
1361
- });
1362
-
1363
- export function listPaymentResponseReceiptFromJSON(
1364
- jsonString: string,
1365
- ): SafeParseResult<ListPaymentResponseReceipt, SDKValidationError> {
1366
- return safeParse(
1367
- jsonString,
1368
- (x) => ListPaymentResponseReceipt$inboundSchema.parse(JSON.parse(x)),
1369
- `Failed to parse 'ListPaymentResponseReceipt' from JSON`,
1370
- );
1371
- }
1372
-
1373
- /** @internal */
1374
- export const ListPaymentResponseQrCode$inboundSchema: z.ZodType<
1375
- ListPaymentResponseQrCode,
1376
- z.ZodTypeDef,
1377
- unknown
1378
- > = z.object({
1379
- height: z.number().int().optional(),
1380
- width: z.number().int().optional(),
1381
- src: z.string().optional(),
1382
- });
1383
-
1384
- export function listPaymentResponseQrCodeFromJSON(
1385
- jsonString: string,
1386
- ): SafeParseResult<ListPaymentResponseQrCode, SDKValidationError> {
1387
- return safeParse(
1388
- jsonString,
1389
- (x) => ListPaymentResponseQrCode$inboundSchema.parse(JSON.parse(x)),
1390
- `Failed to parse 'ListPaymentResponseQrCode' from JSON`,
1391
- );
1392
- }
1393
-
1394
- /** @internal */
1395
- export const ListPaymentResponseDetails$inboundSchema: z.ZodType<
1396
- ListPaymentResponseDetails,
1397
- z.ZodTypeDef,
1398
- unknown
1399
- > = z.object({
1400
- consumerName: z.nullable(z.string()).optional(),
1401
- consumerAccount: z.nullable(z.string()).optional(),
1402
- consumerBic: z.nullable(z.string()).optional(),
1403
- shippingAddress: z.nullable(z.record(z.any())).optional(),
1404
- cardNumber: z.nullable(z.string()).optional(),
1405
- bankName: z.string().optional(),
1406
- bankAccount: z.string().optional(),
1407
- bankBic: z.string().optional(),
1408
- transferReference: z.nullable(z.string()).optional(),
1409
- cardFingerprint: z.nullable(z.string()).optional(),
1410
- cardHolder: z.nullable(z.string()).optional(),
1411
- cardAudition: z.nullable(PaymentDetailsCardAuditionResponse$inboundSchema)
1412
- .optional(),
1413
- cardLabel: z.nullable(PaymentDetailsCardLabelResponse$inboundSchema)
1414
- .optional(),
1415
- cardCountryCode: z.nullable(z.string()).optional(),
1416
- cardExpiryDate: z.nullable(z.string()).optional(),
1417
- cardFunding: z.nullable(PaymentDetailsCardFundingResponse$inboundSchema)
1418
- .optional(),
1419
- cardSecurity: z.nullable(PaymentDetailsCardSecurityResponse$inboundSchema)
1420
- .optional(),
1421
- feeRegion: z.nullable(PaymentDetailsFeeRegionResponse$inboundSchema)
1422
- .optional(),
1423
- cardMaskedNumber: z.nullable(z.string()).optional(),
1424
- card3dsEci: z.nullable(z.string()).optional(),
1425
- cardBin: z.nullable(z.string()).optional(),
1426
- cardIssuer: z.nullable(z.string()).optional(),
1427
- failureReason: z.nullable(PaymentDetailsFailureReasonResponse$inboundSchema)
1428
- .optional(),
1429
- failureMessage: z.nullable(z.string()).optional(),
1430
- wallet: z.nullable(PaymentDetailsWalletResponse$inboundSchema).optional(),
1431
- paypalReference: z.nullable(z.string()).optional(),
1432
- paypalPayerId: z.nullable(z.string()).optional(),
1433
- sellerProtection: z.nullable(
1434
- PaymentDetailsSellerProtectionResponse$inboundSchema,
1435
- ).optional(),
1436
- paypalFee: z.nullable(AmountNullable$inboundSchema).optional(),
1437
- customerReference: z.string().optional(),
1438
- terminalId: z.string().optional(),
1439
- maskedNumber: z.nullable(z.string()).optional(),
1440
- receipt: z.lazy(() => ListPaymentResponseReceipt$inboundSchema).optional(),
1441
- creditorIdentifier: z.nullable(z.string()).optional(),
1442
- dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
1443
- signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
1444
- .optional(),
1445
- bankReasonCode: z.nullable(z.string()).optional(),
1446
- bankReason: z.nullable(z.string()).optional(),
1447
- endToEndIdentifier: z.nullable(z.string()).optional(),
1448
- mandateReference: z.nullable(z.string()).optional(),
1449
- batchReference: z.nullable(z.string()).optional(),
1450
- fileReference: z.nullable(z.string()).optional(),
1451
- qrCode: z.lazy(() => ListPaymentResponseQrCode$inboundSchema).optional(),
1452
- voucherNumber: z.string().optional(),
1453
- giftcards: z.array(z.record(z.any())).optional(),
1454
- issuer: z.string().optional(),
1455
- vouchers: z.array(z.record(z.any())).optional(),
1456
- remainderAmount: Amount$inboundSchema.optional(),
1457
- remainderMethod: z.string().optional(),
1458
- remainderDetails: z.record(z.any()).optional(),
1459
- multibancoReference: z.nullable(z.string()).optional(),
1460
- multibancoEntity: z.nullable(z.string()).optional(),
1461
- bizumReference: z.nullable(z.string()).optional(),
1462
- });
1463
-
1464
- export function listPaymentResponseDetailsFromJSON(
1465
- jsonString: string,
1466
- ): SafeParseResult<ListPaymentResponseDetails, SDKValidationError> {
1467
- return safeParse(
1468
- jsonString,
1469
- (x) => ListPaymentResponseDetails$inboundSchema.parse(JSON.parse(x)),
1470
- `Failed to parse 'ListPaymentResponseDetails' from JSON`,
1471
- );
1472
- }
1473
-
1474
904
  /** @internal */
1475
905
  export const ListPaymentResponseLinks$inboundSchema: z.ZodType<
1476
906
  ListPaymentResponseLinks,
@@ -1526,9 +956,6 @@ export const ListPaymentResponse$inboundSchema: z.ZodType<
1526
956
  amountChargedBack: z.lazy(() =>
1527
957
  ListPaymentResponseAmountChargedBack$inboundSchema
1528
958
  ).optional(),
1529
- settlementAmount: z.lazy(() =>
1530
- ListPaymentResponseSettlementAmount$inboundSchema
1531
- ).optional(),
1532
959
  redirectUrl: z.nullable(z.string()).optional(),
1533
960
  cancelUrl: z.nullable(z.string()).optional(),
1534
961
  webhookUrl: z.nullable(z.string()).optional(),
@@ -1561,8 +988,7 @@ export const ListPaymentResponse$inboundSchema: z.ZodType<
1561
988
  status: ListPaymentResponseStatus$inboundSchema,
1562
989
  statusReason: z.nullable(StatusReason$inboundSchema).optional(),
1563
990
  isCancelable: z.nullable(z.boolean()).optional(),
1564
- details: z.nullable(z.lazy(() => ListPaymentResponseDetails$inboundSchema))
1565
- .optional(),
991
+ details: z.nullable(PaymentDetails$inboundSchema).optional(),
1566
992
  createdAt: z.string(),
1567
993
  authorizedAt: z.nullable(z.string()).optional(),
1568
994
  paidAt: z.nullable(z.string()).optional(),
@@ -266,25 +266,10 @@ export type ListSalesInvoiceResponse = {
266
266
  * the recipient is also located in one of these countries.
267
267
  */
268
268
  isEInvoice?: boolean | undefined;
269
- /**
270
- * The amount that is left to be paid.
271
- */
272
269
  amountDue?: ListSalesInvoiceResponseAmountDue | undefined;
273
- /**
274
- * The total amount without VAT before discounts.
275
- */
276
270
  subtotalAmount?: ListSalesInvoiceResponseSubtotalAmount | undefined;
277
- /**
278
- * The total amount with VAT.
279
- */
280
271
  totalAmount?: ListSalesInvoiceResponseTotalAmount | undefined;
281
- /**
282
- * The total VAT amount.
283
- */
284
272
  totalVatAmount?: ListSalesInvoiceResponseTotalVatAmount | undefined;
285
- /**
286
- * The total amount without VAT after discounts.
287
- */
288
273
  discountedSubtotalAmount?:
289
274
  | ListSalesInvoiceResponseDiscountedSubtotalAmount
290
275
  | undefined;