mollie-api-typescript 1.6.5 → 1.6.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 (112) 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/models/captureresponse.d.ts +12 -10
  4. package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
  5. package/dist/commonjs/models/captureresponse.js.map +1 -1
  6. package/dist/commonjs/models/entitychargeback.d.ts +12 -12
  7. package/dist/commonjs/models/entityrefundresponse.d.ts +14 -20
  8. package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
  9. package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
  10. package/dist/commonjs/models/index.d.ts +1 -0
  11. package/dist/commonjs/models/index.d.ts.map +1 -1
  12. package/dist/commonjs/models/index.js +1 -0
  13. package/dist/commonjs/models/index.js.map +1 -1
  14. package/dist/commonjs/models/listcaptureresponse.d.ts +12 -10
  15. package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
  16. package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
  17. package/dist/commonjs/models/listentitychargeback.d.ts +12 -12
  18. package/dist/commonjs/models/listentityrefund.d.ts +14 -20
  19. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
  20. package/dist/commonjs/models/listentityrefund.js.map +1 -1
  21. package/dist/commonjs/models/listpaymentresponse.d.ts +16 -12
  22. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  23. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  24. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +2 -16
  25. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
  26. package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
  27. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +127 -0
  28. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -0
  29. package/dist/commonjs/models/listsettlementchargebackresponse.js +98 -0
  30. package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -0
  31. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +6 -14
  32. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  33. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  34. package/dist/commonjs/models/listsettlementrefundresponse.d.ts +6 -24
  35. package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
  36. package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
  37. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +1 -1
  38. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/listsettlementchargebacks.js +1 -1
  40. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  41. package/dist/commonjs/models/paymentresponse.d.ts +16 -12
  42. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  43. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  44. package/dist/commonjs/models/statusreason.d.ts +3 -3
  45. package/dist/commonjs/models/statusreason.d.ts.map +1 -1
  46. package/dist/commonjs/models/statusreason.js +2 -1
  47. package/dist/commonjs/models/statusreason.js.map +1 -1
  48. package/dist/esm/lib/config.d.ts +3 -3
  49. package/dist/esm/lib/config.js +3 -3
  50. package/dist/esm/models/captureresponse.d.ts +12 -10
  51. package/dist/esm/models/captureresponse.d.ts.map +1 -1
  52. package/dist/esm/models/captureresponse.js.map +1 -1
  53. package/dist/esm/models/entitychargeback.d.ts +12 -12
  54. package/dist/esm/models/entityrefundresponse.d.ts +14 -20
  55. package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
  56. package/dist/esm/models/entityrefundresponse.js.map +1 -1
  57. package/dist/esm/models/index.d.ts +1 -0
  58. package/dist/esm/models/index.d.ts.map +1 -1
  59. package/dist/esm/models/index.js +1 -0
  60. package/dist/esm/models/index.js.map +1 -1
  61. package/dist/esm/models/listcaptureresponse.d.ts +12 -10
  62. package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
  63. package/dist/esm/models/listcaptureresponse.js.map +1 -1
  64. package/dist/esm/models/listentitychargeback.d.ts +12 -12
  65. package/dist/esm/models/listentityrefund.d.ts +14 -20
  66. package/dist/esm/models/listentityrefund.d.ts.map +1 -1
  67. package/dist/esm/models/listentityrefund.js.map +1 -1
  68. package/dist/esm/models/listpaymentresponse.d.ts +16 -12
  69. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  70. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  71. package/dist/esm/models/listsettlementcaptureresponse.d.ts +2 -16
  72. package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
  73. package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
  74. package/dist/esm/models/listsettlementchargebackresponse.d.ts +127 -0
  75. package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -0
  76. package/dist/esm/models/listsettlementchargebackresponse.js +58 -0
  77. package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -0
  78. package/dist/esm/models/listsettlementpaymentresponse.d.ts +6 -14
  79. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  80. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  81. package/dist/esm/models/listsettlementrefundresponse.d.ts +6 -24
  82. package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
  83. package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
  84. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +1 -1
  85. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  86. package/dist/esm/models/operations/listsettlementchargebacks.js +1 -1
  87. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  88. package/dist/esm/models/paymentresponse.d.ts +16 -12
  89. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  90. package/dist/esm/models/paymentresponse.js.map +1 -1
  91. package/dist/esm/models/statusreason.d.ts +3 -3
  92. package/dist/esm/models/statusreason.d.ts.map +1 -1
  93. package/dist/esm/models/statusreason.js +2 -1
  94. package/dist/esm/models/statusreason.js.map +1 -1
  95. package/jsr.json +1 -1
  96. package/package.json +1 -1
  97. package/src/lib/config.ts +3 -3
  98. package/src/models/captureresponse.ts +12 -10
  99. package/src/models/entitychargeback.ts +12 -12
  100. package/src/models/entityrefundresponse.ts +14 -20
  101. package/src/models/index.ts +1 -0
  102. package/src/models/listcaptureresponse.ts +12 -10
  103. package/src/models/listentitychargeback.ts +12 -12
  104. package/src/models/listentityrefund.ts +14 -20
  105. package/src/models/listpaymentresponse.ts +16 -12
  106. package/src/models/listsettlementcaptureresponse.ts +2 -16
  107. package/src/models/listsettlementchargebackresponse.ts +240 -0
  108. package/src/models/listsettlementpaymentresponse.ts +6 -14
  109. package/src/models/listsettlementrefundresponse.ts +6 -24
  110. package/src/models/operations/listsettlementchargebacks.ts +2 -2
  111. package/src/models/paymentresponse.ts +16 -12
  112. package/src/models/statusreason.ts +5 -5
