forked from Adyen/adyen-node-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchallengeInfo.ts
90 lines (84 loc) · 2.45 KB
/
challengeInfo.ts
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
/*
* The version of the OpenAPI document: v1
*
*
* 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 ChallengeInfo {
/**
* Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
*/
'challengeCancel'?: ChallengeInfo.ChallengeCancelEnum;
/**
* The flow used in the challenge. Possible values: * **OTP_SMS**: one-time password (OTP) flow * **OOB**: out-of-band (OOB) flow
*/
'flow': ChallengeInfo.FlowEnum;
/**
* The last time of interaction with the challenge.
*/
'lastInteraction': Date;
/**
* The last four digits of the phone number used in the challenge.
*/
'phoneNumber'?: string;
/**
* The number of times the one-time password (OTP) was resent during the challenge.
*/
'resends'?: number;
/**
* The number of retries used in the challenge.
*/
'retries'?: number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "challengeCancel",
"baseName": "challengeCancel",
"type": "ChallengeInfo.ChallengeCancelEnum"
},
{
"name": "flow",
"baseName": "flow",
"type": "ChallengeInfo.FlowEnum"
},
{
"name": "lastInteraction",
"baseName": "lastInteraction",
"type": "Date"
},
{
"name": "phoneNumber",
"baseName": "phoneNumber",
"type": "string"
},
{
"name": "resends",
"baseName": "resends",
"type": "number"
},
{
"name": "retries",
"baseName": "retries",
"type": "number"
} ];
static getAttributeTypeMap() {
return ChallengeInfo.attributeTypeMap;
}
}
export namespace ChallengeInfo {
export enum ChallengeCancelEnum {
_01 = '01',
_02 = '02',
_03 = '03',
_04 = '04',
_05 = '05',
_06 = '06',
_07 = '07'
}
export enum FlowEnum {
OtpSms = 'OTP_SMS',
Oob = 'OOB'
}
}