-
Notifications
You must be signed in to change notification settings - Fork 58
/
card.ts
137 lines (131 loc) · 3.9 KB
/
card.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
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
/*
* 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;
/**
* 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;
/**
* 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;
'expiration'?: Expiry;
/**
* 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;
/**
* Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.
*/
'threeDSecure'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authentication",
"baseName": "authentication",
"type": "Authentication"
},
{
"name": "bin",
"baseName": "bin",
"type": "string"
},
{
"name": "brand",
"baseName": "brand",
"type": "string"
},
{
"name": "brandVariant",
"baseName": "brandVariant",
"type": "string"
},
{
"name": "cardholderName",
"baseName": "cardholderName",
"type": "string"
},
{
"name": "configuration",
"baseName": "configuration",
"type": "CardConfiguration"
},
{
"name": "cvc",
"baseName": "cvc",
"type": "string"
},
{
"name": "deliveryContact",
"baseName": "deliveryContact",
"type": "DeliveryContact"
},
{
"name": "expiration",
"baseName": "expiration",
"type": "Expiry"
},
{
"name": "formFactor",
"baseName": "formFactor",
"type": "Card.FormFactorEnum"
},
{
"name": "lastFour",
"baseName": "lastFour",
"type": "string"
},
{
"name": "number",
"baseName": "number",
"type": "string"
},
{
"name": "threeDSecure",
"baseName": "threeDSecure",
"type": "string"
} ];
static getAttributeTypeMap() {
return Card.attributeTypeMap;
}
}
export namespace Card {
export enum FormFactorEnum {
Physical = 'physical',
Unknown = 'unknown',
Virtual = 'virtual'
}
}