|
7 | 7 | * Do not edit this class manually.
|
8 | 8 | */
|
9 | 9 |
|
10 |
| -import { ChallengeInfo } from './challengeInfo'; |
| 10 | +import { ChallengeInfo } from "./challengeInfo"; |
| 11 | + |
11 | 12 |
|
12 | 13 | export class AuthenticationInfo {
|
13 | 14 | /**
|
14 | 15 | * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction.
|
15 | 16 | */
|
16 |
| - 'acsTransId': string; |
17 |
| - 'challenge'?: ChallengeInfo | null; |
| 17 | + "acsTransId": string; |
| 18 | + "challenge"?: ChallengeInfo; |
18 | 19 | /**
|
19 | 20 | * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa)
|
20 | 21 | */
|
21 |
| - 'challengeIndicator': AuthenticationInfo.ChallengeIndicatorEnum; |
| 22 | + "challengeIndicator": AuthenticationInfo.ChallengeIndicatorEnum; |
22 | 23 | /**
|
23 | 24 | * Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
|
24 | 25 | */
|
25 |
| - 'createdAt': Date; |
| 26 | + "createdAt": Date; |
26 | 27 | /**
|
27 | 28 | * Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available)
|
28 | 29 | */
|
29 |
| - 'deviceChannel': AuthenticationInfo.DeviceChannelEnum; |
| 30 | + "deviceChannel": AuthenticationInfo.DeviceChannelEnum; |
30 | 31 | /**
|
31 | 32 | * Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction.
|
32 | 33 | */
|
33 |
| - 'dsTransID': string; |
| 34 | + "dsTransID": string; |
34 | 35 | /**
|
35 | 36 | * Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption**
|
36 | 37 | */
|
37 |
| - 'exemptionIndicator'?: AuthenticationInfo.ExemptionIndicatorEnum; |
| 38 | + "exemptionIndicator"?: AuthenticationInfo.ExemptionIndicatorEnum; |
38 | 39 | /**
|
39 | 40 | * Indicates if the purchase was in the PSD2 scope.
|
40 | 41 | */
|
41 |
| - 'inPSD2Scope': boolean; |
| 42 | + "inPSD2Scope": boolean; |
42 | 43 | /**
|
43 | 44 | * Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment**
|
44 | 45 | */
|
45 |
| - 'messageCategory': AuthenticationInfo.MessageCategoryEnum; |
| 46 | + "messageCategory": AuthenticationInfo.MessageCategoryEnum; |
46 | 47 | /**
|
47 | 48 | * The `messageVersion` value as defined in the 3D Secure 2 specification.
|
48 | 49 | */
|
49 |
| - 'messageVersion': string; |
| 50 | + "messageVersion": string; |
50 | 51 | /**
|
51 | 52 | * Risk score calculated from the transaction rules.
|
52 | 53 | */
|
53 |
| - 'riskScore'?: number; |
| 54 | + "riskScore"?: number; |
54 | 55 | /**
|
55 | 56 | * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification.
|
56 | 57 | */
|
57 |
| - 'threeDSServerTransID': string; |
| 58 | + "threeDSServerTransID": string; |
58 | 59 | /**
|
59 | 60 | * The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer.
|
60 | 61 | */
|
61 |
| - 'transStatus': AuthenticationInfo.TransStatusEnum; |
| 62 | + "transStatus": AuthenticationInfo.TransStatusEnum; |
62 | 63 | /**
|
63 | 64 | * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
|
64 | 65 | */
|
65 |
| - 'transStatusReason'?: AuthenticationInfo.TransStatusReasonEnum; |
| 66 | + "transStatusReason"?: AuthenticationInfo.TransStatusReasonEnum; |
66 | 67 | /**
|
67 | 68 | * The type of authentication performed. Possible values: * **frictionless** * **challenge**
|
68 | 69 | */
|
69 |
| - 'type': AuthenticationInfo.TypeEnum; |
| 70 | + "type": AuthenticationInfo.TypeEnum; |
| 71 | + |
| 72 | + static readonly discriminator: string | undefined = undefined; |
70 | 73 |
|
71 |
| - static discriminator: string | undefined = undefined; |
| 74 | + static readonly mapping: {[index: string]: string} | undefined = undefined; |
72 | 75 |
|
73 |
| - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ |
| 76 | + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ |
74 | 77 | {
|
75 | 78 | "name": "acsTransId",
|
76 | 79 | "baseName": "acsTransId",
|
77 |
| - "type": "string" |
| 80 | + "type": "string", |
| 81 | + "format": "" |
78 | 82 | },
|
79 | 83 | {
|
80 | 84 | "name": "challenge",
|
81 | 85 | "baseName": "challenge",
|
82 |
| - "type": "ChallengeInfo | null" |
| 86 | + "type": "ChallengeInfo", |
| 87 | + "format": "" |
83 | 88 | },
|
84 | 89 | {
|
85 | 90 | "name": "challengeIndicator",
|
86 | 91 | "baseName": "challengeIndicator",
|
87 |
| - "type": "AuthenticationInfo.ChallengeIndicatorEnum" |
| 92 | + "type": "AuthenticationInfo.ChallengeIndicatorEnum", |
| 93 | + "format": "" |
88 | 94 | },
|
89 | 95 | {
|
90 | 96 | "name": "createdAt",
|
91 | 97 | "baseName": "createdAt",
|
92 |
| - "type": "Date" |
| 98 | + "type": "Date", |
| 99 | + "format": "date-time" |
93 | 100 | },
|
94 | 101 | {
|
95 | 102 | "name": "deviceChannel",
|
96 | 103 | "baseName": "deviceChannel",
|
97 |
| - "type": "AuthenticationInfo.DeviceChannelEnum" |
| 104 | + "type": "AuthenticationInfo.DeviceChannelEnum", |
| 105 | + "format": "" |
98 | 106 | },
|
99 | 107 | {
|
100 | 108 | "name": "dsTransID",
|
101 | 109 | "baseName": "dsTransID",
|
102 |
| - "type": "string" |
| 110 | + "type": "string", |
| 111 | + "format": "" |
103 | 112 | },
|
104 | 113 | {
|
105 | 114 | "name": "exemptionIndicator",
|
106 | 115 | "baseName": "exemptionIndicator",
|
107 |
| - "type": "AuthenticationInfo.ExemptionIndicatorEnum" |
| 116 | + "type": "AuthenticationInfo.ExemptionIndicatorEnum", |
| 117 | + "format": "" |
108 | 118 | },
|
109 | 119 | {
|
110 | 120 | "name": "inPSD2Scope",
|
111 | 121 | "baseName": "inPSD2Scope",
|
112 |
| - "type": "boolean" |
| 122 | + "type": "boolean", |
| 123 | + "format": "" |
113 | 124 | },
|
114 | 125 | {
|
115 | 126 | "name": "messageCategory",
|
116 | 127 | "baseName": "messageCategory",
|
117 |
| - "type": "AuthenticationInfo.MessageCategoryEnum" |
| 128 | + "type": "AuthenticationInfo.MessageCategoryEnum", |
| 129 | + "format": "" |
118 | 130 | },
|
119 | 131 | {
|
120 | 132 | "name": "messageVersion",
|
121 | 133 | "baseName": "messageVersion",
|
122 |
| - "type": "string" |
| 134 | + "type": "string", |
| 135 | + "format": "" |
123 | 136 | },
|
124 | 137 | {
|
125 | 138 | "name": "riskScore",
|
126 | 139 | "baseName": "riskScore",
|
127 |
| - "type": "number" |
| 140 | + "type": "number", |
| 141 | + "format": "int32" |
128 | 142 | },
|
129 | 143 | {
|
130 | 144 | "name": "threeDSServerTransID",
|
131 | 145 | "baseName": "threeDSServerTransID",
|
132 |
| - "type": "string" |
| 146 | + "type": "string", |
| 147 | + "format": "" |
133 | 148 | },
|
134 | 149 | {
|
135 | 150 | "name": "transStatus",
|
136 | 151 | "baseName": "transStatus",
|
137 |
| - "type": "AuthenticationInfo.TransStatusEnum" |
| 152 | + "type": "AuthenticationInfo.TransStatusEnum", |
| 153 | + "format": "" |
138 | 154 | },
|
139 | 155 | {
|
140 | 156 | "name": "transStatusReason",
|
141 | 157 | "baseName": "transStatusReason",
|
142 |
| - "type": "AuthenticationInfo.TransStatusReasonEnum" |
| 158 | + "type": "AuthenticationInfo.TransStatusReasonEnum", |
| 159 | + "format": "" |
143 | 160 | },
|
144 | 161 | {
|
145 | 162 | "name": "type",
|
146 | 163 | "baseName": "type",
|
147 |
| - "type": "AuthenticationInfo.TypeEnum" |
| 164 | + "type": "AuthenticationInfo.TypeEnum", |
| 165 | + "format": "" |
148 | 166 | } ];
|
149 | 167 |
|
150 | 168 | static getAttributeTypeMap() {
|
151 | 169 | return AuthenticationInfo.attributeTypeMap;
|
152 | 170 | }
|
| 171 | + |
| 172 | + public constructor() { |
| 173 | + } |
153 | 174 | }
|
154 | 175 |
|
155 | 176 | export namespace AuthenticationInfo {
|
|
0 commit comments