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
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { RFCDate } from "../types/rfcdate.js";
|
|
4
|
+
import { Amount } from "./amount.js";
|
|
5
|
+
import { AmountNullable } from "./amountnullable.js";
|
|
6
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
7
|
+
import { PaymentDetailsCardAuditionResponse } from "./paymentdetailscardauditionresponse.js";
|
|
8
|
+
import { PaymentDetailsCardFundingResponse } from "./paymentdetailscardfundingresponse.js";
|
|
9
|
+
import { PaymentDetailsCardLabelResponse } from "./paymentdetailscardlabelresponse.js";
|
|
10
|
+
import { PaymentDetailsCardSecurityResponse } from "./paymentdetailscardsecurityresponse.js";
|
|
11
|
+
import { PaymentDetailsFailureReasonResponse } from "./paymentdetailsfailurereasonresponse.js";
|
|
12
|
+
import { PaymentDetailsFeeRegionResponse } from "./paymentdetailsfeeregionresponse.js";
|
|
13
|
+
import { PaymentDetailsReceiptCardReadMethodResponse } from "./paymentdetailsreceiptcardreadmethodresponse.js";
|
|
14
|
+
import { PaymentDetailsReceiptCardVerificationMethodResponse } from "./paymentdetailsreceiptcardverificationmethodresponse.js";
|
|
15
|
+
import { PaymentDetailsSellerProtectionResponse } from "./paymentdetailssellerprotectionresponse.js";
|
|
16
|
+
import { PaymentDetailsWalletResponse } from "./paymentdetailswalletresponse.js";
|
|
17
|
+
/**
|
|
18
|
+
* The Point of sale receipt object.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*
|
|
22
|
+
* * `authorizationCode` _string|null_ - a unique code provided by the cardholder's bank to confirm that the
|
|
23
|
+
* transaction was successfully approved.
|
|
24
|
+
* * `applicationIdentifier` _string|null_ - the unique number that identifies a specific payment application
|
|
25
|
+
* on a chip card.
|
|
26
|
+
* * `cardReadMethod` _string|null_ - the method by which the card was read by the terminal. Possible values:
|
|
27
|
+
* `chip` | `magnetic-stripe` | `near-field-communication` | `contactless` | `moto`.
|
|
28
|
+
* * `cardVerificationMethod` _string|null_ - the method used to verify the cardholder's identity. Possible
|
|
29
|
+
* values: `no-cvm-required` | `online-pin` | `offline-pin` | `consumer-device` | `signature` |
|
|
30
|
+
* `signature-and-online-pin` | `online-pin-and-signature` | `none` | `failed`.
|
|
31
|
+
*/
|
|
32
|
+
export type Receipt = {
|
|
33
|
+
/**
|
|
34
|
+
* A unique code provided by the cardholder's bank to confirm that the transaction was successfully approved.
|
|
35
|
+
*/
|
|
36
|
+
authorizationCode?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The unique number that identifies a specific payment application on a chip card.
|
|
39
|
+
*/
|
|
40
|
+
applicationIdentifier?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The method by which the card was read by the terminal.
|
|
43
|
+
*/
|
|
44
|
+
cardReadMethod?: PaymentDetailsReceiptCardReadMethodResponse | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The method used to verify the cardholder's identity.
|
|
47
|
+
*/
|
|
48
|
+
cardVerificationMethod?: PaymentDetailsReceiptCardVerificationMethodResponse | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* **Optional include.** If a QR code was requested during payment creation for a QR-compatible payment method,
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* the QR code details will be available in this object.
|
|
55
|
+
*
|
|
56
|
+
* The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
|
|
57
|
+
* Bancontact QR payments can be completed by the customer using the Bancontact app.
|
|
58
|
+
*
|
|
59
|
+
* * `height` _integer_
|
|
60
|
+
* * `width` _integer_
|
|
61
|
+
* * `src` _string_
|
|
62
|
+
*/
|
|
63
|
+
export type PaymentDetailsQrCode = {
|
|
64
|
+
/**
|
|
65
|
+
* The height of the QR code image in pixels.
|
|
66
|
+
*/
|
|
67
|
+
height?: number | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The width of the QR code image in pixels.
|
|
70
|
+
*/
|
|
71
|
+
width?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The URL to the QR code image.
|
|
74
|
+
*/
|
|
75
|
+
src?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* An object containing payment details collected during the payment process. For example, details may include the
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* customer's card or bank details and a payment reference. For the full list of details, please refer to the
|
|
82
|
+
* [method-specific parameters](extra-payment-parameters) guide.
|
|
83
|
+
*/
|
|
84
|
+
export type PaymentDetails = {
|
|
85
|
+
/**
|
|
86
|
+
* The customer's name, if made available by the payment method. For card payments, refer to `details.cardHolder`.
|
|
87
|
+
*/
|
|
88
|
+
consumerName?: string | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The customer's account reference.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
*
|
|
94
|
+
* For banking-based payment methods — such as iDEAL — this is normally either an IBAN or a domestic bank
|
|
95
|
+
* account number.
|
|
96
|
+
*
|
|
97
|
+
* For PayPal, the account reference is an email address.
|
|
98
|
+
*
|
|
99
|
+
* For card and Bancontact payments, refer to `details.cardNumber`.
|
|
100
|
+
*/
|
|
101
|
+
consumerAccount?: string | null | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* The BIC of the customer's bank account, if applicable.
|
|
104
|
+
*/
|
|
105
|
+
consumerBic?: string | null | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* For wallet payment methods — such as Apple Pay and PayPal — the shipping address is often already known by
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* the wallet provider. In these cases the shipping address may be available as a payment detail.
|
|
111
|
+
*/
|
|
112
|
+
shippingAddress?: {
|
|
113
|
+
[k: string]: any;
|
|
114
|
+
} | null | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The customer's masked card number.
|
|
117
|
+
*/
|
|
118
|
+
cardNumber?: string | null | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* The name of the bank that the customer will need to make the bank transfer payment towards.
|
|
121
|
+
*/
|
|
122
|
+
bankName?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The bank account number the customer will need to make the bank transfer payment towards.
|
|
125
|
+
*/
|
|
126
|
+
bankAccount?: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* The BIC of the bank the customer will need to make the bank transfer payment towards.
|
|
129
|
+
*/
|
|
130
|
+
bankBic?: string | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* The Mollie-generated reference the customer needs to use when transfering the amount. Do not apply any
|
|
133
|
+
*
|
|
134
|
+
* @remarks
|
|
135
|
+
* formatting here; show it to the customer as-is.
|
|
136
|
+
*/
|
|
137
|
+
transferReference?: string | null | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Bizum payment reference of the transaction.
|
|
140
|
+
*/
|
|
141
|
+
bizumReference?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* A unique fingerprint for this specific card. Can be used to identify returning customers.
|
|
144
|
+
*/
|
|
145
|
+
cardFingerprint?: string | null | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* The customer's name as shown on their card.
|
|
148
|
+
*/
|
|
149
|
+
cardHolder?: string | null | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* The card's target audience, if known.
|
|
152
|
+
*/
|
|
153
|
+
cardAudience?: PaymentDetailsCardAuditionResponse | null | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* The card's label, if known.
|
|
156
|
+
*/
|
|
157
|
+
cardLabel?: PaymentDetailsCardLabelResponse | null | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* The ISO 3166-1 alpha-2 country code of the country the card was issued in.
|
|
160
|
+
*/
|
|
161
|
+
cardCountryCode?: string | null | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* The expiry date (`MM/YY`) of the card as displayed on the card.
|
|
164
|
+
*/
|
|
165
|
+
cardExpiryDate?: string | null | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* The card type.
|
|
168
|
+
*/
|
|
169
|
+
cardFunding?: PaymentDetailsCardFundingResponse | null | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* The level of security applied during card processing.
|
|
172
|
+
*/
|
|
173
|
+
cardSecurity?: PaymentDetailsCardSecurityResponse | null | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* The applicable card fee region.
|
|
176
|
+
*/
|
|
177
|
+
feeRegion?: PaymentDetailsFeeRegionResponse | null | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* The first6 and last4 digits of the card number.
|
|
180
|
+
*/
|
|
181
|
+
cardMaskedNumber?: string | null | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* The outcome of authentication attempted on transactions enforced by 3DS (ie valid only for `oneoff` and `first`).
|
|
184
|
+
*/
|
|
185
|
+
card3dsEci?: string | null | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* The first6 digit of the card bank identification number.
|
|
188
|
+
*/
|
|
189
|
+
cardBin?: string | null | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* The issuer of the Card.
|
|
192
|
+
*/
|
|
193
|
+
cardIssuer?: string | null | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* A failure code to help understand why the payment failed.
|
|
196
|
+
*/
|
|
197
|
+
failureReason?: PaymentDetailsFailureReasonResponse | null | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* A human-friendly failure message that can be shown to the customer. The message is translated in accordance
|
|
200
|
+
*
|
|
201
|
+
* @remarks
|
|
202
|
+
* with the payment's locale setting.
|
|
203
|
+
*/
|
|
204
|
+
failureMessage?: string | null | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* The wallet used when creating the payment.
|
|
207
|
+
*/
|
|
208
|
+
wallet?: PaymentDetailsWalletResponse | null | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Multibanco payment reference of the transaction.
|
|
211
|
+
*/
|
|
212
|
+
multibancoReference?: string | null | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Multibanco entity reference of the transaction.
|
|
215
|
+
*/
|
|
216
|
+
multibancoEntity?: string | null | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* PayPal's reference for the payment.
|
|
219
|
+
*/
|
|
220
|
+
paypalReference?: string | null | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* ID of the customer's PayPal account.
|
|
223
|
+
*/
|
|
224
|
+
paypalPayerId?: string | null | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
|
|
227
|
+
*
|
|
228
|
+
* @remarks
|
|
229
|
+
* payments, and if the information is made available by PayPal.
|
|
230
|
+
*/
|
|
231
|
+
sellerProtection?: PaymentDetailsSellerProtectionResponse | null | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
234
|
+
*/
|
|
235
|
+
paypalFee?: AmountNullable | null | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* The paysafecard customer reference either provided via the API or otherwise auto-generated by Mollie.
|
|
238
|
+
*/
|
|
239
|
+
customerReference?: string | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* The ID of the terminal device where the payment took place on.
|
|
242
|
+
*/
|
|
243
|
+
terminalId?: string | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* The first 6 digits & last 4 digits of the customer's masked card number.
|
|
246
|
+
*/
|
|
247
|
+
maskedNumber?: string | null | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* The Point of sale receipt object.
|
|
250
|
+
*
|
|
251
|
+
* @remarks
|
|
252
|
+
*
|
|
253
|
+
* * `authorizationCode` _string|null_ - a unique code provided by the cardholder's bank to confirm that the
|
|
254
|
+
* transaction was successfully approved.
|
|
255
|
+
* * `applicationIdentifier` _string|null_ - the unique number that identifies a specific payment application
|
|
256
|
+
* on a chip card.
|
|
257
|
+
* * `cardReadMethod` _string|null_ - the method by which the card was read by the terminal. Possible values:
|
|
258
|
+
* `chip` | `magnetic-stripe` | `near-field-communication` | `contactless` | `moto`.
|
|
259
|
+
* * `cardVerificationMethod` _string|null_ - the method used to verify the cardholder's identity. Possible
|
|
260
|
+
* values: `no-cvm-required` | `online-pin` | `offline-pin` | `consumer-device` | `signature` |
|
|
261
|
+
* `signature-and-online-pin` | `online-pin-and-signature` | `none` | `failed`.
|
|
262
|
+
*/
|
|
263
|
+
receipt?: Receipt | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* The creditor identifier indicates who is authorized to execute the payment. In this case, it is a reference
|
|
266
|
+
*
|
|
267
|
+
* @remarks
|
|
268
|
+
* to Mollie.
|
|
269
|
+
*/
|
|
270
|
+
creditorIdentifier?: string | null | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Estimated date the payment is debited from the customer's bank account, in `YYYY-MM-DD` format.
|
|
273
|
+
*/
|
|
274
|
+
dueDate?: RFCDate | null | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Date the payment has been signed by the customer, in `YYYY-MM-DD` format. Only available if the payment has
|
|
277
|
+
*
|
|
278
|
+
* @remarks
|
|
279
|
+
* been signed.
|
|
280
|
+
*/
|
|
281
|
+
signatureDate?: RFCDate | null | undefined;
|
|
282
|
+
/**
|
|
283
|
+
* The official reason why this payment has failed. A detailed description of each reason is available on the
|
|
284
|
+
*
|
|
285
|
+
* @remarks
|
|
286
|
+
* website of the European Payments Council.
|
|
287
|
+
*/
|
|
288
|
+
bankReasonCode?: string | null | undefined;
|
|
289
|
+
/**
|
|
290
|
+
* A human-friendly description of the failure reason.
|
|
291
|
+
*/
|
|
292
|
+
bankReason?: string | null | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* The end-to-end identifier you provided in the batch file.
|
|
295
|
+
*/
|
|
296
|
+
endToEndIdentifier?: string | null | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* The mandate reference you provided in the batch file.
|
|
299
|
+
*/
|
|
300
|
+
mandateReference?: string | null | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* The batch reference you provided in the batch file.
|
|
303
|
+
*/
|
|
304
|
+
batchReference?: string | null | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* The file reference you provided in the batch file.
|
|
307
|
+
*/
|
|
308
|
+
fileReference?: string | null | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* **Optional include.** If a QR code was requested during payment creation for a QR-compatible payment method,
|
|
311
|
+
*
|
|
312
|
+
* @remarks
|
|
313
|
+
* the QR code details will be available in this object.
|
|
314
|
+
*
|
|
315
|
+
* The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
|
|
316
|
+
* Bancontact QR payments can be completed by the customer using the Bancontact app.
|
|
317
|
+
*
|
|
318
|
+
* * `height` _integer_
|
|
319
|
+
* * `width` _integer_
|
|
320
|
+
* * `src` _string_
|
|
321
|
+
*/
|
|
322
|
+
qrCode?: PaymentDetailsQrCode | undefined;
|
|
323
|
+
/**
|
|
324
|
+
* For payments with gift cards: the masked gift card number of the first gift card applied to the payment.
|
|
325
|
+
*/
|
|
326
|
+
voucherNumber?: string | undefined;
|
|
327
|
+
/**
|
|
328
|
+
* An array of detail objects for each gift card that was used on this payment, if any.
|
|
329
|
+
*/
|
|
330
|
+
giftcards?: Array<{
|
|
331
|
+
[k: string]: any;
|
|
332
|
+
}> | undefined;
|
|
333
|
+
/**
|
|
334
|
+
* For payments with vouchers: the brand name of the first voucher applied.
|
|
335
|
+
*/
|
|
336
|
+
issuer?: string | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* An array of detail objects for each voucher that was used on this payment, if any.
|
|
339
|
+
*/
|
|
340
|
+
vouchers?: Array<{
|
|
341
|
+
[k: string]: any;
|
|
342
|
+
}> | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
345
|
+
*/
|
|
346
|
+
remainderAmount?: Amount | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* The payment method used to pay the remainder amount, after all gift cards or vouchers were applied.
|
|
349
|
+
*/
|
|
350
|
+
remainderMethod?: string | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* **Optional include.** The full payment method details of the remainder payment.
|
|
353
|
+
*/
|
|
354
|
+
remainderDetails?: {
|
|
355
|
+
[k: string]: any;
|
|
356
|
+
} | undefined;
|
|
357
|
+
};
|
|
358
|
+
/** @internal */
|
|
359
|
+
export declare const Receipt$inboundSchema: z.ZodType<Receipt, z.ZodTypeDef, unknown>;
|
|
360
|
+
export declare function receiptFromJSON(jsonString: string): SafeParseResult<Receipt, SDKValidationError>;
|
|
361
|
+
/** @internal */
|
|
362
|
+
export declare const PaymentDetailsQrCode$inboundSchema: z.ZodType<PaymentDetailsQrCode, z.ZodTypeDef, unknown>;
|
|
363
|
+
export declare function paymentDetailsQrCodeFromJSON(jsonString: string): SafeParseResult<PaymentDetailsQrCode, SDKValidationError>;
|
|
364
|
+
/** @internal */
|
|
365
|
+
export declare const PaymentDetails$inboundSchema: z.ZodType<PaymentDetails, z.ZodTypeDef, unknown>;
|
|
366
|
+
export declare function paymentDetailsFromJSON(jsonString: string): SafeParseResult<PaymentDetails, SDKValidationError>;
|
|
367
|
+
//# sourceMappingURL=paymentdetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentdetails.d.ts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,EACZ,OAAO,CAgEP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
* @generated-id: 45ee14e5d815
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.PaymentDetails$inboundSchema = exports.PaymentDetailsQrCode$inboundSchema = exports.Receipt$inboundSchema = void 0;
|
|
41
|
+
exports.receiptFromJSON = receiptFromJSON;
|
|
42
|
+
exports.paymentDetailsQrCodeFromJSON = paymentDetailsQrCodeFromJSON;
|
|
43
|
+
exports.paymentDetailsFromJSON = paymentDetailsFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v3"));
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const rfcdate_js_1 = require("../types/rfcdate.js");
|
|
47
|
+
const amount_js_1 = require("./amount.js");
|
|
48
|
+
const amountnullable_js_1 = require("./amountnullable.js");
|
|
49
|
+
const paymentdetailscardauditionresponse_js_1 = require("./paymentdetailscardauditionresponse.js");
|
|
50
|
+
const paymentdetailscardfundingresponse_js_1 = require("./paymentdetailscardfundingresponse.js");
|
|
51
|
+
const paymentdetailscardlabelresponse_js_1 = require("./paymentdetailscardlabelresponse.js");
|
|
52
|
+
const paymentdetailscardsecurityresponse_js_1 = require("./paymentdetailscardsecurityresponse.js");
|
|
53
|
+
const paymentdetailsfailurereasonresponse_js_1 = require("./paymentdetailsfailurereasonresponse.js");
|
|
54
|
+
const paymentdetailsfeeregionresponse_js_1 = require("./paymentdetailsfeeregionresponse.js");
|
|
55
|
+
const paymentdetailsreceiptcardreadmethodresponse_js_1 = require("./paymentdetailsreceiptcardreadmethodresponse.js");
|
|
56
|
+
const paymentdetailsreceiptcardverificationmethodresponse_js_1 = require("./paymentdetailsreceiptcardverificationmethodresponse.js");
|
|
57
|
+
const paymentdetailssellerprotectionresponse_js_1 = require("./paymentdetailssellerprotectionresponse.js");
|
|
58
|
+
const paymentdetailswalletresponse_js_1 = require("./paymentdetailswalletresponse.js");
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.Receipt$inboundSchema = z.object({
|
|
61
|
+
authorizationCode: z.nullable(z.string()).optional(),
|
|
62
|
+
applicationIdentifier: z.nullable(z.string()).optional(),
|
|
63
|
+
cardReadMethod: z.nullable(paymentdetailsreceiptcardreadmethodresponse_js_1.PaymentDetailsReceiptCardReadMethodResponse$inboundSchema).optional(),
|
|
64
|
+
cardVerificationMethod: z.nullable(paymentdetailsreceiptcardverificationmethodresponse_js_1.PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema).optional(),
|
|
65
|
+
});
|
|
66
|
+
function receiptFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Receipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Receipt' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.PaymentDetailsQrCode$inboundSchema = z.object({
|
|
71
|
+
height: z.number().int().optional(),
|
|
72
|
+
width: z.number().int().optional(),
|
|
73
|
+
src: z.string().optional(),
|
|
74
|
+
});
|
|
75
|
+
function paymentDetailsQrCodeFromJSON(jsonString) {
|
|
76
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaymentDetailsQrCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentDetailsQrCode' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
exports.PaymentDetails$inboundSchema = z.object({
|
|
80
|
+
consumerName: z.nullable(z.string()).optional(),
|
|
81
|
+
consumerAccount: z.nullable(z.string()).optional(),
|
|
82
|
+
consumerBic: z.nullable(z.string()).optional(),
|
|
83
|
+
shippingAddress: z.nullable(z.record(z.any())).optional(),
|
|
84
|
+
cardNumber: z.nullable(z.string()).optional(),
|
|
85
|
+
bankName: z.string().optional(),
|
|
86
|
+
bankAccount: z.string().optional(),
|
|
87
|
+
bankBic: z.string().optional(),
|
|
88
|
+
transferReference: z.nullable(z.string()).optional(),
|
|
89
|
+
bizumReference: z.nullable(z.string()).optional(),
|
|
90
|
+
cardFingerprint: z.nullable(z.string()).optional(),
|
|
91
|
+
cardHolder: z.nullable(z.string()).optional(),
|
|
92
|
+
cardAudience: z.nullable(paymentdetailscardauditionresponse_js_1.PaymentDetailsCardAuditionResponse$inboundSchema)
|
|
93
|
+
.optional(),
|
|
94
|
+
cardLabel: z.nullable(paymentdetailscardlabelresponse_js_1.PaymentDetailsCardLabelResponse$inboundSchema)
|
|
95
|
+
.optional(),
|
|
96
|
+
cardCountryCode: z.nullable(z.string()).optional(),
|
|
97
|
+
cardExpiryDate: z.nullable(z.string()).optional(),
|
|
98
|
+
cardFunding: z.nullable(paymentdetailscardfundingresponse_js_1.PaymentDetailsCardFundingResponse$inboundSchema)
|
|
99
|
+
.optional(),
|
|
100
|
+
cardSecurity: z.nullable(paymentdetailscardsecurityresponse_js_1.PaymentDetailsCardSecurityResponse$inboundSchema)
|
|
101
|
+
.optional(),
|
|
102
|
+
feeRegion: z.nullable(paymentdetailsfeeregionresponse_js_1.PaymentDetailsFeeRegionResponse$inboundSchema)
|
|
103
|
+
.optional(),
|
|
104
|
+
cardMaskedNumber: z.nullable(z.string()).optional(),
|
|
105
|
+
card3dsEci: z.nullable(z.string()).optional(),
|
|
106
|
+
cardBin: z.nullable(z.string()).optional(),
|
|
107
|
+
cardIssuer: z.nullable(z.string()).optional(),
|
|
108
|
+
failureReason: z.nullable(paymentdetailsfailurereasonresponse_js_1.PaymentDetailsFailureReasonResponse$inboundSchema)
|
|
109
|
+
.optional(),
|
|
110
|
+
failureMessage: z.nullable(z.string()).optional(),
|
|
111
|
+
wallet: z.nullable(paymentdetailswalletresponse_js_1.PaymentDetailsWalletResponse$inboundSchema).optional(),
|
|
112
|
+
multibancoReference: z.nullable(z.string()).optional(),
|
|
113
|
+
multibancoEntity: z.nullable(z.string()).optional(),
|
|
114
|
+
paypalReference: z.nullable(z.string()).optional(),
|
|
115
|
+
paypalPayerId: z.nullable(z.string()).optional(),
|
|
116
|
+
sellerProtection: z.nullable(paymentdetailssellerprotectionresponse_js_1.PaymentDetailsSellerProtectionResponse$inboundSchema).optional(),
|
|
117
|
+
paypalFee: z.nullable(amountnullable_js_1.AmountNullable$inboundSchema).optional(),
|
|
118
|
+
customerReference: z.string().optional(),
|
|
119
|
+
terminalId: z.string().optional(),
|
|
120
|
+
maskedNumber: z.nullable(z.string()).optional(),
|
|
121
|
+
receipt: z.lazy(() => exports.Receipt$inboundSchema).optional(),
|
|
122
|
+
creditorIdentifier: z.nullable(z.string()).optional(),
|
|
123
|
+
dueDate: z.nullable(z.string().transform(v => new rfcdate_js_1.RFCDate(v))).optional(),
|
|
124
|
+
signatureDate: z.nullable(z.string().transform(v => new rfcdate_js_1.RFCDate(v)))
|
|
125
|
+
.optional(),
|
|
126
|
+
bankReasonCode: z.nullable(z.string()).optional(),
|
|
127
|
+
bankReason: z.nullable(z.string()).optional(),
|
|
128
|
+
endToEndIdentifier: z.nullable(z.string()).optional(),
|
|
129
|
+
mandateReference: z.nullable(z.string()).optional(),
|
|
130
|
+
batchReference: z.nullable(z.string()).optional(),
|
|
131
|
+
fileReference: z.nullable(z.string()).optional(),
|
|
132
|
+
qrCode: z.lazy(() => exports.PaymentDetailsQrCode$inboundSchema).optional(),
|
|
133
|
+
voucherNumber: z.string().optional(),
|
|
134
|
+
giftcards: z.array(z.record(z.any())).optional(),
|
|
135
|
+
issuer: z.string().optional(),
|
|
136
|
+
vouchers: z.array(z.record(z.any())).optional(),
|
|
137
|
+
remainderAmount: amount_js_1.Amount$inboundSchema.optional(),
|
|
138
|
+
remainderMethod: z.string().optional(),
|
|
139
|
+
remainderDetails: z.record(z.any()).optional(),
|
|
140
|
+
});
|
|
141
|
+
function paymentDetailsFromJSON(jsonString) {
|
|
142
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaymentDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentDetails' from JSON`);
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=paymentdetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentdetails.js","sourceRoot":"","sources":["../../../src/models/paymentdetails.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwZH,0CAQC;AAaD,oEAQC;AAwED,wDAQC;AAngBD,0CAA4B;AAC5B,kDAA8C;AAE9C,oDAA8C;AAC9C,2CAA2D;AAC3D,2DAG6B;AAE7B,mGAGiD;AACjD,iGAGgD;AAChD,6FAG8C;AAC9C,mGAGiD;AACjD,qGAGkD;AAClD,6FAG8C;AAC9C,qHAG0D;AAC1D,qIAGkE;AAClE,2GAGqD;AACrD,uFAG2C;AAwV3C,gBAAgB;AACH,QAAA,qBAAqB,GAChC,CAAC,CAAC,MAAM,CAAC;IACP,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,cAAc,EAAE,CAAC,CAAC,QAAQ,CACxB,0GAAyD,CAC1D,CAAC,QAAQ,EAAE;IACZ,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAChC,0HAAiE,CAClE,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC;AAEL,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,M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