@@ -21,21 +21,18 @@ import { Url, Url$inboundSchema } from "./url.js";
21
21
  import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
22
22
 
23
23
  /**
24
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
24
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
25
25
  *
26
26
  * @remarks
27
- * to the currency your account is settled in.
27
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
28
28
  *
29
- * The amount is a **negative** amount.
29
+ * The amount deducted from your account balance for this refund, converted to the currency your account is settled
30
+ * in. Always a **negative** amount. Only available once the refund is finalized and the final settlement amount has
31
+ * been determined.
30
32
  *
31
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
32
- * zero.
33
+ * For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
33
34
  *
34
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
35
- * the refund is queued the settlement amount is likely not yet available.
36
- *
37
- * To retrieve accurate settlement amounts we recommend using the
38
- * [List balance transactions endpoint](list-balance-transactions) instead.
35
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
39
36
  */
40
37
  export type ListEntityRefundSettlementAmount = {
41
38
  /**
@@ -130,21 +127,18 @@ export type ListEntityRefund = {
130
127
  */
131
128
  amount: Amount;
132
129
  /**
133
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
130
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
134
131
  *
135
132
  * @remarks
136
- * to the currency your account is settled in.
137
- *
138
- * The amount is a **negative** amount.
133
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
139
134
  *
140
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
141
- * zero.
135
+ * The amount deducted from your account balance for this refund, converted to the currency your account is settled
136
+ * in. Always a **negative** amount. Only available once the refund is finalized and the final settlement amount has
137
+ * been determined.
142
138
  *
143
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
144
- * the refund is queued the settlement amount is likely not yet available.
139
+ * For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
145
140
  *
146
- * To retrieve accurate settlement amounts we recommend using the
147
- * [List balance transactions endpoint](list-balance-transactions) instead.
141
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
148
142
  */
149
143
  settlementAmount?: ListEntityRefundSettlementAmount | null | undefined;
150
144
  /**
@@ -162,16 +162,18 @@ export type ListPaymentResponseAmountChargedBack = {
162
162
  };
163
163
 
164
164
  /**
165
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
165
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
166
166
  *
167
167
  * @remarks
168
- * currency your account is settled in.
168
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
169
169
  *
170
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
171
- * settled by Mollie the `settlementAmount` is omitted from the response.
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
172
  *
173
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
174
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
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.
175
177
  */
176
178
  export type ListPaymentResponseSettlementAmount = {
177
179
  /**
@@ -849,16 +851,18 @@ export type ListPaymentResponse = {
849
851
  */
850
852
  amountChargedBack?: ListPaymentResponseAmountChargedBack | undefined;
851
853
  /**
852
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
854
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
853
855
  *
854
856
  * @remarks
855
- * currency your account is settled in.
857
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
858
+ *
859
+ * The amount that will be settled to your account, converted to the currency your account is settled in. Only
860
+ * available once the payment is finalized and the final settlement amount has been determined.
856
861
  *
857
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
858
- * settled by Mollie the `settlementAmount` is omitted from the response.
862
+ * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
863
+ * Mollie, this field is omitted from the response.
859
864
  *
860
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
861
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
865
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
862
866
  */
863
867
  settlementAmount?: ListPaymentResponseSettlementAmount | undefined;
864
868
  /**
@@ -25,14 +25,7 @@ import { Url, Url$inboundSchema } from "./url.js";
25
25
  import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
26
26
 
27
27
  /**
28
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
29
- *
30
- * @remarks
31
- * currency your account is settled in.
32
- *
33
- * Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
34
- * accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
35
- * instead.
28
+ * The amount settled to your account for this capture, converted to the currency your account is settled in.
36
29
  */
37
30
  export type ListSettlementCaptureResponseSettlementAmount = {
38
31
  /**
@@ -89,14 +82,7 @@ export type ListSettlementCaptureResponse = {
89
82
  */
90
83
  amount: AmountNullable | null;
91
84
  /**
92
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
93
- *
94
- * @remarks
95
- * currency your account is settled in.
96
- *
97
- * Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
98
- * accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
99
- * instead.
85
+ * The amount settled to your account for this capture, converted to the currency your account is settled in.
100
86
  */
101
87
  settlementAmount?:
102
88
  | ListSettlementCaptureResponseSettlementAmount
@@ -0,0 +1,240 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6798922f9369
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { remap as remap$ } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import { Amount, Amount$inboundSchema } from "./amount.js";
11
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
12
+ import {
13
+ SettlementMode,
14
+ SettlementMode$inboundSchema,
15
+ } from "./settlementmode.js";
16
+ import { Url, Url$inboundSchema } from "./url.js";
17
+ import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
18
+
19
+ /**
20
+ * The amount deducted from your account balance for this chargeback, converted to the currency your account is
21
+ *
22
+ * @remarks
23
+ * settled in. Always a **negative** amount.
24
+ */
25
+ export type ListSettlementChargebackResponseSettlementAmount = {
26
+ /**
27
+ * A three-character ISO 4217 currency code.
28
+ */
29
+ currency: string;
30
+ /**
31
+ * A string containing an exact monetary amount in the given currency.
32
+ */
33
+ value: string;
34
+ };
35
+
36
+ /**
37
+ * Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
38
+ */
39
+ export type ListSettlementChargebackResponseReason = {
40
+ /**
41
+ * Technical code provided by the bank.
42
+ */
43
+ code: string;
44
+ /**
45
+ * A more detailed human-friendly description.
46
+ */
47
+ description: string;
48
+ };
49
+
50
+ /**
51
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
52
+ */
53
+ export type ListSettlementChargebackResponseLinks = {
54
+ /**
55
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
56
+ */
57
+ self: Url;
58
+ /**
59
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
60
+ */
61
+ payment: Url;
62
+ /**
63
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
64
+ */
65
+ settlement?: UrlNullable | null | undefined;
66
+ };
67
+
68
+ export type ListSettlementChargebackResponse = {
69
+ /**
70
+ * Indicates the response contains a chargeback object. Will always contain the string `chargeback` for this
71
+ *
72
+ * @remarks
73
+ * endpoint.
74
+ */
75
+ resource: string;
76
+ /**
77
+ * The identifier uniquely referring to this chargeback. Example: `chb_n9z0tp`.
78
+ */
79
+ id: string;
80
+ /**
81
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
82
+ */
83
+ amount: Amount;
84
+ /**
85
+ * The amount deducted from your account balance for this chargeback, converted to the currency your account is
86
+ *
87
+ * @remarks
88
+ * settled in. Always a **negative** amount.
89
+ */
90
+ settlementAmount?:
91
+ | ListSettlementChargebackResponseSettlementAmount
92
+ | null
93
+ | undefined;
94
+ /**
95
+ * Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
96
+ */
97
+ reason?: ListSettlementChargebackResponseReason | null | undefined;
98
+ /**
99
+ * The unique identifier of the payment this chargeback was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
100
+ *
101
+ * @remarks
102
+ * The full payment object can be retrieved via the payment URL in the `_links` object.
103
+ */
104
+ paymentId: string;
105
+ /**
106
+ * The identifier referring to the settlement this payment was settled with. For example, `stl_BkEjN2eBb`. This field
107
+ *
108
+ * @remarks
109
+ * is omitted if the refund is not settled (yet).
110
+ */
111
+ settlementId?: string | null | undefined;
112
+ /**
113
+ * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
114
+ */
115
+ createdAt: string;
116
+ /**
117
+ * The date and time the chargeback was reversed if applicable, in
118
+ *
119
+ * @remarks
120
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
121
+ */
122
+ reversedAt?: string | null | undefined;
123
+ /**
124
+ * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
125
+ */
126
+ links: ListSettlementChargebackResponseLinks;
127
+ /**
128
+ * Whether this entity was created in live mode or in test mode. Settlements are always in live mode.
129
+ */
130
+ mode?: SettlementMode | undefined;
131
+ };
132
+
133
+ /** @internal */
134
+ export const ListSettlementChargebackResponseSettlementAmount$inboundSchema:
135
+ z.ZodType<
136
+ ListSettlementChargebackResponseSettlementAmount,
137
+ z.ZodTypeDef,
138
+ unknown
139
+ > = z.object({
140
+ currency: z.string(),
141
+ value: z.string(),
142
+ });
143
+
144
+ export function listSettlementChargebackResponseSettlementAmountFromJSON(
145
+ jsonString: string,
146
+ ): SafeParseResult<
147
+ ListSettlementChargebackResponseSettlementAmount,
148
+ SDKValidationError
149
+ > {
150
+ return safeParse(
151
+ jsonString,
152
+ (x) =>
153
+ ListSettlementChargebackResponseSettlementAmount$inboundSchema.parse(
154
+ JSON.parse(x),
155
+ ),
156
+ `Failed to parse 'ListSettlementChargebackResponseSettlementAmount' from JSON`,
157
+ );
158
+ }
159
+
160
+ /** @internal */
161
+ export const ListSettlementChargebackResponseReason$inboundSchema: z.ZodType<
162
+ ListSettlementChargebackResponseReason,
163
+ z.ZodTypeDef,
164
+ unknown
165
+ > = z.object({
166
+ code: z.string(),
167
+ description: z.string(),
168
+ });
169
+
170
+ export function listSettlementChargebackResponseReasonFromJSON(
171
+ jsonString: string,
172
+ ): SafeParseResult<ListSettlementChargebackResponseReason, SDKValidationError> {
173
+ return safeParse(
174
+ jsonString,
175
+ (x) =>
176
+ ListSettlementChargebackResponseReason$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'ListSettlementChargebackResponseReason' from JSON`,
178
+ );
179
+ }
180
+
181
+ /** @internal */
182
+ export const ListSettlementChargebackResponseLinks$inboundSchema: z.ZodType<
183
+ ListSettlementChargebackResponseLinks,
184
+ z.ZodTypeDef,
185
+ unknown
186
+ > = z.object({
187
+ self: Url$inboundSchema,
188
+ payment: Url$inboundSchema,
189
+ settlement: z.nullable(UrlNullable$inboundSchema).optional(),
190
+ });
191
+
192
+ export function listSettlementChargebackResponseLinksFromJSON(
193
+ jsonString: string,
194
+ ): SafeParseResult<ListSettlementChargebackResponseLinks, SDKValidationError> {
195
+ return safeParse(
196
+ jsonString,
197
+ (x) =>
198
+ ListSettlementChargebackResponseLinks$inboundSchema.parse(JSON.parse(x)),
199
+ `Failed to parse 'ListSettlementChargebackResponseLinks' from JSON`,
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const ListSettlementChargebackResponse$inboundSchema: z.ZodType<
205
+ ListSettlementChargebackResponse,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ resource: z.string(),
210
+ id: z.string(),
211
+ amount: Amount$inboundSchema,
212
+ settlementAmount: z.nullable(
213
+ z.lazy(() =>
214
+ ListSettlementChargebackResponseSettlementAmount$inboundSchema
215
+ ),
216
+ ).optional(),
217
+ reason: z.nullable(
218
+ z.lazy(() => ListSettlementChargebackResponseReason$inboundSchema),
219
+ ).optional(),
220
+ paymentId: z.string(),
221
+ settlementId: z.nullable(z.string()).optional(),
222
+ createdAt: z.string(),
223
+ reversedAt: z.nullable(z.string()).optional(),
224
+ _links: z.lazy(() => ListSettlementChargebackResponseLinks$inboundSchema),
225
+ mode: SettlementMode$inboundSchema.optional(),
226
+ }).transform((v) => {
227
+ return remap$(v, {
228
+ "_links": "links",
229
+ });
230
+ });
231
+
232
+ export function listSettlementChargebackResponseFromJSON(
233
+ jsonString: string,
234
+ ): SafeParseResult<ListSettlementChargebackResponse, SDKValidationError> {
235
+ return safeParse(
236
+ jsonString,
237
+ (x) => ListSettlementChargebackResponse$inboundSchema.parse(JSON.parse(x)),
238
+ `Failed to parse 'ListSettlementChargebackResponse' from JSON`,
239
+ );
240
+ }
@@ -167,16 +167,12 @@ export type ListSettlementPaymentResponseAmountChargedBack = {
167
167
  };
168
168
 
169
169
  /**
170
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
170
+ * The amount settled to your account for this payment, converted to the currency your account is settled in.
171
171
  *
172
172
  * @remarks
173
- * currency your account is settled in.
174
173
  *
175
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
176
- * settled by Mollie the `settlementAmount` is omitted from the response.
177
- *
178
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
179
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
174
+ * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
175
+ * Mollie, this field is omitted from the response.
180
176
  */
181
177
  export type ListSettlementPaymentResponseSettlementAmount = {
182
178
  /**
@@ -831,16 +827,12 @@ export type ListSettlementPaymentResponse = {
831
827
  | ListSettlementPaymentResponseAmountChargedBack
832
828
  | undefined;
833
829
  /**
834
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
830
+ * The amount settled to your account for this payment, converted to the currency your account is settled in.
835
831
  *
836
832
  * @remarks
837
- * currency your account is settled in.
838
- *
839
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
840
- * settled by Mollie the `settlementAmount` is omitted from the response.
841
833
  *
842
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
843
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
834
+ * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
835
+ * Mollie, this field is omitted from the response.
844
836
  */
845
837
  settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
846
838
  /**
@@ -26,21 +26,12 @@ import { Url, Url$inboundSchema } from "./url.js";
26
26
  import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
27
27
 
28
28
  /**
29
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
29
+ * The amount deducted from your account balance for this refund, converted to the currency your account is
30
30
  *
31
31
  * @remarks
32
- * to the currency your account is settled in.
32
+ * settled in. Always a **negative** amount.
33
33
  *
34
- * The amount is a **negative** amount.
35
- *
36
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
37
- * zero.
38
- *
39
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
40
- * the refund is queued the settlement amount is likely not yet available.
41
- *
42
- * To retrieve accurate settlement amounts we recommend using the
43
- * [List balance transactions endpoint](list-balance-transactions) instead.
34
+ * For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
44
35
  */
45
36
  export type ListSettlementRefundResponseSettlementAmount = {
46
37
  /**
@@ -125,21 +116,12 @@ export type ListSettlementRefundResponse = {
125
116
  */
126
117
  amount: Amount;
127
118
  /**
128
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
119
+ * The amount deducted from your account balance for this refund, converted to the currency your account is
129
120
  *
130
121
  * @remarks
131
- * to the currency your account is settled in.
132
- *
133
- * The amount is a **negative** amount.
134
- *
135
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
136
- * zero.
137
- *
138
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
139
- * the refund is queued the settlement amount is likely not yet available.
122
+ * settled in. Always a **negative** amount.
140
123
  *
141
- * To retrieve accurate settlement amounts we recommend using the
142
- * [List balance transactions endpoint](list-balance-transactions) instead.
124
+ * For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
143
125
  */
144
126
  settlementAmount?:
145
127
  | ListSettlementRefundResponseSettlementAmount
@@ -63,7 +63,7 @@ export type ListSettlementChargebacksEmbedded = {
63
63
  /**
64
64
  * A list of chargeback objects.
65
65
  */
66
- chargebacks: Array<models.ListEntityChargeback>;
66
+ chargebacks: Array<models.ListSettlementChargebackResponse>;
67
67
  };
68
68
 
69
69
  /**
@@ -135,7 +135,7 @@ export const ListSettlementChargebacksEmbedded$inboundSchema: z.ZodType<
135
135
  z.ZodTypeDef,
136
136
  unknown
137
137
  > = z.object({
138
- chargebacks: z.array(models.ListEntityChargeback$inboundSchema),
138
+ chargebacks: z.array(models.ListSettlementChargebackResponse$inboundSchema),
139
139
  });
140
140
 
141
141
  export function listSettlementChargebacksEmbeddedFromJSON(
@@ -162,16 +162,18 @@ export type PaymentResponseAmountChargedBack = {
162
162
  };
163
163
 
164
164
  /**
165
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
165
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
166
166
  *
167
167
  * @remarks
168
- * currency your account is settled in.
168
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
169
169
  *
170
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
171
- * settled by Mollie the `settlementAmount` is omitted from the response.
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
172
  *
173
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
174
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
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.
175
177
  */
176
178
  export type PaymentResponseSettlementAmount = {
177
179
  /**
@@ -851,16 +853,18 @@ export type PaymentResponse = {
851
853
  */
852
854
  amountChargedBack?: PaymentResponseAmountChargedBack | undefined;
853
855
  /**
854
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
856
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
855
857
  *
856
858
  * @remarks
857
- * currency your account is settled in.
859
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
860
+ *
861
+ * The amount that will be settled to your account, converted to the currency your account is settled in. Only
862
+ * available once the payment is finalized and the final settlement amount has been determined.
858
863
  *
859
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
860
- * settled by Mollie the `settlementAmount` is omitted from the response.
864
+ * Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
865
+ * Mollie, this field is omitted from the response.
861
866
  *
862
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
863
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
867
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
864
868
  */
865
869
  settlementAmount?: PaymentResponseSettlementAmount | undefined;
866
870
  /**
@@ -5,7 +5,8 @@
5
5
 
6
6
  import * as z from "zod/v3";
7
7
  import { safeParse } from "../lib/schemas.js";
8
- import { ClosedEnum } from "../types/enums.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
9
10
  import { Result as SafeParseResult } from "../types/fp.js";
10
11
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
11
12
 
@@ -143,7 +144,7 @@ export const Code = {
143
144
  /**
144
145
  * A machine-readable code that indicates the reason for the payment's status.
145
146
  */
146
- export type Code = ClosedEnum<typeof Code>;
147
+ export type Code = OpenEnum<typeof Code>;
147
148
 
148
149
  /**
149
150
  * This object offers details about the status of a payment. Currently it is only available for point-of-sale
@@ -163,9 +164,8 @@ export type StatusReason = {
163
164
  };
164
165
 
165
166
  /** @internal */
166
- export const Code$inboundSchema: z.ZodNativeEnum<typeof Code> = z.nativeEnum(
167
- Code,
168
- );
167
+ export const Code$inboundSchema: z.ZodType<Code, z.ZodTypeDef, unknown> =
168
+ openEnums.inboundSchema(Code);
169
169
 
170
170
  /** @internal */
171
171
  export const StatusReason$inboundSchema: z.ZodType<