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