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.
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/retries.js +7 -0
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/models/captureresponse.d.ts +0 -36
- package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/captureresponse.js +1 -11
- package/dist/commonjs/models/captureresponse.js.map +1 -1
- package/dist/commonjs/models/entitybalance.d.ts +0 -16
- package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
- package/dist/commonjs/models/entitybalance.js.map +1 -1
- package/dist/commonjs/models/entitychargeback.d.ts +0 -38
- package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
- package/dist/commonjs/models/entitychargeback.js +1 -11
- package/dist/commonjs/models/entitychargeback.js.map +1 -1
- package/dist/commonjs/models/entityinvoice.d.ts +0 -13
- package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/entityinvoice.js.map +1 -1
- package/dist/commonjs/models/entitymethodget.d.ts +0 -3
- package/dist/commonjs/models/entitymethodget.d.ts.map +1 -1
- package/dist/commonjs/models/entitymethodget.js.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.d.ts +0 -42
- package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.js +1 -11
- package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
- package/dist/commonjs/models/entitysettlement.d.ts +0 -3
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.d.ts +0 -36
- package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.js +1 -11
- package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listentitybalance.d.ts +0 -16
- package/dist/commonjs/models/listentitybalance.d.ts.map +1 -1
- package/dist/commonjs/models/listentitybalance.js.map +1 -1
- package/dist/commonjs/models/listentitychargeback.d.ts +0 -38
- package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -1
- package/dist/commonjs/models/listentitychargeback.js +1 -11
- package/dist/commonjs/models/listentitychargeback.js.map +1 -1
- package/dist/commonjs/models/listentityinvoice.d.ts +0 -13
- package/dist/commonjs/models/listentityinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/listentityinvoice.js.map +1 -1
- package/dist/commonjs/models/listentitymethod.d.ts +0 -3
- package/dist/commonjs/models/listentitymethod.d.ts.map +1 -1
- package/dist/commonjs/models/listentitymethod.js.map +1 -1
- package/dist/commonjs/models/listentitymethodall.d.ts +0 -3
- package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -1
- package/dist/commonjs/models/listentitymethodall.js.map +1 -1
- package/dist/commonjs/models/listentityrefund.d.ts +0 -42
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
- package/dist/commonjs/models/listentityrefund.js +1 -11
- package/dist/commonjs/models/listentityrefund.js.map +1 -1
- package/dist/commonjs/models/listentitysettlement.d.ts +0 -3
- package/dist/commonjs/models/listentitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/listentitysettlement.js.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +2 -404
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.js +3 -113
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +0 -15
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +20 -20
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.js +11 -11
- package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +26 -26
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.js +11 -11
- package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +24 -392
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.js +13 -114
- package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts +30 -30
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.js +11 -11
- package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/commonjs/models/paymentdetails.d.ts +367 -0
- package/dist/commonjs/models/paymentdetails.d.ts.map +1 -0
- package/dist/commonjs/models/paymentdetails.js +144 -0
- package/dist/commonjs/models/paymentdetails.js.map +1 -0
- package/dist/commonjs/models/paymentrequest.d.ts +61 -26
- package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/paymentrequest.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +2 -404
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js +3 -114
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.d.ts +0 -15
- package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/statusreason.d.ts +59 -41
- package/dist/commonjs/models/statusreason.d.ts.map +1 -1
- package/dist/commonjs/models/statusreason.js +70 -42
- package/dist/commonjs/models/statusreason.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/retries.js +7 -0
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/models/captureresponse.d.ts +0 -36
- package/dist/esm/models/captureresponse.d.ts.map +1 -1
- package/dist/esm/models/captureresponse.js +0 -9
- package/dist/esm/models/captureresponse.js.map +1 -1
- package/dist/esm/models/entitybalance.d.ts +0 -16
- package/dist/esm/models/entitybalance.d.ts.map +1 -1
- package/dist/esm/models/entitybalance.js.map +1 -1
- package/dist/esm/models/entitychargeback.d.ts +0 -38
- package/dist/esm/models/entitychargeback.d.ts.map +1 -1
- package/dist/esm/models/entitychargeback.js +0 -9
- package/dist/esm/models/entitychargeback.js.map +1 -1
- package/dist/esm/models/entityinvoice.d.ts +0 -13
- package/dist/esm/models/entityinvoice.d.ts.map +1 -1
- package/dist/esm/models/entityinvoice.js.map +1 -1
- package/dist/esm/models/entitymethodget.d.ts +0 -3
- package/dist/esm/models/entitymethodget.d.ts.map +1 -1
- package/dist/esm/models/entitymethodget.js.map +1 -1
- package/dist/esm/models/entityrefundresponse.d.ts +0 -42
- package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/entityrefundresponse.js +0 -9
- package/dist/esm/models/entityrefundresponse.js.map +1 -1
- package/dist/esm/models/entitysettlement.d.ts +0 -3
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listcaptureresponse.d.ts +0 -36
- package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listcaptureresponse.js +0 -9
- package/dist/esm/models/listcaptureresponse.js.map +1 -1
- package/dist/esm/models/listentitybalance.d.ts +0 -16
- package/dist/esm/models/listentitybalance.d.ts.map +1 -1
- package/dist/esm/models/listentitybalance.js.map +1 -1
- package/dist/esm/models/listentitychargeback.d.ts +0 -38
- package/dist/esm/models/listentitychargeback.d.ts.map +1 -1
- package/dist/esm/models/listentitychargeback.js +0 -9
- package/dist/esm/models/listentitychargeback.js.map +1 -1
- package/dist/esm/models/listentityinvoice.d.ts +0 -13
- package/dist/esm/models/listentityinvoice.d.ts.map +1 -1
- package/dist/esm/models/listentityinvoice.js.map +1 -1
- package/dist/esm/models/listentitymethod.d.ts +0 -3
- package/dist/esm/models/listentitymethod.d.ts.map +1 -1
- package/dist/esm/models/listentitymethod.js.map +1 -1
- package/dist/esm/models/listentitymethodall.d.ts +0 -3
- package/dist/esm/models/listentitymethodall.d.ts.map +1 -1
- package/dist/esm/models/listentitymethodall.js.map +1 -1
- package/dist/esm/models/listentityrefund.d.ts +0 -42
- package/dist/esm/models/listentityrefund.d.ts.map +1 -1
- package/dist/esm/models/listentityrefund.js +0 -9
- package/dist/esm/models/listentityrefund.js.map +1 -1
- package/dist/esm/models/listentitysettlement.d.ts +0 -3
- package/dist/esm/models/listentitysettlement.d.ts.map +1 -1
- package/dist/esm/models/listentitysettlement.js.map +1 -1
- package/dist/esm/models/listpaymentresponse.d.ts +2 -404
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listpaymentresponse.js +2 -108
- package/dist/esm/models/listpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +0 -15
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.d.ts +20 -20
- package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.js +9 -9
- package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.d.ts +26 -26
- package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.js +9 -9
- package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +24 -392
- package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.js +11 -109
- package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.d.ts +30 -30
- package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.js +9 -9
- package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/esm/models/paymentdetails.d.ts +367 -0
- package/dist/esm/models/paymentdetails.d.ts.map +1 -0
- package/dist/esm/models/paymentdetails.js +105 -0
- package/dist/esm/models/paymentdetails.js.map +1 -0
- package/dist/esm/models/paymentrequest.d.ts +61 -26
- package/dist/esm/models/paymentrequest.d.ts.map +1 -1
- package/dist/esm/models/paymentrequest.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +2 -404
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js +2 -109
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.d.ts +0 -15
- package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/statusreason.d.ts +59 -41
- package/dist/esm/models/statusreason.d.ts.map +1 -1
- package/dist/esm/models/statusreason.js +68 -41
- package/dist/esm/models/statusreason.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +8 -0
- package/src/models/captureresponse.ts +0 -57
- package/src/models/entitybalance.ts +0 -16
- package/src/models/entitychargeback.ts +0 -59
- package/src/models/entityinvoice.ts +0 -13
- package/src/models/entitymethodget.ts +0 -3
- package/src/models/entityrefundresponse.ts +0 -64
- package/src/models/entitysettlement.ts +0 -3
- package/src/models/index.ts +1 -0
- package/src/models/listcaptureresponse.ts +0 -58
- package/src/models/listentitybalance.ts +0 -16
- package/src/models/listentitychargeback.ts +0 -60
- package/src/models/listentityinvoice.ts +0 -13
- package/src/models/listentitymethod.ts +0 -3
- package/src/models/listentitymethodall.ts +0 -3
- package/src/models/listentityrefund.ts +0 -63
- package/src/models/listentitysettlement.ts +0 -3
- package/src/models/listpaymentresponse.ts +5 -579
- package/src/models/listsalesinvoiceresponse.ts +0 -15
- package/src/models/listsettlementcaptureresponse.ts +47 -47
- package/src/models/listsettlementchargebackresponse.ts +59 -59
- package/src/models/listsettlementpaymentresponse.ts +55 -579
- package/src/models/listsettlementrefundresponse.ts +61 -61
- package/src/models/paymentdetails.ts +521 -0
- package/src/models/paymentrequest.ts +61 -26
- package/src/models/paymentresponse.ts +5 -577
- package/src/models/salesinvoiceresponse.ts +0 -15
- package/src/models/statusreason.ts +121 -44
|
@@ -19,28 +19,6 @@ import { Mode, Mode$inboundSchema } from "./mode.js";
|
|
|
19
19
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
20
20
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
27
|
-
*
|
|
28
|
-
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
29
|
-
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
|
-
*/
|
|
33
|
-
export type CaptureResponseSettlementAmount = {
|
|
34
|
-
/**
|
|
35
|
-
* A three-character ISO 4217 currency code.
|
|
36
|
-
*/
|
|
37
|
-
currency: string;
|
|
38
|
-
/**
|
|
39
|
-
* A string containing an exact monetary amount in the given currency.
|
|
40
|
-
*/
|
|
41
|
-
value: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
22
|
/**
|
|
45
23
|
* The capture's status.
|
|
46
24
|
*/
|
|
@@ -101,18 +79,6 @@ export type CaptureResponse = {
|
|
|
101
79
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
102
80
|
*/
|
|
103
81
|
amount: AmountNullable | null;
|
|
104
|
-
/**
|
|
105
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
109
|
-
*
|
|
110
|
-
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
111
|
-
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
112
|
-
*
|
|
113
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
114
|
-
*/
|
|
115
|
-
settlementAmount?: CaptureResponseSettlementAmount | null | undefined;
|
|
116
82
|
status: CaptureResponseStatus;
|
|
117
83
|
/**
|
|
118
84
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
@@ -152,26 +118,6 @@ export type CaptureResponse = {
|
|
|
152
118
|
links: CaptureResponseLinks;
|
|
153
119
|
};
|
|
154
120
|
|
|
155
|
-
/** @internal */
|
|
156
|
-
export const CaptureResponseSettlementAmount$inboundSchema: z.ZodType<
|
|
157
|
-
CaptureResponseSettlementAmount,
|
|
158
|
-
z.ZodTypeDef,
|
|
159
|
-
unknown
|
|
160
|
-
> = z.object({
|
|
161
|
-
currency: z.string(),
|
|
162
|
-
value: z.string(),
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
export function captureResponseSettlementAmountFromJSON(
|
|
166
|
-
jsonString: string,
|
|
167
|
-
): SafeParseResult<CaptureResponseSettlementAmount, SDKValidationError> {
|
|
168
|
-
return safeParse(
|
|
169
|
-
jsonString,
|
|
170
|
-
(x) => CaptureResponseSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
171
|
-
`Failed to parse 'CaptureResponseSettlementAmount' from JSON`,
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
121
|
/** @internal */
|
|
176
122
|
export const CaptureResponseStatus$inboundSchema: z.ZodType<
|
|
177
123
|
CaptureResponseStatus,
|
|
@@ -213,9 +159,6 @@ export const CaptureResponse$inboundSchema: z.ZodType<
|
|
|
213
159
|
mode: Mode$inboundSchema,
|
|
214
160
|
description: z.string().optional(),
|
|
215
161
|
amount: z.nullable(AmountNullable$inboundSchema),
|
|
216
|
-
settlementAmount: z.nullable(
|
|
217
|
-
z.lazy(() => CaptureResponseSettlementAmount$inboundSchema),
|
|
218
|
-
).optional(),
|
|
219
162
|
status: CaptureResponseStatus$inboundSchema,
|
|
220
163
|
metadata: z.nullable(Metadata$inboundSchema).optional(),
|
|
221
164
|
paymentId: z.string(),
|
|
@@ -198,13 +198,6 @@ export type EntityBalance = {
|
|
|
198
198
|
description: string;
|
|
199
199
|
status: EntityBalanceStatus;
|
|
200
200
|
transferFrequency?: EntityBalanceTransferFrequency | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* The minimum amount configured for scheduled automatic settlements. As soon as the amount on the balance exceeds
|
|
203
|
-
*
|
|
204
|
-
* @remarks
|
|
205
|
-
* this threshold, the complete balance will be paid out to the transfer destination according to the configured
|
|
206
|
-
* frequency.
|
|
207
|
-
*/
|
|
208
201
|
transferThreshold?: EntityBalanceTransferThreshold | undefined;
|
|
209
202
|
/**
|
|
210
203
|
* The transfer reference set to be included in all the transfers for this balance.
|
|
@@ -217,16 +210,7 @@ export type EntityBalance = {
|
|
|
217
210
|
* transfer frequency.
|
|
218
211
|
*/
|
|
219
212
|
transferDestination?: EntityBalanceTransferDestination | null | undefined;
|
|
220
|
-
/**
|
|
221
|
-
* The amount directly available on the balance, e.g. `{"currency":"EUR", "value":"100.00"}`.
|
|
222
|
-
*/
|
|
223
213
|
availableAmount: EntityBalanceAvailableAmount;
|
|
224
|
-
/**
|
|
225
|
-
* The total amount that is queued to be transferred to your balance. For example, a credit card payment can take a
|
|
226
|
-
*
|
|
227
|
-
* @remarks
|
|
228
|
-
* few days to clear.
|
|
229
|
-
*/
|
|
230
214
|
pendingAmount: EntityBalancePendingAmount;
|
|
231
215
|
/**
|
|
232
216
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
@@ -12,29 +12,6 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
12
12
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
13
13
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
20
|
-
*
|
|
21
|
-
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
22
|
-
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
23
|
-
* amount has been determined.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
-
*/
|
|
27
|
-
export type EntityChargebackSettlementAmount = {
|
|
28
|
-
/**
|
|
29
|
-
* A three-character ISO 4217 currency code.
|
|
30
|
-
*/
|
|
31
|
-
currency: string;
|
|
32
|
-
/**
|
|
33
|
-
* A string containing an exact monetary amount in the given currency.
|
|
34
|
-
*/
|
|
35
|
-
value: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
15
|
/**
|
|
39
16
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
40
17
|
*/
|
|
@@ -87,19 +64,6 @@ export type EntityChargeback = {
|
|
|
87
64
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
88
65
|
*/
|
|
89
66
|
amount: Amount;
|
|
90
|
-
/**
|
|
91
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
95
|
-
*
|
|
96
|
-
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
97
|
-
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
98
|
-
* amount has been determined.
|
|
99
|
-
*
|
|
100
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
101
|
-
*/
|
|
102
|
-
settlementAmount?: EntityChargebackSettlementAmount | null | undefined;
|
|
103
67
|
/**
|
|
104
68
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
105
69
|
*/
|
|
@@ -135,26 +99,6 @@ export type EntityChargeback = {
|
|
|
135
99
|
links: EntityChargebackLinks;
|
|
136
100
|
};
|
|
137
101
|
|
|
138
|
-
/** @internal */
|
|
139
|
-
export const EntityChargebackSettlementAmount$inboundSchema: z.ZodType<
|
|
140
|
-
EntityChargebackSettlementAmount,
|
|
141
|
-
z.ZodTypeDef,
|
|
142
|
-
unknown
|
|
143
|
-
> = z.object({
|
|
144
|
-
currency: z.string(),
|
|
145
|
-
value: z.string(),
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
export function entityChargebackSettlementAmountFromJSON(
|
|
149
|
-
jsonString: string,
|
|
150
|
-
): SafeParseResult<EntityChargebackSettlementAmount, SDKValidationError> {
|
|
151
|
-
return safeParse(
|
|
152
|
-
jsonString,
|
|
153
|
-
(x) => EntityChargebackSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
154
|
-
`Failed to parse 'EntityChargebackSettlementAmount' from JSON`,
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
102
|
/** @internal */
|
|
159
103
|
export const EntityChargebackReason$inboundSchema: z.ZodType<
|
|
160
104
|
EntityChargebackReason,
|
|
@@ -206,9 +150,6 @@ export const EntityChargeback$inboundSchema: z.ZodType<
|
|
|
206
150
|
resource: z.string(),
|
|
207
151
|
id: z.string(),
|
|
208
152
|
amount: Amount$inboundSchema,
|
|
209
|
-
settlementAmount: z.nullable(
|
|
210
|
-
z.lazy(() => EntityChargebackSettlementAmount$inboundSchema),
|
|
211
|
-
).optional(),
|
|
212
153
|
reason: z.nullable(z.lazy(() => EntityChargebackReason$inboundSchema))
|
|
213
154
|
.optional(),
|
|
214
155
|
paymentId: z.string(),
|
|
@@ -131,21 +131,8 @@ export type EntityInvoice = {
|
|
|
131
131
|
*/
|
|
132
132
|
vatNumber: string | null;
|
|
133
133
|
status: EntityInvoiceStatus;
|
|
134
|
-
/**
|
|
135
|
-
* Total amount of the invoice, excluding VAT.
|
|
136
|
-
*/
|
|
137
134
|
netAmount: EntityInvoiceNetAmount;
|
|
138
|
-
/**
|
|
139
|
-
* VAT amount of the invoice. Only applicable to merchants registered in the Netherlands. For EU merchants, VAT will
|
|
140
|
-
*
|
|
141
|
-
* @remarks
|
|
142
|
-
* be shifted to the recipient (as per article 44 and 196 in the EU VAT Directive 2006/112). For merchants outside
|
|
143
|
-
* the EU, no VAT will be charged.
|
|
144
|
-
*/
|
|
145
135
|
vatAmount: EntityInvoiceVatAmount;
|
|
146
|
-
/**
|
|
147
|
-
* Total amount of the invoice, including VAT.
|
|
148
|
-
*/
|
|
149
136
|
grossAmount: EntityInvoiceGrossAmount;
|
|
150
137
|
/**
|
|
151
138
|
* The collection of products which make up the invoice.
|
|
@@ -214,9 +214,6 @@ export type EntityMethodGet = {
|
|
|
214
214
|
* If a `locale` parameter is provided, the name is translated to the given locale if possible.
|
|
215
215
|
*/
|
|
216
216
|
description: string;
|
|
217
|
-
/**
|
|
218
|
-
* The minimum payment amount required to use this payment method.
|
|
219
|
-
*/
|
|
220
217
|
minimumAmount: EntityMethodGetMinimumAmount;
|
|
221
218
|
/**
|
|
222
219
|
* The maximum payment amount allowed when using this payment method. If there is no method-specific maximum, `null`
|
|
@@ -20,31 +20,6 @@ import {
|
|
|
20
20
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
21
21
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
28
|
-
*
|
|
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.
|
|
32
|
-
*
|
|
33
|
-
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
34
|
-
*
|
|
35
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
|
-
*/
|
|
37
|
-
export type EntityRefundResponseSettlementAmount = {
|
|
38
|
-
/**
|
|
39
|
-
* A three-character ISO 4217 currency code.
|
|
40
|
-
*/
|
|
41
|
-
currency: string;
|
|
42
|
-
/**
|
|
43
|
-
* A string containing an exact monetary amount in the given currency.
|
|
44
|
-
*/
|
|
45
|
-
value: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
23
|
export const EntityRefundResponseStatus = {
|
|
49
24
|
Queued: "queued",
|
|
50
25
|
Pending: "pending",
|
|
@@ -132,21 +107,6 @@ export type EntityRefundResponse = {
|
|
|
132
107
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
133
108
|
*/
|
|
134
109
|
amount: Amount;
|
|
135
|
-
/**
|
|
136
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
137
|
-
*
|
|
138
|
-
* @remarks
|
|
139
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
140
|
-
*
|
|
141
|
-
* The amount deducted from your account balance for this refund, converted to the currency your account is settled
|
|
142
|
-
* in. Always a **negative** amount. Only available once the refund is finalized and the final settlement amount has
|
|
143
|
-
* been determined.
|
|
144
|
-
*
|
|
145
|
-
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
146
|
-
*
|
|
147
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
148
|
-
*/
|
|
149
|
-
settlementAmount?: EntityRefundResponseSettlementAmount | null | undefined;
|
|
150
110
|
/**
|
|
151
111
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
152
112
|
*
|
|
@@ -193,27 +153,6 @@ export type EntityRefundResponse = {
|
|
|
193
153
|
links: EntityRefundResponseLinks;
|
|
194
154
|
};
|
|
195
155
|
|
|
196
|
-
/** @internal */
|
|
197
|
-
export const EntityRefundResponseSettlementAmount$inboundSchema: z.ZodType<
|
|
198
|
-
EntityRefundResponseSettlementAmount,
|
|
199
|
-
z.ZodTypeDef,
|
|
200
|
-
unknown
|
|
201
|
-
> = z.object({
|
|
202
|
-
currency: z.string(),
|
|
203
|
-
value: z.string(),
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
export function entityRefundResponseSettlementAmountFromJSON(
|
|
207
|
-
jsonString: string,
|
|
208
|
-
): SafeParseResult<EntityRefundResponseSettlementAmount, SDKValidationError> {
|
|
209
|
-
return safeParse(
|
|
210
|
-
jsonString,
|
|
211
|
-
(x) =>
|
|
212
|
-
EntityRefundResponseSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
213
|
-
`Failed to parse 'EntityRefundResponseSettlementAmount' from JSON`,
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
156
|
/** @internal */
|
|
218
157
|
export const EntityRefundResponseStatus$inboundSchema: z.ZodType<
|
|
219
158
|
EntityRefundResponseStatus,
|
|
@@ -315,9 +254,6 @@ export const EntityRefundResponse$inboundSchema: z.ZodType<
|
|
|
315
254
|
mode: Mode$inboundSchema,
|
|
316
255
|
description: z.string(),
|
|
317
256
|
amount: Amount$inboundSchema,
|
|
318
|
-
settlementAmount: z.nullable(
|
|
319
|
-
z.lazy(() => EntityRefundResponseSettlementAmount$inboundSchema),
|
|
320
|
-
).optional(),
|
|
321
257
|
metadata: z.nullable(Metadata$inboundSchema),
|
|
322
258
|
paymentId: z.string(),
|
|
323
259
|
settlementId: z.nullable(z.string()).optional(),
|
|
@@ -197,9 +197,6 @@ export type EntitySettlement = {
|
|
|
197
197
|
*/
|
|
198
198
|
settledAt?: string | null | undefined;
|
|
199
199
|
status: EntitySettlementStatus;
|
|
200
|
-
/**
|
|
201
|
-
* The total amount of the settlement.
|
|
202
|
-
*/
|
|
203
200
|
amount: EntitySettlementAmount;
|
|
204
201
|
/**
|
|
205
202
|
* The balance token that the settlement was settled to.
|
package/src/models/index.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from "./oauthtokentypehint.js";
|
|
|
120
120
|
export * from "./onboardingvatregulation.js";
|
|
121
121
|
export * from "./organizationvatregulation.js";
|
|
122
122
|
export * from "./paymentaddress.js";
|
|
123
|
+
export * from "./paymentdetails.js";
|
|
123
124
|
export * from "./paymentdetailscardauditionresponse.js";
|
|
124
125
|
export * from "./paymentdetailscardfundingresponse.js";
|
|
125
126
|
export * from "./paymentdetailscardlabelresponse.js";
|
|
@@ -19,28 +19,6 @@ import { Mode, Mode$inboundSchema } from "./mode.js";
|
|
|
19
19
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
20
20
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
27
|
-
*
|
|
28
|
-
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
29
|
-
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
|
-
*/
|
|
33
|
-
export type ListCaptureResponseSettlementAmount = {
|
|
34
|
-
/**
|
|
35
|
-
* A three-character ISO 4217 currency code.
|
|
36
|
-
*/
|
|
37
|
-
currency: string;
|
|
38
|
-
/**
|
|
39
|
-
* A string containing an exact monetary amount in the given currency.
|
|
40
|
-
*/
|
|
41
|
-
value: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
22
|
/**
|
|
45
23
|
* The capture's status.
|
|
46
24
|
*/
|
|
@@ -99,18 +77,6 @@ export type ListCaptureResponse = {
|
|
|
99
77
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
100
78
|
*/
|
|
101
79
|
amount: AmountNullable | null;
|
|
102
|
-
/**
|
|
103
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
107
|
-
*
|
|
108
|
-
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
109
|
-
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
110
|
-
*
|
|
111
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
112
|
-
*/
|
|
113
|
-
settlementAmount?: ListCaptureResponseSettlementAmount | null | undefined;
|
|
114
80
|
status: ListCaptureResponseStatus;
|
|
115
81
|
/**
|
|
116
82
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
@@ -150,27 +116,6 @@ export type ListCaptureResponse = {
|
|
|
150
116
|
links: ListCaptureResponseLinks;
|
|
151
117
|
};
|
|
152
118
|
|
|
153
|
-
/** @internal */
|
|
154
|
-
export const ListCaptureResponseSettlementAmount$inboundSchema: z.ZodType<
|
|
155
|
-
ListCaptureResponseSettlementAmount,
|
|
156
|
-
z.ZodTypeDef,
|
|
157
|
-
unknown
|
|
158
|
-
> = z.object({
|
|
159
|
-
currency: z.string(),
|
|
160
|
-
value: z.string(),
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
export function listCaptureResponseSettlementAmountFromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<ListCaptureResponseSettlementAmount, SDKValidationError> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) =>
|
|
169
|
-
ListCaptureResponseSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
-
`Failed to parse 'ListCaptureResponseSettlementAmount' from JSON`,
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
119
|
/** @internal */
|
|
175
120
|
export const ListCaptureResponseStatus$inboundSchema: z.ZodType<
|
|
176
121
|
ListCaptureResponseStatus,
|
|
@@ -211,9 +156,6 @@ export const ListCaptureResponse$inboundSchema: z.ZodType<
|
|
|
211
156
|
mode: Mode$inboundSchema,
|
|
212
157
|
description: z.string().optional(),
|
|
213
158
|
amount: z.nullable(AmountNullable$inboundSchema),
|
|
214
|
-
settlementAmount: z.nullable(
|
|
215
|
-
z.lazy(() => ListCaptureResponseSettlementAmount$inboundSchema),
|
|
216
|
-
).optional(),
|
|
217
159
|
status: ListCaptureResponseStatus$inboundSchema,
|
|
218
160
|
metadata: z.nullable(Metadata$inboundSchema).optional(),
|
|
219
161
|
paymentId: z.string(),
|
|
@@ -196,13 +196,6 @@ export type ListEntityBalance = {
|
|
|
196
196
|
description: string;
|
|
197
197
|
status: ListEntityBalanceStatus;
|
|
198
198
|
transferFrequency?: ListEntityBalanceTransferFrequency | undefined;
|
|
199
|
-
/**
|
|
200
|
-
* The minimum amount configured for scheduled automatic settlements. As soon as the amount on the balance exceeds
|
|
201
|
-
*
|
|
202
|
-
* @remarks
|
|
203
|
-
* this threshold, the complete balance will be paid out to the transfer destination according to the configured
|
|
204
|
-
* frequency.
|
|
205
|
-
*/
|
|
206
199
|
transferThreshold?: ListEntityBalanceTransferThreshold | undefined;
|
|
207
200
|
/**
|
|
208
201
|
* The transfer reference set to be included in all the transfers for this balance.
|
|
@@ -215,16 +208,7 @@ export type ListEntityBalance = {
|
|
|
215
208
|
* transfer frequency.
|
|
216
209
|
*/
|
|
217
210
|
transferDestination?: ListEntityBalanceTransferDestination | null | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* The amount directly available on the balance, e.g. `{"currency":"EUR", "value":"100.00"}`.
|
|
220
|
-
*/
|
|
221
211
|
availableAmount: ListEntityBalanceAvailableAmount;
|
|
222
|
-
/**
|
|
223
|
-
* The total amount that is queued to be transferred to your balance. For example, a credit card payment can take a
|
|
224
|
-
*
|
|
225
|
-
* @remarks
|
|
226
|
-
* few days to clear.
|
|
227
|
-
*/
|
|
228
212
|
pendingAmount: ListEntityBalancePendingAmount;
|
|
229
213
|
/**
|
|
230
214
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
@@ -12,29 +12,6 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
12
12
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
13
13
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
20
|
-
*
|
|
21
|
-
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
22
|
-
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
23
|
-
* amount has been determined.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
-
*/
|
|
27
|
-
export type ListEntityChargebackSettlementAmount = {
|
|
28
|
-
/**
|
|
29
|
-
* A three-character ISO 4217 currency code.
|
|
30
|
-
*/
|
|
31
|
-
currency: string;
|
|
32
|
-
/**
|
|
33
|
-
* A string containing an exact monetary amount in the given currency.
|
|
34
|
-
*/
|
|
35
|
-
value: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
15
|
/**
|
|
39
16
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
40
17
|
*/
|
|
@@ -83,19 +60,6 @@ export type ListEntityChargeback = {
|
|
|
83
60
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
84
61
|
*/
|
|
85
62
|
amount: Amount;
|
|
86
|
-
/**
|
|
87
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
88
|
-
*
|
|
89
|
-
* @remarks
|
|
90
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
91
|
-
*
|
|
92
|
-
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
93
|
-
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
94
|
-
* amount has been determined.
|
|
95
|
-
*
|
|
96
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
97
|
-
*/
|
|
98
|
-
settlementAmount?: ListEntityChargebackSettlementAmount | null | undefined;
|
|
99
63
|
/**
|
|
100
64
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
101
65
|
*/
|
|
@@ -131,27 +95,6 @@ export type ListEntityChargeback = {
|
|
|
131
95
|
links: ListEntityChargebackLinks;
|
|
132
96
|
};
|
|
133
97
|
|
|
134
|
-
/** @internal */
|
|
135
|
-
export const ListEntityChargebackSettlementAmount$inboundSchema: z.ZodType<
|
|
136
|
-
ListEntityChargebackSettlementAmount,
|
|
137
|
-
z.ZodTypeDef,
|
|
138
|
-
unknown
|
|
139
|
-
> = z.object({
|
|
140
|
-
currency: z.string(),
|
|
141
|
-
value: z.string(),
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
export function listEntityChargebackSettlementAmountFromJSON(
|
|
145
|
-
jsonString: string,
|
|
146
|
-
): SafeParseResult<ListEntityChargebackSettlementAmount, SDKValidationError> {
|
|
147
|
-
return safeParse(
|
|
148
|
-
jsonString,
|
|
149
|
-
(x) =>
|
|
150
|
-
ListEntityChargebackSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
151
|
-
`Failed to parse 'ListEntityChargebackSettlementAmount' from JSON`,
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
98
|
/** @internal */
|
|
156
99
|
export const ListEntityChargebackReason$inboundSchema: z.ZodType<
|
|
157
100
|
ListEntityChargebackReason,
|
|
@@ -202,9 +145,6 @@ export const ListEntityChargeback$inboundSchema: z.ZodType<
|
|
|
202
145
|
resource: z.string(),
|
|
203
146
|
id: z.string(),
|
|
204
147
|
amount: Amount$inboundSchema,
|
|
205
|
-
settlementAmount: z.nullable(
|
|
206
|
-
z.lazy(() => ListEntityChargebackSettlementAmount$inboundSchema),
|
|
207
|
-
).optional(),
|
|
208
148
|
reason: z.nullable(z.lazy(() => ListEntityChargebackReason$inboundSchema))
|
|
209
149
|
.optional(),
|
|
210
150
|
paymentId: z.string(),
|
|
@@ -127,21 +127,8 @@ export type ListEntityInvoice = {
|
|
|
127
127
|
*/
|
|
128
128
|
vatNumber: string | null;
|
|
129
129
|
status: ListEntityInvoiceStatus;
|
|
130
|
-
/**
|
|
131
|
-
* Total amount of the invoice, excluding VAT.
|
|
132
|
-
*/
|
|
133
130
|
netAmount: ListEntityInvoiceNetAmount;
|
|
134
|
-
/**
|
|
135
|
-
* VAT amount of the invoice. Only applicable to merchants registered in the Netherlands. For EU merchants, VAT will
|
|
136
|
-
*
|
|
137
|
-
* @remarks
|
|
138
|
-
* be shifted to the recipient (as per article 44 and 196 in the EU VAT Directive 2006/112). For merchants outside
|
|
139
|
-
* the EU, no VAT will be charged.
|
|
140
|
-
*/
|
|
141
131
|
vatAmount: ListEntityInvoiceVatAmount;
|
|
142
|
-
/**
|
|
143
|
-
* Total amount of the invoice, including VAT.
|
|
144
|
-
*/
|
|
145
132
|
grossAmount: ListEntityInvoiceGrossAmount;
|
|
146
133
|
/**
|
|
147
134
|
* The collection of products which make up the invoice.
|
|
@@ -194,9 +194,6 @@ export type ListEntityMethod = {
|
|
|
194
194
|
* If a `locale` parameter is provided, the name is translated to the given locale if possible.
|
|
195
195
|
*/
|
|
196
196
|
description: string;
|
|
197
|
-
/**
|
|
198
|
-
* The minimum payment amount required to use this payment method.
|
|
199
|
-
*/
|
|
200
197
|
minimumAmount: ListEntityMethodMinimumAmount;
|
|
201
198
|
/**
|
|
202
199
|
* The maximum payment amount allowed when using this payment method. If there is no method-specific maximum, `null`
|
|
@@ -220,9 +220,6 @@ export type ListEntityMethodAll = {
|
|
|
220
220
|
* If a `locale` parameter is provided, the name is translated to the given locale if possible.
|
|
221
221
|
*/
|
|
222
222
|
description: string;
|
|
223
|
-
/**
|
|
224
|
-
* The minimum payment amount required to use this payment method.
|
|
225
|
-
*/
|
|
226
223
|
minimumAmount: ListEntityMethodAllMinimumAmount;
|
|
227
224
|
/**
|
|
228
225
|
* The maximum payment amount allowed when using this payment method. If there is no method-specific maximum, `null`
|
|
@@ -20,31 +20,6 @@ import {
|
|
|
20
20
|
import { Url, Url$inboundSchema } from "./url.js";
|
|
21
21
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
28
|
-
*
|
|
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.
|
|
32
|
-
*
|
|
33
|
-
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
34
|
-
*
|
|
35
|
-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
|
-
*/
|
|
37
|
-
export type ListEntityRefundSettlementAmount = {
|
|
38
|
-
/**
|
|
39
|
-
* A three-character ISO 4217 currency code.
|
|
40
|
-
*/
|
|
41
|
-
currency: string;
|
|
42
|
-
/**
|
|
43
|
-
* A string containing an exact monetary amount in the given currency.
|
|
44
|
-
*/
|
|
45
|
-
value: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
23
|
export const ListEntityRefundStatus = {
|
|
49
24
|
Queued: "queued",
|
|
50
25
|
Pending: "pending",
|
|
@@ -126,21 +101,6 @@ export type ListEntityRefund = {
|
|
|
126
101
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
127
102
|
*/
|
|
128
103
|
amount: Amount;
|
|
129
|
-
/**
|
|
130
|
-
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
131
|
-
*
|
|
132
|
-
* @remarks
|
|
133
|
-
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
134
|
-
*
|
|
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.
|
|
138
|
-
*
|
|
139
|
-
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
140
|
-
*
|
|
141
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
142
|
-
*/
|
|
143
|
-
settlementAmount?: ListEntityRefundSettlementAmount | null | undefined;
|
|
144
104
|
/**
|
|
145
105
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
146
106
|
*
|
|
@@ -184,26 +144,6 @@ export type ListEntityRefund = {
|
|
|
184
144
|
links: ListEntityRefundLinks;
|
|
185
145
|
};
|
|
186
146
|
|
|
187
|
-
/** @internal */
|
|
188
|
-
export const ListEntityRefundSettlementAmount$inboundSchema: z.ZodType<
|
|
189
|
-
ListEntityRefundSettlementAmount,
|
|
190
|
-
z.ZodTypeDef,
|
|
191
|
-
unknown
|
|
192
|
-
> = z.object({
|
|
193
|
-
currency: z.string(),
|
|
194
|
-
value: z.string(),
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
export function listEntityRefundSettlementAmountFromJSON(
|
|
198
|
-
jsonString: string,
|
|
199
|
-
): SafeParseResult<ListEntityRefundSettlementAmount, SDKValidationError> {
|
|
200
|
-
return safeParse(
|
|
201
|
-
jsonString,
|
|
202
|
-
(x) => ListEntityRefundSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
-
`Failed to parse 'ListEntityRefundSettlementAmount' from JSON`,
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
147
|
/** @internal */
|
|
208
148
|
export const ListEntityRefundStatus$inboundSchema: z.ZodType<
|
|
209
149
|
ListEntityRefundStatus,
|
|
@@ -302,9 +242,6 @@ export const ListEntityRefund$inboundSchema: z.ZodType<
|
|
|
302
242
|
mode: Mode$inboundSchema,
|
|
303
243
|
description: z.string(),
|
|
304
244
|
amount: Amount$inboundSchema,
|
|
305
|
-
settlementAmount: z.nullable(
|
|
306
|
-
z.lazy(() => ListEntityRefundSettlementAmount$inboundSchema),
|
|
307
|
-
).optional(),
|
|
308
245
|
metadata: z.nullable(Metadata$inboundSchema),
|
|
309
246
|
paymentId: z.string(),
|
|
310
247
|
settlementId: z.nullable(z.string()).optional(),
|