-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathresponseAdditionalDataCommon.ts
More file actions
686 lines (678 loc) · 23.1 KB
/
responseAdditionalDataCommon.ts
File metadata and controls
686 lines (678 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
/*
* The version of the OpenAPI document: v68
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
export class ResponseAdditionalDataCommon {
/**
* The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions.
*/
"acquirerAccountCode"?: string;
/**
* The name of the acquirer processing the payment request. Example: TestPmmAcquirer
*/
"acquirerCode"?: string;
/**
* The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9
*/
"acquirerReference"?: string;
/**
* The Adyen alias of the card. Example: H167852639363479
*/
"alias"?: string;
/**
* The type of the card alias. Example: Default
*/
"aliasType"?: string;
/**
* Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747
*/
"authCode"?: string;
/**
* Merchant ID known by the acquirer.
*/
"authorisationMid"?: string;
/**
* The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
*/
"authorisedAmountCurrency"?: string;
/**
* Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes).
*/
"authorisedAmountValue"?: string;
/**
* The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs).
*/
"avsResult"?: string;
/**
* Raw AVS result received from the acquirer, where available. Example: D
*/
"avsResultRaw"?: string;
/**
* BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions.
*/
"bic"?: string;
/**
* Includes the co-branded card information.
*/
"coBrandedWith"?: string;
/**
* The result of CVC verification.
*/
"cvcResult"?: string;
/**
* The raw result of CVC verification.
*/
"cvcResultRaw"?: string;
/**
* Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction.
*/
"dsTransID"?: string;
/**
* The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02
*/
"eci"?: string;
/**
* The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment.
*/
"expiryDate"?: string;
/**
* The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR
*/
"extraCostsCurrency"?: string;
/**
* The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units.
*/
"extraCostsValue"?: string;
/**
* The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair.
*/
"fraudCheck__itemNr__FraudCheckname"?: string;
/**
* Indicates if the payment is sent to manual review.
*/
"fraudManualReview"?: string;
/**
* The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
*/
"fraudResultType"?: ResponseAdditionalDataCommon.FraudResultTypeEnum;
/**
* The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*/
"fraudRiskLevel"?: ResponseAdditionalDataCommon.FraudRiskLevelEnum;
/**
* Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**.
*/
"fundingSource"?: string;
/**
* Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\".
*/
"fundsAvailability"?: string;
/**
* Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card
*/
"inferredRefusalReason"?: string;
/**
* Indicates if the card is used for business purposes only.
*/
"isCardCommercial"?: string;
/**
* The issuing country of the card based on the BIN list that Adyen maintains. Example: JP
*/
"issuerCountry"?: string;
/**
* A Boolean value indicating whether a liability shift was offered for this payment.
*/
"liabilityShift"?: string;
/**
* The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field.
*/
"mcBankNetReferenceNumber"?: string;
/**
* The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes).
*/
"merchantAdviceCode"?: string;
/**
* The reference provided for the transaction.
*/
"merchantReference"?: string;
/**
* Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID.
*/
"networkTxReference"?: string;
/**
* The owner name of a bank account. Only relevant for SEPA Direct Debit transactions.
*/
"ownerName"?: string;
/**
* The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters.
*/
"paymentAccountReference"?: string;
/**
* The payment method used in the transaction.
*/
"paymentMethod"?: string;
/**
* The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro
*/
"paymentMethodVariant"?: string;
/**
* Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown)
*/
"payoutEligible"?: string;
/**
* The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder
*/
"realtimeAccountUpdaterStatus"?: string;
/**
* Message to be displayed on the terminal.
*/
"receiptFreeText"?: string;
/**
* The recurring contract types applicable to the transaction.
*/
"recurring_contractTypes"?: string;
/**
* The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team.
*/
"recurring_firstPspReference"?: string;
/**
* The reference that uniquely identifies the recurring transaction.
*
* @deprecated since Adyen Payout API v68
* Use tokenization.storedPaymentMethodId instead.
*/
"recurring_recurringDetailReference"?: string;
/**
* The provided reference of the shopper for a recurring transaction.
*
* @deprecated since Adyen Payout API v68
* Use tokenization.shopperReference instead.
*/
"recurring_shopperReference"?: string;
/**
* The processing model used for the recurring transaction.
*/
"recurringProcessingModel"?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum;
/**
* If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true
*/
"referred"?: string;
/**
* Raw refusal reason received from the acquirer, where available. Example: AUTHORISED
*/
"refusalReasonRaw"?: string;
/**
* The amount of the payment request.
*/
"requestAmount"?: string;
/**
* The currency of the payment request.
*/
"requestCurrencyCode"?: string;
/**
* The shopper interaction type of the payment request. Example: Ecommerce
*/
"shopperInteraction"?: string;
/**
* The shopperReference passed in the payment request. Example: AdyenTestShopperXX
*/
"shopperReference"?: string;
/**
* The terminal ID used in a point-of-sale payment. Example: 06022622
*/
"terminalId"?: string;
/**
* A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true
*/
"threeDAuthenticated"?: string;
/**
* The raw 3DS authentication result from the card issuer. Example: N
*/
"threeDAuthenticatedResponse"?: string;
/**
* A Boolean value indicating whether 3DS was offered for this payment. Example: true
*/
"threeDOffered"?: string;
/**
* The raw enrollment result from the 3DS directory services of the card schemes. Example: Y
*/
"threeDOfferedResponse"?: string;
/**
* The 3D Secure 2 version.
*/
"threeDSVersion"?: string;
/**
* The reference for the shopper that you sent when tokenizing the payment details.
*/
"tokenization_shopperReference"?: string;
/**
* The operation performed on the token. Possible values: * **created**: the token has been created. * **updated**: the existing token has been updated. * **alreadyExisting**: the details have already been stored.
*/
"tokenization_store_operationType"?: ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum;
/**
* The reference that uniquely identifies tokenized payment details.
*/
"tokenization_storedPaymentMethodId"?: string;
/**
* The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field.
*/
"visaTransactionId"?: string;
/**
* The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA=
*/
"xid"?: string;
static readonly discriminator: string | undefined = undefined;
static readonly mapping: {[index: string]: string} | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "acquirerAccountCode",
"baseName": "acquirerAccountCode",
"type": "string",
"format": ""
},
{
"name": "acquirerCode",
"baseName": "acquirerCode",
"type": "string",
"format": ""
},
{
"name": "acquirerReference",
"baseName": "acquirerReference",
"type": "string",
"format": ""
},
{
"name": "alias",
"baseName": "alias",
"type": "string",
"format": ""
},
{
"name": "aliasType",
"baseName": "aliasType",
"type": "string",
"format": ""
},
{
"name": "authCode",
"baseName": "authCode",
"type": "string",
"format": ""
},
{
"name": "authorisationMid",
"baseName": "authorisationMid",
"type": "string",
"format": ""
},
{
"name": "authorisedAmountCurrency",
"baseName": "authorisedAmountCurrency",
"type": "string",
"format": ""
},
{
"name": "authorisedAmountValue",
"baseName": "authorisedAmountValue",
"type": "string",
"format": ""
},
{
"name": "avsResult",
"baseName": "avsResult",
"type": "string",
"format": ""
},
{
"name": "avsResultRaw",
"baseName": "avsResultRaw",
"type": "string",
"format": ""
},
{
"name": "bic",
"baseName": "bic",
"type": "string",
"format": ""
},
{
"name": "coBrandedWith",
"baseName": "coBrandedWith",
"type": "string",
"format": ""
},
{
"name": "cvcResult",
"baseName": "cvcResult",
"type": "string",
"format": ""
},
{
"name": "cvcResultRaw",
"baseName": "cvcResultRaw",
"type": "string",
"format": ""
},
{
"name": "dsTransID",
"baseName": "dsTransID",
"type": "string",
"format": ""
},
{
"name": "eci",
"baseName": "eci",
"type": "string",
"format": ""
},
{
"name": "expiryDate",
"baseName": "expiryDate",
"type": "string",
"format": ""
},
{
"name": "extraCostsCurrency",
"baseName": "extraCostsCurrency",
"type": "string",
"format": ""
},
{
"name": "extraCostsValue",
"baseName": "extraCostsValue",
"type": "string",
"format": ""
},
{
"name": "fraudCheck__itemNr__FraudCheckname",
"baseName": "fraudCheck-[itemNr]-[FraudCheckname]",
"type": "string",
"format": ""
},
{
"name": "fraudManualReview",
"baseName": "fraudManualReview",
"type": "string",
"format": ""
},
{
"name": "fraudResultType",
"baseName": "fraudResultType",
"type": "ResponseAdditionalDataCommon.FraudResultTypeEnum",
"format": ""
},
{
"name": "fraudRiskLevel",
"baseName": "fraudRiskLevel",
"type": "ResponseAdditionalDataCommon.FraudRiskLevelEnum",
"format": ""
},
{
"name": "fundingSource",
"baseName": "fundingSource",
"type": "string",
"format": ""
},
{
"name": "fundsAvailability",
"baseName": "fundsAvailability",
"type": "string",
"format": ""
},
{
"name": "inferredRefusalReason",
"baseName": "inferredRefusalReason",
"type": "string",
"format": ""
},
{
"name": "isCardCommercial",
"baseName": "isCardCommercial",
"type": "string",
"format": ""
},
{
"name": "issuerCountry",
"baseName": "issuerCountry",
"type": "string",
"format": ""
},
{
"name": "liabilityShift",
"baseName": "liabilityShift",
"type": "string",
"format": ""
},
{
"name": "mcBankNetReferenceNumber",
"baseName": "mcBankNetReferenceNumber",
"type": "string",
"format": ""
},
{
"name": "merchantAdviceCode",
"baseName": "merchantAdviceCode",
"type": "string",
"format": ""
},
{
"name": "merchantReference",
"baseName": "merchantReference",
"type": "string",
"format": ""
},
{
"name": "networkTxReference",
"baseName": "networkTxReference",
"type": "string",
"format": ""
},
{
"name": "ownerName",
"baseName": "ownerName",
"type": "string",
"format": ""
},
{
"name": "paymentAccountReference",
"baseName": "paymentAccountReference",
"type": "string",
"format": ""
},
{
"name": "paymentMethod",
"baseName": "paymentMethod",
"type": "string",
"format": ""
},
{
"name": "paymentMethodVariant",
"baseName": "paymentMethodVariant",
"type": "string",
"format": ""
},
{
"name": "payoutEligible",
"baseName": "payoutEligible",
"type": "string",
"format": ""
},
{
"name": "realtimeAccountUpdaterStatus",
"baseName": "realtimeAccountUpdaterStatus",
"type": "string",
"format": ""
},
{
"name": "receiptFreeText",
"baseName": "receiptFreeText",
"type": "string",
"format": ""
},
{
"name": "recurring_contractTypes",
"baseName": "recurring.contractTypes",
"type": "string",
"format": ""
},
{
"name": "recurring_firstPspReference",
"baseName": "recurring.firstPspReference",
"type": "string",
"format": ""
},
{
"name": "recurring_recurringDetailReference",
"baseName": "recurring.recurringDetailReference",
"type": "string",
"format": ""
},
{
"name": "recurring_shopperReference",
"baseName": "recurring.shopperReference",
"type": "string",
"format": ""
},
{
"name": "recurringProcessingModel",
"baseName": "recurringProcessingModel",
"type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum",
"format": ""
},
{
"name": "referred",
"baseName": "referred",
"type": "string",
"format": ""
},
{
"name": "refusalReasonRaw",
"baseName": "refusalReasonRaw",
"type": "string",
"format": ""
},
{
"name": "requestAmount",
"baseName": "requestAmount",
"type": "string",
"format": ""
},
{
"name": "requestCurrencyCode",
"baseName": "requestCurrencyCode",
"type": "string",
"format": ""
},
{
"name": "shopperInteraction",
"baseName": "shopperInteraction",
"type": "string",
"format": ""
},
{
"name": "shopperReference",
"baseName": "shopperReference",
"type": "string",
"format": ""
},
{
"name": "terminalId",
"baseName": "terminalId",
"type": "string",
"format": ""
},
{
"name": "threeDAuthenticated",
"baseName": "threeDAuthenticated",
"type": "string",
"format": ""
},
{
"name": "threeDAuthenticatedResponse",
"baseName": "threeDAuthenticatedResponse",
"type": "string",
"format": ""
},
{
"name": "threeDOffered",
"baseName": "threeDOffered",
"type": "string",
"format": ""
},
{
"name": "threeDOfferedResponse",
"baseName": "threeDOfferedResponse",
"type": "string",
"format": ""
},
{
"name": "threeDSVersion",
"baseName": "threeDSVersion",
"type": "string",
"format": ""
},
{
"name": "tokenization_shopperReference",
"baseName": "tokenization.shopperReference",
"type": "string",
"format": ""
},
{
"name": "tokenization_store_operationType",
"baseName": "tokenization.store.operationType",
"type": "ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum",
"format": ""
},
{
"name": "tokenization_storedPaymentMethodId",
"baseName": "tokenization.storedPaymentMethodId",
"type": "string",
"format": ""
},
{
"name": "visaTransactionId",
"baseName": "visaTransactionId",
"type": "string",
"format": ""
},
{
"name": "xid",
"baseName": "xid",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return ResponseAdditionalDataCommon.attributeTypeMap;
}
public constructor() {
}
}
export namespace ResponseAdditionalDataCommon {
export enum FraudResultTypeEnum {
Amber = 'AMBER',
Green = 'GREEN',
Red = 'RED'
}
export enum FraudRiskLevelEnum {
VeryLow = 'veryLow',
Low = 'low',
Medium = 'medium',
High = 'high',
VeryHigh = 'veryHigh'
}
export enum RecurringProcessingModelEnum {
CardOnFile = 'CardOnFile',
Subscription = 'Subscription',
UnscheduledCardOnFile = 'UnscheduledCardOnFile'
}
export enum TokenizationStoreOperationTypeEnum {
Created = 'created',
Updated = 'updated',
AlreadyExisting = 'alreadyExisting'
}
}