-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathcard.ts
More file actions
166 lines (157 loc) · 4.77 KB
/
card.ts
File metadata and controls
166 lines (157 loc) · 4.77 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
/*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
import { Authentication } from "./authentication";
import { CardConfiguration } from "./cardConfiguration";
import { DeliveryContact } from "./deliveryContact";
import { Expiry } from "./expiry";
export class Card {
"authentication"?: Authentication | null;
/**
* The bank identification number (BIN) of the card number.
*/
"bin"?: string;
/**
* The brand of the physical or the virtual card. Possible values: **visa**, **mc**.
*/
"brand": string;
/**
* The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.
*/
"brandVariant": string;
/**
* The name of the cardholder. Maximum length: 26 characters.
*/
"cardholderName": string;
"configuration"?: CardConfiguration | null;
/**
* The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.
*/
"cvc"?: string;
"deliveryContact"?: DeliveryContact | null;
"expiration"?: Expiry | null;
/**
* The form factor of the card. Possible values: **virtual**, **physical**.
*/
"formFactor": Card.FormFactorEnum;
/**
* Last last four digits of the card number.
*/
"lastFour"?: string;
/**
* The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.
*/
"number"?: string;
/**
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration.
*/
"threeDSecure"?: string;
/**
* Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration.
*/
"usage"?: 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": "authentication",
"baseName": "authentication",
"type": "Authentication | null",
"format": ""
},
{
"name": "bin",
"baseName": "bin",
"type": "string",
"format": ""
},
{
"name": "brand",
"baseName": "brand",
"type": "string",
"format": ""
},
{
"name": "brandVariant",
"baseName": "brandVariant",
"type": "string",
"format": ""
},
{
"name": "cardholderName",
"baseName": "cardholderName",
"type": "string",
"format": ""
},
{
"name": "configuration",
"baseName": "configuration",
"type": "CardConfiguration | null",
"format": ""
},
{
"name": "cvc",
"baseName": "cvc",
"type": "string",
"format": ""
},
{
"name": "deliveryContact",
"baseName": "deliveryContact",
"type": "DeliveryContact | null",
"format": ""
},
{
"name": "expiration",
"baseName": "expiration",
"type": "Expiry | null",
"format": ""
},
{
"name": "formFactor",
"baseName": "formFactor",
"type": "Card.FormFactorEnum",
"format": ""
},
{
"name": "lastFour",
"baseName": "lastFour",
"type": "string",
"format": ""
},
{
"name": "number",
"baseName": "number",
"type": "string",
"format": ""
},
{
"name": "threeDSecure",
"baseName": "threeDSecure",
"type": "string",
"format": ""
},
{
"name": "usage",
"baseName": "usage",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return Card.attributeTypeMap;
}
public constructor() {
}
}
export namespace Card {
export enum FormFactorEnum {
Physical = 'physical',
Unknown = 'unknown',
Virtual = 'virtual'
}
}