@enfuce/nextgen-sdk 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/authorisation-control/api.d.ts +0 -302
- package/dist/authorisation-control/api.js +10 -28
- package/dist/authorisation-control/base.d.ts +0 -24
- package/dist/authorisation-control/base.js +0 -19
- package/dist/authorisation-control/common.d.ts +4 -35
- package/dist/authorisation-control/common.js +16 -38
- package/dist/authorisation-control/configuration.d.ts +24 -17
- package/dist/authorisation-control/configuration.js +3 -3
- package/dist/card/api.d.ts +41 -740
- package/dist/card/api.js +38 -105
- package/dist/card/base.d.ts +0 -24
- package/dist/card/base.js +0 -19
- package/dist/card/common.d.ts +4 -35
- package/dist/card/common.js +16 -38
- package/dist/card/configuration.d.ts +24 -17
- package/dist/card/configuration.js +3 -3
- package/dist/cardholder/api.d.ts +959 -686
- package/dist/cardholder/api.js +783 -73
- package/dist/cardholder/base.d.ts +0 -24
- package/dist/cardholder/base.js +0 -19
- package/dist/cardholder/common.d.ts +4 -35
- package/dist/cardholder/common.js +16 -38
- package/dist/cardholder/configuration.d.ts +24 -17
- package/dist/cardholder/configuration.js +3 -3
- package/dist/cards/api.d.ts +0 -7
- package/dist/cards/api.js +2 -9
- package/dist/cards/base.d.ts +0 -24
- package/dist/cards/base.js +0 -19
- package/dist/cards/common.d.ts +4 -35
- package/dist/cards/common.js +16 -38
- package/dist/cards/configuration.d.ts +24 -17
- package/dist/cards/configuration.js +3 -3
- package/dist/clearing-file-copy/api.d.ts +0 -497
- package/dist/clearing-file-copy/api.js +12 -26
- package/dist/clearing-file-copy/base.d.ts +0 -24
- package/dist/clearing-file-copy/base.js +0 -19
- package/dist/clearing-file-copy/common.d.ts +4 -35
- package/dist/clearing-file-copy/common.js +16 -38
- package/dist/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/authorisation-control/api.d.ts +0 -302
- package/dist/esm/authorisation-control/api.js +10 -28
- package/dist/esm/authorisation-control/base.d.ts +0 -24
- package/dist/esm/authorisation-control/base.js +0 -19
- package/dist/esm/authorisation-control/common.d.ts +4 -35
- package/dist/esm/authorisation-control/common.js +14 -37
- package/dist/esm/authorisation-control/configuration.d.ts +24 -17
- package/dist/esm/authorisation-control/configuration.js +3 -3
- package/dist/esm/card/api.d.ts +41 -740
- package/dist/esm/card/api.js +38 -105
- package/dist/esm/card/base.d.ts +0 -24
- package/dist/esm/card/base.js +0 -19
- package/dist/esm/card/common.d.ts +4 -35
- package/dist/esm/card/common.js +14 -37
- package/dist/esm/card/configuration.d.ts +24 -17
- package/dist/esm/card/configuration.js +3 -3
- package/dist/esm/cardholder/api.d.ts +959 -686
- package/dist/esm/cardholder/api.js +782 -72
- package/dist/esm/cardholder/base.d.ts +0 -24
- package/dist/esm/cardholder/base.js +0 -19
- package/dist/esm/cardholder/common.d.ts +4 -35
- package/dist/esm/cardholder/common.js +14 -37
- package/dist/esm/cardholder/configuration.d.ts +24 -17
- package/dist/esm/cardholder/configuration.js +3 -3
- package/dist/esm/cards/api.d.ts +0 -7
- package/dist/esm/cards/api.js +2 -9
- package/dist/esm/cards/base.d.ts +0 -24
- package/dist/esm/cards/base.js +0 -19
- package/dist/esm/cards/common.d.ts +4 -35
- package/dist/esm/cards/common.js +14 -37
- package/dist/esm/cards/configuration.d.ts +24 -17
- package/dist/esm/cards/configuration.js +3 -3
- package/dist/esm/clearing-file-copy/api.d.ts +0 -497
- package/dist/esm/clearing-file-copy/api.js +12 -26
- package/dist/esm/clearing-file-copy/base.d.ts +0 -24
- package/dist/esm/clearing-file-copy/base.js +0 -19
- package/dist/esm/clearing-file-copy/common.d.ts +4 -35
- package/dist/esm/clearing-file-copy/common.js +14 -37
- package/dist/esm/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/esm/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/issuer-events/api.d.ts +639 -601
- package/dist/esm/issuer-events/api.js +520 -54
- package/dist/esm/issuer-events/base.d.ts +0 -24
- package/dist/esm/issuer-events/base.js +0 -19
- package/dist/esm/issuer-events/common.d.ts +4 -35
- package/dist/esm/issuer-events/common.js +14 -37
- package/dist/esm/issuer-events/configuration.d.ts +24 -17
- package/dist/esm/issuer-events/configuration.js +3 -3
- package/dist/esm/pin/api.d.ts +0 -76
- package/dist/esm/pin/api.js +3 -15
- package/dist/esm/pin/base.d.ts +0 -24
- package/dist/esm/pin/base.js +0 -19
- package/dist/esm/pin/common.d.ts +4 -35
- package/dist/esm/pin/common.js +14 -37
- package/dist/esm/pin/configuration.d.ts +24 -17
- package/dist/esm/pin/configuration.js +3 -3
- package/dist/esm/threeds/api.d.ts +0 -18
- package/dist/esm/threeds/api.js +1 -8
- package/dist/esm/threeds/base.d.ts +0 -24
- package/dist/esm/threeds/base.js +0 -19
- package/dist/esm/threeds/common.d.ts +4 -35
- package/dist/esm/threeds/common.js +14 -37
- package/dist/esm/threeds/configuration.d.ts +24 -17
- package/dist/esm/threeds/configuration.js +3 -3
- package/dist/esm/threeds-oob/api.d.ts +0 -90
- package/dist/esm/threeds-oob/api.js +2 -9
- package/dist/esm/threeds-oob/base.d.ts +0 -24
- package/dist/esm/threeds-oob/base.js +0 -19
- package/dist/esm/threeds-oob/common.d.ts +4 -35
- package/dist/esm/threeds-oob/common.js +14 -37
- package/dist/esm/threeds-oob/configuration.d.ts +24 -17
- package/dist/esm/threeds-oob/configuration.js +3 -3
- package/dist/esm/transaction-event/api.d.ts +2 -453
- package/dist/esm/transaction-event/api.js +13 -28
- package/dist/esm/transaction-event/base.d.ts +0 -24
- package/dist/esm/transaction-event/base.js +0 -19
- package/dist/esm/transaction-event/common.d.ts +4 -35
- package/dist/esm/transaction-event/common.js +14 -37
- package/dist/esm/transaction-event/configuration.d.ts +24 -17
- package/dist/esm/transaction-event/configuration.js +3 -3
- package/dist/esm/wallet/api.d.ts +0 -342
- package/dist/esm/wallet/api.js +29 -83
- package/dist/esm/wallet/base.d.ts +0 -24
- package/dist/esm/wallet/base.js +0 -19
- package/dist/esm/wallet/common.d.ts +4 -35
- package/dist/esm/wallet/common.js +14 -37
- package/dist/esm/wallet/configuration.d.ts +24 -17
- package/dist/esm/wallet/configuration.js +3 -3
- package/dist/issuer-events/api.d.ts +639 -601
- package/dist/issuer-events/api.js +521 -55
- package/dist/issuer-events/base.d.ts +0 -24
- package/dist/issuer-events/base.js +0 -19
- package/dist/issuer-events/common.d.ts +4 -35
- package/dist/issuer-events/common.js +16 -38
- package/dist/issuer-events/configuration.d.ts +24 -17
- package/dist/issuer-events/configuration.js +3 -3
- package/dist/pin/api.d.ts +0 -76
- package/dist/pin/api.js +3 -15
- package/dist/pin/base.d.ts +0 -24
- package/dist/pin/base.js +0 -19
- package/dist/pin/common.d.ts +4 -35
- package/dist/pin/common.js +16 -38
- package/dist/pin/configuration.d.ts +24 -17
- package/dist/pin/configuration.js +3 -3
- package/dist/threeds/api.d.ts +0 -18
- package/dist/threeds/api.js +1 -8
- package/dist/threeds/base.d.ts +0 -24
- package/dist/threeds/base.js +0 -19
- package/dist/threeds/common.d.ts +4 -35
- package/dist/threeds/common.js +16 -38
- package/dist/threeds/configuration.d.ts +24 -17
- package/dist/threeds/configuration.js +3 -3
- package/dist/threeds-oob/api.d.ts +0 -90
- package/dist/threeds-oob/api.js +2 -9
- package/dist/threeds-oob/base.d.ts +0 -24
- package/dist/threeds-oob/base.js +0 -19
- package/dist/threeds-oob/common.d.ts +4 -35
- package/dist/threeds-oob/common.js +16 -38
- package/dist/threeds-oob/configuration.d.ts +24 -17
- package/dist/threeds-oob/configuration.js +3 -3
- package/dist/transaction-event/api.d.ts +2 -453
- package/dist/transaction-event/api.js +13 -28
- package/dist/transaction-event/base.d.ts +0 -24
- package/dist/transaction-event/base.js +0 -19
- package/dist/transaction-event/common.d.ts +4 -35
- package/dist/transaction-event/common.js +16 -38
- package/dist/transaction-event/configuration.d.ts +24 -17
- package/dist/transaction-event/configuration.js +3 -3
- package/dist/wallet/api.d.ts +0 -342
- package/dist/wallet/api.js +29 -83
- package/dist/wallet/base.d.ts +0 -24
- package/dist/wallet/base.js +0 -19
- package/dist/wallet/common.d.ts +4 -35
- package/dist/wallet/common.js +16 -38
- package/dist/wallet/configuration.d.ts +24 -17
- package/dist/wallet/configuration.js +3 -3
- package/package.json +5 -2
- package/src/authorisation-control/api.ts +11 -314
- package/src/authorisation-control/base.ts +0 -24
- package/src/authorisation-control/common.ts +15 -38
- package/src/authorisation-control/configuration.ts +26 -20
- package/src/card/api.ts +80 -786
- package/src/card/base.ts +0 -24
- package/src/card/common.ts +15 -38
- package/src/card/configuration.ts +26 -20
- package/src/cardholder/api.ts +987 -714
- package/src/cardholder/base.ts +0 -24
- package/src/cardholder/common.ts +15 -38
- package/src/cardholder/configuration.ts +26 -20
- package/src/cards/api.ts +3 -11
- package/src/cards/base.ts +0 -24
- package/src/cards/common.ts +15 -38
- package/src/cards/configuration.ts +26 -20
- package/src/clearing-file-copy/api.ts +13 -510
- package/src/clearing-file-copy/base.ts +0 -24
- package/src/clearing-file-copy/common.ts +15 -38
- package/src/clearing-file-copy/configuration.ts +26 -20
- package/src/issuer-events/api.ts +661 -628
- package/src/issuer-events/base.ts +0 -24
- package/src/issuer-events/common.ts +15 -38
- package/src/issuer-events/configuration.ts +26 -20
- package/src/pin/api.ts +4 -83
- package/src/pin/base.ts +0 -24
- package/src/pin/common.ts +15 -38
- package/src/pin/configuration.ts +26 -20
- package/src/threeds/api.ts +2 -22
- package/src/threeds/base.ts +0 -24
- package/src/threeds/common.ts +15 -38
- package/src/threeds/configuration.ts +26 -20
- package/src/threeds-oob/api.ts +3 -95
- package/src/threeds-oob/base.ts +0 -24
- package/src/threeds-oob/common.ts +15 -38
- package/src/threeds-oob/configuration.ts +26 -20
- package/src/transaction-event/api.ts +14 -465
- package/src/transaction-event/base.ts +0 -24
- package/src/transaction-event/common.ts +15 -38
- package/src/transaction-event/configuration.ts +26 -20
- package/src/wallet/api.ts +30 -377
- package/src/wallet/base.ts +0 -24
- package/src/wallet/common.ts +15 -38
- package/src/wallet/configuration.ts +26 -20
package/src/cardholder/api.ts
CHANGED
|
@@ -18,131 +18,69 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from './common';
|
|
22
22
|
import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface Address
|
|
30
|
-
*/
|
|
31
26
|
export interface Address {
|
|
32
27
|
/**
|
|
33
28
|
* First line of address.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Address
|
|
36
29
|
*/
|
|
37
30
|
'address1': string;
|
|
38
31
|
/**
|
|
39
32
|
* Second line of address. Any string without trailing or leading whitespaces, or an empty string.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Address
|
|
42
33
|
*/
|
|
43
34
|
'address2'?: string;
|
|
44
35
|
/**
|
|
45
36
|
* Third line of address. Any string without trailing or leading whitespaces, or an empty string.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Address
|
|
48
37
|
*/
|
|
49
38
|
'address3'?: string;
|
|
50
39
|
/**
|
|
51
40
|
* Fourth line of the address. Any string without trailing or leading whitespaces, or an empty string.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Address
|
|
54
41
|
*/
|
|
55
42
|
'address4'?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Address
|
|
60
|
-
*/
|
|
61
43
|
'city': string;
|
|
62
44
|
/**
|
|
63
45
|
* A valid ISO-3166-1 alpha-3 country code.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof Address
|
|
66
46
|
*/
|
|
67
47
|
'country': string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof Address
|
|
72
|
-
*/
|
|
73
48
|
'region'?: string;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof Address
|
|
78
|
-
*/
|
|
79
49
|
'zipCode': string;
|
|
80
50
|
}
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
* @interface AddressResponse
|
|
85
|
-
*/
|
|
86
51
|
export interface AddressResponse {
|
|
87
52
|
/**
|
|
88
53
|
* First line of address.
|
|
89
|
-
* @type {string}
|
|
90
|
-
* @memberof AddressResponse
|
|
91
54
|
*/
|
|
92
55
|
'address1': string;
|
|
93
56
|
/**
|
|
94
57
|
* Any string without trailing or leading whitespaces, or an empty string.
|
|
95
|
-
* @type {string}
|
|
96
|
-
* @memberof AddressResponse
|
|
97
58
|
*/
|
|
98
59
|
'address2'?: string | null;
|
|
99
60
|
/**
|
|
100
61
|
* Any string without trailing or leading whitespaces, or an empty string.
|
|
101
|
-
* @type {string}
|
|
102
|
-
* @memberof AddressResponse
|
|
103
62
|
*/
|
|
104
63
|
'address3'?: string | null;
|
|
105
64
|
/**
|
|
106
65
|
* Any string without trailing or leading whitespaces, or an empty string.
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof AddressResponse
|
|
109
66
|
*/
|
|
110
67
|
'address4'?: string | null;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {string}
|
|
114
|
-
* @memberof AddressResponse
|
|
115
|
-
*/
|
|
116
68
|
'city': string;
|
|
117
69
|
/**
|
|
118
70
|
* A valid ISO-3166-1 alpha-3 country code.
|
|
119
|
-
* @type {string}
|
|
120
|
-
* @memberof AddressResponse
|
|
121
71
|
*/
|
|
122
72
|
'country': string;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {string}
|
|
126
|
-
* @memberof AddressResponse
|
|
127
|
-
*/
|
|
128
73
|
'region'?: string | null;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @memberof AddressResponse
|
|
133
|
-
*/
|
|
134
74
|
'zipCode': string;
|
|
135
75
|
}
|
|
136
76
|
/**
|
|
137
77
|
* The type of card defined by this card configuration.
|
|
138
|
-
* @export
|
|
139
|
-
* @enum {string}
|
|
140
78
|
*/
|
|
141
79
|
|
|
142
80
|
export const CardConfigurationType = {
|
|
143
81
|
Debit: 'DEBIT',
|
|
144
82
|
Credit: 'CREDIT',
|
|
145
|
-
Combo: 'COMBO'
|
|
83
|
+
Combo: 'COMBO',
|
|
146
84
|
} as const;
|
|
147
85
|
|
|
148
86
|
export type CardConfigurationType = typeof CardConfigurationType[keyof typeof CardConfigurationType];
|
|
@@ -150,8 +88,6 @@ export type CardConfigurationType = typeof CardConfigurationType[keyof typeof Ca
|
|
|
150
88
|
|
|
151
89
|
/**
|
|
152
90
|
* Select the type of delivery you prefer for the new card being created. - MAIL - The card would be sent via mail services. - COURIER - The card would be sent via courier services. - CUSTOM_1–CUSTOM_5 - Custom delivery types that can be used for shipping methods agreed between the customer and the bureau.
|
|
153
|
-
* @export
|
|
154
|
-
* @enum {string}
|
|
155
91
|
*/
|
|
156
92
|
|
|
157
93
|
export const CardDeliveryType = {
|
|
@@ -161,148 +97,78 @@ export const CardDeliveryType = {
|
|
|
161
97
|
Custom2: 'CUSTOM_2',
|
|
162
98
|
Custom3: 'CUSTOM_3',
|
|
163
99
|
Custom4: 'CUSTOM_4',
|
|
164
|
-
Custom5: 'CUSTOM_5'
|
|
100
|
+
Custom5: 'CUSTOM_5',
|
|
165
101
|
} as const;
|
|
166
102
|
|
|
167
103
|
export type CardDeliveryType = typeof CardDeliveryType[keyof typeof CardDeliveryType];
|
|
168
104
|
|
|
169
105
|
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @export
|
|
173
|
-
* @interface CardResponse
|
|
174
|
-
*/
|
|
175
106
|
export interface CardResponse {
|
|
176
107
|
/**
|
|
177
108
|
* Unique identifier of a card.
|
|
178
|
-
* @type {string}
|
|
179
|
-
* @memberof CardResponse
|
|
180
109
|
*/
|
|
181
110
|
'id'?: string;
|
|
182
111
|
/**
|
|
183
112
|
* The date and time when the card was created.
|
|
184
|
-
* @type {string}
|
|
185
|
-
* @memberof CardResponse
|
|
186
113
|
*/
|
|
187
114
|
'createdAt'?: string;
|
|
188
115
|
/**
|
|
189
116
|
* The date and time when the object/entity was updated last time.
|
|
190
|
-
* @type {string}
|
|
191
|
-
* @memberof CardResponse
|
|
192
117
|
*/
|
|
193
118
|
'updatedAt'?: string;
|
|
194
119
|
/**
|
|
195
120
|
* The program ID associated with the card.
|
|
196
|
-
* @type {string}
|
|
197
|
-
* @memberof CardResponse
|
|
198
121
|
*/
|
|
199
122
|
'programId'?: string;
|
|
200
123
|
/**
|
|
201
124
|
* Unique identifier of the cardholder associated with the card.
|
|
202
|
-
* @type {string}
|
|
203
|
-
* @memberof CardResponse
|
|
204
125
|
*/
|
|
205
126
|
'cardholderId'?: string;
|
|
206
127
|
/**
|
|
207
128
|
* Unique identifier of the account associated with the card.
|
|
208
|
-
* @type {string}
|
|
209
|
-
* @memberof CardResponse
|
|
210
129
|
*/
|
|
211
130
|
'accountId'?: string;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {Plastic}
|
|
215
|
-
* @memberof CardResponse
|
|
216
|
-
*/
|
|
217
131
|
'plastic'?: Plastic;
|
|
218
132
|
/**
|
|
219
133
|
* Card versions ordered by sequence number ascending.
|
|
220
|
-
* @type {Array<CardVersion>}
|
|
221
|
-
* @memberof CardResponse
|
|
222
134
|
*/
|
|
223
135
|
'cardVersions'?: Array<CardVersion>;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {CardRole}
|
|
227
|
-
* @memberof CardResponse
|
|
228
|
-
*/
|
|
229
136
|
'role'?: CardRole;
|
|
230
137
|
/**
|
|
231
138
|
* Unique identifier of the main card. Populated if this card is part of a card application
|
|
232
|
-
* @type {string}
|
|
233
|
-
* @memberof CardResponse
|
|
234
139
|
*/
|
|
235
140
|
'mainCardId'?: string;
|
|
236
141
|
/**
|
|
237
142
|
* A unique code to identify the card configuration. Max character limit is 36.
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof CardResponse
|
|
240
143
|
*/
|
|
241
144
|
'cardConfigurationCode'?: string;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {CardConfigurationType}
|
|
245
|
-
* @memberof CardResponse
|
|
246
|
-
*/
|
|
247
145
|
'cardConfigurationType'?: CardConfigurationType;
|
|
248
|
-
/**
|
|
249
|
-
*
|
|
250
|
-
* @type {CardScheme}
|
|
251
|
-
* @memberof CardResponse
|
|
252
|
-
*/
|
|
253
146
|
'cardScheme'?: CardScheme;
|
|
254
147
|
/**
|
|
255
148
|
* A masked version of the primary account number
|
|
256
|
-
* @type {string}
|
|
257
|
-
* @memberof CardResponse
|
|
258
149
|
*/
|
|
259
150
|
'maskedPan'?: string;
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
* @type {PinStatus}
|
|
263
|
-
* @memberof CardResponse
|
|
264
|
-
*/
|
|
265
151
|
'pinStatus'?: PinStatus;
|
|
266
|
-
/**
|
|
267
|
-
*
|
|
268
|
-
* @type {CardStatus}
|
|
269
|
-
* @memberof CardResponse
|
|
270
|
-
*/
|
|
271
152
|
'cardStatus'?: CardStatus;
|
|
272
153
|
/**
|
|
273
154
|
* A flag indicating whether automatic renewal is enabled or not.
|
|
274
|
-
* @type {boolean}
|
|
275
|
-
* @memberof CardResponse
|
|
276
155
|
*/
|
|
277
156
|
'automaticRenewal'?: boolean;
|
|
278
157
|
/**
|
|
279
158
|
* The digital layout code for the card. Max character limit is 36.
|
|
280
|
-
* @type {string}
|
|
281
|
-
* @memberof CardResponse
|
|
282
159
|
*/
|
|
283
160
|
'digitalLayoutCode'?: string;
|
|
284
|
-
/**
|
|
285
|
-
*
|
|
286
|
-
* @type {MultiApplicationProperties}
|
|
287
|
-
* @memberof CardResponse
|
|
288
|
-
*/
|
|
289
161
|
'multiApplicationProperties'?: MultiApplicationProperties;
|
|
290
162
|
/**
|
|
291
163
|
* The version number of the entity.
|
|
292
|
-
* @type {number}
|
|
293
|
-
* @memberof CardResponse
|
|
294
164
|
*/
|
|
295
165
|
'updateCount'?: number;
|
|
296
166
|
/**
|
|
297
167
|
* You can include up to **30 additional key-value pairs** in the embossing file sent to the card manufacturer. - **Keys** must follow the pattern: `^[a-zA-Z0-9-]{1,36}$` (only letters, numbers, and hyphens, with a maximum length of 36 characters). - **Values** must follow the pattern: `^[a-zA-Z0-9|\\-_ +.@éàèùçâêîôûëïü\'/=]{1,1000}$`. Enfuce **does not perform any additional validation** on these key-value pairs beyond ensuring they match the specified patterns. These fields are intended for **storing data without further processing**. If you need to store a **complex structure**, you can **base64 encode** the value. The encoded value will be passed as entered, without modifications. ⚠ **Important:** Any usage of these fields should be agreed upon with the manufacturer.
|
|
298
|
-
* @type {{ [key: string]: string; }}
|
|
299
|
-
* @memberof CardResponse
|
|
300
168
|
*/
|
|
301
169
|
'additionalValues'?: { [key: string]: string; };
|
|
302
170
|
/**
|
|
303
171
|
* Unique identifier of a fee configuration. When provided, this value overrides the program default. This feature must be enabled for the tenant; otherwise, this field can be left null and will not be used.
|
|
304
|
-
* @type {string}
|
|
305
|
-
* @memberof CardResponse
|
|
306
172
|
*/
|
|
307
173
|
'feeConfigId'?: string | null;
|
|
308
174
|
}
|
|
@@ -310,27 +176,20 @@ export interface CardResponse {
|
|
|
310
176
|
|
|
311
177
|
/**
|
|
312
178
|
* The role of the card. Multi application cards will have one main card and multiple card applications. Single cards will be treated as main cards.
|
|
313
|
-
* @export
|
|
314
|
-
* @enum {string}
|
|
315
179
|
*/
|
|
316
180
|
|
|
317
181
|
export const CardRole = {
|
|
318
182
|
MainCard: 'MAIN_CARD',
|
|
319
|
-
CardApplication: 'CARD_APPLICATION'
|
|
183
|
+
CardApplication: 'CARD_APPLICATION',
|
|
320
184
|
} as const;
|
|
321
185
|
|
|
322
186
|
export type CardRole = typeof CardRole[keyof typeof CardRole];
|
|
323
187
|
|
|
324
188
|
|
|
325
|
-
/**
|
|
326
|
-
*
|
|
327
|
-
* @export
|
|
328
|
-
* @enum {string}
|
|
329
|
-
*/
|
|
330
189
|
|
|
331
190
|
export const CardScheme = {
|
|
332
191
|
Mastercard: 'MASTERCARD',
|
|
333
|
-
Visa: 'VISA'
|
|
192
|
+
Visa: 'VISA',
|
|
334
193
|
} as const;
|
|
335
194
|
|
|
336
195
|
export type CardScheme = typeof CardScheme[keyof typeof CardScheme];
|
|
@@ -338,8 +197,6 @@ export type CardScheme = typeof CardScheme[keyof typeof CardScheme];
|
|
|
338
197
|
|
|
339
198
|
/**
|
|
340
199
|
* - ACTIVE - Card is active and is enabled for normal usage. - BLOCKED - Card is temporarily blocked. - BLOCKED_SUSPECTED_FRAUD - Card is temporarily blocked due to suspected fraud. - CLOSED_DUE_TO_FRAUD - Card has been closed due to fraud. - CLOSED_LOST - Card has been closed due to being lost. - CLOSED_STOLEN - Card has been closed due to being stolen. - CLOSED - Card has been manually closed. - CLOSED_EXPIRED - Card has no active or initial card versions and cannot be used.
|
|
341
|
-
* @export
|
|
342
|
-
* @enum {string}
|
|
343
200
|
*/
|
|
344
201
|
|
|
345
202
|
export const CardStatus = {
|
|
@@ -350,58 +207,36 @@ export const CardStatus = {
|
|
|
350
207
|
ClosedLost: 'CLOSED_LOST',
|
|
351
208
|
ClosedStolen: 'CLOSED_STOLEN',
|
|
352
209
|
Closed: 'CLOSED',
|
|
353
|
-
ClosedExpired: 'CLOSED_EXPIRED'
|
|
210
|
+
ClosedExpired: 'CLOSED_EXPIRED',
|
|
354
211
|
} as const;
|
|
355
212
|
|
|
356
213
|
export type CardStatus = typeof CardStatus[keyof typeof CardStatus];
|
|
357
214
|
|
|
358
215
|
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
* @export
|
|
362
|
-
* @interface CardVersion
|
|
363
|
-
*/
|
|
364
216
|
export interface CardVersion {
|
|
365
|
-
/**
|
|
366
|
-
*
|
|
367
|
-
* @type {CardVersionStatus}
|
|
368
|
-
* @memberof CardVersion
|
|
369
|
-
*/
|
|
370
217
|
'status'?: CardVersionStatus;
|
|
371
218
|
/**
|
|
372
219
|
* The expiration date-time of the card in UTC format. The time must be a value in te future.
|
|
373
|
-
* @type {string}
|
|
374
|
-
* @memberof CardVersion
|
|
375
220
|
*/
|
|
376
221
|
'expirationTime'?: string;
|
|
377
222
|
/**
|
|
378
223
|
* The date when the auto renewal occurs.
|
|
379
|
-
* @type {string}
|
|
380
|
-
* @memberof CardVersion
|
|
381
224
|
*/
|
|
382
225
|
'renewalDate'?: string;
|
|
383
226
|
/**
|
|
384
227
|
* The sequence number of the card version, this value is also known as PSN (pan sequence number)
|
|
385
|
-
* @type {number}
|
|
386
|
-
* @memberof CardVersion
|
|
387
228
|
*/
|
|
388
229
|
'sequenceNumber'?: number;
|
|
389
230
|
/**
|
|
390
231
|
* The id of the key set used by this card version
|
|
391
|
-
* @type {string}
|
|
392
|
-
* @memberof CardVersion
|
|
393
232
|
*/
|
|
394
233
|
'keySetId'?: string;
|
|
395
234
|
/**
|
|
396
235
|
* The date and time when the card was created.
|
|
397
|
-
* @type {string}
|
|
398
|
-
* @memberof CardVersion
|
|
399
236
|
*/
|
|
400
237
|
'createdAt'?: string;
|
|
401
238
|
/**
|
|
402
239
|
* The date and time when the object/entity was updated last time.
|
|
403
|
-
* @type {string}
|
|
404
|
-
* @memberof CardVersion
|
|
405
240
|
*/
|
|
406
241
|
'updatedAt'?: string;
|
|
407
242
|
}
|
|
@@ -409,143 +244,84 @@ export interface CardVersion {
|
|
|
409
244
|
|
|
410
245
|
/**
|
|
411
246
|
* - ACTIVE - The card is completely operational. You can perform all actions with the card. - INITIAL - The specific card version is awaiting activation. During this state, the card can have limited usage, such as being added to a digital wallet or cardholder can view the PIN (if it is a plastic card). However, in the INITIAL state, the card cannot be used for payments. - CLOSED - The previous versions of the card are no longer valid as a new version is activated or the card is closed.
|
|
412
|
-
* @export
|
|
413
|
-
* @enum {string}
|
|
414
247
|
*/
|
|
415
248
|
|
|
416
249
|
export const CardVersionStatus = {
|
|
417
250
|
Active: 'ACTIVE',
|
|
418
251
|
Initial: 'INITIAL',
|
|
419
|
-
Closed: 'CLOSED'
|
|
252
|
+
Closed: 'CLOSED',
|
|
420
253
|
} as const;
|
|
421
254
|
|
|
422
255
|
export type CardVersionStatus = typeof CardVersionStatus[keyof typeof CardVersionStatus];
|
|
423
256
|
|
|
424
257
|
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @export
|
|
428
|
-
* @interface CardholderResponse
|
|
429
|
-
*/
|
|
430
258
|
export interface CardholderResponse {
|
|
431
259
|
/**
|
|
432
260
|
* Enfuce generated unique identifier of the cardholder.
|
|
433
|
-
* @type {string}
|
|
434
|
-
* @memberof CardholderResponse
|
|
435
261
|
*/
|
|
436
262
|
'id': string;
|
|
437
263
|
/**
|
|
438
264
|
* External unique identifier of the cardholder, set by the issuer. Can contain both letters and numbers. Max character limit is 36.
|
|
439
|
-
* @type {string}
|
|
440
|
-
* @memberof CardholderResponse
|
|
441
265
|
*/
|
|
442
266
|
'customerNumber': string;
|
|
443
|
-
/**
|
|
444
|
-
*
|
|
445
|
-
* @type {Locale}
|
|
446
|
-
* @memberof CardholderResponse
|
|
447
|
-
*/
|
|
448
267
|
'locale': Locale;
|
|
449
|
-
/**
|
|
450
|
-
*
|
|
451
|
-
* @type {AddressResponse}
|
|
452
|
-
* @memberof CardholderResponse
|
|
453
|
-
*/
|
|
454
268
|
'address'?: AddressResponse;
|
|
455
269
|
/**
|
|
456
270
|
* Mobile number of the cardholder — it must be a full number, including the country code and starting with +.
|
|
457
|
-
* @type {string}
|
|
458
|
-
* @memberof CardholderResponse
|
|
459
271
|
*/
|
|
460
272
|
'mobileNumber'?: string | null;
|
|
461
273
|
/**
|
|
462
274
|
* First name of the cardholder. Max character limit is 256.
|
|
463
|
-
* @type {string}
|
|
464
|
-
* @memberof CardholderResponse
|
|
465
275
|
*/
|
|
466
276
|
'firstName'?: string;
|
|
467
277
|
/**
|
|
468
278
|
* Middle name of the cardholder. Max character limit is 256.
|
|
469
|
-
* @type {string}
|
|
470
|
-
* @memberof CardholderResponse
|
|
471
279
|
*/
|
|
472
280
|
'middleName'?: string | null;
|
|
473
281
|
/**
|
|
474
282
|
* Last name of the cardholder. Max character limit is 256.
|
|
475
|
-
* @type {string}
|
|
476
|
-
* @memberof CardholderResponse
|
|
477
283
|
*/
|
|
478
284
|
'lastName'?: string;
|
|
479
285
|
/**
|
|
480
286
|
* The date and time when the card was created.
|
|
481
|
-
* @type {string}
|
|
482
|
-
* @memberof CardholderResponse
|
|
483
287
|
*/
|
|
484
288
|
'createdAt'?: string;
|
|
485
289
|
/**
|
|
486
290
|
* The date and time when the object/entity was updated last time.
|
|
487
|
-
* @type {string}
|
|
488
|
-
* @memberof CardholderResponse
|
|
489
291
|
*/
|
|
490
292
|
'updatedAt'?: string | null;
|
|
491
293
|
/**
|
|
492
294
|
* The version number of the entity.
|
|
493
|
-
* @type {number}
|
|
494
|
-
* @memberof CardholderResponse
|
|
495
295
|
*/
|
|
496
296
|
'updateCount'?: number;
|
|
497
297
|
/**
|
|
498
298
|
* Email address of the cardholder. Max character limit is 256.
|
|
499
|
-
* @type {string}
|
|
500
|
-
* @memberof CardholderResponse
|
|
501
299
|
*/
|
|
502
300
|
'email'?: string | null;
|
|
503
301
|
/**
|
|
504
302
|
* Tax Identification Number used for taxation, regulatory reporting, or authority requirements in many countries. Depending on regional regulatory or scheme mandates (for example Brazil requirements), this value may be forwarded to Mastercard. In some countries, this value may be the same as the customer registration or identification number (identificationNumber). Omit to keep current value.
|
|
505
|
-
* @type {string}
|
|
506
|
-
* @memberof CardholderResponse
|
|
507
303
|
*/
|
|
508
304
|
'taxId'?: string | null;
|
|
509
305
|
/**
|
|
510
306
|
* Date of birth of the cardholder. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
511
|
-
* @type {string}
|
|
512
|
-
* @memberof CardholderResponse
|
|
513
307
|
*/
|
|
514
308
|
'dateOfBirth'?: string | null;
|
|
515
309
|
/**
|
|
516
310
|
* Nationality of the cardholder. Maximum of 3 values. Duplicate values are not allowed. XXX may be used when nationality is unknown. XKX may be used for Kosovo. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
517
|
-
* @type {Array<NationalityInner>}
|
|
518
|
-
* @memberof CardholderResponse
|
|
519
|
-
*/
|
|
520
|
-
'nationality'?: Array<NationalityInner> | null;
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
523
|
-
* @type {RiskScore}
|
|
524
|
-
* @memberof CardholderResponse
|
|
525
311
|
*/
|
|
312
|
+
'nationality'?: Array<CardholderResponseNationalityEnum> | null;
|
|
526
313
|
'riskScore'?: RiskScore | null;
|
|
527
314
|
/**
|
|
528
315
|
* Cardholder\'s country of birth. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
529
|
-
* @type {CountryCodesAlpha3}
|
|
530
|
-
* @memberof CardholderResponse
|
|
531
316
|
*/
|
|
532
317
|
'birthCountry'?: CountryCodesAlpha3 | null;
|
|
533
318
|
/**
|
|
534
319
|
* Customer or company identification number, such as a social security number (SSN), national identity number, or company registration number. Enfuce does not validate whether the provided identificationNumber is a real or officially valid identifier. Customers may populate this field according to their own business or regulatory needs. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field for Finnish cardholders due to regulatory requirements.
|
|
535
|
-
* @type {string}
|
|
536
|
-
* @memberof CardholderResponse
|
|
537
320
|
*/
|
|
538
321
|
'identificationNumber'?: string | null;
|
|
539
322
|
}
|
|
540
323
|
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* ISO 3166-1 alpha-3 country codes. XKX is used for the Kosovo.
|
|
544
|
-
* @export
|
|
545
|
-
* @enum {string}
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
|
-
export const CountryCodesAlpha3 = {
|
|
324
|
+
export const CardholderResponseNationalityEnum = {
|
|
549
325
|
Abw: 'ABW',
|
|
550
326
|
Afg: 'AFG',
|
|
551
327
|
Ago: 'AGO',
|
|
@@ -795,269 +571,721 @@ export const CountryCodesAlpha3 = {
|
|
|
795
571
|
Zaf: 'ZAF',
|
|
796
572
|
Zmb: 'ZMB',
|
|
797
573
|
Zwe: 'ZWE',
|
|
798
|
-
Xkx: 'XKX'
|
|
574
|
+
Xkx: 'XKX',
|
|
575
|
+
Xxx: 'XXX',
|
|
799
576
|
} as const;
|
|
800
577
|
|
|
801
|
-
export type
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
*
|
|
806
|
-
* @export
|
|
807
|
-
* @interface CreateCardholderBody
|
|
808
|
-
*/
|
|
809
|
-
export interface CreateCardholderBody {
|
|
810
|
-
/**
|
|
811
|
-
* External unique identifier of the cardholder, set by the issuer. Can contain both letters and numbers. Max character limit is 36.
|
|
812
|
-
* @type {string}
|
|
813
|
-
* @memberof CreateCardholderBody
|
|
814
|
-
*/
|
|
815
|
-
'customerNumber': string;
|
|
816
|
-
/**
|
|
817
|
-
*
|
|
818
|
-
* @type {Locale}
|
|
819
|
-
* @memberof CreateCardholderBody
|
|
820
|
-
*/
|
|
821
|
-
'locale': Locale;
|
|
822
|
-
/**
|
|
823
|
-
*
|
|
824
|
-
* @type {Address}
|
|
825
|
-
* @memberof CreateCardholderBody
|
|
826
|
-
*/
|
|
827
|
-
'address': Address;
|
|
828
|
-
/**
|
|
829
|
-
* First name of the cardholder. Max character limit is 256.
|
|
830
|
-
* @type {string}
|
|
831
|
-
* @memberof CreateCardholderBody
|
|
832
|
-
*/
|
|
833
|
-
'firstName': string;
|
|
834
|
-
/**
|
|
835
|
-
* Middle name of the cardholder. Max character limit is 256.
|
|
836
|
-
* @type {string}
|
|
837
|
-
* @memberof CreateCardholderBody
|
|
838
|
-
*/
|
|
839
|
-
'middleName'?: string;
|
|
840
|
-
/**
|
|
841
|
-
* Last name of the cardholder. Max character limit is 256.
|
|
842
|
-
* @type {string}
|
|
843
|
-
* @memberof CreateCardholderBody
|
|
844
|
-
*/
|
|
845
|
-
'lastName': string;
|
|
846
|
-
/**
|
|
847
|
-
* Mobile number of the cardholder — it must be a full number, including the country code and starting with +.
|
|
848
|
-
* @type {string}
|
|
849
|
-
* @memberof CreateCardholderBody
|
|
850
|
-
*/
|
|
851
|
-
'mobileNumber'?: string;
|
|
852
|
-
/**
|
|
853
|
-
* Email address of the cardholder. Max character limit is 256.
|
|
854
|
-
* @type {string}
|
|
855
|
-
* @memberof CreateCardholderBody
|
|
856
|
-
*/
|
|
857
|
-
'email'?: string;
|
|
858
|
-
/**
|
|
859
|
-
* Tax Identification Number used for taxation, regulatory reporting, or authority requirements in many countries. Depending on regional regulatory or scheme mandates (for example Brazil requirements), this value may be forwarded to Mastercard. In some countries, this value may be the same as the customer registration or identification number (identificationNumber). Omit to keep current value.
|
|
860
|
-
* @type {string}
|
|
861
|
-
* @memberof CreateCardholderBody
|
|
862
|
-
*/
|
|
863
|
-
'taxId'?: string;
|
|
864
|
-
/**
|
|
865
|
-
* Date of birth of the cardholder. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
866
|
-
* @type {string}
|
|
867
|
-
* @memberof CreateCardholderBody
|
|
868
|
-
*/
|
|
869
|
-
'dateOfBirth'?: string;
|
|
870
|
-
/**
|
|
871
|
-
* Nationality of the cardholder. Maximum of 3 values. Duplicate values are not allowed. XXX may be used when nationality is unknown. XKX may be used for Kosovo. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
872
|
-
* @type {Array<NationalityInner>}
|
|
873
|
-
* @memberof CreateCardholderBody
|
|
874
|
-
*/
|
|
875
|
-
'nationality'?: Array<NationalityInner>;
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @type {RiskScore}
|
|
879
|
-
* @memberof CreateCardholderBody
|
|
880
|
-
*/
|
|
881
|
-
'riskScore'?: RiskScore;
|
|
882
|
-
/**
|
|
883
|
-
* Cardholder\'s country of birth. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
884
|
-
* @type {CountryCodesAlpha3}
|
|
885
|
-
* @memberof CreateCardholderBody
|
|
886
|
-
*/
|
|
887
|
-
'birthCountry'?: CountryCodesAlpha3;
|
|
888
|
-
/**
|
|
889
|
-
* Customer or company identification number, such as a social security number (SSN), national identity number, or company registration number. Enfuce does not validate whether the provided identificationNumber is a real or officially valid identifier. Customers may populate this field according to their own business or regulatory needs. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field for Finnish cardholders due to regulatory requirements.
|
|
890
|
-
* @type {string}
|
|
891
|
-
* @memberof CreateCardholderBody
|
|
892
|
-
*/
|
|
893
|
-
'identificationNumber'?: string;
|
|
894
|
-
}
|
|
895
|
-
|
|
578
|
+
export type CardholderResponseNationalityEnum = typeof CardholderResponseNationalityEnum[keyof typeof CardholderResponseNationalityEnum];
|
|
896
579
|
|
|
897
580
|
/**
|
|
898
|
-
*
|
|
899
|
-
* @export
|
|
900
|
-
* @interface ErrorResponse
|
|
901
|
-
*/
|
|
902
|
-
export interface ErrorResponse {
|
|
903
|
-
/**
|
|
904
|
-
* The problem type.
|
|
905
|
-
* @type {string}
|
|
906
|
-
* @memberof ErrorResponse
|
|
907
|
-
*/
|
|
908
|
-
'type'?: string;
|
|
909
|
-
/**
|
|
910
|
-
* The reason phrase of HttpStatus.
|
|
911
|
-
* @type {string}
|
|
912
|
-
* @memberof ErrorResponse
|
|
913
|
-
*/
|
|
914
|
-
'title'?: string;
|
|
915
|
-
/**
|
|
916
|
-
* HTTP problem status.
|
|
917
|
-
* @type {number}
|
|
918
|
-
* @memberof ErrorResponse
|
|
919
|
-
*/
|
|
920
|
-
'status'?: number;
|
|
921
|
-
/**
|
|
922
|
-
* The problem detail.
|
|
923
|
-
* @type {string}
|
|
924
|
-
* @memberof ErrorResponse
|
|
925
|
-
*/
|
|
926
|
-
'detail'?: string;
|
|
927
|
-
/**
|
|
928
|
-
* The request path.
|
|
929
|
-
* @type {string}
|
|
930
|
-
* @memberof ErrorResponse
|
|
931
|
-
*/
|
|
932
|
-
'instance'?: string;
|
|
933
|
-
/**
|
|
934
|
-
* Unique error identifier.
|
|
935
|
-
* @type {string}
|
|
936
|
-
* @memberof ErrorResponse
|
|
937
|
-
*/
|
|
938
|
-
'id'?: string;
|
|
939
|
-
/**
|
|
940
|
-
* Date-time when error occurred.
|
|
941
|
-
* @type {string}
|
|
942
|
-
* @memberof ErrorResponse
|
|
943
|
-
*/
|
|
944
|
-
'timestamp'?: string;
|
|
945
|
-
}
|
|
946
|
-
/**
|
|
947
|
-
* Cardholder\'s language and country code in RFC 5646 format. Temporary for backwards compatibility, the API also accepts legacy underscore values such as en_GB, but will be removed in future releases. Responses and events always use the RFC 5646 hyphenated format.
|
|
948
|
-
* @export
|
|
949
|
-
* @enum {string}
|
|
581
|
+
* ISO 3166-1 alpha-3 country codes. XKX is used for the Kosovo.
|
|
950
582
|
*/
|
|
951
583
|
|
|
952
|
-
export const
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
584
|
+
export const CountryCodesAlpha3 = {
|
|
585
|
+
Abw: 'ABW',
|
|
586
|
+
Afg: 'AFG',
|
|
587
|
+
Ago: 'AGO',
|
|
588
|
+
Aia: 'AIA',
|
|
589
|
+
Ala: 'ALA',
|
|
590
|
+
Alb: 'ALB',
|
|
591
|
+
And: 'AND',
|
|
592
|
+
Are: 'ARE',
|
|
593
|
+
Arg: 'ARG',
|
|
594
|
+
Arm: 'ARM',
|
|
595
|
+
Asm: 'ASM',
|
|
596
|
+
Ata: 'ATA',
|
|
597
|
+
Atf: 'ATF',
|
|
598
|
+
Atg: 'ATG',
|
|
599
|
+
Aus: 'AUS',
|
|
600
|
+
Aut: 'AUT',
|
|
601
|
+
Aze: 'AZE',
|
|
602
|
+
Bdi: 'BDI',
|
|
603
|
+
Bel: 'BEL',
|
|
604
|
+
Ben: 'BEN',
|
|
605
|
+
Bes: 'BES',
|
|
606
|
+
Bfa: 'BFA',
|
|
607
|
+
Bgd: 'BGD',
|
|
608
|
+
Bgr: 'BGR',
|
|
609
|
+
Bhr: 'BHR',
|
|
610
|
+
Bhs: 'BHS',
|
|
611
|
+
Bih: 'BIH',
|
|
612
|
+
Blm: 'BLM',
|
|
613
|
+
Blr: 'BLR',
|
|
614
|
+
Blz: 'BLZ',
|
|
615
|
+
Bmu: 'BMU',
|
|
616
|
+
Bol: 'BOL',
|
|
617
|
+
Bra: 'BRA',
|
|
618
|
+
Brb: 'BRB',
|
|
619
|
+
Brn: 'BRN',
|
|
620
|
+
Btn: 'BTN',
|
|
621
|
+
Bvt: 'BVT',
|
|
622
|
+
Bwa: 'BWA',
|
|
623
|
+
Caf: 'CAF',
|
|
624
|
+
Can: 'CAN',
|
|
625
|
+
Cck: 'CCK',
|
|
626
|
+
Che: 'CHE',
|
|
627
|
+
Chl: 'CHL',
|
|
628
|
+
Chn: 'CHN',
|
|
629
|
+
Civ: 'CIV',
|
|
630
|
+
Cmr: 'CMR',
|
|
631
|
+
Cod: 'COD',
|
|
632
|
+
Cog: 'COG',
|
|
633
|
+
Cok: 'COK',
|
|
634
|
+
Col: 'COL',
|
|
635
|
+
Com: 'COM',
|
|
636
|
+
Cpv: 'CPV',
|
|
637
|
+
Cri: 'CRI',
|
|
638
|
+
Cub: 'CUB',
|
|
639
|
+
Cuw: 'CUW',
|
|
640
|
+
Cxr: 'CXR',
|
|
641
|
+
Cym: 'CYM',
|
|
642
|
+
Cyp: 'CYP',
|
|
643
|
+
Cze: 'CZE',
|
|
644
|
+
Deu: 'DEU',
|
|
645
|
+
Dji: 'DJI',
|
|
646
|
+
Dma: 'DMA',
|
|
647
|
+
Dnk: 'DNK',
|
|
648
|
+
Dom: 'DOM',
|
|
649
|
+
Dza: 'DZA',
|
|
650
|
+
Ecu: 'ECU',
|
|
651
|
+
Egy: 'EGY',
|
|
652
|
+
Eri: 'ERI',
|
|
653
|
+
Esh: 'ESH',
|
|
654
|
+
Esp: 'ESP',
|
|
655
|
+
Est: 'EST',
|
|
656
|
+
Eth: 'ETH',
|
|
657
|
+
Fin: 'FIN',
|
|
658
|
+
Fji: 'FJI',
|
|
659
|
+
Flk: 'FLK',
|
|
660
|
+
Fra: 'FRA',
|
|
661
|
+
Fro: 'FRO',
|
|
662
|
+
Fsm: 'FSM',
|
|
663
|
+
Gab: 'GAB',
|
|
664
|
+
Gbr: 'GBR',
|
|
665
|
+
Geo: 'GEO',
|
|
666
|
+
Ggy: 'GGY',
|
|
667
|
+
Gha: 'GHA',
|
|
668
|
+
Gib: 'GIB',
|
|
669
|
+
Gin: 'GIN',
|
|
670
|
+
Glp: 'GLP',
|
|
671
|
+
Gmb: 'GMB',
|
|
672
|
+
Gnb: 'GNB',
|
|
673
|
+
Gnq: 'GNQ',
|
|
674
|
+
Grc: 'GRC',
|
|
675
|
+
Grd: 'GRD',
|
|
676
|
+
Grl: 'GRL',
|
|
677
|
+
Gtm: 'GTM',
|
|
678
|
+
Guf: 'GUF',
|
|
679
|
+
Gum: 'GUM',
|
|
680
|
+
Guy: 'GUY',
|
|
681
|
+
Hkg: 'HKG',
|
|
682
|
+
Hmd: 'HMD',
|
|
683
|
+
Hnd: 'HND',
|
|
684
|
+
Hrv: 'HRV',
|
|
685
|
+
Hti: 'HTI',
|
|
686
|
+
Hun: 'HUN',
|
|
687
|
+
Idn: 'IDN',
|
|
688
|
+
Imn: 'IMN',
|
|
689
|
+
Ind: 'IND',
|
|
690
|
+
Iot: 'IOT',
|
|
691
|
+
Irl: 'IRL',
|
|
692
|
+
Irn: 'IRN',
|
|
693
|
+
Irq: 'IRQ',
|
|
694
|
+
Isl: 'ISL',
|
|
695
|
+
Isr: 'ISR',
|
|
696
|
+
Ita: 'ITA',
|
|
697
|
+
Jam: 'JAM',
|
|
698
|
+
Jey: 'JEY',
|
|
699
|
+
Jor: 'JOR',
|
|
700
|
+
Jpn: 'JPN',
|
|
701
|
+
Kaz: 'KAZ',
|
|
702
|
+
Ken: 'KEN',
|
|
703
|
+
Kgz: 'KGZ',
|
|
704
|
+
Khm: 'KHM',
|
|
705
|
+
Kir: 'KIR',
|
|
706
|
+
Kna: 'KNA',
|
|
707
|
+
Kor: 'KOR',
|
|
708
|
+
Kwt: 'KWT',
|
|
709
|
+
Lao: 'LAO',
|
|
710
|
+
Lbn: 'LBN',
|
|
711
|
+
Lbr: 'LBR',
|
|
712
|
+
Lby: 'LBY',
|
|
713
|
+
Lca: 'LCA',
|
|
714
|
+
Lie: 'LIE',
|
|
715
|
+
Lka: 'LKA',
|
|
716
|
+
Lso: 'LSO',
|
|
717
|
+
Ltu: 'LTU',
|
|
718
|
+
Lux: 'LUX',
|
|
719
|
+
Lva: 'LVA',
|
|
720
|
+
Mac: 'MAC',
|
|
721
|
+
Maf: 'MAF',
|
|
722
|
+
Mar: 'MAR',
|
|
723
|
+
Mco: 'MCO',
|
|
724
|
+
Mda: 'MDA',
|
|
725
|
+
Mdg: 'MDG',
|
|
726
|
+
Mdv: 'MDV',
|
|
727
|
+
Mex: 'MEX',
|
|
728
|
+
Mhl: 'MHL',
|
|
729
|
+
Mkd: 'MKD',
|
|
730
|
+
Mli: 'MLI',
|
|
731
|
+
Mlt: 'MLT',
|
|
732
|
+
Mmr: 'MMR',
|
|
733
|
+
Mne: 'MNE',
|
|
734
|
+
Mng: 'MNG',
|
|
735
|
+
Mnp: 'MNP',
|
|
736
|
+
Moz: 'MOZ',
|
|
737
|
+
Mrt: 'MRT',
|
|
738
|
+
Msr: 'MSR',
|
|
739
|
+
Mtq: 'MTQ',
|
|
740
|
+
Mus: 'MUS',
|
|
741
|
+
Mwi: 'MWI',
|
|
742
|
+
Mys: 'MYS',
|
|
743
|
+
Myt: 'MYT',
|
|
744
|
+
Nam: 'NAM',
|
|
745
|
+
Ncl: 'NCL',
|
|
746
|
+
Ner: 'NER',
|
|
747
|
+
Nfk: 'NFK',
|
|
748
|
+
Nga: 'NGA',
|
|
749
|
+
Nic: 'NIC',
|
|
750
|
+
Niu: 'NIU',
|
|
751
|
+
Nld: 'NLD',
|
|
752
|
+
Nor: 'NOR',
|
|
753
|
+
Npl: 'NPL',
|
|
754
|
+
Nru: 'NRU',
|
|
755
|
+
Nzl: 'NZL',
|
|
756
|
+
Omn: 'OMN',
|
|
757
|
+
Pak: 'PAK',
|
|
758
|
+
Pan: 'PAN',
|
|
759
|
+
Pcn: 'PCN',
|
|
760
|
+
Per: 'PER',
|
|
761
|
+
Phl: 'PHL',
|
|
762
|
+
Plw: 'PLW',
|
|
763
|
+
Png: 'PNG',
|
|
764
|
+
Pol: 'POL',
|
|
765
|
+
Pri: 'PRI',
|
|
766
|
+
Prk: 'PRK',
|
|
767
|
+
Prt: 'PRT',
|
|
768
|
+
Pry: 'PRY',
|
|
769
|
+
Pse: 'PSE',
|
|
770
|
+
Pyf: 'PYF',
|
|
771
|
+
Qat: 'QAT',
|
|
772
|
+
Reu: 'REU',
|
|
773
|
+
Rou: 'ROU',
|
|
774
|
+
Rus: 'RUS',
|
|
775
|
+
Rwa: 'RWA',
|
|
776
|
+
Sau: 'SAU',
|
|
777
|
+
Sdn: 'SDN',
|
|
778
|
+
Sen: 'SEN',
|
|
779
|
+
Sgp: 'SGP',
|
|
780
|
+
Sgs: 'SGS',
|
|
781
|
+
Shn: 'SHN',
|
|
782
|
+
Sjm: 'SJM',
|
|
783
|
+
Slb: 'SLB',
|
|
784
|
+
Sle: 'SLE',
|
|
785
|
+
Slv: 'SLV',
|
|
786
|
+
Smr: 'SMR',
|
|
787
|
+
Som: 'SOM',
|
|
788
|
+
Spm: 'SPM',
|
|
789
|
+
Srb: 'SRB',
|
|
790
|
+
Ssd: 'SSD',
|
|
791
|
+
Stp: 'STP',
|
|
792
|
+
Sur: 'SUR',
|
|
793
|
+
Svk: 'SVK',
|
|
794
|
+
Svn: 'SVN',
|
|
795
|
+
Swe: 'SWE',
|
|
796
|
+
Swz: 'SWZ',
|
|
797
|
+
Sxm: 'SXM',
|
|
798
|
+
Syc: 'SYC',
|
|
799
|
+
Syr: 'SYR',
|
|
800
|
+
Tca: 'TCA',
|
|
801
|
+
Tcd: 'TCD',
|
|
802
|
+
Tgo: 'TGO',
|
|
803
|
+
Tha: 'THA',
|
|
804
|
+
Tjk: 'TJK',
|
|
805
|
+
Tkl: 'TKL',
|
|
806
|
+
Tkm: 'TKM',
|
|
807
|
+
Tls: 'TLS',
|
|
808
|
+
Ton: 'TON',
|
|
809
|
+
Tto: 'TTO',
|
|
810
|
+
Tun: 'TUN',
|
|
811
|
+
Tur: 'TUR',
|
|
812
|
+
Tuv: 'TUV',
|
|
813
|
+
Twn: 'TWN',
|
|
814
|
+
Tza: 'TZA',
|
|
815
|
+
Uga: 'UGA',
|
|
816
|
+
Ukr: 'UKR',
|
|
817
|
+
Umi: 'UMI',
|
|
818
|
+
Ury: 'URY',
|
|
819
|
+
Usa: 'USA',
|
|
820
|
+
Uzb: 'UZB',
|
|
821
|
+
Vat: 'VAT',
|
|
822
|
+
Vct: 'VCT',
|
|
823
|
+
Ven: 'VEN',
|
|
824
|
+
Vgb: 'VGB',
|
|
825
|
+
Vir: 'VIR',
|
|
826
|
+
Vnm: 'VNM',
|
|
827
|
+
Vut: 'VUT',
|
|
828
|
+
Wlf: 'WLF',
|
|
829
|
+
Wsm: 'WSM',
|
|
830
|
+
Yem: 'YEM',
|
|
831
|
+
Zaf: 'ZAF',
|
|
832
|
+
Zmb: 'ZMB',
|
|
833
|
+
Zwe: 'ZWE',
|
|
834
|
+
Xkx: 'XKX',
|
|
835
|
+
} as const;
|
|
836
|
+
|
|
837
|
+
export type CountryCodesAlpha3 = typeof CountryCodesAlpha3[keyof typeof CountryCodesAlpha3];
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
export interface CreateCardholderBody {
|
|
841
|
+
/**
|
|
842
|
+
* External unique identifier of the cardholder, set by the issuer. Can contain both letters and numbers. Max character limit is 36.
|
|
843
|
+
*/
|
|
844
|
+
'customerNumber': string;
|
|
845
|
+
'locale': Locale;
|
|
846
|
+
'address': Address;
|
|
847
|
+
/**
|
|
848
|
+
* First name of the cardholder. Max character limit is 256.
|
|
849
|
+
*/
|
|
850
|
+
'firstName': string;
|
|
851
|
+
/**
|
|
852
|
+
* Middle name of the cardholder. Max character limit is 256.
|
|
853
|
+
*/
|
|
854
|
+
'middleName'?: string;
|
|
855
|
+
/**
|
|
856
|
+
* Last name of the cardholder. Max character limit is 256.
|
|
857
|
+
*/
|
|
858
|
+
'lastName': string;
|
|
859
|
+
/**
|
|
860
|
+
* Mobile number of the cardholder — it must be a full number, including the country code and starting with +.
|
|
861
|
+
*/
|
|
862
|
+
'mobileNumber'?: string;
|
|
863
|
+
/**
|
|
864
|
+
* Email address of the cardholder. Max character limit is 256.
|
|
865
|
+
*/
|
|
866
|
+
'email'?: string;
|
|
867
|
+
/**
|
|
868
|
+
* Tax Identification Number used for taxation, regulatory reporting, or authority requirements in many countries. Depending on regional regulatory or scheme mandates (for example Brazil requirements), this value may be forwarded to Mastercard. In some countries, this value may be the same as the customer registration or identification number (identificationNumber). Omit to keep current value.
|
|
869
|
+
*/
|
|
870
|
+
'taxId'?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Date of birth of the cardholder. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
873
|
+
*/
|
|
874
|
+
'dateOfBirth'?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Nationality of the cardholder. Maximum of 3 values. Duplicate values are not allowed. XXX may be used when nationality is unknown. XKX may be used for Kosovo. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
877
|
+
*/
|
|
878
|
+
'nationality'?: Array<CreateCardholderBodyNationalityEnum>;
|
|
879
|
+
'riskScore'?: RiskScore;
|
|
880
|
+
/**
|
|
881
|
+
* Cardholder\'s country of birth. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
882
|
+
*/
|
|
883
|
+
'birthCountry'?: CountryCodesAlpha3;
|
|
884
|
+
/**
|
|
885
|
+
* Customer or company identification number, such as a social security number (SSN), national identity number, or company registration number. Enfuce does not validate whether the provided identificationNumber is a real or officially valid identifier. Customers may populate this field according to their own business or regulatory needs. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field for Finnish cardholders due to regulatory requirements.
|
|
886
|
+
*/
|
|
887
|
+
'identificationNumber'?: string;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export const CreateCardholderBodyNationalityEnum = {
|
|
891
|
+
Abw: 'ABW',
|
|
892
|
+
Afg: 'AFG',
|
|
893
|
+
Ago: 'AGO',
|
|
894
|
+
Aia: 'AIA',
|
|
895
|
+
Ala: 'ALA',
|
|
896
|
+
Alb: 'ALB',
|
|
897
|
+
And: 'AND',
|
|
898
|
+
Are: 'ARE',
|
|
899
|
+
Arg: 'ARG',
|
|
900
|
+
Arm: 'ARM',
|
|
901
|
+
Asm: 'ASM',
|
|
902
|
+
Ata: 'ATA',
|
|
903
|
+
Atf: 'ATF',
|
|
904
|
+
Atg: 'ATG',
|
|
905
|
+
Aus: 'AUS',
|
|
906
|
+
Aut: 'AUT',
|
|
907
|
+
Aze: 'AZE',
|
|
908
|
+
Bdi: 'BDI',
|
|
909
|
+
Bel: 'BEL',
|
|
910
|
+
Ben: 'BEN',
|
|
911
|
+
Bes: 'BES',
|
|
912
|
+
Bfa: 'BFA',
|
|
913
|
+
Bgd: 'BGD',
|
|
914
|
+
Bgr: 'BGR',
|
|
915
|
+
Bhr: 'BHR',
|
|
916
|
+
Bhs: 'BHS',
|
|
917
|
+
Bih: 'BIH',
|
|
918
|
+
Blm: 'BLM',
|
|
919
|
+
Blr: 'BLR',
|
|
920
|
+
Blz: 'BLZ',
|
|
921
|
+
Bmu: 'BMU',
|
|
922
|
+
Bol: 'BOL',
|
|
923
|
+
Bra: 'BRA',
|
|
924
|
+
Brb: 'BRB',
|
|
925
|
+
Brn: 'BRN',
|
|
926
|
+
Btn: 'BTN',
|
|
927
|
+
Bvt: 'BVT',
|
|
928
|
+
Bwa: 'BWA',
|
|
929
|
+
Caf: 'CAF',
|
|
930
|
+
Can: 'CAN',
|
|
931
|
+
Cck: 'CCK',
|
|
932
|
+
Che: 'CHE',
|
|
933
|
+
Chl: 'CHL',
|
|
934
|
+
Chn: 'CHN',
|
|
935
|
+
Civ: 'CIV',
|
|
936
|
+
Cmr: 'CMR',
|
|
937
|
+
Cod: 'COD',
|
|
938
|
+
Cog: 'COG',
|
|
939
|
+
Cok: 'COK',
|
|
940
|
+
Col: 'COL',
|
|
941
|
+
Com: 'COM',
|
|
942
|
+
Cpv: 'CPV',
|
|
943
|
+
Cri: 'CRI',
|
|
944
|
+
Cub: 'CUB',
|
|
945
|
+
Cuw: 'CUW',
|
|
946
|
+
Cxr: 'CXR',
|
|
947
|
+
Cym: 'CYM',
|
|
948
|
+
Cyp: 'CYP',
|
|
949
|
+
Cze: 'CZE',
|
|
950
|
+
Deu: 'DEU',
|
|
951
|
+
Dji: 'DJI',
|
|
952
|
+
Dma: 'DMA',
|
|
953
|
+
Dnk: 'DNK',
|
|
954
|
+
Dom: 'DOM',
|
|
955
|
+
Dza: 'DZA',
|
|
956
|
+
Ecu: 'ECU',
|
|
957
|
+
Egy: 'EGY',
|
|
958
|
+
Eri: 'ERI',
|
|
959
|
+
Esh: 'ESH',
|
|
960
|
+
Esp: 'ESP',
|
|
961
|
+
Est: 'EST',
|
|
962
|
+
Eth: 'ETH',
|
|
963
|
+
Fin: 'FIN',
|
|
964
|
+
Fji: 'FJI',
|
|
965
|
+
Flk: 'FLK',
|
|
966
|
+
Fra: 'FRA',
|
|
967
|
+
Fro: 'FRO',
|
|
968
|
+
Fsm: 'FSM',
|
|
969
|
+
Gab: 'GAB',
|
|
970
|
+
Gbr: 'GBR',
|
|
971
|
+
Geo: 'GEO',
|
|
972
|
+
Ggy: 'GGY',
|
|
973
|
+
Gha: 'GHA',
|
|
974
|
+
Gib: 'GIB',
|
|
975
|
+
Gin: 'GIN',
|
|
976
|
+
Glp: 'GLP',
|
|
977
|
+
Gmb: 'GMB',
|
|
978
|
+
Gnb: 'GNB',
|
|
979
|
+
Gnq: 'GNQ',
|
|
980
|
+
Grc: 'GRC',
|
|
981
|
+
Grd: 'GRD',
|
|
982
|
+
Grl: 'GRL',
|
|
983
|
+
Gtm: 'GTM',
|
|
984
|
+
Guf: 'GUF',
|
|
985
|
+
Gum: 'GUM',
|
|
986
|
+
Guy: 'GUY',
|
|
987
|
+
Hkg: 'HKG',
|
|
988
|
+
Hmd: 'HMD',
|
|
989
|
+
Hnd: 'HND',
|
|
990
|
+
Hrv: 'HRV',
|
|
991
|
+
Hti: 'HTI',
|
|
992
|
+
Hun: 'HUN',
|
|
993
|
+
Idn: 'IDN',
|
|
994
|
+
Imn: 'IMN',
|
|
995
|
+
Ind: 'IND',
|
|
996
|
+
Iot: 'IOT',
|
|
997
|
+
Irl: 'IRL',
|
|
998
|
+
Irn: 'IRN',
|
|
999
|
+
Irq: 'IRQ',
|
|
1000
|
+
Isl: 'ISL',
|
|
1001
|
+
Isr: 'ISR',
|
|
1002
|
+
Ita: 'ITA',
|
|
1003
|
+
Jam: 'JAM',
|
|
1004
|
+
Jey: 'JEY',
|
|
1005
|
+
Jor: 'JOR',
|
|
1006
|
+
Jpn: 'JPN',
|
|
1007
|
+
Kaz: 'KAZ',
|
|
1008
|
+
Ken: 'KEN',
|
|
1009
|
+
Kgz: 'KGZ',
|
|
1010
|
+
Khm: 'KHM',
|
|
1011
|
+
Kir: 'KIR',
|
|
1012
|
+
Kna: 'KNA',
|
|
1013
|
+
Kor: 'KOR',
|
|
1014
|
+
Kwt: 'KWT',
|
|
1015
|
+
Lao: 'LAO',
|
|
1016
|
+
Lbn: 'LBN',
|
|
1017
|
+
Lbr: 'LBR',
|
|
1018
|
+
Lby: 'LBY',
|
|
1019
|
+
Lca: 'LCA',
|
|
1020
|
+
Lie: 'LIE',
|
|
1021
|
+
Lka: 'LKA',
|
|
1022
|
+
Lso: 'LSO',
|
|
1023
|
+
Ltu: 'LTU',
|
|
1024
|
+
Lux: 'LUX',
|
|
1025
|
+
Lva: 'LVA',
|
|
1026
|
+
Mac: 'MAC',
|
|
1027
|
+
Maf: 'MAF',
|
|
1028
|
+
Mar: 'MAR',
|
|
1029
|
+
Mco: 'MCO',
|
|
1030
|
+
Mda: 'MDA',
|
|
1031
|
+
Mdg: 'MDG',
|
|
1032
|
+
Mdv: 'MDV',
|
|
1033
|
+
Mex: 'MEX',
|
|
1034
|
+
Mhl: 'MHL',
|
|
1035
|
+
Mkd: 'MKD',
|
|
1036
|
+
Mli: 'MLI',
|
|
1037
|
+
Mlt: 'MLT',
|
|
1038
|
+
Mmr: 'MMR',
|
|
1039
|
+
Mne: 'MNE',
|
|
1040
|
+
Mng: 'MNG',
|
|
1041
|
+
Mnp: 'MNP',
|
|
1042
|
+
Moz: 'MOZ',
|
|
1043
|
+
Mrt: 'MRT',
|
|
1044
|
+
Msr: 'MSR',
|
|
1045
|
+
Mtq: 'MTQ',
|
|
1046
|
+
Mus: 'MUS',
|
|
1047
|
+
Mwi: 'MWI',
|
|
1048
|
+
Mys: 'MYS',
|
|
1049
|
+
Myt: 'MYT',
|
|
1050
|
+
Nam: 'NAM',
|
|
1051
|
+
Ncl: 'NCL',
|
|
1052
|
+
Ner: 'NER',
|
|
1053
|
+
Nfk: 'NFK',
|
|
1054
|
+
Nga: 'NGA',
|
|
1055
|
+
Nic: 'NIC',
|
|
1056
|
+
Niu: 'NIU',
|
|
1057
|
+
Nld: 'NLD',
|
|
1058
|
+
Nor: 'NOR',
|
|
1059
|
+
Npl: 'NPL',
|
|
1060
|
+
Nru: 'NRU',
|
|
1061
|
+
Nzl: 'NZL',
|
|
1062
|
+
Omn: 'OMN',
|
|
1063
|
+
Pak: 'PAK',
|
|
1064
|
+
Pan: 'PAN',
|
|
1065
|
+
Pcn: 'PCN',
|
|
1066
|
+
Per: 'PER',
|
|
1067
|
+
Phl: 'PHL',
|
|
1068
|
+
Plw: 'PLW',
|
|
1069
|
+
Png: 'PNG',
|
|
1070
|
+
Pol: 'POL',
|
|
1071
|
+
Pri: 'PRI',
|
|
1072
|
+
Prk: 'PRK',
|
|
1073
|
+
Prt: 'PRT',
|
|
1074
|
+
Pry: 'PRY',
|
|
1075
|
+
Pse: 'PSE',
|
|
1076
|
+
Pyf: 'PYF',
|
|
1077
|
+
Qat: 'QAT',
|
|
1078
|
+
Reu: 'REU',
|
|
1079
|
+
Rou: 'ROU',
|
|
1080
|
+
Rus: 'RUS',
|
|
1081
|
+
Rwa: 'RWA',
|
|
1082
|
+
Sau: 'SAU',
|
|
1083
|
+
Sdn: 'SDN',
|
|
1084
|
+
Sen: 'SEN',
|
|
1085
|
+
Sgp: 'SGP',
|
|
1086
|
+
Sgs: 'SGS',
|
|
1087
|
+
Shn: 'SHN',
|
|
1088
|
+
Sjm: 'SJM',
|
|
1089
|
+
Slb: 'SLB',
|
|
1090
|
+
Sle: 'SLE',
|
|
1091
|
+
Slv: 'SLV',
|
|
1092
|
+
Smr: 'SMR',
|
|
1093
|
+
Som: 'SOM',
|
|
1094
|
+
Spm: 'SPM',
|
|
1095
|
+
Srb: 'SRB',
|
|
1096
|
+
Ssd: 'SSD',
|
|
1097
|
+
Stp: 'STP',
|
|
1098
|
+
Sur: 'SUR',
|
|
1099
|
+
Svk: 'SVK',
|
|
1100
|
+
Svn: 'SVN',
|
|
1101
|
+
Swe: 'SWE',
|
|
1102
|
+
Swz: 'SWZ',
|
|
1103
|
+
Sxm: 'SXM',
|
|
1104
|
+
Syc: 'SYC',
|
|
1105
|
+
Syr: 'SYR',
|
|
1106
|
+
Tca: 'TCA',
|
|
1107
|
+
Tcd: 'TCD',
|
|
1108
|
+
Tgo: 'TGO',
|
|
1109
|
+
Tha: 'THA',
|
|
1110
|
+
Tjk: 'TJK',
|
|
1111
|
+
Tkl: 'TKL',
|
|
1112
|
+
Tkm: 'TKM',
|
|
1113
|
+
Tls: 'TLS',
|
|
1114
|
+
Ton: 'TON',
|
|
1115
|
+
Tto: 'TTO',
|
|
1116
|
+
Tun: 'TUN',
|
|
1117
|
+
Tur: 'TUR',
|
|
1118
|
+
Tuv: 'TUV',
|
|
1119
|
+
Twn: 'TWN',
|
|
1120
|
+
Tza: 'TZA',
|
|
1121
|
+
Uga: 'UGA',
|
|
1122
|
+
Ukr: 'UKR',
|
|
1123
|
+
Umi: 'UMI',
|
|
1124
|
+
Ury: 'URY',
|
|
1125
|
+
Usa: 'USA',
|
|
1126
|
+
Uzb: 'UZB',
|
|
1127
|
+
Vat: 'VAT',
|
|
1128
|
+
Vct: 'VCT',
|
|
1129
|
+
Ven: 'VEN',
|
|
1130
|
+
Vgb: 'VGB',
|
|
1131
|
+
Vir: 'VIR',
|
|
1132
|
+
Vnm: 'VNM',
|
|
1133
|
+
Vut: 'VUT',
|
|
1134
|
+
Wlf: 'WLF',
|
|
1135
|
+
Wsm: 'WSM',
|
|
1136
|
+
Yem: 'YEM',
|
|
1137
|
+
Zaf: 'ZAF',
|
|
1138
|
+
Zmb: 'ZMB',
|
|
1139
|
+
Zwe: 'ZWE',
|
|
1140
|
+
Xkx: 'XKX',
|
|
1141
|
+
Xxx: 'XXX',
|
|
1142
|
+
} as const;
|
|
1143
|
+
|
|
1144
|
+
export type CreateCardholderBodyNationalityEnum = typeof CreateCardholderBodyNationalityEnum[keyof typeof CreateCardholderBodyNationalityEnum];
|
|
1145
|
+
|
|
1146
|
+
export interface ErrorResponse {
|
|
1147
|
+
/**
|
|
1148
|
+
* The problem type.
|
|
1149
|
+
*/
|
|
1150
|
+
'type'?: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* The reason phrase of HttpStatus.
|
|
1153
|
+
*/
|
|
1154
|
+
'title'?: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* HTTP problem status.
|
|
1157
|
+
*/
|
|
1158
|
+
'status'?: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* The problem detail.
|
|
1161
|
+
*/
|
|
1162
|
+
'detail'?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* The request path.
|
|
1165
|
+
*/
|
|
1166
|
+
'instance'?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* Unique error identifier.
|
|
1169
|
+
*/
|
|
1170
|
+
'id'?: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Date-time when error occurred.
|
|
1173
|
+
*/
|
|
1174
|
+
'timestamp'?: string;
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Cardholder\'s language and country code in RFC 5646 format. Temporary for backwards compatibility, the API also accepts legacy underscore values such as en_GB, but will be removed in future releases. Responses and events always use the RFC 5646 hyphenated format.
|
|
1178
|
+
*/
|
|
1179
|
+
|
|
1180
|
+
export const Locale = {
|
|
1181
|
+
AfZa: 'af-ZA',
|
|
1182
|
+
ArAe: 'ar-AE',
|
|
1183
|
+
ArBh: 'ar-BH',
|
|
1184
|
+
ArDz: 'ar-DZ',
|
|
1185
|
+
ArEg: 'ar-EG',
|
|
1186
|
+
ArIq: 'ar-IQ',
|
|
1187
|
+
ArJo: 'ar-JO',
|
|
1188
|
+
ArKw: 'ar-KW',
|
|
1189
|
+
ArLb: 'ar-LB',
|
|
1190
|
+
ArLy: 'ar-LY',
|
|
1191
|
+
ArMa: 'ar-MA',
|
|
1192
|
+
ArOm: 'ar-OM',
|
|
1193
|
+
ArQa: 'ar-QA',
|
|
1194
|
+
ArSa: 'ar-SA',
|
|
1195
|
+
ArSy: 'ar-SY',
|
|
1196
|
+
ArTn: 'ar-TN',
|
|
1197
|
+
ArYe: 'ar-YE',
|
|
1198
|
+
AzAz: 'az-AZ',
|
|
1199
|
+
BeBy: 'be-BY',
|
|
1200
|
+
BgBg: 'bg-BG',
|
|
1201
|
+
BnIn: 'bn-IN',
|
|
1202
|
+
BsBa: 'bs-BA',
|
|
1203
|
+
CaEs: 'ca-ES',
|
|
1204
|
+
CsCz: 'cs-CZ',
|
|
1205
|
+
CyGb: 'cy-GB',
|
|
1206
|
+
DaDk: 'da-DK',
|
|
1207
|
+
DeAt: 'de-AT',
|
|
1208
|
+
DeCh: 'de-CH',
|
|
1209
|
+
DeDe: 'de-DE',
|
|
1210
|
+
DeLi: 'de-LI',
|
|
1211
|
+
DeNl: 'de-NL',
|
|
1212
|
+
ElGr: 'el-GR',
|
|
1213
|
+
EnAu: 'en-AU',
|
|
1214
|
+
EnBz: 'en-BZ',
|
|
1215
|
+
EnCa: 'en-CA',
|
|
1216
|
+
EnGb: 'en-GB',
|
|
1217
|
+
EnIe: 'en-IE',
|
|
1218
|
+
EnJm: 'en-JM',
|
|
1219
|
+
EnMt: 'en-MT',
|
|
1220
|
+
EnNz: 'en-NZ',
|
|
1221
|
+
EnPh: 'en-PH',
|
|
1222
|
+
EnTt: 'en-TT',
|
|
1223
|
+
EnUs: 'en-US',
|
|
1224
|
+
EnVi: 'en-VI',
|
|
1225
|
+
EnZa: 'en-ZA',
|
|
1226
|
+
EnZw: 'en-ZW',
|
|
1227
|
+
EsAr: 'es-AR',
|
|
1228
|
+
EsBo: 'es-BO',
|
|
1229
|
+
EsCl: 'es-CL',
|
|
1230
|
+
EsCo: 'es-CO',
|
|
1231
|
+
EsCr: 'es-CR',
|
|
1232
|
+
EsDo: 'es-DO',
|
|
1233
|
+
EsEc: 'es-EC',
|
|
1234
|
+
EsEs: 'es-ES',
|
|
1235
|
+
EsGt: 'es-GT',
|
|
1236
|
+
EsHn: 'es-HN',
|
|
1237
|
+
EsMx: 'es-MX',
|
|
1238
|
+
EsNi: 'es-NI',
|
|
1239
|
+
EsPa: 'es-PA',
|
|
1240
|
+
EsPe: 'es-PE',
|
|
1241
|
+
EsPr: 'es-PR',
|
|
1242
|
+
EsPy: 'es-PY',
|
|
1243
|
+
EsSv: 'es-SV',
|
|
1244
|
+
EsUy: 'es-UY',
|
|
1245
|
+
EsVe: 'es-VE',
|
|
1246
|
+
EtEe: 'et-EE',
|
|
1247
|
+
EuEs: 'eu-ES',
|
|
1248
|
+
FaIr: 'fa-IR',
|
|
1249
|
+
FiFi: 'fi-FI',
|
|
1250
|
+
FoFo: 'fo-FO',
|
|
1251
|
+
FrBe: 'fr-BE',
|
|
1252
|
+
FrCa: 'fr-CA',
|
|
1253
|
+
FrCh: 'fr-CH',
|
|
1254
|
+
FrFr: 'fr-FR',
|
|
1255
|
+
FrMc: 'fr-MC',
|
|
1256
|
+
FrNl: 'fr-NL',
|
|
1257
|
+
GaIe: 'ga-IE',
|
|
1258
|
+
GlEs: 'gl-ES',
|
|
1259
|
+
GuIn: 'gu-IN',
|
|
1260
|
+
HeIl: 'he-IL',
|
|
1261
|
+
HiIn: 'hi-IN',
|
|
1262
|
+
HrHr: 'hr-HR',
|
|
1263
|
+
HuHu: 'hu-HU',
|
|
1264
|
+
HyAm: 'hy-AM',
|
|
1265
|
+
IdId: 'id-ID',
|
|
1266
|
+
IsIs: 'is-IS',
|
|
1267
|
+
ItCh: 'it-CH',
|
|
1268
|
+
ItIt: 'it-IT',
|
|
1269
|
+
JaJp: 'ja-JP',
|
|
1270
|
+
KaGe: 'ka-GE',
|
|
1271
|
+
KkKz: 'kk-KZ',
|
|
1272
|
+
KlGl: 'kl-GL',
|
|
1273
|
+
KnIn: 'kn-IN',
|
|
1274
|
+
KoKr: 'ko-KR',
|
|
1275
|
+
KokIn: 'kok-IN',
|
|
1276
|
+
LtLt: 'lt-LT',
|
|
1277
|
+
LvLv: 'lv-LV',
|
|
1278
|
+
MkMk: 'mk-MK',
|
|
1279
|
+
MlIn: 'ml-IN',
|
|
1280
|
+
MnMn: 'mn-MN',
|
|
1281
|
+
MrIn: 'mr-IN',
|
|
1282
|
+
MsBn: 'ms-BN',
|
|
1283
|
+
MsMy: 'ms-MY',
|
|
1284
|
+
MtMt: 'mt-MT',
|
|
1285
|
+
NbNo: 'nb-NO',
|
|
1286
|
+
NlBe: 'nl-BE',
|
|
1287
|
+
NlNl: 'nl-NL',
|
|
1288
|
+
NnNo: 'nn-NO',
|
|
1061
1289
|
NoNo: 'no-NO',
|
|
1062
1290
|
PaIn: 'pa-IN',
|
|
1063
1291
|
PlPl: 'pl-PL',
|
|
@@ -1229,187 +1457,109 @@ export const Locale = {
|
|
|
1229
1457
|
ZhMo2: 'zh_MO',
|
|
1230
1458
|
ZhSg2: 'zh_SG',
|
|
1231
1459
|
ZhTw2: 'zh_TW',
|
|
1232
|
-
ZuZa2: 'zu_ZA'
|
|
1460
|
+
ZuZa2: 'zu_ZA',
|
|
1233
1461
|
} as const;
|
|
1234
1462
|
|
|
1235
1463
|
export type Locale = typeof Locale[keyof typeof Locale];
|
|
1236
1464
|
|
|
1237
1465
|
|
|
1238
|
-
/**
|
|
1239
|
-
*
|
|
1240
|
-
* @export
|
|
1241
|
-
* @interface MultiApplicationProperties
|
|
1242
|
-
*/
|
|
1243
1466
|
export interface MultiApplicationProperties {
|
|
1244
1467
|
/**
|
|
1245
1468
|
* Name of the application. Max character limit is 16. Only applicable to multi-application cards. Otherwise, the request will return 400 Bad Request.
|
|
1246
|
-
* @type {string}
|
|
1247
|
-
* @memberof MultiApplicationProperties
|
|
1248
1469
|
*/
|
|
1249
1470
|
'applicationName'?: string;
|
|
1250
1471
|
/**
|
|
1251
1472
|
* The index of the application
|
|
1252
|
-
* @type {number}
|
|
1253
|
-
* @memberof MultiApplicationProperties
|
|
1254
1473
|
*/
|
|
1255
1474
|
'applicationIndex'?: number;
|
|
1256
1475
|
/**
|
|
1257
1476
|
* The contact priority level for given card. Only applicable to multi-application cards. Otherwise, the request will return 400 Bad Request.
|
|
1258
|
-
* @type {number}
|
|
1259
|
-
* @memberof MultiApplicationProperties
|
|
1260
1477
|
*/
|
|
1261
1478
|
'contactPriorityLevel'?: number;
|
|
1262
1479
|
/**
|
|
1263
1480
|
* The contactless priority level of the given card. Only applicable to multi-application cards. Otherwise, the request will return 400 Bad Request.
|
|
1264
|
-
* @type {number}
|
|
1265
|
-
* @memberof MultiApplicationProperties
|
|
1266
1481
|
*/
|
|
1267
1482
|
'contactlessPriorityLevel'?: number;
|
|
1268
1483
|
/**
|
|
1269
1484
|
* Indicates whether the specific card would be printed or not. Only applicable to multi-application cards. Otherwise, the request will return 400 Bad Request.
|
|
1270
|
-
* @type {boolean}
|
|
1271
|
-
* @memberof MultiApplicationProperties
|
|
1272
1485
|
*/
|
|
1273
1486
|
'printed'?: boolean;
|
|
1274
1487
|
/**
|
|
1275
1488
|
* Whether the card should be visible in card terminal or not. Only applicable to multi-application cards. Otherwise, the request will return 400 Bad Request.
|
|
1276
|
-
* @type {boolean}
|
|
1277
|
-
* @memberof MultiApplicationProperties
|
|
1278
1489
|
*/
|
|
1279
1490
|
'chipEnabled'?: boolean;
|
|
1280
1491
|
}
|
|
1281
|
-
/**
|
|
1282
|
-
* @type NationalityInner
|
|
1283
|
-
* @export
|
|
1284
|
-
*/
|
|
1285
|
-
export type NationalityInner = CountryCodesAlpha3 | string;
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
*
|
|
1289
|
-
* @export
|
|
1290
|
-
* @interface PaginatedCardResponse
|
|
1291
|
-
*/
|
|
1292
1492
|
export interface PaginatedCardResponse {
|
|
1293
1493
|
/**
|
|
1294
1494
|
* Total number of elements across all pages in the entire dataset.
|
|
1295
|
-
* @type {number}
|
|
1296
|
-
* @memberof PaginatedCardResponse
|
|
1297
1495
|
*/
|
|
1298
1496
|
'totalElements'?: number;
|
|
1299
1497
|
/**
|
|
1300
1498
|
* Total number of pages calculated based on the total number of elements and the page size.
|
|
1301
|
-
* @type {number}
|
|
1302
|
-
* @memberof PaginatedCardResponse
|
|
1303
1499
|
*/
|
|
1304
1500
|
'totalPages'?: number;
|
|
1305
|
-
/**
|
|
1306
|
-
*
|
|
1307
|
-
* @type {Sort}
|
|
1308
|
-
* @memberof PaginatedCardResponse
|
|
1309
|
-
*/
|
|
1310
1501
|
'sort'?: Sort;
|
|
1311
1502
|
/**
|
|
1312
1503
|
* Indicates whether the current page is the first page.
|
|
1313
|
-
* @type {boolean}
|
|
1314
|
-
* @memberof PaginatedCardResponse
|
|
1315
1504
|
*/
|
|
1316
1505
|
'first'?: boolean;
|
|
1317
1506
|
/**
|
|
1318
1507
|
* Indicates whether the current page is the last page.
|
|
1319
|
-
* @type {boolean}
|
|
1320
|
-
* @memberof PaginatedCardResponse
|
|
1321
1508
|
*/
|
|
1322
1509
|
'last'?: boolean;
|
|
1323
1510
|
/**
|
|
1324
1511
|
* The current page number (0-based index).
|
|
1325
|
-
* @type {number}
|
|
1326
|
-
* @memberof PaginatedCardResponse
|
|
1327
1512
|
*/
|
|
1328
1513
|
'number'?: number;
|
|
1329
1514
|
/**
|
|
1330
1515
|
* The number of elements present in the current page.
|
|
1331
|
-
* @type {number}
|
|
1332
|
-
* @memberof PaginatedCardResponse
|
|
1333
1516
|
*/
|
|
1334
1517
|
'numberOfElements'?: number;
|
|
1335
1518
|
/**
|
|
1336
1519
|
* The size of the page, i.e., the maximum number of elements per page.
|
|
1337
|
-
* @type {number}
|
|
1338
|
-
* @memberof PaginatedCardResponse
|
|
1339
1520
|
*/
|
|
1340
1521
|
'size'?: number;
|
|
1341
|
-
/**
|
|
1342
|
-
*
|
|
1343
|
-
* @type {Array<CardResponse>}
|
|
1344
|
-
* @memberof PaginatedCardResponse
|
|
1345
|
-
*/
|
|
1346
1522
|
'content'?: Array<CardResponse>;
|
|
1347
1523
|
}
|
|
1348
|
-
/**
|
|
1349
|
-
*
|
|
1350
|
-
* @export
|
|
1351
|
-
* @interface PaginationResponse
|
|
1352
|
-
*/
|
|
1353
1524
|
export interface PaginationResponse {
|
|
1354
1525
|
/**
|
|
1355
1526
|
* Total number of elements across all pages in the entire dataset.
|
|
1356
|
-
* @type {number}
|
|
1357
|
-
* @memberof PaginationResponse
|
|
1358
1527
|
*/
|
|
1359
1528
|
'totalElements'?: number;
|
|
1360
1529
|
/**
|
|
1361
1530
|
* Total number of pages calculated based on the total number of elements and the page size.
|
|
1362
|
-
* @type {number}
|
|
1363
|
-
* @memberof PaginationResponse
|
|
1364
1531
|
*/
|
|
1365
1532
|
'totalPages'?: number;
|
|
1366
|
-
/**
|
|
1367
|
-
*
|
|
1368
|
-
* @type {Sort}
|
|
1369
|
-
* @memberof PaginationResponse
|
|
1370
|
-
*/
|
|
1371
1533
|
'sort'?: Sort;
|
|
1372
1534
|
/**
|
|
1373
1535
|
* Indicates whether the current page is the first page.
|
|
1374
|
-
* @type {boolean}
|
|
1375
|
-
* @memberof PaginationResponse
|
|
1376
1536
|
*/
|
|
1377
1537
|
'first'?: boolean;
|
|
1378
1538
|
/**
|
|
1379
1539
|
* Indicates whether the current page is the last page.
|
|
1380
|
-
* @type {boolean}
|
|
1381
|
-
* @memberof PaginationResponse
|
|
1382
1540
|
*/
|
|
1383
1541
|
'last'?: boolean;
|
|
1384
1542
|
/**
|
|
1385
1543
|
* The current page number (0-based index).
|
|
1386
|
-
* @type {number}
|
|
1387
|
-
* @memberof PaginationResponse
|
|
1388
1544
|
*/
|
|
1389
1545
|
'number'?: number;
|
|
1390
1546
|
/**
|
|
1391
1547
|
* The number of elements present in the current page.
|
|
1392
|
-
* @type {number}
|
|
1393
|
-
* @memberof PaginationResponse
|
|
1394
1548
|
*/
|
|
1395
1549
|
'numberOfElements'?: number;
|
|
1396
1550
|
/**
|
|
1397
1551
|
* The size of the page, i.e., the maximum number of elements per page.
|
|
1398
|
-
* @type {number}
|
|
1399
|
-
* @memberof PaginationResponse
|
|
1400
1552
|
*/
|
|
1401
1553
|
'size'?: number;
|
|
1402
1554
|
}
|
|
1403
1555
|
/**
|
|
1404
1556
|
* Select the type of delivery you prefer for sending the card PIN. - MAIL - The card PIN would be sent via mail services. - COURIER - The card PIN would be sent via courier services. - EPIN - The card PIN would be sent digitally.
|
|
1405
|
-
* @export
|
|
1406
|
-
* @enum {string}
|
|
1407
1557
|
*/
|
|
1408
1558
|
|
|
1409
1559
|
export const PinDeliveryType = {
|
|
1410
1560
|
Mail: 'MAIL',
|
|
1411
1561
|
Courier: 'COURIER',
|
|
1412
|
-
Epin: 'EPIN'
|
|
1562
|
+
Epin: 'EPIN',
|
|
1413
1563
|
} as const;
|
|
1414
1564
|
|
|
1415
1565
|
export type PinDeliveryType = typeof PinDeliveryType[keyof typeof PinDeliveryType];
|
|
@@ -1417,106 +1567,58 @@ export type PinDeliveryType = typeof PinDeliveryType[keyof typeof PinDeliveryTyp
|
|
|
1417
1567
|
|
|
1418
1568
|
/**
|
|
1419
1569
|
* - GENERATED - A pin has been randomly generated for the card. - WAITING - A pin is waiting to be set on the card. - SET - A pin has been manually set on the card. - INHERITED - For card applications only. The pin status is inherited from the main card.
|
|
1420
|
-
* @export
|
|
1421
|
-
* @enum {string}
|
|
1422
1570
|
*/
|
|
1423
1571
|
|
|
1424
1572
|
export const PinStatus = {
|
|
1425
1573
|
Generated: 'GENERATED',
|
|
1426
1574
|
Waiting: 'WAITING',
|
|
1427
1575
|
Set: 'SET',
|
|
1428
|
-
Inherited: 'INHERITED'
|
|
1576
|
+
Inherited: 'INHERITED',
|
|
1429
1577
|
} as const;
|
|
1430
1578
|
|
|
1431
1579
|
export type PinStatus = typeof PinStatus[keyof typeof PinStatus];
|
|
1432
1580
|
|
|
1433
1581
|
|
|
1434
|
-
/**
|
|
1435
|
-
*
|
|
1436
|
-
* @export
|
|
1437
|
-
* @interface Plastic
|
|
1438
|
-
*/
|
|
1439
1582
|
export interface Plastic {
|
|
1440
1583
|
/**
|
|
1441
1584
|
* The name to be embossed on the card. Max character limit is 26.
|
|
1442
|
-
* @type {string}
|
|
1443
|
-
* @memberof Plastic
|
|
1444
1585
|
*/
|
|
1445
1586
|
'embossingName'?: string;
|
|
1446
|
-
/**
|
|
1447
|
-
*
|
|
1448
|
-
* @type {Address}
|
|
1449
|
-
* @memberof Plastic
|
|
1450
|
-
*/
|
|
1451
1587
|
'preferredCardAddress'?: Address;
|
|
1452
|
-
/**
|
|
1453
|
-
*
|
|
1454
|
-
* @type {CardDeliveryType}
|
|
1455
|
-
* @memberof Plastic
|
|
1456
|
-
*/
|
|
1457
1588
|
'preferredCardDeliveryType': CardDeliveryType;
|
|
1458
|
-
/**
|
|
1459
|
-
*
|
|
1460
|
-
* @type {Address}
|
|
1461
|
-
* @memberof Plastic
|
|
1462
|
-
*/
|
|
1463
1589
|
'preferredPinAddress'?: Address;
|
|
1464
|
-
/**
|
|
1465
|
-
*
|
|
1466
|
-
* @type {PinDeliveryType}
|
|
1467
|
-
* @memberof Plastic
|
|
1468
|
-
*/
|
|
1469
1590
|
'preferredPinDeliveryType': PinDeliveryType;
|
|
1470
1591
|
/**
|
|
1471
1592
|
* Unique identifier of a resource.
|
|
1472
|
-
* @type {string}
|
|
1473
|
-
* @memberof Plastic
|
|
1474
1593
|
*/
|
|
1475
1594
|
'manufacturerId'?: string;
|
|
1476
1595
|
/**
|
|
1477
1596
|
* Unique code forwarded to the embossing house; the code identifies the plastic layout to be used for printing the new card. Ensure beforehand, the selected embossing house is aligned with the code used for each layout.
|
|
1478
|
-
* @type {string}
|
|
1479
|
-
* @memberof Plastic
|
|
1480
1597
|
*/
|
|
1481
1598
|
'externalLayoutCode'?: string;
|
|
1482
1599
|
/**
|
|
1483
1600
|
* The date and time when the card was created.
|
|
1484
|
-
* @type {string}
|
|
1485
|
-
* @memberof Plastic
|
|
1486
1601
|
*/
|
|
1487
1602
|
'createdAt'?: string;
|
|
1488
1603
|
/**
|
|
1489
1604
|
* The date and time when the object/entity was updated last time.
|
|
1490
|
-
* @type {string}
|
|
1491
|
-
* @memberof Plastic
|
|
1492
1605
|
*/
|
|
1493
1606
|
'updatedAt'?: string;
|
|
1494
1607
|
}
|
|
1495
1608
|
|
|
1496
1609
|
|
|
1497
|
-
/**
|
|
1498
|
-
*
|
|
1499
|
-
* @export
|
|
1500
|
-
* @interface ResourceResponse
|
|
1501
|
-
*/
|
|
1502
1610
|
export interface ResourceResponse {
|
|
1503
1611
|
/**
|
|
1504
1612
|
* A description of the response returned.
|
|
1505
|
-
* @type {string}
|
|
1506
|
-
* @memberof ResourceResponse
|
|
1507
1613
|
*/
|
|
1508
1614
|
'description'?: string;
|
|
1509
1615
|
/**
|
|
1510
1616
|
* A unique identifier assigned to identify the endpoint request.
|
|
1511
|
-
* @type {string}
|
|
1512
|
-
* @memberof ResourceResponse
|
|
1513
1617
|
*/
|
|
1514
1618
|
'id'?: string;
|
|
1515
1619
|
}
|
|
1516
1620
|
/**
|
|
1517
1621
|
* Risk assessment score of the customer: - High - High-risk customer - Med - Medium-risk customer - Low - Low-risk customer - Pep - Politically Exposed Person (PEP) - Prohibited - Customer sanctioned or outside of risk appetite If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
1518
|
-
* @export
|
|
1519
|
-
* @enum {string}
|
|
1520
1622
|
*/
|
|
1521
1623
|
|
|
1522
1624
|
export const RiskScore = {
|
|
@@ -1524,134 +1626,335 @@ export const RiskScore = {
|
|
|
1524
1626
|
Med: 'Med',
|
|
1525
1627
|
Low: 'Low',
|
|
1526
1628
|
Pep: 'Pep',
|
|
1527
|
-
Prohibited: 'Prohibited'
|
|
1629
|
+
Prohibited: 'Prohibited',
|
|
1528
1630
|
} as const;
|
|
1529
1631
|
|
|
1530
1632
|
export type RiskScore = typeof RiskScore[keyof typeof RiskScore];
|
|
1531
1633
|
|
|
1532
1634
|
|
|
1533
|
-
/**
|
|
1534
|
-
*
|
|
1535
|
-
* @export
|
|
1536
|
-
* @interface Sort
|
|
1537
|
-
*/
|
|
1538
1635
|
export interface Sort {
|
|
1539
1636
|
/**
|
|
1540
1637
|
* Indicates whether the current page is sorted by any property.
|
|
1541
|
-
* @type {boolean}
|
|
1542
|
-
* @memberof Sort
|
|
1543
1638
|
*/
|
|
1544
1639
|
'sorted'?: boolean;
|
|
1545
1640
|
/**
|
|
1546
1641
|
* Indicates whether the current page is not sorted (i.e., no sort was applied).
|
|
1547
|
-
* @type {boolean}
|
|
1548
|
-
* @memberof Sort
|
|
1549
1642
|
*/
|
|
1550
1643
|
'unsorted'?: boolean;
|
|
1551
1644
|
/**
|
|
1552
1645
|
* Indicates whether no sorting information is available (i.e., no sort was requested).
|
|
1553
|
-
* @type {boolean}
|
|
1554
|
-
* @memberof Sort
|
|
1555
1646
|
*/
|
|
1556
1647
|
'empty'?: boolean;
|
|
1557
1648
|
}
|
|
1558
|
-
/**
|
|
1559
|
-
*
|
|
1560
|
-
* @export
|
|
1561
|
-
* @interface UpdateCardholderBody
|
|
1562
|
-
*/
|
|
1563
1649
|
export interface UpdateCardholderBody {
|
|
1564
1650
|
/**
|
|
1565
1651
|
* External unique identifier of the cardholder, set by the issuer. Can contain both letters and numbers. Max character limit is 36.
|
|
1566
|
-
* @type {string}
|
|
1567
|
-
* @memberof UpdateCardholderBody
|
|
1568
1652
|
*/
|
|
1569
1653
|
'customerNumber'?: string;
|
|
1570
|
-
|
|
1571
|
-
*
|
|
1572
|
-
* @type {Locale}
|
|
1573
|
-
* @memberof UpdateCardholderBody
|
|
1574
|
-
*/
|
|
1575
|
-
'locale'?: Locale;
|
|
1576
|
-
/**
|
|
1577
|
-
*
|
|
1578
|
-
* @type {Address}
|
|
1579
|
-
* @memberof UpdateCardholderBody
|
|
1580
|
-
*/
|
|
1654
|
+
'locale'?: Locale;
|
|
1581
1655
|
'address'?: Address;
|
|
1582
1656
|
/**
|
|
1583
1657
|
* First name of the cardholder. Max character limit is 256.
|
|
1584
|
-
* @type {string}
|
|
1585
|
-
* @memberof UpdateCardholderBody
|
|
1586
1658
|
*/
|
|
1587
1659
|
'firstName'?: string;
|
|
1588
1660
|
/**
|
|
1589
1661
|
* Middle name of the cardholder. Max character limit is 256.
|
|
1590
|
-
* @type {string}
|
|
1591
|
-
* @memberof UpdateCardholderBody
|
|
1592
1662
|
*/
|
|
1593
1663
|
'middleName'?: string;
|
|
1594
1664
|
/**
|
|
1595
1665
|
* Last name of the cardholder. Max character limit is 256.
|
|
1596
|
-
* @type {string}
|
|
1597
|
-
* @memberof UpdateCardholderBody
|
|
1598
1666
|
*/
|
|
1599
1667
|
'lastName'?: string;
|
|
1600
1668
|
/**
|
|
1601
1669
|
* Mobile number of the cardholder — it must be a full number, including the country code and starting with +.
|
|
1602
|
-
* @type {string}
|
|
1603
|
-
* @memberof UpdateCardholderBody
|
|
1604
1670
|
*/
|
|
1605
1671
|
'mobileNumber'?: string;
|
|
1606
1672
|
/**
|
|
1607
1673
|
* Email address of the cardholder. Max character limit is 256.
|
|
1608
|
-
* @type {string}
|
|
1609
|
-
* @memberof UpdateCardholderBody
|
|
1610
1674
|
*/
|
|
1611
1675
|
'email'?: string;
|
|
1612
1676
|
/**
|
|
1613
1677
|
* Tax Identification Number used for taxation, regulatory reporting, or authority requirements in many countries. Depending on regional regulatory or scheme mandates (for example Brazil requirements), this value may be forwarded to Mastercard. In some countries, this value may be the same as the customer registration or identification number (identificationNumber). Omit to keep current value.
|
|
1614
|
-
* @type {string}
|
|
1615
|
-
* @memberof UpdateCardholderBody
|
|
1616
1678
|
*/
|
|
1617
1679
|
'taxId'?: string | null;
|
|
1618
1680
|
/**
|
|
1619
1681
|
* Date of birth of the cardholder. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
1620
|
-
* @type {string}
|
|
1621
|
-
* @memberof UpdateCardholderBody
|
|
1622
1682
|
*/
|
|
1623
1683
|
'dateOfBirth'?: string;
|
|
1624
1684
|
/**
|
|
1625
1685
|
* Nationality of the cardholder. Maximum of 3 values. Duplicate values are not allowed. XXX may be used when nationality is unknown. XKX may be used for Kosovo. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
1626
|
-
* @type {Array<NationalityInner>}
|
|
1627
|
-
* @memberof UpdateCardholderBody
|
|
1628
|
-
*/
|
|
1629
|
-
'nationality'?: Array<NationalityInner>;
|
|
1630
|
-
/**
|
|
1631
|
-
*
|
|
1632
|
-
* @type {RiskScore}
|
|
1633
|
-
* @memberof UpdateCardholderBody
|
|
1634
1686
|
*/
|
|
1687
|
+
'nationality'?: Array<UpdateCardholderBodyNationalityEnum>;
|
|
1635
1688
|
'riskScore'?: RiskScore;
|
|
1636
1689
|
/**
|
|
1637
1690
|
* Cardholder\'s country of birth. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
|
|
1638
|
-
* @type {CountryCodesAlpha3}
|
|
1639
|
-
* @memberof UpdateCardholderBody
|
|
1640
1691
|
*/
|
|
1641
1692
|
'birthCountry'?: CountryCodesAlpha3;
|
|
1642
1693
|
/**
|
|
1643
1694
|
* Customer or company identification number, such as a social security number (SSN), national identity number, or company registration number. Enfuce does not validate whether the provided identificationNumber is a real or officially valid identifier. Customers may populate this field according to their own business or regulatory needs. If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field for Finnish cardholders due to regulatory requirements.
|
|
1644
|
-
* @type {string}
|
|
1645
|
-
* @memberof UpdateCardholderBody
|
|
1646
1695
|
*/
|
|
1647
1696
|
'identificationNumber'?: string;
|
|
1648
1697
|
}
|
|
1649
1698
|
|
|
1699
|
+
export const UpdateCardholderBodyNationalityEnum = {
|
|
1700
|
+
Abw: 'ABW',
|
|
1701
|
+
Afg: 'AFG',
|
|
1702
|
+
Ago: 'AGO',
|
|
1703
|
+
Aia: 'AIA',
|
|
1704
|
+
Ala: 'ALA',
|
|
1705
|
+
Alb: 'ALB',
|
|
1706
|
+
And: 'AND',
|
|
1707
|
+
Are: 'ARE',
|
|
1708
|
+
Arg: 'ARG',
|
|
1709
|
+
Arm: 'ARM',
|
|
1710
|
+
Asm: 'ASM',
|
|
1711
|
+
Ata: 'ATA',
|
|
1712
|
+
Atf: 'ATF',
|
|
1713
|
+
Atg: 'ATG',
|
|
1714
|
+
Aus: 'AUS',
|
|
1715
|
+
Aut: 'AUT',
|
|
1716
|
+
Aze: 'AZE',
|
|
1717
|
+
Bdi: 'BDI',
|
|
1718
|
+
Bel: 'BEL',
|
|
1719
|
+
Ben: 'BEN',
|
|
1720
|
+
Bes: 'BES',
|
|
1721
|
+
Bfa: 'BFA',
|
|
1722
|
+
Bgd: 'BGD',
|
|
1723
|
+
Bgr: 'BGR',
|
|
1724
|
+
Bhr: 'BHR',
|
|
1725
|
+
Bhs: 'BHS',
|
|
1726
|
+
Bih: 'BIH',
|
|
1727
|
+
Blm: 'BLM',
|
|
1728
|
+
Blr: 'BLR',
|
|
1729
|
+
Blz: 'BLZ',
|
|
1730
|
+
Bmu: 'BMU',
|
|
1731
|
+
Bol: 'BOL',
|
|
1732
|
+
Bra: 'BRA',
|
|
1733
|
+
Brb: 'BRB',
|
|
1734
|
+
Brn: 'BRN',
|
|
1735
|
+
Btn: 'BTN',
|
|
1736
|
+
Bvt: 'BVT',
|
|
1737
|
+
Bwa: 'BWA',
|
|
1738
|
+
Caf: 'CAF',
|
|
1739
|
+
Can: 'CAN',
|
|
1740
|
+
Cck: 'CCK',
|
|
1741
|
+
Che: 'CHE',
|
|
1742
|
+
Chl: 'CHL',
|
|
1743
|
+
Chn: 'CHN',
|
|
1744
|
+
Civ: 'CIV',
|
|
1745
|
+
Cmr: 'CMR',
|
|
1746
|
+
Cod: 'COD',
|
|
1747
|
+
Cog: 'COG',
|
|
1748
|
+
Cok: 'COK',
|
|
1749
|
+
Col: 'COL',
|
|
1750
|
+
Com: 'COM',
|
|
1751
|
+
Cpv: 'CPV',
|
|
1752
|
+
Cri: 'CRI',
|
|
1753
|
+
Cub: 'CUB',
|
|
1754
|
+
Cuw: 'CUW',
|
|
1755
|
+
Cxr: 'CXR',
|
|
1756
|
+
Cym: 'CYM',
|
|
1757
|
+
Cyp: 'CYP',
|
|
1758
|
+
Cze: 'CZE',
|
|
1759
|
+
Deu: 'DEU',
|
|
1760
|
+
Dji: 'DJI',
|
|
1761
|
+
Dma: 'DMA',
|
|
1762
|
+
Dnk: 'DNK',
|
|
1763
|
+
Dom: 'DOM',
|
|
1764
|
+
Dza: 'DZA',
|
|
1765
|
+
Ecu: 'ECU',
|
|
1766
|
+
Egy: 'EGY',
|
|
1767
|
+
Eri: 'ERI',
|
|
1768
|
+
Esh: 'ESH',
|
|
1769
|
+
Esp: 'ESP',
|
|
1770
|
+
Est: 'EST',
|
|
1771
|
+
Eth: 'ETH',
|
|
1772
|
+
Fin: 'FIN',
|
|
1773
|
+
Fji: 'FJI',
|
|
1774
|
+
Flk: 'FLK',
|
|
1775
|
+
Fra: 'FRA',
|
|
1776
|
+
Fro: 'FRO',
|
|
1777
|
+
Fsm: 'FSM',
|
|
1778
|
+
Gab: 'GAB',
|
|
1779
|
+
Gbr: 'GBR',
|
|
1780
|
+
Geo: 'GEO',
|
|
1781
|
+
Ggy: 'GGY',
|
|
1782
|
+
Gha: 'GHA',
|
|
1783
|
+
Gib: 'GIB',
|
|
1784
|
+
Gin: 'GIN',
|
|
1785
|
+
Glp: 'GLP',
|
|
1786
|
+
Gmb: 'GMB',
|
|
1787
|
+
Gnb: 'GNB',
|
|
1788
|
+
Gnq: 'GNQ',
|
|
1789
|
+
Grc: 'GRC',
|
|
1790
|
+
Grd: 'GRD',
|
|
1791
|
+
Grl: 'GRL',
|
|
1792
|
+
Gtm: 'GTM',
|
|
1793
|
+
Guf: 'GUF',
|
|
1794
|
+
Gum: 'GUM',
|
|
1795
|
+
Guy: 'GUY',
|
|
1796
|
+
Hkg: 'HKG',
|
|
1797
|
+
Hmd: 'HMD',
|
|
1798
|
+
Hnd: 'HND',
|
|
1799
|
+
Hrv: 'HRV',
|
|
1800
|
+
Hti: 'HTI',
|
|
1801
|
+
Hun: 'HUN',
|
|
1802
|
+
Idn: 'IDN',
|
|
1803
|
+
Imn: 'IMN',
|
|
1804
|
+
Ind: 'IND',
|
|
1805
|
+
Iot: 'IOT',
|
|
1806
|
+
Irl: 'IRL',
|
|
1807
|
+
Irn: 'IRN',
|
|
1808
|
+
Irq: 'IRQ',
|
|
1809
|
+
Isl: 'ISL',
|
|
1810
|
+
Isr: 'ISR',
|
|
1811
|
+
Ita: 'ITA',
|
|
1812
|
+
Jam: 'JAM',
|
|
1813
|
+
Jey: 'JEY',
|
|
1814
|
+
Jor: 'JOR',
|
|
1815
|
+
Jpn: 'JPN',
|
|
1816
|
+
Kaz: 'KAZ',
|
|
1817
|
+
Ken: 'KEN',
|
|
1818
|
+
Kgz: 'KGZ',
|
|
1819
|
+
Khm: 'KHM',
|
|
1820
|
+
Kir: 'KIR',
|
|
1821
|
+
Kna: 'KNA',
|
|
1822
|
+
Kor: 'KOR',
|
|
1823
|
+
Kwt: 'KWT',
|
|
1824
|
+
Lao: 'LAO',
|
|
1825
|
+
Lbn: 'LBN',
|
|
1826
|
+
Lbr: 'LBR',
|
|
1827
|
+
Lby: 'LBY',
|
|
1828
|
+
Lca: 'LCA',
|
|
1829
|
+
Lie: 'LIE',
|
|
1830
|
+
Lka: 'LKA',
|
|
1831
|
+
Lso: 'LSO',
|
|
1832
|
+
Ltu: 'LTU',
|
|
1833
|
+
Lux: 'LUX',
|
|
1834
|
+
Lva: 'LVA',
|
|
1835
|
+
Mac: 'MAC',
|
|
1836
|
+
Maf: 'MAF',
|
|
1837
|
+
Mar: 'MAR',
|
|
1838
|
+
Mco: 'MCO',
|
|
1839
|
+
Mda: 'MDA',
|
|
1840
|
+
Mdg: 'MDG',
|
|
1841
|
+
Mdv: 'MDV',
|
|
1842
|
+
Mex: 'MEX',
|
|
1843
|
+
Mhl: 'MHL',
|
|
1844
|
+
Mkd: 'MKD',
|
|
1845
|
+
Mli: 'MLI',
|
|
1846
|
+
Mlt: 'MLT',
|
|
1847
|
+
Mmr: 'MMR',
|
|
1848
|
+
Mne: 'MNE',
|
|
1849
|
+
Mng: 'MNG',
|
|
1850
|
+
Mnp: 'MNP',
|
|
1851
|
+
Moz: 'MOZ',
|
|
1852
|
+
Mrt: 'MRT',
|
|
1853
|
+
Msr: 'MSR',
|
|
1854
|
+
Mtq: 'MTQ',
|
|
1855
|
+
Mus: 'MUS',
|
|
1856
|
+
Mwi: 'MWI',
|
|
1857
|
+
Mys: 'MYS',
|
|
1858
|
+
Myt: 'MYT',
|
|
1859
|
+
Nam: 'NAM',
|
|
1860
|
+
Ncl: 'NCL',
|
|
1861
|
+
Ner: 'NER',
|
|
1862
|
+
Nfk: 'NFK',
|
|
1863
|
+
Nga: 'NGA',
|
|
1864
|
+
Nic: 'NIC',
|
|
1865
|
+
Niu: 'NIU',
|
|
1866
|
+
Nld: 'NLD',
|
|
1867
|
+
Nor: 'NOR',
|
|
1868
|
+
Npl: 'NPL',
|
|
1869
|
+
Nru: 'NRU',
|
|
1870
|
+
Nzl: 'NZL',
|
|
1871
|
+
Omn: 'OMN',
|
|
1872
|
+
Pak: 'PAK',
|
|
1873
|
+
Pan: 'PAN',
|
|
1874
|
+
Pcn: 'PCN',
|
|
1875
|
+
Per: 'PER',
|
|
1876
|
+
Phl: 'PHL',
|
|
1877
|
+
Plw: 'PLW',
|
|
1878
|
+
Png: 'PNG',
|
|
1879
|
+
Pol: 'POL',
|
|
1880
|
+
Pri: 'PRI',
|
|
1881
|
+
Prk: 'PRK',
|
|
1882
|
+
Prt: 'PRT',
|
|
1883
|
+
Pry: 'PRY',
|
|
1884
|
+
Pse: 'PSE',
|
|
1885
|
+
Pyf: 'PYF',
|
|
1886
|
+
Qat: 'QAT',
|
|
1887
|
+
Reu: 'REU',
|
|
1888
|
+
Rou: 'ROU',
|
|
1889
|
+
Rus: 'RUS',
|
|
1890
|
+
Rwa: 'RWA',
|
|
1891
|
+
Sau: 'SAU',
|
|
1892
|
+
Sdn: 'SDN',
|
|
1893
|
+
Sen: 'SEN',
|
|
1894
|
+
Sgp: 'SGP',
|
|
1895
|
+
Sgs: 'SGS',
|
|
1896
|
+
Shn: 'SHN',
|
|
1897
|
+
Sjm: 'SJM',
|
|
1898
|
+
Slb: 'SLB',
|
|
1899
|
+
Sle: 'SLE',
|
|
1900
|
+
Slv: 'SLV',
|
|
1901
|
+
Smr: 'SMR',
|
|
1902
|
+
Som: 'SOM',
|
|
1903
|
+
Spm: 'SPM',
|
|
1904
|
+
Srb: 'SRB',
|
|
1905
|
+
Ssd: 'SSD',
|
|
1906
|
+
Stp: 'STP',
|
|
1907
|
+
Sur: 'SUR',
|
|
1908
|
+
Svk: 'SVK',
|
|
1909
|
+
Svn: 'SVN',
|
|
1910
|
+
Swe: 'SWE',
|
|
1911
|
+
Swz: 'SWZ',
|
|
1912
|
+
Sxm: 'SXM',
|
|
1913
|
+
Syc: 'SYC',
|
|
1914
|
+
Syr: 'SYR',
|
|
1915
|
+
Tca: 'TCA',
|
|
1916
|
+
Tcd: 'TCD',
|
|
1917
|
+
Tgo: 'TGO',
|
|
1918
|
+
Tha: 'THA',
|
|
1919
|
+
Tjk: 'TJK',
|
|
1920
|
+
Tkl: 'TKL',
|
|
1921
|
+
Tkm: 'TKM',
|
|
1922
|
+
Tls: 'TLS',
|
|
1923
|
+
Ton: 'TON',
|
|
1924
|
+
Tto: 'TTO',
|
|
1925
|
+
Tun: 'TUN',
|
|
1926
|
+
Tur: 'TUR',
|
|
1927
|
+
Tuv: 'TUV',
|
|
1928
|
+
Twn: 'TWN',
|
|
1929
|
+
Tza: 'TZA',
|
|
1930
|
+
Uga: 'UGA',
|
|
1931
|
+
Ukr: 'UKR',
|
|
1932
|
+
Umi: 'UMI',
|
|
1933
|
+
Ury: 'URY',
|
|
1934
|
+
Usa: 'USA',
|
|
1935
|
+
Uzb: 'UZB',
|
|
1936
|
+
Vat: 'VAT',
|
|
1937
|
+
Vct: 'VCT',
|
|
1938
|
+
Ven: 'VEN',
|
|
1939
|
+
Vgb: 'VGB',
|
|
1940
|
+
Vir: 'VIR',
|
|
1941
|
+
Vnm: 'VNM',
|
|
1942
|
+
Vut: 'VUT',
|
|
1943
|
+
Wlf: 'WLF',
|
|
1944
|
+
Wsm: 'WSM',
|
|
1945
|
+
Yem: 'YEM',
|
|
1946
|
+
Zaf: 'ZAF',
|
|
1947
|
+
Zmb: 'ZMB',
|
|
1948
|
+
Zwe: 'ZWE',
|
|
1949
|
+
Xkx: 'XKX',
|
|
1950
|
+
Xxx: 'XXX',
|
|
1951
|
+
} as const;
|
|
1952
|
+
|
|
1953
|
+
export type UpdateCardholderBodyNationalityEnum = typeof UpdateCardholderBodyNationalityEnum[keyof typeof UpdateCardholderBodyNationalityEnum];
|
|
1650
1954
|
|
|
1651
1955
|
|
|
1652
1956
|
/**
|
|
1653
1957
|
* CreateCardholderApi - axios parameter creator
|
|
1654
|
-
* @export
|
|
1655
1958
|
*/
|
|
1656
1959
|
export const CreateCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1657
1960
|
return {
|
|
@@ -1683,9 +1986,8 @@ export const CreateCardholderApiAxiosParamCreator = function (configuration?: Co
|
|
|
1683
1986
|
// http bearer authentication required
|
|
1684
1987
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1685
1988
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
1989
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1990
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1689
1991
|
|
|
1690
1992
|
if (xIdempotencyKey != null) {
|
|
1691
1993
|
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
@@ -1708,7 +2010,6 @@ export const CreateCardholderApiAxiosParamCreator = function (configuration?: Co
|
|
|
1708
2010
|
|
|
1709
2011
|
/**
|
|
1710
2012
|
* CreateCardholderApi - functional programming interface
|
|
1711
|
-
* @export
|
|
1712
2013
|
*/
|
|
1713
2014
|
export const CreateCardholderApiFp = function(configuration?: Configuration) {
|
|
1714
2015
|
const localVarAxiosParamCreator = CreateCardholderApiAxiosParamCreator(configuration)
|
|
@@ -1733,7 +2034,6 @@ export const CreateCardholderApiFp = function(configuration?: Configuration) {
|
|
|
1733
2034
|
|
|
1734
2035
|
/**
|
|
1735
2036
|
* CreateCardholderApi - factory interface
|
|
1736
|
-
* @export
|
|
1737
2037
|
*/
|
|
1738
2038
|
export const CreateCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1739
2039
|
const localVarFp = CreateCardholderApiFp(configuration)
|
|
@@ -1755,9 +2055,6 @@ export const CreateCardholderApiFactory = function (configuration?: Configuratio
|
|
|
1755
2055
|
|
|
1756
2056
|
/**
|
|
1757
2057
|
* CreateCardholderApi - object-oriented interface
|
|
1758
|
-
* @export
|
|
1759
|
-
* @class CreateCardholderApi
|
|
1760
|
-
* @extends {BaseAPI}
|
|
1761
2058
|
*/
|
|
1762
2059
|
export class CreateCardholderApi extends BaseAPI {
|
|
1763
2060
|
/**
|
|
@@ -1768,7 +2065,6 @@ export class CreateCardholderApi extends BaseAPI {
|
|
|
1768
2065
|
* @param {string} [xAuditUser] Optional audit user header
|
|
1769
2066
|
* @param {*} [options] Override http request option.
|
|
1770
2067
|
* @throws {RequiredError}
|
|
1771
|
-
* @memberof CreateCardholderApi
|
|
1772
2068
|
*/
|
|
1773
2069
|
public createCardholder(createCardholderBody: CreateCardholderBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1774
2070
|
return CreateCardholderApiFp(this.configuration).createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1779,7 +2075,6 @@ export class CreateCardholderApi extends BaseAPI {
|
|
|
1779
2075
|
|
|
1780
2076
|
/**
|
|
1781
2077
|
* GetCardholderApi - axios parameter creator
|
|
1782
|
-
* @export
|
|
1783
2078
|
*/
|
|
1784
2079
|
export const GetCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1785
2080
|
return {
|
|
@@ -1795,7 +2090,7 @@ export const GetCardholderApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1795
2090
|
// verify required parameter 'id' is not null or undefined
|
|
1796
2091
|
assertParamExists('getCardholderById', 'id', id)
|
|
1797
2092
|
const localVarPath = `/v1/cardholders/{id}`
|
|
1798
|
-
.replace(
|
|
2093
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
1799
2094
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1800
2095
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1801
2096
|
let baseOptions;
|
|
@@ -1811,8 +2106,8 @@ export const GetCardholderApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1811
2106
|
// http bearer authentication required
|
|
1812
2107
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1813
2108
|
|
|
2109
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1814
2110
|
|
|
1815
|
-
|
|
1816
2111
|
if (xAuditUser != null) {
|
|
1817
2112
|
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1818
2113
|
}
|
|
@@ -1856,8 +2151,8 @@ export const GetCardholderApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1856
2151
|
localVarQueryParameter['customerNumber'] = customerNumber;
|
|
1857
2152
|
}
|
|
1858
2153
|
|
|
2154
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1859
2155
|
|
|
1860
|
-
|
|
1861
2156
|
if (xAuditUser != null) {
|
|
1862
2157
|
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1863
2158
|
}
|
|
@@ -1875,7 +2170,6 @@ export const GetCardholderApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1875
2170
|
|
|
1876
2171
|
/**
|
|
1877
2172
|
* GetCardholderApi - functional programming interface
|
|
1878
|
-
* @export
|
|
1879
2173
|
*/
|
|
1880
2174
|
export const GetCardholderApiFp = function(configuration?: Configuration) {
|
|
1881
2175
|
const localVarAxiosParamCreator = GetCardholderApiAxiosParamCreator(configuration)
|
|
@@ -1913,7 +2207,6 @@ export const GetCardholderApiFp = function(configuration?: Configuration) {
|
|
|
1913
2207
|
|
|
1914
2208
|
/**
|
|
1915
2209
|
* GetCardholderApi - factory interface
|
|
1916
|
-
* @export
|
|
1917
2210
|
*/
|
|
1918
2211
|
export const GetCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1919
2212
|
const localVarFp = GetCardholderApiFp(configuration)
|
|
@@ -1945,9 +2238,6 @@ export const GetCardholderApiFactory = function (configuration?: Configuration,
|
|
|
1945
2238
|
|
|
1946
2239
|
/**
|
|
1947
2240
|
* GetCardholderApi - object-oriented interface
|
|
1948
|
-
* @export
|
|
1949
|
-
* @class GetCardholderApi
|
|
1950
|
-
* @extends {BaseAPI}
|
|
1951
2241
|
*/
|
|
1952
2242
|
export class GetCardholderApi extends BaseAPI {
|
|
1953
2243
|
/**
|
|
@@ -1957,7 +2247,6 @@ export class GetCardholderApi extends BaseAPI {
|
|
|
1957
2247
|
* @param {string} [xAuditUser] Optional audit user header
|
|
1958
2248
|
* @param {*} [options] Override http request option.
|
|
1959
2249
|
* @throws {RequiredError}
|
|
1960
|
-
* @memberof GetCardholderApi
|
|
1961
2250
|
*/
|
|
1962
2251
|
public getCardholderById(id: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1963
2252
|
return GetCardholderApiFp(this.configuration).getCardholderById(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1970,7 +2259,6 @@ export class GetCardholderApi extends BaseAPI {
|
|
|
1970
2259
|
* @param {string} [xAuditUser] Optional audit user header
|
|
1971
2260
|
* @param {*} [options] Override http request option.
|
|
1972
2261
|
* @throws {RequiredError}
|
|
1973
|
-
* @memberof GetCardholderApi
|
|
1974
2262
|
*/
|
|
1975
2263
|
public getCardholders(customerNumber: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1976
2264
|
return GetCardholderApiFp(this.configuration).getCardholders(customerNumber, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1981,7 +2269,6 @@ export class GetCardholderApi extends BaseAPI {
|
|
|
1981
2269
|
|
|
1982
2270
|
/**
|
|
1983
2271
|
* GetCardsByCardholderIdApi - axios parameter creator
|
|
1984
|
-
* @export
|
|
1985
2272
|
*/
|
|
1986
2273
|
export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1987
2274
|
return {
|
|
@@ -1999,7 +2286,7 @@ export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuratio
|
|
|
1999
2286
|
// verify required parameter 'id' is not null or undefined
|
|
2000
2287
|
assertParamExists('getCardsByCardholderId', 'id', id)
|
|
2001
2288
|
const localVarPath = `/v1/cardholders/{id}/cards`
|
|
2002
|
-
.replace(
|
|
2289
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
2003
2290
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2004
2291
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2005
2292
|
let baseOptions;
|
|
@@ -2023,8 +2310,8 @@ export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuratio
|
|
|
2023
2310
|
localVarQueryParameter['size'] = size;
|
|
2024
2311
|
}
|
|
2025
2312
|
|
|
2313
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2026
2314
|
|
|
2027
|
-
|
|
2028
2315
|
if (xAuditUser != null) {
|
|
2029
2316
|
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
2030
2317
|
}
|
|
@@ -2042,7 +2329,6 @@ export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuratio
|
|
|
2042
2329
|
|
|
2043
2330
|
/**
|
|
2044
2331
|
* GetCardsByCardholderIdApi - functional programming interface
|
|
2045
|
-
* @export
|
|
2046
2332
|
*/
|
|
2047
2333
|
export const GetCardsByCardholderIdApiFp = function(configuration?: Configuration) {
|
|
2048
2334
|
const localVarAxiosParamCreator = GetCardsByCardholderIdApiAxiosParamCreator(configuration)
|
|
@@ -2068,7 +2354,6 @@ export const GetCardsByCardholderIdApiFp = function(configuration?: Configuratio
|
|
|
2068
2354
|
|
|
2069
2355
|
/**
|
|
2070
2356
|
* GetCardsByCardholderIdApi - factory interface
|
|
2071
|
-
* @export
|
|
2072
2357
|
*/
|
|
2073
2358
|
export const GetCardsByCardholderIdApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2074
2359
|
const localVarFp = GetCardsByCardholderIdApiFp(configuration)
|
|
@@ -2091,9 +2376,6 @@ export const GetCardsByCardholderIdApiFactory = function (configuration?: Config
|
|
|
2091
2376
|
|
|
2092
2377
|
/**
|
|
2093
2378
|
* GetCardsByCardholderIdApi - object-oriented interface
|
|
2094
|
-
* @export
|
|
2095
|
-
* @class GetCardsByCardholderIdApi
|
|
2096
|
-
* @extends {BaseAPI}
|
|
2097
2379
|
*/
|
|
2098
2380
|
export class GetCardsByCardholderIdApi extends BaseAPI {
|
|
2099
2381
|
/**
|
|
@@ -2105,7 +2387,6 @@ export class GetCardsByCardholderIdApi extends BaseAPI {
|
|
|
2105
2387
|
* @param {string} [xAuditUser] Optional audit user header
|
|
2106
2388
|
* @param {*} [options] Override http request option.
|
|
2107
2389
|
* @throws {RequiredError}
|
|
2108
|
-
* @memberof GetCardsByCardholderIdApi
|
|
2109
2390
|
*/
|
|
2110
2391
|
public getCardsByCardholderId(id: string, page?: number, size?: number, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
2111
2392
|
return GetCardsByCardholderIdApiFp(this.configuration).getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2116,7 +2397,6 @@ export class GetCardsByCardholderIdApi extends BaseAPI {
|
|
|
2116
2397
|
|
|
2117
2398
|
/**
|
|
2118
2399
|
* UpdateCardholderApi - axios parameter creator
|
|
2119
|
-
* @export
|
|
2120
2400
|
*/
|
|
2121
2401
|
export const UpdateCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2122
2402
|
return {
|
|
@@ -2135,7 +2415,7 @@ export const UpdateCardholderApiAxiosParamCreator = function (configuration?: Co
|
|
|
2135
2415
|
// verify required parameter 'updateCardholderBody' is not null or undefined
|
|
2136
2416
|
assertParamExists('updateCardholder', 'updateCardholderBody', updateCardholderBody)
|
|
2137
2417
|
const localVarPath = `/v1/cardholders/{id}`
|
|
2138
|
-
.replace(
|
|
2418
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
2139
2419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2140
2420
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2141
2421
|
let baseOptions;
|
|
@@ -2151,9 +2431,8 @@ export const UpdateCardholderApiAxiosParamCreator = function (configuration?: Co
|
|
|
2151
2431
|
// http bearer authentication required
|
|
2152
2432
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2153
2433
|
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
2434
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2435
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2157
2436
|
|
|
2158
2437
|
if (xAuditUser != null) {
|
|
2159
2438
|
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
@@ -2173,7 +2452,6 @@ export const UpdateCardholderApiAxiosParamCreator = function (configuration?: Co
|
|
|
2173
2452
|
|
|
2174
2453
|
/**
|
|
2175
2454
|
* UpdateCardholderApi - functional programming interface
|
|
2176
|
-
* @export
|
|
2177
2455
|
*/
|
|
2178
2456
|
export const UpdateCardholderApiFp = function(configuration?: Configuration) {
|
|
2179
2457
|
const localVarAxiosParamCreator = UpdateCardholderApiAxiosParamCreator(configuration)
|
|
@@ -2198,7 +2476,6 @@ export const UpdateCardholderApiFp = function(configuration?: Configuration) {
|
|
|
2198
2476
|
|
|
2199
2477
|
/**
|
|
2200
2478
|
* UpdateCardholderApi - factory interface
|
|
2201
|
-
* @export
|
|
2202
2479
|
*/
|
|
2203
2480
|
export const UpdateCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2204
2481
|
const localVarFp = UpdateCardholderApiFp(configuration)
|
|
@@ -2220,9 +2497,6 @@ export const UpdateCardholderApiFactory = function (configuration?: Configuratio
|
|
|
2220
2497
|
|
|
2221
2498
|
/**
|
|
2222
2499
|
* UpdateCardholderApi - object-oriented interface
|
|
2223
|
-
* @export
|
|
2224
|
-
* @class UpdateCardholderApi
|
|
2225
|
-
* @extends {BaseAPI}
|
|
2226
2500
|
*/
|
|
2227
2501
|
export class UpdateCardholderApi extends BaseAPI {
|
|
2228
2502
|
/**
|
|
@@ -2233,7 +2507,6 @@ export class UpdateCardholderApi extends BaseAPI {
|
|
|
2233
2507
|
* @param {string} [xAuditUser] Optional audit user header
|
|
2234
2508
|
* @param {*} [options] Override http request option.
|
|
2235
2509
|
* @throws {RequiredError}
|
|
2236
|
-
* @memberof UpdateCardholderApi
|
|
2237
2510
|
*/
|
|
2238
2511
|
public updateCardholder(id: string, updateCardholderBody: UpdateCardholderBody, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
2239
2512
|
return UpdateCardholderApiFp(this.configuration).updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|