mangopay4-nodejs-sdk 1.67.0 → 1.68.0
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/CHANGELOG.md +11 -0
- package/lib/apiMethods.js +10 -3
- package/lib/models/PayInPaymentType.js +0 -1
- package/lib/models/ReportFilterV2.js +2 -1
- package/lib/services/Acquiring.js +152 -0
- package/lib/services/PayIns.js +0 -18
- package/lib/services/index.js +2 -1
- package/package.json +1 -1
- package/test/helpers.js +3 -2
- package/test/services/Acquiring.js +338 -0
- package/test/services/Conversions.js +1 -1
- package/test/services/PayIns.js +1 -117
- package/typings/enums.d.ts +0 -1
- package/typings/index.d.ts +5 -5
- package/typings/index.test-d.ts +0 -15
- package/typings/models/acquiring.d.ts +763 -0
- package/typings/models/payIn.d.ts +20 -80
- package/typings/models/refund.d.ts +1 -0
- package/typings/models/reportV2.d.ts +2 -0
- package/typings/services/Acquiring.d.ts +44 -0
- package/typings/services/PayIns.d.ts +0 -8
- package/typings/types.d.ts +0 -2
- package/lib/models/PayInPaymentDetailsPayconiq.js +0 -23
|
@@ -0,0 +1,763 @@
|
|
|
1
|
+
import {entityBase} from "./entityBase";
|
|
2
|
+
import {CountryISO, SecureMode, Timestamp} from "../types";
|
|
3
|
+
import {transaction} from "./transaction";
|
|
4
|
+
import {card} from "./card";
|
|
5
|
+
import {billing} from "./billing";
|
|
6
|
+
import {base} from "../base";
|
|
7
|
+
import {money} from "./money";
|
|
8
|
+
import {securityInfo} from "./securityInfo";
|
|
9
|
+
import {shipping} from "./shipping";
|
|
10
|
+
import {payIn} from "./payIn";
|
|
11
|
+
import {refund} from "./refund";
|
|
12
|
+
|
|
13
|
+
export namespace acquiring {
|
|
14
|
+
import BillingData = billing.BillingData;
|
|
15
|
+
import BrowserInfoData = base.BrowserInfoData;
|
|
16
|
+
import MoneyData = money.MoneyData;
|
|
17
|
+
import SecurityInfoData = securityInfo.SecurityInfoData;
|
|
18
|
+
import ShippingData = shipping.ShippingData;
|
|
19
|
+
import CreateShipping = shipping.CreateShipping;
|
|
20
|
+
import CreateBilling = billing.CreateBilling;
|
|
21
|
+
import CompleteBillingData = billing.CompleteBillingData;
|
|
22
|
+
import CardInfoData = card.CardInfoData;
|
|
23
|
+
import PayInPaymentType = payIn.PayInPaymentType;
|
|
24
|
+
import PayInExecutionType = payIn.PayInExecutionType;
|
|
25
|
+
import ShippingPreference = payIn.ShippingPreference;
|
|
26
|
+
import ApplePayPaymentData = payIn.ApplePayPaymentData;
|
|
27
|
+
import LineItemData = payIn.LineItemData;
|
|
28
|
+
import PayPalWebTrackingData = payIn.PayPalWebTrackingData;
|
|
29
|
+
import CreateLineItem = payIn.CreateLineItem;
|
|
30
|
+
import TransactionType = transaction.TransactionType;
|
|
31
|
+
import TransactionStatus = transaction.TransactionStatus;
|
|
32
|
+
import RefundReason = refund.RefundReason;
|
|
33
|
+
import _3DSVersion = payIn._3DSVersion;
|
|
34
|
+
import CardValidity = card.CardValidity;
|
|
35
|
+
|
|
36
|
+
interface BaseAcquiringPayInData extends entityBase.EntityBaseData {
|
|
37
|
+
/**
|
|
38
|
+
* Information about the funds that are being debited
|
|
39
|
+
*/
|
|
40
|
+
DebitedFunds: MoneyData;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The nature of the transaction
|
|
44
|
+
*/
|
|
45
|
+
Nature: transaction.TransactionNature;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The status of the transaction
|
|
49
|
+
*/
|
|
50
|
+
Status: TransactionStatus;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When the transaction happened
|
|
54
|
+
*/
|
|
55
|
+
ExecutionDate: Timestamp;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The result code
|
|
59
|
+
*/
|
|
60
|
+
ResultCode: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* A verbal explanation of the ResultCode
|
|
64
|
+
*/
|
|
65
|
+
ResultMessage: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The type of the transaction
|
|
69
|
+
*/
|
|
70
|
+
Type: transaction.TransactionType;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The type of payin
|
|
74
|
+
*/
|
|
75
|
+
PaymentType: PayInPaymentType;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The type of execution for the payin
|
|
79
|
+
*/
|
|
80
|
+
ExecutionType: PayInExecutionType;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface CardDirectPayInData extends BaseAcquiringPayInData {
|
|
84
|
+
ExecutionType: "DIRECT";
|
|
85
|
+
|
|
86
|
+
PaymentType: "CARD";
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This is the URL where users are automatically redirected after 3D secure validation (if activated)
|
|
90
|
+
*/
|
|
91
|
+
SecureModeReturnURL: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The ID of a card
|
|
95
|
+
*/
|
|
96
|
+
CardId: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The SecureMode corresponds to '3D secure' for CB Visa and MasterCard. This field lets you activate it manually. The field lets you activate it
|
|
100
|
+
* automatically with "DEFAULT" (Secured Mode will be activated from €50 or when MANGOPAY detects there is a higher risk ), "FORCE" (if you wish to specifically force the secured mode).
|
|
101
|
+
*/
|
|
102
|
+
SecureMode: SecureMode;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric
|
|
106
|
+
* characters or spaces. See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
107
|
+
*/
|
|
108
|
+
StatementDescriptor?: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Contains useful information related to the user billing
|
|
112
|
+
*/
|
|
113
|
+
Billing: BillingData;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Contains information related to security and fraud
|
|
117
|
+
*/
|
|
118
|
+
SecurityInfo: SecurityInfoData;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The value is 'true' if the SecureMode was used
|
|
122
|
+
*/
|
|
123
|
+
SecureModeNeeded: boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* This is the URL where to redirect users to proceed to 3D secure validation
|
|
127
|
+
*/
|
|
128
|
+
SecureModeRedirectURL: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Information about the card
|
|
132
|
+
*/
|
|
133
|
+
CardInfo: CardInfoData;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The channel through which the user provided their card details, used to indicate mail-order and telephone-order (MOTO) payments:
|
|
137
|
+
*
|
|
138
|
+
* ECommerce – Payment received online.
|
|
139
|
+
*
|
|
140
|
+
* TelephoneOrder – Payment received via mail order or telephone order (MOTO).
|
|
141
|
+
*/
|
|
142
|
+
PaymentCategory: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Preferred Card Network
|
|
146
|
+
*/
|
|
147
|
+
PreferredCardNetwork?: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface CreateCardDirectPayIn {
|
|
151
|
+
ExecutionType: "DIRECT";
|
|
152
|
+
|
|
153
|
+
PaymentType: "CARD";
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Information about the funds that are being debited
|
|
157
|
+
*/
|
|
158
|
+
DebitedFunds: MoneyData;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* This is the URL where users are automatically redirected after 3D secure validation (if activated)
|
|
162
|
+
*/
|
|
163
|
+
SecureModeReturnURL: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The ID of a card
|
|
167
|
+
*/
|
|
168
|
+
CardId: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The SecureMode corresponds to '3D secure' for CB Visa and MasterCard. This field lets you activate it manually. The field lets you activate it automatically
|
|
172
|
+
* with "DEFAULT" (Secured Mode will be activated from €50 or when MANGOPAY detects there is a higher risk ), "FORCE" (if you wish to specifically force the secured mode).
|
|
173
|
+
*/
|
|
174
|
+
SecureMode: SecureMode;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Contains useful information related to the user billing
|
|
178
|
+
*/
|
|
179
|
+
Billing?: BillingData;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The language to use for the payment page - needs to be the ISO code of the language
|
|
183
|
+
*/
|
|
184
|
+
Culture?: CountryISO;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
188
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
189
|
+
*/
|
|
190
|
+
StatementDescriptor?: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* IP Address of the end user (format IPV4 or IPV6)
|
|
194
|
+
*/
|
|
195
|
+
IpAddress: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* This object describes the Browser being user by an end user
|
|
199
|
+
*/
|
|
200
|
+
BrowserInfo: BrowserInfoData;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Contains every useful information's related to the user shipping
|
|
204
|
+
*/
|
|
205
|
+
Shipping?: ShippingData;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Custom data that you can add to this item
|
|
209
|
+
*/
|
|
210
|
+
Tag?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The channel through which the user provided their card details, used to indicate mail-order and telephone-order (MOTO) payments:
|
|
214
|
+
*
|
|
215
|
+
* ECommerce – Payment received online.
|
|
216
|
+
*
|
|
217
|
+
* TelephoneOrder – Payment received via mail order or telephone order (MOTO).
|
|
218
|
+
*/
|
|
219
|
+
PaymentCategory?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Preferred Card Network
|
|
223
|
+
*/
|
|
224
|
+
PreferredCardNetwork?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface IdealWebPayInData extends BaseAcquiringPayInData {
|
|
228
|
+
ExecutionType: "WEB";
|
|
229
|
+
|
|
230
|
+
PaymentType: "IDEAL";
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The URL to redirect to user to for them to proceed with the payment
|
|
234
|
+
*/
|
|
235
|
+
RedirectURL: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* This is the URL where users are automatically redirected after the payment is validated
|
|
239
|
+
*/
|
|
240
|
+
ReturnURL: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Name of the end-user’s bank
|
|
244
|
+
*/
|
|
245
|
+
BankName?: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The BIC identifier of the end-user’s bank
|
|
249
|
+
*/
|
|
250
|
+
Bic?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric
|
|
254
|
+
* characters or spaces. See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
255
|
+
*/
|
|
256
|
+
StatementDescriptor?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
interface CreateIdealWebPayIn {
|
|
260
|
+
ExecutionType: "WEB";
|
|
261
|
+
|
|
262
|
+
PaymentType: "IDEAL";
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Information about the debited funds
|
|
266
|
+
*/
|
|
267
|
+
DebitedFunds: MoneyData;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* This is the URL where users are automatically redirected after the payment is validated
|
|
271
|
+
*/
|
|
272
|
+
ReturnURL: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The BIC identifier of the end-user’s bank
|
|
276
|
+
*/
|
|
277
|
+
Bic?: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric
|
|
281
|
+
* characters or spaces. See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
282
|
+
*/
|
|
283
|
+
StatementDescriptor?: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Custom data that you can add to this object
|
|
287
|
+
*/
|
|
288
|
+
Tag?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
interface ApplePayPayInData extends BaseAcquiringPayInData {
|
|
292
|
+
ExecutionType: "DIRECT";
|
|
293
|
+
|
|
294
|
+
PaymentType: "APPLEPAY";
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Payment data
|
|
298
|
+
*/
|
|
299
|
+
PaymentData: ApplePayPaymentData;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
303
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
304
|
+
*/
|
|
305
|
+
StatementDescriptor?: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface CreateApplePayPayIn {
|
|
309
|
+
ExecutionType: "DIRECT";
|
|
310
|
+
|
|
311
|
+
PaymentType: "APPLEPAY";
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Information about the funds that are being debited
|
|
315
|
+
*/
|
|
316
|
+
DebitedFunds: MoneyData;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Payment data
|
|
320
|
+
*/
|
|
321
|
+
PaymentData: ApplePayPaymentData;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
325
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
326
|
+
*/
|
|
327
|
+
StatementDescriptor?: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Custom data that you can add to this item
|
|
331
|
+
*/
|
|
332
|
+
Tag?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface GooglePayDirectPayInData extends BaseAcquiringPayInData {
|
|
336
|
+
ExecutionType: "DIRECT";
|
|
337
|
+
|
|
338
|
+
PaymentType: "GOOGLE_PAY";
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
342
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
343
|
+
*/
|
|
344
|
+
StatementDescriptor?: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The value is 'true' if the SecureMode was used
|
|
348
|
+
*/
|
|
349
|
+
SecureModeNeeded: boolean;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Contains every useful information's related to the user shipping
|
|
353
|
+
*/
|
|
354
|
+
Shipping?: ShippingData;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Information about the end user billing address.
|
|
358
|
+
*/
|
|
359
|
+
Billing?: CompleteBillingData;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* This object describes the Browser being user by an end user
|
|
363
|
+
*/
|
|
364
|
+
BrowserInfo: BrowserInfoData;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* IP Address of the end user (format IPV4 or IPV6)
|
|
368
|
+
*/
|
|
369
|
+
IpAddress: string;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The ID of the card
|
|
373
|
+
*/
|
|
374
|
+
CardId: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The URL to which the user is redirected to complete the payment.
|
|
378
|
+
*/
|
|
379
|
+
SecureModeReturnURL: string;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* This is the URL where to redirect users to proceed to 3D secure validation
|
|
383
|
+
*/
|
|
384
|
+
SecureModeRedirectURL?: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The mode applied for the 3DS2 protocol for CB, Visa, and Mastercard. The options are:
|
|
388
|
+
* DEFAULT – Requests an exemption to strong customer authentication (SCA), and thus a frictionless payment
|
|
389
|
+
* experience, if allowed by your Mangopay contract and accepted by the issuer.
|
|
390
|
+
* FORCE – Requests SCA.
|
|
391
|
+
* NO_CHOICE – Leaves the choice to the issuer whether to allow for a frictionless payment experience
|
|
392
|
+
* or to enforce SCA.
|
|
393
|
+
*/
|
|
394
|
+
SecureMode?: SecureMode;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* This is the URL where users are automatically redirected after the payment is validated
|
|
398
|
+
*/
|
|
399
|
+
ReturnURL?: string;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
interface CreateGooglePayDirectPayIn {
|
|
403
|
+
ExecutionType: "DIRECT";
|
|
404
|
+
|
|
405
|
+
PaymentType: "GOOGLE_PAY";
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Information about the funds that are being debited
|
|
409
|
+
*/
|
|
410
|
+
DebitedFunds: MoneyData;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* The URL to which the user is redirected to complete the payment.
|
|
414
|
+
*/
|
|
415
|
+
SecureModeReturnURL: string;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The mode applied for the 3DS2 protocol for CB, Visa, and Mastercard. The options are:
|
|
419
|
+
* DEFAULT – Requests an exemption to strong customer authentication (SCA), and thus a frictionless payment
|
|
420
|
+
* experience, if allowed by your Mangopay contract and accepted by the issuer.
|
|
421
|
+
* FORCE – Requests SCA.
|
|
422
|
+
* NO_CHOICE – Leaves the choice to the issuer whether to allow for a frictionless payment experience
|
|
423
|
+
* or to enforce SCA.
|
|
424
|
+
*/
|
|
425
|
+
SecureMode?: SecureMode;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* IP Address of the end user (format IPV4 or IPV6)
|
|
429
|
+
*/
|
|
430
|
+
IpAddress: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* This object describes the Browser being user by an end user
|
|
434
|
+
*/
|
|
435
|
+
BrowserInfo: BrowserInfoData;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Data received from the Google Pay API
|
|
439
|
+
*/
|
|
440
|
+
PaymentData: string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* This is the URL where users are automatically redirected after the payment is validated
|
|
444
|
+
*/
|
|
445
|
+
ReturnURL?: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Contains every useful information's related to the user shipping
|
|
449
|
+
*/
|
|
450
|
+
Shipping?: CreateShipping;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Information about the end user billing address.
|
|
454
|
+
*/
|
|
455
|
+
Billing?: CreateBilling;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
459
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
460
|
+
*/
|
|
461
|
+
StatementDescriptor?: string;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Custom data that you can add to this item
|
|
465
|
+
*/
|
|
466
|
+
Tag?: string;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
interface PayPalWebPayInData extends BaseAcquiringPayInData {
|
|
470
|
+
ExecutionType: "WEB";
|
|
471
|
+
|
|
472
|
+
PaymentType: "PAYPAL";
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* The URL where users are automatically redirected after the payment is validated
|
|
476
|
+
*/
|
|
477
|
+
ReturnURL: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The URL to which the user is redirected to complete the payment
|
|
481
|
+
*/
|
|
482
|
+
RedirectURL?: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric
|
|
486
|
+
* characters or spaces. See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
487
|
+
*/
|
|
488
|
+
StatementDescriptor?: string;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Information about the shipping address
|
|
492
|
+
*/
|
|
493
|
+
Shipping?: ShippingData;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* List of items and quantity bought by the buyer
|
|
497
|
+
*/
|
|
498
|
+
LineItems: LineItemData[];
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* The language in which the PayPal payment page is to be displayed.
|
|
502
|
+
*/
|
|
503
|
+
Culture?: CountryISO;
|
|
504
|
+
|
|
505
|
+
ShippingPreference?: ShippingPreference;
|
|
506
|
+
|
|
507
|
+
Reference?: string;
|
|
508
|
+
|
|
509
|
+
PaypalPayerID?: string;
|
|
510
|
+
|
|
511
|
+
BuyerCountry?: string;
|
|
512
|
+
|
|
513
|
+
BuyerFirstname?: string;
|
|
514
|
+
|
|
515
|
+
BuyerLastname?: string;
|
|
516
|
+
|
|
517
|
+
BuyerPhone?: string;
|
|
518
|
+
|
|
519
|
+
PaypalOrderID?: string;
|
|
520
|
+
|
|
521
|
+
CancelURL?: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The email address registered on the PayPal account used to make the payment.
|
|
525
|
+
*/
|
|
526
|
+
PaypalBuyerAccountEmail?: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Shipping information of the LineItems added to the pay-in object.
|
|
530
|
+
*/
|
|
531
|
+
Trackings?: PayPalWebTrackingData;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
interface CreatePayPalWebPayIn {
|
|
535
|
+
ExecutionType: "WEB";
|
|
536
|
+
|
|
537
|
+
PaymentType: "PAYPAL";
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Information about the funds that are being debited
|
|
541
|
+
*/
|
|
542
|
+
DebitedFunds: MoneyData;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Information about the items bought by the customer
|
|
546
|
+
*/
|
|
547
|
+
LineItems: CreateLineItem[];
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* This is the URL where users are automatically redirected after the payment is validated
|
|
551
|
+
*/
|
|
552
|
+
ReturnURL: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Contains every useful information's related to the user shipping
|
|
556
|
+
*/
|
|
557
|
+
Shipping?: CreateShipping;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* A custom description to appear on the user's bank statement. It can be up to 10 characters long, and can only include alphanumeric characters or spaces.
|
|
561
|
+
* See here for important info. Note that each bank handles this information differently, some show less or no information.
|
|
562
|
+
*/
|
|
563
|
+
StatementDescriptor?: string;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Custom data that you can add to this item
|
|
567
|
+
*/
|
|
568
|
+
Tag?: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The language in which the PayPal payment page is to be displayed.
|
|
572
|
+
*/
|
|
573
|
+
Culture?: CountryISO;
|
|
574
|
+
|
|
575
|
+
ShippingPreference?: ShippingPreference;
|
|
576
|
+
|
|
577
|
+
Reference?: string;
|
|
578
|
+
|
|
579
|
+
CancelURL?: string;
|
|
580
|
+
|
|
581
|
+
DataCollectionId?: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
interface RefundData {
|
|
585
|
+
/**
|
|
586
|
+
* Information about the funds that are being debited
|
|
587
|
+
*/
|
|
588
|
+
DebitedFunds: MoneyData;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* The ID of the wallet that was debited
|
|
592
|
+
*/
|
|
593
|
+
DebitedWalletId: string;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* The nature of the transaction
|
|
597
|
+
*/
|
|
598
|
+
Nature: "REFUND";
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The status of the transaction
|
|
602
|
+
*/
|
|
603
|
+
Status: TransactionStatus;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* When the transaction happened
|
|
607
|
+
*/
|
|
608
|
+
ExecutionDate: Timestamp;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The result code
|
|
612
|
+
*/
|
|
613
|
+
ResultCode: string;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* A verbal explanation of the ResultCode
|
|
617
|
+
*/
|
|
618
|
+
ResultMessage: string;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* The type of the transaction
|
|
622
|
+
*/
|
|
623
|
+
Type: TransactionType;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* The initial transaction ID
|
|
627
|
+
*/
|
|
628
|
+
InitialTransactionId: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* The initial transaction type
|
|
632
|
+
*/
|
|
633
|
+
InitialTransactionType: TransactionType;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Contains info about the reason for refund
|
|
637
|
+
*/
|
|
638
|
+
RefundReason: RefundReason;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Custom description to appear on the user’s bank statement along with the platform name
|
|
642
|
+
*/
|
|
643
|
+
StatementDescriptor?: string;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
interface CreatePayInRefund {
|
|
647
|
+
Tag?: string;
|
|
648
|
+
|
|
649
|
+
DebitedFunds?: MoneyData;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Custom description to appear on the user’s bank statement along with the platform name
|
|
653
|
+
*/
|
|
654
|
+
StatementDescriptor?: string;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
interface CardValidationData extends entityBase.EntityBaseData {
|
|
658
|
+
/**
|
|
659
|
+
* The status of the transaction.
|
|
660
|
+
*/
|
|
661
|
+
Status: TransactionStatus;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The URL to which users are automatically returned after 3DS2 if it is triggered (i.e., if the SecureModeNeeded parameter is set to true).
|
|
665
|
+
*/
|
|
666
|
+
SecureModeReturnURL: string;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* The URL to which users are to be redirected to proceed to 3DS2 validation.
|
|
670
|
+
*/
|
|
671
|
+
SecureModeRedirectURL: string;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Whether or not the SecureMode was used.
|
|
675
|
+
*/
|
|
676
|
+
SecureModeNeeded: boolean;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* The mode applied for the 3DS2 protocol for CB, Visa, and Mastercard
|
|
680
|
+
*/
|
|
681
|
+
SecureMode: SecureMode;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* The IP address of the end user initiating the transaction, in IPV4 or IPV6 format.
|
|
685
|
+
*/
|
|
686
|
+
IpAddress: string;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Information about the browser used by the end user (author) to perform the payment.
|
|
690
|
+
*/
|
|
691
|
+
BrowserInfo: BrowserInfoData;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Whether the card is valid or not.
|
|
695
|
+
*/
|
|
696
|
+
Validity: CardValidity;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* The type of transaction. In the specific case of the Card Validation object, this value indicates a transaction made to perform a strong customer authentication without debiting the card.
|
|
700
|
+
*/
|
|
701
|
+
Type: TransactionType;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* The 3DS protocol version applied to the transaction.
|
|
705
|
+
*/
|
|
706
|
+
Applied3DSVersion: _3DSVersion;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
|
|
710
|
+
*/
|
|
711
|
+
ResultCode: string;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* The explanation of the result code.
|
|
715
|
+
*/
|
|
716
|
+
ResultMessage: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The channel through which the user provided their card details, used to indicate mail-order and telephone-order (MOTO) payments:
|
|
720
|
+
*
|
|
721
|
+
* ECommerce – Payment received online.
|
|
722
|
+
*
|
|
723
|
+
* TelephoneOrder – Payment received via mail order or telephone order (MOTO).
|
|
724
|
+
*/
|
|
725
|
+
PaymentCategory: string;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
interface CreateCardValidation {
|
|
729
|
+
/**
|
|
730
|
+
* The URL to which users are automatically returned after 3DS2 if it is triggered (i.e., if the SecureModeNeeded parameter is set to true).
|
|
731
|
+
*/
|
|
732
|
+
SecureModeReturnURL: string;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* The mode applied for the 3DS2 protocol for CB, Visa, and Mastercard
|
|
736
|
+
*/
|
|
737
|
+
SecureMode?: SecureMode;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* The IP address of the end user initiating the transaction, in IPV4 or IPV6 format.
|
|
741
|
+
*/
|
|
742
|
+
IpAddress: string;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Information about the browser used by the end user (author) to perform the payment.
|
|
746
|
+
*/
|
|
747
|
+
BrowserInfo: BrowserInfoData;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Custom data that you can add to this object.
|
|
751
|
+
*/
|
|
752
|
+
Tag?: string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* The channel through which the user provided their card details, used to indicate mail-order and telephone-order (MOTO) payments:
|
|
756
|
+
*
|
|
757
|
+
* ECommerce – Payment received online.
|
|
758
|
+
*
|
|
759
|
+
* TelephoneOrder – Payment received via mail order or telephone order (MOTO).
|
|
760
|
+
*/
|
|
761
|
+
PaymentCategory?: string;
|
|
762
|
+
}
|
|
763
|
+
}
|