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
|
@@ -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.
|
|
@@ -830,15 +467,6 @@ export type ListSettlementPaymentResponse = {
|
|
|
830
467
|
amountChargedBack?:
|
|
831
468
|
| ListSettlementPaymentResponseAmountChargedBack
|
|
832
469
|
| 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
470
|
/**
|
|
843
471
|
* The URL your customer will be redirected to after the payment process.
|
|
844
472
|
*
|
|
@@ -1075,7 +703,7 @@ export type ListSettlementPaymentResponse = {
|
|
|
1075
703
|
* customer's card or bank details and a payment reference. For the full list of details, please refer to the
|
|
1076
704
|
* [method-specific parameters](extra-payment-parameters) guide.
|
|
1077
705
|
*/
|
|
1078
|
-
details?:
|
|
706
|
+
details?: PaymentDetails | null | undefined;
|
|
1079
707
|
/**
|
|
1080
708
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
1081
709
|
*/
|
|
@@ -1126,6 +754,15 @@ export type ListSettlementPaymentResponse = {
|
|
|
1126
754
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
1127
755
|
*/
|
|
1128
756
|
links: ListSettlementPaymentResponseLinks;
|
|
757
|
+
/**
|
|
758
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
759
|
+
*
|
|
760
|
+
* @remarks
|
|
761
|
+
*
|
|
762
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
763
|
+
* Mollie, this field is omitted from the response.
|
|
764
|
+
*/
|
|
765
|
+
settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
|
|
1129
766
|
};
|
|
1130
767
|
|
|
1131
768
|
/** @internal */
|
|
@@ -1236,33 +873,6 @@ export function listSettlementPaymentResponseAmountChargedBackFromJSON(
|
|
|
1236
873
|
);
|
|
1237
874
|
}
|
|
1238
875
|
|
|
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
876
|
/** @internal */
|
|
1267
877
|
export const ListSettlementPaymentResponseLine$inboundSchema: z.ZodType<
|
|
1268
878
|
ListSettlementPaymentResponseLine,
|
|
@@ -1359,138 +969,6 @@ export function listSettlementPaymentResponseApplicationFeeFromJSON(
|
|
|
1359
969
|
);
|
|
1360
970
|
}
|
|
1361
971
|
|
|
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
972
|
/** @internal */
|
|
1495
973
|
export const ListSettlementPaymentResponseLinks$inboundSchema: z.ZodType<
|
|
1496
974
|
ListSettlementPaymentResponseLinks,
|
|
@@ -1526,6 +1004,33 @@ export function listSettlementPaymentResponseLinksFromJSON(
|
|
|
1526
1004
|
);
|
|
1527
1005
|
}
|
|
1528
1006
|
|
|
1007
|
+
/** @internal */
|
|
1008
|
+
export const ListSettlementPaymentResponseSettlementAmount$inboundSchema:
|
|
1009
|
+
z.ZodType<
|
|
1010
|
+
ListSettlementPaymentResponseSettlementAmount,
|
|
1011
|
+
z.ZodTypeDef,
|
|
1012
|
+
unknown
|
|
1013
|
+
> = z.object({
|
|
1014
|
+
currency: z.string(),
|
|
1015
|
+
value: z.string(),
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
export function listSettlementPaymentResponseSettlementAmountFromJSON(
|
|
1019
|
+
jsonString: string,
|
|
1020
|
+
): SafeParseResult<
|
|
1021
|
+
ListSettlementPaymentResponseSettlementAmount,
|
|
1022
|
+
SDKValidationError
|
|
1023
|
+
> {
|
|
1024
|
+
return safeParse(
|
|
1025
|
+
jsonString,
|
|
1026
|
+
(x) =>
|
|
1027
|
+
ListSettlementPaymentResponseSettlementAmount$inboundSchema.parse(
|
|
1028
|
+
JSON.parse(x),
|
|
1029
|
+
),
|
|
1030
|
+
`Failed to parse 'ListSettlementPaymentResponseSettlementAmount' from JSON`,
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1529
1034
|
/** @internal */
|
|
1530
1035
|
export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
1531
1036
|
ListSettlementPaymentResponse,
|
|
@@ -1549,9 +1054,6 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1549
1054
|
amountChargedBack: z.lazy(() =>
|
|
1550
1055
|
ListSettlementPaymentResponseAmountChargedBack$inboundSchema
|
|
1551
1056
|
).optional(),
|
|
1552
|
-
settlementAmount: z.lazy(() =>
|
|
1553
|
-
ListSettlementPaymentResponseSettlementAmount$inboundSchema
|
|
1554
|
-
).optional(),
|
|
1555
1057
|
redirectUrl: z.nullable(z.string()).optional(),
|
|
1556
1058
|
cancelUrl: z.nullable(z.string()).optional(),
|
|
1557
1059
|
webhookUrl: z.nullable(z.string()).optional(),
|
|
@@ -1585,9 +1087,7 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1585
1087
|
status: SettlementPaymentStatus$inboundSchema,
|
|
1586
1088
|
statusReason: z.nullable(StatusReason$inboundSchema).optional(),
|
|
1587
1089
|
isCancelable: z.nullable(z.boolean()).optional(),
|
|
1588
|
-
details: z.nullable(
|
|
1589
|
-
z.lazy(() => ListSettlementPaymentResponseDetails$inboundSchema),
|
|
1590
|
-
).optional(),
|
|
1090
|
+
details: z.nullable(PaymentDetails$inboundSchema).optional(),
|
|
1591
1091
|
createdAt: z.string(),
|
|
1592
1092
|
authorizedAt: z.nullable(z.string()).optional(),
|
|
1593
1093
|
paidAt: z.nullable(z.string()).optional(),
|
|
@@ -1596,6 +1096,9 @@ export const ListSettlementPaymentResponse$inboundSchema: z.ZodType<
|
|
|
1596
1096
|
expiredAt: z.nullable(z.string()).optional(),
|
|
1597
1097
|
failedAt: z.nullable(z.string()).optional(),
|
|
1598
1098
|
_links: z.lazy(() => ListSettlementPaymentResponseLinks$inboundSchema),
|
|
1099
|
+
settlementAmount: z.lazy(() =>
|
|
1100
|
+
ListSettlementPaymentResponseSettlementAmount$inboundSchema
|
|
1101
|
+
).optional(),
|
|
1599
1102
|
}).transform((v) => {
|
|
1600
1103
|
return remap$(v, {
|
|
1601
1104
|
"_links": "links",
|