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
|
@@ -7,12 +7,7 @@ import * as z from "zod/v3";
|
|
|
7
7
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
-
import { RFCDate } from "../types/rfcdate.js";
|
|
11
10
|
import { Amount, Amount$inboundSchema } from "./amount.js";
|
|
12
|
-
import {
|
|
13
|
-
AmountNullable,
|
|
14
|
-
AmountNullable$inboundSchema,
|
|
15
|
-
} from "./amountnullable.js";
|
|
16
11
|
import {
|
|
17
12
|
CaptureModeResponse,
|
|
18
13
|
CaptureModeResponse$inboundSchema,
|
|
@@ -40,45 +35,9 @@ import {
|
|
|
40
35
|
PaymentAddress$inboundSchema,
|
|
41
36
|
} from "./paymentaddress.js";
|
|
42
37
|
import {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from "./
|
|
46
|
-
import {
|
|
47
|
-
PaymentDetailsCardFundingResponse,
|
|
48
|
-
PaymentDetailsCardFundingResponse$inboundSchema,
|
|
49
|
-
} from "./paymentdetailscardfundingresponse.js";
|
|
50
|
-
import {
|
|
51
|
-
PaymentDetailsCardLabelResponse,
|
|
52
|
-
PaymentDetailsCardLabelResponse$inboundSchema,
|
|
53
|
-
} from "./paymentdetailscardlabelresponse.js";
|
|
54
|
-
import {
|
|
55
|
-
PaymentDetailsCardSecurityResponse,
|
|
56
|
-
PaymentDetailsCardSecurityResponse$inboundSchema,
|
|
57
|
-
} from "./paymentdetailscardsecurityresponse.js";
|
|
58
|
-
import {
|
|
59
|
-
PaymentDetailsFailureReasonResponse,
|
|
60
|
-
PaymentDetailsFailureReasonResponse$inboundSchema,
|
|
61
|
-
} from "./paymentdetailsfailurereasonresponse.js";
|
|
62
|
-
import {
|
|
63
|
-
PaymentDetailsFeeRegionResponse,
|
|
64
|
-
PaymentDetailsFeeRegionResponse$inboundSchema,
|
|
65
|
-
} from "./paymentdetailsfeeregionresponse.js";
|
|
66
|
-
import {
|
|
67
|
-
PaymentDetailsReceiptCardReadMethodResponse,
|
|
68
|
-
PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
|
|
69
|
-
} from "./paymentdetailsreceiptcardreadmethodresponse.js";
|
|
70
|
-
import {
|
|
71
|
-
PaymentDetailsReceiptCardVerificationMethodResponse,
|
|
72
|
-
PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
|
|
73
|
-
} from "./paymentdetailsreceiptcardverificationmethodresponse.js";
|
|
74
|
-
import {
|
|
75
|
-
PaymentDetailsSellerProtectionResponse,
|
|
76
|
-
PaymentDetailsSellerProtectionResponse$inboundSchema,
|
|
77
|
-
} from "./paymentdetailssellerprotectionresponse.js";
|
|
78
|
-
import {
|
|
79
|
-
PaymentDetailsWalletResponse,
|
|
80
|
-
PaymentDetailsWalletResponse$inboundSchema,
|
|
81
|
-
} from "./paymentdetailswalletresponse.js";
|
|
38
|
+
PaymentDetails,
|
|
39
|
+
PaymentDetails$inboundSchema,
|
|
40
|
+
} from "./paymentdetails.js";
|
|
82
41
|
import {
|
|
83
42
|
PaymentLineTypeResponse,
|
|
84
43
|
PaymentLineTypeResponse$inboundSchema,
|
|
@@ -166,25 +125,6 @@ export type ListSettlementPaymentResponseAmountChargedBack = {
|
|
|
166
125
|
value: string;
|
|
167
126
|
};
|
|
168
127
|
|
|
169
|
-
/**
|
|
170
|
-
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
171
|
-
*
|
|
172
|
-
* @remarks
|
|
173
|
-
*
|
|
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.
|
|
176
|
-
*/
|
|
177
|
-
export type ListSettlementPaymentResponseSettlementAmount = {
|
|
178
|
-
/**
|
|
179
|
-
* A three-character ISO 4217 currency code.
|
|
180
|
-
*/
|
|
181
|
-
currency: string;
|
|
182
|
-
/**
|
|
183
|
-
* A string containing an exact monetary amount in the given currency.
|
|
184
|
-
*/
|
|
185
|
-
value: string;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
128
|
export type ListSettlementPaymentResponseLine = {
|
|
189
129
|
/**
|
|
190
130
|
* The type of product purchased. For example, a physical or a digital product.
|
|
@@ -379,328 +319,6 @@ export type ListSettlementPaymentResponseApplicationFee = {
|
|
|
379
319
|
description?: string | undefined;
|
|
380
320
|
};
|
|
381
321
|
|
|
382
|
-
/**
|
|
383
|
-
* The Point of sale receipt object.
|
|
384
|
-
*/
|
|
385
|
-
export type ListSettlementPaymentResponseReceipt = {
|
|
386
|
-
/**
|
|
387
|
-
* A unique code provided by the cardholder’s bank to confirm that the transaction was successfully approved.
|
|
388
|
-
*/
|
|
389
|
-
authorizationCode?: string | null | undefined;
|
|
390
|
-
/**
|
|
391
|
-
* The unique number that identifies a specific payment application on a chip card.
|
|
392
|
-
*/
|
|
393
|
-
applicationIdentifier?: string | null | undefined;
|
|
394
|
-
/**
|
|
395
|
-
* The method by which the card was read by the terminal.
|
|
396
|
-
*/
|
|
397
|
-
cardReadMethod?:
|
|
398
|
-
| PaymentDetailsReceiptCardReadMethodResponse
|
|
399
|
-
| null
|
|
400
|
-
| undefined;
|
|
401
|
-
/**
|
|
402
|
-
* The method used to verify the cardholder's identity.
|
|
403
|
-
*/
|
|
404
|
-
cardVerificationMethod?:
|
|
405
|
-
| PaymentDetailsReceiptCardVerificationMethodResponse
|
|
406
|
-
| null
|
|
407
|
-
| undefined;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
|
|
412
|
-
*
|
|
413
|
-
* @remarks
|
|
414
|
-
* the QR code details will be available in this object.
|
|
415
|
-
*
|
|
416
|
-
* The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
|
|
417
|
-
* Bancontact QR payments can be completed by the customer using the Bancontact app.
|
|
418
|
-
*/
|
|
419
|
-
export type ListSettlementPaymentResponseQrCode = {
|
|
420
|
-
/**
|
|
421
|
-
* The height of the QR code image in pixels.
|
|
422
|
-
*/
|
|
423
|
-
height?: number | undefined;
|
|
424
|
-
/**
|
|
425
|
-
* The width of the QR code image in pixels.
|
|
426
|
-
*/
|
|
427
|
-
width?: number | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* The URL to the QR code image. The image is a PNG file, and can be displayed directly in the browser or
|
|
430
|
-
*
|
|
431
|
-
* @remarks
|
|
432
|
-
* downloaded.
|
|
433
|
-
*/
|
|
434
|
-
src?: string | undefined;
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* An object containing payment details collected during the payment process. For example, details may include the
|
|
439
|
-
*
|
|
440
|
-
* @remarks
|
|
441
|
-
* customer's card or bank details and a payment reference. For the full list of details, please refer to the
|
|
442
|
-
* [method-specific parameters](extra-payment-parameters) guide.
|
|
443
|
-
*/
|
|
444
|
-
export type ListSettlementPaymentResponseDetails = {
|
|
445
|
-
/**
|
|
446
|
-
* The customer's name, if made available by the payment method. For card payments, refer to details.cardHolder.
|
|
447
|
-
*/
|
|
448
|
-
consumerName?: string | null | undefined;
|
|
449
|
-
/**
|
|
450
|
-
* The customer's account reference.
|
|
451
|
-
*
|
|
452
|
-
* @remarks
|
|
453
|
-
*
|
|
454
|
-
* For banking-based payment methods — such as iDEAL — this is normally either an IBAN or a domestic bank account
|
|
455
|
-
* number.
|
|
456
|
-
*
|
|
457
|
-
* For PayPal, the account reference is an email address.
|
|
458
|
-
*
|
|
459
|
-
* For card and Bancontact payments, refer to details.cardNumber.
|
|
460
|
-
*/
|
|
461
|
-
consumerAccount?: string | null | undefined;
|
|
462
|
-
/**
|
|
463
|
-
* The BIC of the customer's bank account, if applicable.
|
|
464
|
-
*/
|
|
465
|
-
consumerBic?: string | null | undefined;
|
|
466
|
-
/**
|
|
467
|
-
* For wallet payment methods — such as Apple Pay and PayPal — the shipping address is often already known by the
|
|
468
|
-
*
|
|
469
|
-
* @remarks
|
|
470
|
-
* wallet provider. In these cases the shipping address may be available as a payment detail.
|
|
471
|
-
*/
|
|
472
|
-
shippingAddress?: { [k: string]: any } | null | undefined;
|
|
473
|
-
/**
|
|
474
|
-
* For bancontact, it will be the customer's masked card number. For cards, it will be the last 4-digit of the
|
|
475
|
-
*
|
|
476
|
-
* @remarks
|
|
477
|
-
* PAN. For Point-of-sale, it will be the the last 4 digits of the customer's masked card number.
|
|
478
|
-
*/
|
|
479
|
-
cardNumber?: string | null | undefined;
|
|
480
|
-
/**
|
|
481
|
-
* The name of the bank that the customer will need to make the bank transfer payment towards.
|
|
482
|
-
*/
|
|
483
|
-
bankName?: string | undefined;
|
|
484
|
-
/**
|
|
485
|
-
* The bank account number the customer will need to make the bank transfer payment towards.
|
|
486
|
-
*/
|
|
487
|
-
bankAccount?: string | undefined;
|
|
488
|
-
/**
|
|
489
|
-
* The BIC of the bank the customer will need to make the bank transfer payment towards.
|
|
490
|
-
*/
|
|
491
|
-
bankBic?: string | undefined;
|
|
492
|
-
/**
|
|
493
|
-
* The Mollie-generated reference the customer needs to use when transfering the amount. Do not apply any
|
|
494
|
-
*
|
|
495
|
-
* @remarks
|
|
496
|
-
* formatting here; show it to the customer as-is.
|
|
497
|
-
*/
|
|
498
|
-
transferReference?: string | null | undefined;
|
|
499
|
-
/**
|
|
500
|
-
* A unique fingerprint for a specific card. Can be used to identify returning customers.
|
|
501
|
-
*
|
|
502
|
-
* @remarks
|
|
503
|
-
*
|
|
504
|
-
* In the case of Point-of-sale payments, it's a unique identifier assigned to a cardholder's payment account,
|
|
505
|
-
* linking multiple transactions from wallets and physical card to a single account, also across payment methods
|
|
506
|
-
* or when the card is reissued.
|
|
507
|
-
*/
|
|
508
|
-
cardFingerprint?: string | null | undefined;
|
|
509
|
-
/**
|
|
510
|
-
* The customer's name as shown on their card.
|
|
511
|
-
*/
|
|
512
|
-
cardHolder?: string | null | undefined;
|
|
513
|
-
/**
|
|
514
|
-
* The card's target audience, if known.
|
|
515
|
-
*/
|
|
516
|
-
cardAudition?: PaymentDetailsCardAuditionResponse | null | undefined;
|
|
517
|
-
/**
|
|
518
|
-
* The card's label, if known.
|
|
519
|
-
*/
|
|
520
|
-
cardLabel?: PaymentDetailsCardLabelResponse | null | undefined;
|
|
521
|
-
/**
|
|
522
|
-
* The ISO 3166-1 alpha-2 country code of the country the card was issued in.
|
|
523
|
-
*/
|
|
524
|
-
cardCountryCode?: string | null | undefined;
|
|
525
|
-
/**
|
|
526
|
-
* The expiry date (MM/YY) of the card as displayed on the card.
|
|
527
|
-
*/
|
|
528
|
-
cardExpiryDate?: string | null | undefined;
|
|
529
|
-
/**
|
|
530
|
-
* The card type.
|
|
531
|
-
*/
|
|
532
|
-
cardFunding?: PaymentDetailsCardFundingResponse | null | undefined;
|
|
533
|
-
/**
|
|
534
|
-
* The level of security applied during card processing.
|
|
535
|
-
*/
|
|
536
|
-
cardSecurity?: PaymentDetailsCardSecurityResponse | null | undefined;
|
|
537
|
-
/**
|
|
538
|
-
* The applicable card fee region.
|
|
539
|
-
*/
|
|
540
|
-
feeRegion?: PaymentDetailsFeeRegionResponse | null | undefined;
|
|
541
|
-
/**
|
|
542
|
-
* The first 6 and last 4 digits of the card number.
|
|
543
|
-
*/
|
|
544
|
-
cardMaskedNumber?: string | null | undefined;
|
|
545
|
-
/**
|
|
546
|
-
* The outcome of authentication attempted on transactions enforced by 3DS (ie valid only for oneoff and first).
|
|
547
|
-
*/
|
|
548
|
-
card3dsEci?: string | null | undefined;
|
|
549
|
-
/**
|
|
550
|
-
* The first 6 digit of the card bank identification number.
|
|
551
|
-
*/
|
|
552
|
-
cardBin?: string | null | undefined;
|
|
553
|
-
/**
|
|
554
|
-
* The issuer of the Card.
|
|
555
|
-
*/
|
|
556
|
-
cardIssuer?: string | null | undefined;
|
|
557
|
-
/**
|
|
558
|
-
* A failure code to help understand why the payment failed.
|
|
559
|
-
*/
|
|
560
|
-
failureReason?: PaymentDetailsFailureReasonResponse | null | undefined;
|
|
561
|
-
/**
|
|
562
|
-
* A human-friendly failure message that can be shown to the customer. The message is translated in accordance
|
|
563
|
-
*
|
|
564
|
-
* @remarks
|
|
565
|
-
* with the payment's locale setting.
|
|
566
|
-
*/
|
|
567
|
-
failureMessage?: string | null | undefined;
|
|
568
|
-
/**
|
|
569
|
-
* The wallet used when creating the payment.
|
|
570
|
-
*/
|
|
571
|
-
wallet?: PaymentDetailsWalletResponse | null | undefined;
|
|
572
|
-
/**
|
|
573
|
-
* PayPal's reference for the payment.
|
|
574
|
-
*/
|
|
575
|
-
paypalReference?: string | null | undefined;
|
|
576
|
-
/**
|
|
577
|
-
* ID of the customer's PayPal account.
|
|
578
|
-
*/
|
|
579
|
-
paypalPayerId?: string | null | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
|
|
582
|
-
*
|
|
583
|
-
* @remarks
|
|
584
|
-
* payments, and if the information is made available by PayPal.
|
|
585
|
-
*/
|
|
586
|
-
sellerProtection?: PaymentDetailsSellerProtectionResponse | null | undefined;
|
|
587
|
-
/**
|
|
588
|
-
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
589
|
-
*/
|
|
590
|
-
paypalFee?: AmountNullable | null | undefined;
|
|
591
|
-
/**
|
|
592
|
-
* The paysafecard customer reference either provided via the API or otherwise auto-generated by Mollie.
|
|
593
|
-
*/
|
|
594
|
-
customerReference?: string | undefined;
|
|
595
|
-
/**
|
|
596
|
-
* The ID of the terminal device where the payment took place on.
|
|
597
|
-
*/
|
|
598
|
-
terminalId?: string | undefined;
|
|
599
|
-
/**
|
|
600
|
-
* The first 6 digits & last 4 digits of the customer's masked card number.
|
|
601
|
-
*/
|
|
602
|
-
maskedNumber?: string | null | undefined;
|
|
603
|
-
/**
|
|
604
|
-
* The Point of sale receipt object.
|
|
605
|
-
*/
|
|
606
|
-
receipt?: ListSettlementPaymentResponseReceipt | undefined;
|
|
607
|
-
/**
|
|
608
|
-
* The creditor identifier indicates who is authorized to execute the payment. In this case, it is a
|
|
609
|
-
*
|
|
610
|
-
* @remarks
|
|
611
|
-
* reference to Mollie.
|
|
612
|
-
*/
|
|
613
|
-
creditorIdentifier?: string | null | undefined;
|
|
614
|
-
/**
|
|
615
|
-
* Estimated date the payment is debited from the customer's bank account, in YYYY-MM-DD format.
|
|
616
|
-
*/
|
|
617
|
-
dueDate?: RFCDate | null | undefined;
|
|
618
|
-
/**
|
|
619
|
-
* Date the payment has been signed by the customer, in YYYY-MM-DD format. Only available if the payment
|
|
620
|
-
*
|
|
621
|
-
* @remarks
|
|
622
|
-
* has been signed.
|
|
623
|
-
*/
|
|
624
|
-
signatureDate?: RFCDate | null | undefined;
|
|
625
|
-
/**
|
|
626
|
-
* The official reason why this payment has failed. A detailed description of each reason is available on the
|
|
627
|
-
*
|
|
628
|
-
* @remarks
|
|
629
|
-
* website of the European Payments Council.
|
|
630
|
-
*/
|
|
631
|
-
bankReasonCode?: string | null | undefined;
|
|
632
|
-
/**
|
|
633
|
-
* A human-friendly description of the failure reason.
|
|
634
|
-
*/
|
|
635
|
-
bankReason?: string | null | undefined;
|
|
636
|
-
/**
|
|
637
|
-
* The end-to-end identifier you provided in the batch file.
|
|
638
|
-
*/
|
|
639
|
-
endToEndIdentifier?: string | null | undefined;
|
|
640
|
-
/**
|
|
641
|
-
* The mandate reference you provided in the batch file.
|
|
642
|
-
*/
|
|
643
|
-
mandateReference?: string | null | undefined;
|
|
644
|
-
/**
|
|
645
|
-
* The batch reference you provided in the batch file.
|
|
646
|
-
*/
|
|
647
|
-
batchReference?: string | null | undefined;
|
|
648
|
-
/**
|
|
649
|
-
* The file reference you provided in the batch file.
|
|
650
|
-
*/
|
|
651
|
-
fileReference?: string | null | undefined;
|
|
652
|
-
/**
|
|
653
|
-
* Optional include. If a QR code was requested during payment creation for a QR-compatible payment method,
|
|
654
|
-
*
|
|
655
|
-
* @remarks
|
|
656
|
-
* the QR code details will be available in this object.
|
|
657
|
-
*
|
|
658
|
-
* The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
|
|
659
|
-
* Bancontact QR payments can be completed by the customer using the Bancontact app.
|
|
660
|
-
*/
|
|
661
|
-
qrCode?: ListSettlementPaymentResponseQrCode | undefined;
|
|
662
|
-
/**
|
|
663
|
-
* For payments with gift cards: the masked gift card number of the first gift card applied to the payment.
|
|
664
|
-
*/
|
|
665
|
-
voucherNumber?: string | undefined;
|
|
666
|
-
/**
|
|
667
|
-
* An array of detail objects for each gift card that was used on this payment, if any.
|
|
668
|
-
*/
|
|
669
|
-
giftcards?: Array<{ [k: string]: any }> | undefined;
|
|
670
|
-
/**
|
|
671
|
-
* For payments with vouchers: the brand name of the first voucher applied.
|
|
672
|
-
*/
|
|
673
|
-
issuer?: string | undefined;
|
|
674
|
-
/**
|
|
675
|
-
* An array of detail objects for each voucher that was used on this payment, if any.
|
|
676
|
-
*/
|
|
677
|
-
vouchers?: Array<{ [k: string]: any }> | undefined;
|
|
678
|
-
/**
|
|
679
|
-
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
680
|
-
*/
|
|
681
|
-
remainderAmount?: Amount | undefined;
|
|
682
|
-
/**
|
|
683
|
-
* The payment method used to pay the remainder amount, after all gift cards or vouchers were applied.
|
|
684
|
-
*/
|
|
685
|
-
remainderMethod?: string | undefined;
|
|
686
|
-
/**
|
|
687
|
-
* Optional include. The full payment method details of the remainder payment.
|
|
688
|
-
*/
|
|
689
|
-
remainderDetails?: { [k: string]: any } | undefined;
|
|
690
|
-
/**
|
|
691
|
-
* Multibanco payment reference of the transaction
|
|
692
|
-
*/
|
|
693
|
-
multibancoReference?: string | null | undefined;
|
|
694
|
-
/**
|
|
695
|
-
* Multibanco entity reference of the transaction
|
|
696
|
-
*/
|
|
697
|
-
multibancoEntity?: string | null | undefined;
|
|
698
|
-
/**
|
|
699
|
-
* Bizum payment reference of the transaction
|
|
700
|
-
*/
|
|
701
|
-
bizumReference?: string | null | undefined;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
322
|
/**
|
|
705
323
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
706
324
|
*/
|
|
@@ -771,6 +389,25 @@ export type ListSettlementPaymentResponseLinks = {
|
|
|
771
389
|
payOnline?: Url | undefined;
|
|
772
390
|
};
|
|
773
391
|
|
|
392
|
+
/**
|
|
393
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
394
|
+
*
|
|
395
|
+
* @remarks
|
|
396
|
+
*
|
|
397
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
398
|
+
* Mollie, this field is omitted from the response.
|
|
399
|
+
*/
|
|
400
|
+
export type ListSettlementPaymentResponseSettlementAmount = {
|
|
401
|
+
/**
|
|
402
|
+
* A three-character ISO 4217 currency code.
|
|
403
|
+
*/
|
|
404
|
+
currency: string;
|
|
405
|
+
/**
|
|
406
|
+
* A string containing an exact monetary amount in the given currency.
|
|
407
|
+
*/
|
|
408
|
+
value: string;
|
|
409
|
+
};
|
|
410
|
+
|
|
774
411
|
export type ListSettlementPaymentResponse = {
|
|
775
412
|
/**
|
|
776
413
|
* Indicates the response contains a payment object. Will always contain the string `payment` for this endpoint.
|
|
@@ -805,40 +442,12 @@ export type ListSettlementPaymentResponse = {
|
|
|
805
442
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
806
443
|
*/
|
|
807
444
|
amount: Amount;
|
|
808
|
-
/**
|
|
809
|
-
* The total amount that is already refunded. Only available when refunds are available for this payment. For some
|
|
810
|
-
*
|
|
811
|
-
* @remarks
|
|
812
|
-
* payment methods, this amount may be higher than the payment amount, for example to allow reimbursement of the
|
|
813
|
-
* costs for a return shipment to the customer.
|
|
814
|
-
*/
|
|
815
445
|
amountRefunded?: ListSettlementPaymentResponseAmountRefunded | undefined;
|
|
816
|
-
/**
|
|
817
|
-
* The remaining amount that can be refunded. Only available when refunds are available for this payment.
|
|
818
|
-
*/
|
|
819
446
|
amountRemaining?: ListSettlementPaymentResponseAmountRemaining | undefined;
|
|
820
|
-
/**
|
|
821
|
-
* The total amount that is already captured for this payment. Only available when this payment supports captures.
|
|
822
|
-
*/
|
|
823
447
|
amountCaptured?: ListSettlementPaymentResponseAmountCaptured | undefined;
|
|
824
|
-
/**
|
|
825
|
-
* The total amount that was charged back for this payment. Only available when the total charged back amount is not
|
|
826
|
-
*
|
|
827
|
-
* @remarks
|
|
828
|
-
* zero.
|
|
829
|
-
*/
|
|
830
448
|
amountChargedBack?:
|
|
831
449
|
| ListSettlementPaymentResponseAmountChargedBack
|
|
832
450
|
| undefined;
|
|
833
|
-
/**
|
|
834
|
-
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
835
|
-
*
|
|
836
|
-
* @remarks
|
|
837
|
-
*
|
|
838
|
-
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
839
|
-
* Mollie, this field is omitted from the response.
|
|
840
|
-
*/
|
|
841
|
-
settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
|
|
842
451
|
/**
|
|
843
452
|
* The URL your customer will be redirected to after the payment process.
|
|
844
453
|
*
|
|
@@ -1075,7 +684,7 @@ export type ListSettlementPaymentResponse = {
|
|
|
1075
684
|
* customer's card or bank details and a payment reference. For the full list of details, please refer to the
|
|
1076
685
|
* [method-specific parameters](extra-payment-parameters) guide.
|
|
1077
686
|
*/
|
|
1078
|
-
details?:
|
|
687
|
+
details?: PaymentDetails | null | undefined;
|
|
1079
688
|
/**
|
|
1080
689
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
1081
690
|
*/
|
|
@@ -1126,6 +735,7 @@ export type ListSettlementPaymentResponse = {
|
|
|
1126
735
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
1127
736
|
*/
|
|
1128
737
|
links: ListSettlementPaymentResponseLinks;
|
|
738
|
+
settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
|
|
1129
739
|
};
|
|
1130
740
|
|
|
1131
741
|
/** @internal */
|
|
@@ -1236,33 +846,6 @@ export function listSettlementPaymentResponseAmountChargedBackFromJSON(
|
|
|
1236
846
|
);
|
|
1237
847
|
}
|
|
1238
848
|
|
|
1239
|
-
/** @internal */
|
|
1240
|
-
export const ListSettlementPaymentResponseSettlementAmount$inboundSchema:
|
|
1241
|
-
z.ZodType<
|
|
1242
|
-
ListSettlementPaymentResponseSettlementAmount,
|
|
1243
|
-
z.ZodTypeDef,
|
|
1244
|
-
unknown
|
|
1245
|
-
> = z.object({
|
|
1246
|
-
currency: z.string(),
|
|
1247
|
-
value: z.string(),
|
|
1248
|
-
});
|
|
1249
|
-
|
|
1250
|
-
export function listSettlementPaymentResponseSettlementAmountFromJSON(
|
|
1251
|
-
jsonString: string,
|
|
1252
|
-
): SafeParseResult<
|
|
1253
|
-
ListSettlementPaymentResponseSettlementAmount,
|
|
1254
|
-
SDKValidationError
|
|
1255
|
-
> {
|
|
1256
|
-
return safeParse(
|
|
1257
|
-
jsonString,
|
|
1258
|
-
(x) =>
|
|
1259
|
-
ListSettlementPaymentResponseSettlementAmount$inboundSchema.parse(
|
|
1260
|
-
JSON.parse(x),
|
|
1261
|
-
),
|
|
1262
|
-
`Failed to parse 'ListSettlementPaymentResponseSettlementAmount' from JSON`,
|
|
1263
|
-
);
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
849
|
/** @internal */
|
|
1267
850
|
export const ListSettlementPaymentResponseLine$inboundSchema: z.ZodType<
|
|
1268
851
|
ListSettlementPaymentResponseLine,
|
|
@@ -1359,138 +942,6 @@ export function listSettlementPaymentResponseApplicationFeeFromJSON(
|
|
|
1359
942
|
);
|
|
1360
943
|
}
|
|
1361
944
|
|
|
1362
|
-
/** @internal */
|
|
1363
|
-
export const ListSettlementPaymentResponseReceipt$inboundSchema: z.ZodType<
|
|
1364
|
-
ListSettlementPaymentResponseReceipt,
|
|
1365
|
-
z.ZodTypeDef,
|
|
1366
|
-
unknown
|
|
1367
|
-
> = z.object({
|
|
1368
|
-
authorizationCode: z.nullable(z.string()).optional(),
|
|
1369
|
-
applicationIdentifier: z.nullable(z.string()).optional(),
|
|
1370
|
-
cardReadMethod: z.nullable(
|
|
1371
|
-
PaymentDetailsReceiptCardReadMethodResponse$inboundSchema,
|
|
1372
|
-
).optional(),
|
|
1373
|
-
cardVerificationMethod: z.nullable(
|
|
1374
|
-
PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema,
|
|
1375
|
-
).optional(),
|
|
1376
|
-
});
|
|
1377
|
-
|
|
1378
|
-
export function listSettlementPaymentResponseReceiptFromJSON(
|
|
1379
|
-
jsonString: string,
|
|
1380
|
-
): SafeParseResult<ListSettlementPaymentResponseReceipt, SDKValidationError> {
|
|
1381
|
-
return safeParse(
|
|
1382
|
-
jsonString,
|
|
1383
|
-
(x) =>
|
|
1384
|
-
ListSettlementPaymentResponseReceipt$inboundSchema.parse(JSON.parse(x)),
|
|
1385
|
-
`Failed to parse 'ListSettlementPaymentResponseReceipt' from JSON`,
|
|
1386
|
-
);
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
/** @internal */
|
|
1390
|
-
export const ListSettlementPaymentResponseQrCode$inboundSchema: z.ZodType<
|
|
1391
|
-
ListSettlementPaymentResponseQrCode,
|
|
1392
|
-
z.ZodTypeDef,
|
|
1393
|
-
unknown
|
|
1394
|
-
> = z.object({
|
|
1395
|
-
height: z.number().int().optional(),
|
|
1396
|
-
width: z.number().int().optional(),
|
|
1397
|
-
src: z.string().optional(),
|
|
1398
|
-
});
|
|
1399
|
-
|
|
1400
|
-
export function listSettlementPaymentResponseQrCodeFromJSON(
|
|
1401
|
-
jsonString: string,
|
|
1402
|
-
): SafeParseResult<ListSettlementPaymentResponseQrCode, SDKValidationError> {
|
|
1403
|
-
return safeParse(
|
|
1404
|
-
jsonString,
|
|
1405
|
-
(x) =>
|
|
1406
|
-
ListSettlementPaymentResponseQrCode$inboundSchema.parse(JSON.parse(x)),
|
|
1407
|
-
`Failed to parse 'ListSettlementPaymentResponseQrCode' from JSON`,
|
|
1408
|
-
);
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
/** @internal */
|
|
1412
|
-
export const ListSettlementPaymentResponseDetails$inboundSchema: z.ZodType<
|
|
1413
|
-
ListSettlementPaymentResponseDetails,
|
|
1414
|
-
z.ZodTypeDef,
|
|
1415
|
-
unknown
|
|
1416
|
-
> = z.object({
|
|
1417
|
-
consumerName: z.nullable(z.string()).optional(),
|
|
1418
|
-
consumerAccount: z.nullable(z.string()).optional(),
|
|
1419
|
-
consumerBic: z.nullable(z.string()).optional(),
|
|
1420
|
-
shippingAddress: z.nullable(z.record(z.any())).optional(),
|
|
1421
|
-
cardNumber: z.nullable(z.string()).optional(),
|
|
1422
|
-
bankName: z.string().optional(),
|
|
1423
|
-
bankAccount: z.string().optional(),
|
|
1424
|
-
bankBic: z.string().optional(),
|
|
1425
|
-
transferReference: z.nullable(z.string()).optional(),
|
|
1426
|
-
cardFingerprint: z.nullable(z.string()).optional(),
|
|
1427
|
-
cardHolder: z.nullable(z.string()).optional(),
|
|
1428
|
-
cardAudition: z.nullable(PaymentDetailsCardAuditionResponse$inboundSchema)
|
|
1429
|
-
.optional(),
|
|
1430
|
-
cardLabel: z.nullable(PaymentDetailsCardLabelResponse$inboundSchema)
|
|
1431
|
-
.optional(),
|
|
1432
|
-
cardCountryCode: z.nullable(z.string()).optional(),
|
|
1433
|
-
cardExpiryDate: z.nullable(z.string()).optional(),
|
|
1434
|
-
cardFunding: z.nullable(PaymentDetailsCardFundingResponse$inboundSchema)
|
|
1435
|
-
.optional(),
|
|
1436
|
-
cardSecurity: z.nullable(PaymentDetailsCardSecurityResponse$inboundSchema)
|
|
1437
|
-
.optional(),
|
|
1438
|
-
feeRegion: z.nullable(PaymentDetailsFeeRegionResponse$inboundSchema)
|
|
1439
|
-
.optional(),
|
|
1440
|
-
cardMaskedNumber: z.nullable(z.string()).optional(),
|
|
1441
|
-
card3dsEci: z.nullable(z.string()).optional(),
|
|
1442
|
-
cardBin: z.nullable(z.string()).optional(),
|
|
1443
|
-
cardIssuer: z.nullable(z.string()).optional(),
|
|
1444
|
-
failureReason: z.nullable(PaymentDetailsFailureReasonResponse$inboundSchema)
|
|
1445
|
-
.optional(),
|
|
1446
|
-
failureMessage: z.nullable(z.string()).optional(),
|
|
1447
|
-
wallet: z.nullable(PaymentDetailsWalletResponse$inboundSchema).optional(),
|
|
1448
|
-
paypalReference: z.nullable(z.string()).optional(),
|
|
1449
|
-
paypalPayerId: z.nullable(z.string()).optional(),
|
|
1450
|
-
sellerProtection: z.nullable(
|
|
1451
|
-
PaymentDetailsSellerProtectionResponse$inboundSchema,
|
|
1452
|
-
).optional(),
|
|
1453
|
-
paypalFee: z.nullable(AmountNullable$inboundSchema).optional(),
|
|
1454
|
-
customerReference: z.string().optional(),
|
|
1455
|
-
terminalId: z.string().optional(),
|
|
1456
|
-
maskedNumber: z.nullable(z.string()).optional(),
|
|
1457
|
-
receipt: z.lazy(() => ListSettlementPaymentResponseReceipt$inboundSchema)
|
|
1458
|
-
.optional(),
|
|
1459
|
-
creditorIdentifier: z.nullable(z.string()).optional(),
|
|
1460
|
-
dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
1461
|
-
signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
|
|
1462
|
-
.optional(),
|
|
1463
|
-
bankReasonCode: z.nullable(z.string()).optional(),
|
|
1464
|
-
bankReason: z.nullable(z.string()).optional(),
|
|
1465
|
-
endToEndIdentifier: z.nullable(z.string()).optional(),
|
|
1466
|
-
mandateReference: z.nullable(z.string()).optional(),
|
|
1467
|
-
batchReference: z.nullable(z.string()).optional(),
|
|
1468
|
-
fileReference: z.nullable(z.string()).optional(),
|
|
1469
|
-
qrCode: z.lazy(() => ListSettlementPaymentResponseQrCode$inboundSchema)
|
|
1470
|
-
.optional(),
|
|
1471
|
-
voucherNumber: z.string().optional(),
|
|
1472
|
-
giftcards: z.array(z.record(z.any())).optional(),
|
|
1473
|
-
issuer: z.string().optional(),
|
|
1474
|
-
vouchers: z.array(z.record(z.any())).optional(),
|
|
1475
|
-
remainderAmount: Amount$inboundSchema.optional(),
|
|
1476
|
-
remainderMethod: z.string().optional(),
|
|
1477
|
-
remainderDetails: z.record(z.any()).optional(),
|
|
1478
|
-
multibancoReference: z.nullable(z.string()).optional(),
|
|
1479
|
-
multibancoEntity: z.nullable(z.string()).optional(),
|
|
1480
|
-
bizumReference: z.nullable(z.string()).optional(),
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
export function listSettlementPaymentResponseDetailsFromJSON(
|
|
1484
|
-
jsonString: string,
|
|
1485
|
-
): SafeParseResult<ListSettlementPaymentResponseDetails, SDKValidationError> {
|
|
1486
|
-
return safeParse(
|
|
1487
|
-
jsonString,
|
|
1488
|
-
(x) =>
|
|
1489
|
-
ListSettlementPaymentResponseDetails$inboundSchema.parse(JSON.parse(x)),
|
|
1490
|
-
`Failed to parse 'ListSettlementPaymentResponseDetails' from JSON`,
|
|
1491
|
-
);
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
945
|
/** @internal */
|
|
1495
946
|
export const ListSettlementPaymentResponseLinks$inboundSchema: z.ZodType<
|
|
1496
947
|
ListSettlementPaymentResponseLinks,
|
|
@@ -1526,6 +977,33 @@ export function listSettlementPaymentResponseLinksFromJSON(
|
|
|
1526
977
|
);
|
|
1527
978
|
}
|
|
1528
979
|
|
|
980
|
+
/** @internal */
|
|
981
|
+
export const ListSettlementPaymentResponseSettlementAmount$inboundSchema:
|
|
982
|
+
z.ZodType<
|
|
983
|
+
ListSettlementPaymentResponseSettlementAmount,
|
|
984
|
+
z.ZodTypeDef,
|
|
985
|
+
unknown
|
|
986
|
+
> = z.object({
|
|
987
|
+
currency: z.string(),
|
|
988
|
+
value: z.string(),
|
|
989
|
+
});
|
|
990
|
+
|
|
991
|
+
export function listSettlementPaymentResponseSettlementAmountFromJSON(
|
|
992
|
+
jsonString: string,
|
|
993
|
+
): SafeParseResult<
|
|
994
|
+
ListSettlementPaymentResponseSettlementAmount,
|
|
995
|
+
SDKValidationError
|
|
996
|
+
> {
|
|
997
|
+
return safeParse(
|
|
998
|
+
jsonString,
|
|
999
|
+
(x) =>
|
|
1000
|
+
ListSettlementPaymentResponseSettlementAmount$inboundSchema.parse(
|
|
1001
|
+
JSON.parse(x),
|
|
1002
|
+
),
|
|
1003
|
+
`Failed to parse 'ListSettlementPaymentResponseSettlementAmount' from JSON`,
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1529
1007
|
/** @internal */
|
|
1530
1008
|
export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
1531
1009
|
ListSettlementPaymentResponse,
|
|
@@ -1549,9 +1027,6 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1549
1027
|
amountChargedBack: z.lazy(() =>
|
|
1550
1028
|
ListSettlementPaymentResponseAmountChargedBack$inboundSchema
|
|
1551
1029
|
).optional(),
|
|
1552
|
-
settlementAmount: z.lazy(() =>
|
|
1553
|
-
ListSettlementPaymentResponseSettlementAmount$inboundSchema
|
|
1554
|
-
).optional(),
|
|
1555
1030
|
redirectUrl: z.nullable(z.string()).optional(),
|
|
1556
1031
|
cancelUrl: z.nullable(z.string()).optional(),
|
|
1557
1032
|
webhookUrl: z.nullable(z.string()).optional(),
|
|
@@ -1585,9 +1060,7 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1585
1060
|
status: SettlementPaymentStatus$inboundSchema,
|
|
1586
1061
|
statusReason: z.nullable(StatusReason$inboundSchema).optional(),
|
|
1587
1062
|
isCancelable: z.nullable(z.boolean()).optional(),
|
|
1588
|
-
details: z.nullable(
|
|
1589
|
-
z.lazy(() => ListSettlementPaymentResponseDetails$inboundSchema),
|
|
1590
|
-
).optional(),
|
|
1063
|
+
details: z.nullable(PaymentDetails$inboundSchema).optional(),
|
|
1591
1064
|
createdAt: z.string(),
|
|
1592
1065
|
authorizedAt: z.nullable(z.string()).optional(),
|
|
1593
1066
|
paidAt: z.nullable(z.string()).optional(),
|
|
@@ -1596,6 +1069,9 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1596
1069
|
expiredAt: z.nullable(z.string()).optional(),
|
|
1597
1070
|
failedAt: z.nullable(z.string()).optional(),
|
|
1598
1071
|
_links: z.lazy(() => ListSettlementPaymentResponseLinks$inboundSchema),
|
|
1072
|
+
settlementAmount: z.lazy(() =>
|
|
1073
|
+
ListSettlementPaymentResponseSettlementAmount$inboundSchema
|
|
1074
|
+
).optional(),
|
|
1599
1075
|
}).transform((v) => {
|
|
1600
1076
|
return remap$(v, {
|
|
1601
1077
|
"_links": "links",
|