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