@enfuce/nextgen-sdk 0.0.1
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/dist/authorisation-control/api.d.ts +771 -0
- package/dist/authorisation-control/api.js +240 -0
- package/dist/authorisation-control/base.d.ts +66 -0
- package/dist/authorisation-control/base.js +65 -0
- package/dist/authorisation-control/common.d.ts +65 -0
- package/dist/authorisation-control/common.js +161 -0
- package/dist/authorisation-control/configuration.d.ts +91 -0
- package/dist/authorisation-control/configuration.js +44 -0
- package/dist/authorisation-control/index.d.ts +13 -0
- package/dist/authorisation-control/index.js +31 -0
- package/dist/card/api.d.ts +2065 -0
- package/dist/card/api.js +1406 -0
- package/dist/card/base.d.ts +66 -0
- package/dist/card/base.js +65 -0
- package/dist/card/common.d.ts +65 -0
- package/dist/card/common.js +161 -0
- package/dist/card/configuration.d.ts +91 -0
- package/dist/card/configuration.js +44 -0
- package/dist/card/index.d.ts +13 -0
- package/dist/card/index.js +31 -0
- package/dist/cardholder/api.d.ts +1890 -0
- package/dist/cardholder/api.js +1239 -0
- package/dist/cardholder/base.d.ts +66 -0
- package/dist/cardholder/base.js +65 -0
- package/dist/cardholder/common.d.ts +65 -0
- package/dist/cardholder/common.js +161 -0
- package/dist/cardholder/configuration.d.ts +91 -0
- package/dist/cardholder/configuration.js +44 -0
- package/dist/cardholder/index.d.ts +13 -0
- package/dist/cardholder/index.js +31 -0
- package/dist/cards/api.d.ts +78 -0
- package/dist/cards/api.js +142 -0
- package/dist/cards/base.d.ts +66 -0
- package/dist/cards/base.js +65 -0
- package/dist/cards/common.d.ts +65 -0
- package/dist/cards/common.js +161 -0
- package/dist/cards/configuration.d.ts +91 -0
- package/dist/cards/configuration.js +44 -0
- package/dist/cards/index.d.ts +13 -0
- package/dist/cards/index.js +31 -0
- package/dist/clearing-file-copy/api.d.ts +1245 -0
- package/dist/clearing-file-copy/api.js +139 -0
- package/dist/clearing-file-copy/base.d.ts +66 -0
- package/dist/clearing-file-copy/base.js +65 -0
- package/dist/clearing-file-copy/common.d.ts +65 -0
- package/dist/clearing-file-copy/common.js +161 -0
- package/dist/clearing-file-copy/configuration.d.ts +91 -0
- package/dist/clearing-file-copy/configuration.js +44 -0
- package/dist/clearing-file-copy/index.d.ts +13 -0
- package/dist/clearing-file-copy/index.js +31 -0
- package/dist/esm/authorisation-control/api.d.ts +771 -0
- package/dist/esm/authorisation-control/api.js +233 -0
- package/dist/esm/authorisation-control/base.d.ts +66 -0
- package/dist/esm/authorisation-control/base.js +60 -0
- package/dist/esm/authorisation-control/common.d.ts +65 -0
- package/dist/esm/authorisation-control/common.js +149 -0
- package/dist/esm/authorisation-control/configuration.d.ts +91 -0
- package/dist/esm/authorisation-control/configuration.js +40 -0
- package/dist/esm/authorisation-control/index.d.ts +13 -0
- package/dist/esm/authorisation-control/index.js +15 -0
- package/dist/esm/card/api.d.ts +2065 -0
- package/dist/esm/card/api.js +1379 -0
- package/dist/esm/card/base.d.ts +66 -0
- package/dist/esm/card/base.js +60 -0
- package/dist/esm/card/common.d.ts +65 -0
- package/dist/esm/card/common.js +149 -0
- package/dist/esm/card/configuration.d.ts +91 -0
- package/dist/esm/card/configuration.js +40 -0
- package/dist/esm/card/index.d.ts +13 -0
- package/dist/esm/card/index.js +15 -0
- package/dist/esm/cardholder/api.d.ts +1890 -0
- package/dist/esm/cardholder/api.js +1220 -0
- package/dist/esm/cardholder/base.d.ts +66 -0
- package/dist/esm/cardholder/base.js +60 -0
- package/dist/esm/cardholder/common.d.ts +65 -0
- package/dist/esm/cardholder/common.js +149 -0
- package/dist/esm/cardholder/configuration.d.ts +91 -0
- package/dist/esm/cardholder/configuration.js +40 -0
- package/dist/esm/cardholder/index.d.ts +13 -0
- package/dist/esm/cardholder/index.js +15 -0
- package/dist/esm/cards/api.d.ts +78 -0
- package/dist/esm/cards/api.js +135 -0
- package/dist/esm/cards/base.d.ts +66 -0
- package/dist/esm/cards/base.js +60 -0
- package/dist/esm/cards/common.d.ts +65 -0
- package/dist/esm/cards/common.js +149 -0
- package/dist/esm/cards/configuration.d.ts +91 -0
- package/dist/esm/cards/configuration.js +40 -0
- package/dist/esm/cards/index.d.ts +13 -0
- package/dist/esm/cards/index.js +15 -0
- package/dist/esm/clearing-file-copy/api.d.ts +1245 -0
- package/dist/esm/clearing-file-copy/api.js +136 -0
- package/dist/esm/clearing-file-copy/base.d.ts +66 -0
- package/dist/esm/clearing-file-copy/base.js +60 -0
- package/dist/esm/clearing-file-copy/common.d.ts +65 -0
- package/dist/esm/clearing-file-copy/common.js +149 -0
- package/dist/esm/clearing-file-copy/configuration.d.ts +91 -0
- package/dist/esm/clearing-file-copy/configuration.js +40 -0
- package/dist/esm/clearing-file-copy/index.d.ts +13 -0
- package/dist/esm/clearing-file-copy/index.js +15 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/issuer-events/api.d.ts +1721 -0
- package/dist/esm/issuer-events/api.js +940 -0
- package/dist/esm/issuer-events/base.d.ts +66 -0
- package/dist/esm/issuer-events/base.js +60 -0
- package/dist/esm/issuer-events/common.d.ts +65 -0
- package/dist/esm/issuer-events/common.js +149 -0
- package/dist/esm/issuer-events/configuration.d.ts +91 -0
- package/dist/esm/issuer-events/configuration.js +40 -0
- package/dist/esm/issuer-events/index.d.ts +13 -0
- package/dist/esm/issuer-events/index.js +15 -0
- package/dist/esm/oauth/axios.d.ts +14 -0
- package/dist/esm/oauth/axios.js +58 -0
- package/dist/esm/oauth/clientCredentials.d.ts +24 -0
- package/dist/esm/oauth/clientCredentials.js +59 -0
- package/dist/esm/oauth/index.d.ts +3 -0
- package/dist/esm/oauth/index.js +24 -0
- package/dist/esm/oauth/tokenManager.d.ts +38 -0
- package/dist/esm/oauth/tokenManager.js +77 -0
- package/dist/esm/pin/api.d.ts +329 -0
- package/dist/esm/pin/api.js +341 -0
- package/dist/esm/pin/base.d.ts +66 -0
- package/dist/esm/pin/base.js +60 -0
- package/dist/esm/pin/common.d.ts +65 -0
- package/dist/esm/pin/common.js +149 -0
- package/dist/esm/pin/configuration.d.ts +91 -0
- package/dist/esm/pin/configuration.js +40 -0
- package/dist/esm/pin/index.d.ts +13 -0
- package/dist/esm/pin/index.js +15 -0
- package/dist/esm/threeds/api.d.ts +104 -0
- package/dist/esm/threeds/api.js +136 -0
- package/dist/esm/threeds/base.d.ts +66 -0
- package/dist/esm/threeds/base.js +60 -0
- package/dist/esm/threeds/common.d.ts +65 -0
- package/dist/esm/threeds/common.js +149 -0
- package/dist/esm/threeds/configuration.d.ts +91 -0
- package/dist/esm/threeds/configuration.js +40 -0
- package/dist/esm/threeds/index.d.ts +13 -0
- package/dist/esm/threeds/index.js +15 -0
- package/dist/esm/threeds-oob/api.d.ts +241 -0
- package/dist/esm/threeds-oob/api.js +141 -0
- package/dist/esm/threeds-oob/base.d.ts +66 -0
- package/dist/esm/threeds-oob/base.js +60 -0
- package/dist/esm/threeds-oob/common.d.ts +65 -0
- package/dist/esm/threeds-oob/common.js +149 -0
- package/dist/esm/threeds-oob/configuration.d.ts +91 -0
- package/dist/esm/threeds-oob/configuration.js +40 -0
- package/dist/esm/threeds-oob/index.d.ts +13 -0
- package/dist/esm/threeds-oob/index.js +15 -0
- package/dist/esm/transaction-event/api.d.ts +1082 -0
- package/dist/esm/transaction-event/api.js +163 -0
- package/dist/esm/transaction-event/base.d.ts +66 -0
- package/dist/esm/transaction-event/base.js +60 -0
- package/dist/esm/transaction-event/common.d.ts +65 -0
- package/dist/esm/transaction-event/common.js +149 -0
- package/dist/esm/transaction-event/configuration.d.ts +91 -0
- package/dist/esm/transaction-event/configuration.js +40 -0
- package/dist/esm/transaction-event/index.d.ts +13 -0
- package/dist/esm/transaction-event/index.js +15 -0
- package/dist/esm/wallet/api.d.ts +1385 -0
- package/dist/esm/wallet/api.js +1342 -0
- package/dist/esm/wallet/base.d.ts +66 -0
- package/dist/esm/wallet/base.js +60 -0
- package/dist/esm/wallet/common.d.ts +65 -0
- package/dist/esm/wallet/common.js +149 -0
- package/dist/esm/wallet/configuration.d.ts +91 -0
- package/dist/esm/wallet/configuration.js +40 -0
- package/dist/esm/wallet/index.d.ts +13 -0
- package/dist/esm/wallet/index.js +15 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +17 -0
- package/dist/issuer-events/api.d.ts +1721 -0
- package/dist/issuer-events/api.js +947 -0
- package/dist/issuer-events/base.d.ts +66 -0
- package/dist/issuer-events/base.js +65 -0
- package/dist/issuer-events/common.d.ts +65 -0
- package/dist/issuer-events/common.js +161 -0
- package/dist/issuer-events/configuration.d.ts +91 -0
- package/dist/issuer-events/configuration.js +44 -0
- package/dist/issuer-events/index.d.ts +13 -0
- package/dist/issuer-events/index.js +31 -0
- package/dist/oauth/axios.d.ts +14 -0
- package/dist/oauth/axios.js +61 -0
- package/dist/oauth/clientCredentials.d.ts +24 -0
- package/dist/oauth/clientCredentials.js +63 -0
- package/dist/oauth/index.d.ts +3 -0
- package/dist/oauth/index.js +31 -0
- package/dist/oauth/tokenManager.d.ts +38 -0
- package/dist/oauth/tokenManager.js +81 -0
- package/dist/pin/api.d.ts +329 -0
- package/dist/pin/api.js +352 -0
- package/dist/pin/base.d.ts +66 -0
- package/dist/pin/base.js +65 -0
- package/dist/pin/common.d.ts +65 -0
- package/dist/pin/common.js +161 -0
- package/dist/pin/configuration.d.ts +91 -0
- package/dist/pin/configuration.js +44 -0
- package/dist/pin/index.d.ts +13 -0
- package/dist/pin/index.js +31 -0
- package/dist/threeds/api.d.ts +104 -0
- package/dist/threeds/api.js +143 -0
- package/dist/threeds/base.d.ts +66 -0
- package/dist/threeds/base.js +65 -0
- package/dist/threeds/common.d.ts +65 -0
- package/dist/threeds/common.js +161 -0
- package/dist/threeds/configuration.d.ts +91 -0
- package/dist/threeds/configuration.js +44 -0
- package/dist/threeds/index.d.ts +13 -0
- package/dist/threeds/index.js +31 -0
- package/dist/threeds-oob/api.d.ts +241 -0
- package/dist/threeds-oob/api.js +148 -0
- package/dist/threeds-oob/base.d.ts +66 -0
- package/dist/threeds-oob/base.js +65 -0
- package/dist/threeds-oob/common.d.ts +65 -0
- package/dist/threeds-oob/common.js +161 -0
- package/dist/threeds-oob/configuration.d.ts +91 -0
- package/dist/threeds-oob/configuration.js +44 -0
- package/dist/threeds-oob/index.d.ts +13 -0
- package/dist/threeds-oob/index.js +31 -0
- package/dist/transaction-event/api.d.ts +1082 -0
- package/dist/transaction-event/api.js +166 -0
- package/dist/transaction-event/base.d.ts +66 -0
- package/dist/transaction-event/base.js +65 -0
- package/dist/transaction-event/common.d.ts +65 -0
- package/dist/transaction-event/common.js +161 -0
- package/dist/transaction-event/configuration.d.ts +91 -0
- package/dist/transaction-event/configuration.js +44 -0
- package/dist/transaction-event/index.d.ts +13 -0
- package/dist/transaction-event/index.js +31 -0
- package/dist/wallet/api.d.ts +1385 -0
- package/dist/wallet/api.js +1377 -0
- package/dist/wallet/base.d.ts +66 -0
- package/dist/wallet/base.js +65 -0
- package/dist/wallet/common.d.ts +65 -0
- package/dist/wallet/common.js +161 -0
- package/dist/wallet/configuration.d.ts +91 -0
- package/dist/wallet/configuration.js +44 -0
- package/dist/wallet/index.d.ts +13 -0
- package/dist/wallet/index.js +31 -0
- package/package.json +25 -0
- package/src/authorisation-control/api.ts +876 -0
- package/src/authorisation-control/base.ts +86 -0
- package/src/authorisation-control/common.ts +150 -0
- package/src/authorisation-control/configuration.ts +115 -0
- package/src/authorisation-control/index.ts +18 -0
- package/src/card/api.ts +2792 -0
- package/src/card/base.ts +86 -0
- package/src/card/common.ts +150 -0
- package/src/card/configuration.ts +115 -0
- package/src/card/index.ts +18 -0
- package/src/cardholder/api.ts +2244 -0
- package/src/cardholder/base.ts +86 -0
- package/src/cardholder/common.ts +150 -0
- package/src/cardholder/configuration.ts +115 -0
- package/src/cardholder/index.ts +18 -0
- package/src/cards/api.ts +141 -0
- package/src/cards/base.ts +86 -0
- package/src/cards/common.ts +150 -0
- package/src/cards/configuration.ts +115 -0
- package/src/cards/index.ts +18 -0
- package/src/clearing-file-copy/api.ts +1309 -0
- package/src/clearing-file-copy/base.ts +86 -0
- package/src/clearing-file-copy/common.ts +150 -0
- package/src/clearing-file-copy/configuration.ts +115 -0
- package/src/clearing-file-copy/index.ts +18 -0
- package/src/index.ts +16 -0
- package/src/issuer-events/api.ts +1926 -0
- package/src/issuer-events/base.ts +86 -0
- package/src/issuer-events/common.ts +150 -0
- package/src/issuer-events/configuration.ts +115 -0
- package/src/issuer-events/index.ts +18 -0
- package/src/oauth/axios.ts +60 -0
- package/src/oauth/clientCredentials.ts +72 -0
- package/src/oauth/index.ts +24 -0
- package/src/oauth/tokenManager.ts +85 -0
- package/src/pin/api.ts +507 -0
- package/src/pin/base.ts +86 -0
- package/src/pin/common.ts +150 -0
- package/src/pin/configuration.ts +115 -0
- package/src/pin/index.ts +18 -0
- package/src/threeds/api.ts +173 -0
- package/src/threeds/base.ts +86 -0
- package/src/threeds/common.ts +150 -0
- package/src/threeds/configuration.ts +115 -0
- package/src/threeds/index.ts +18 -0
- package/src/threeds-oob/api.ts +311 -0
- package/src/threeds-oob/base.ts +86 -0
- package/src/threeds-oob/common.ts +150 -0
- package/src/threeds-oob/configuration.ts +115 -0
- package/src/threeds-oob/index.ts +18 -0
- package/src/transaction-event/api.ts +1152 -0
- package/src/transaction-event/base.ts +86 -0
- package/src/transaction-event/common.ts +150 -0
- package/src/transaction-event/configuration.ts +115 -0
- package/src/transaction-event/index.ts +18 -0
- package/src/wallet/api.ts +2083 -0
- package/src/wallet/base.ts +86 -0
- package/src/wallet/common.ts +150 -0
- package/src/wallet/configuration.ts +115 -0
- package/src/wallet/index.ts +18 -0
- package/test/authorisation-control.test.ts +71 -0
- package/test/card.test.ts +39 -0
- package/test/cardholder.test.ts +51 -0
- package/test/cards.test.ts +35 -0
- package/test/issuer-events.test.ts +55 -0
- package/test/oauth.test.ts +205 -0
- package/test/pin.test.ts +39 -0
- package/test/threeds-oob.test.ts +90 -0
- package/test/threeds.test.ts +55 -0
- package/test/wallet.test.ts +62 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,2244 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cardholder API
|
|
5
|
+
* Endpoints for doing various actions connected to the Cardholder entity. All date-time fields adhere to the ISO 8601 standard unless specified otherwise. For example: 2024-05-31T06:55:17Z
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: info@enfuce.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface Address
|
|
30
|
+
*/
|
|
31
|
+
export interface Address {
|
|
32
|
+
/**
|
|
33
|
+
* First line of address.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Address
|
|
36
|
+
*/
|
|
37
|
+
'address1': string;
|
|
38
|
+
/**
|
|
39
|
+
* Second line of address. Any string without trailing or leading whitespaces, or an empty string.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Address
|
|
42
|
+
*/
|
|
43
|
+
'address2'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Third line of address. Any string without trailing or leading whitespaces, or an empty string.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Address
|
|
48
|
+
*/
|
|
49
|
+
'address3'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Fourth line of the address. Any string without trailing or leading whitespaces, or an empty string.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Address
|
|
54
|
+
*/
|
|
55
|
+
'address4'?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Address
|
|
60
|
+
*/
|
|
61
|
+
'city': string;
|
|
62
|
+
/**
|
|
63
|
+
* A valid ISO-3166-1 alpha-3 country code.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Address
|
|
66
|
+
*/
|
|
67
|
+
'country': string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Address
|
|
72
|
+
*/
|
|
73
|
+
'region'?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Address
|
|
78
|
+
*/
|
|
79
|
+
'zipCode': string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
* @interface AddressResponse
|
|
85
|
+
*/
|
|
86
|
+
export interface AddressResponse {
|
|
87
|
+
/**
|
|
88
|
+
* First line of address.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AddressResponse
|
|
91
|
+
*/
|
|
92
|
+
'address1': string;
|
|
93
|
+
/**
|
|
94
|
+
* Any string without trailing or leading whitespaces, or an empty string.
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof AddressResponse
|
|
97
|
+
*/
|
|
98
|
+
'address2'?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Any string without trailing or leading whitespaces, or an empty string.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof AddressResponse
|
|
103
|
+
*/
|
|
104
|
+
'address3'?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Any string without trailing or leading whitespaces, or an empty string.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof AddressResponse
|
|
109
|
+
*/
|
|
110
|
+
'address4'?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof AddressResponse
|
|
115
|
+
*/
|
|
116
|
+
'city': string;
|
|
117
|
+
/**
|
|
118
|
+
* A valid ISO-3166-1 alpha-3 country code.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof AddressResponse
|
|
121
|
+
*/
|
|
122
|
+
'country': string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof AddressResponse
|
|
127
|
+
*/
|
|
128
|
+
'region'?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof AddressResponse
|
|
133
|
+
*/
|
|
134
|
+
'zipCode': string;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The type of card defined by this card configuration.
|
|
138
|
+
* @export
|
|
139
|
+
* @enum {string}
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
export const CardConfigurationType = {
|
|
143
|
+
Debit: 'DEBIT',
|
|
144
|
+
Credit: 'CREDIT',
|
|
145
|
+
Combo: 'COMBO'
|
|
146
|
+
} as const;
|
|
147
|
+
|
|
148
|
+
export type CardConfigurationType = typeof CardConfigurationType[keyof typeof CardConfigurationType];
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 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
|
+
*/
|
|
156
|
+
|
|
157
|
+
export const CardDeliveryType = {
|
|
158
|
+
Mail: 'MAIL',
|
|
159
|
+
Courier: 'COURIER',
|
|
160
|
+
Custom1: 'CUSTOM_1',
|
|
161
|
+
Custom2: 'CUSTOM_2',
|
|
162
|
+
Custom3: 'CUSTOM_3',
|
|
163
|
+
Custom4: 'CUSTOM_4',
|
|
164
|
+
Custom5: 'CUSTOM_5'
|
|
165
|
+
} as const;
|
|
166
|
+
|
|
167
|
+
export type CardDeliveryType = typeof CardDeliveryType[keyof typeof CardDeliveryType];
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @export
|
|
173
|
+
* @interface CardResponse
|
|
174
|
+
*/
|
|
175
|
+
export interface CardResponse {
|
|
176
|
+
/**
|
|
177
|
+
* Unique identifier of a card.
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof CardResponse
|
|
180
|
+
*/
|
|
181
|
+
'id'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The date and time when the card was created.
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof CardResponse
|
|
186
|
+
*/
|
|
187
|
+
'createdAt'?: string;
|
|
188
|
+
/**
|
|
189
|
+
* The date and time when the object/entity was updated last time.
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof CardResponse
|
|
192
|
+
*/
|
|
193
|
+
'updatedAt'?: string;
|
|
194
|
+
/**
|
|
195
|
+
* The program ID associated with the card.
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof CardResponse
|
|
198
|
+
*/
|
|
199
|
+
'programId'?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Unique identifier of the cardholder associated with the card.
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof CardResponse
|
|
204
|
+
*/
|
|
205
|
+
'cardholderId'?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Unique identifier of the account associated with the card.
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof CardResponse
|
|
210
|
+
*/
|
|
211
|
+
'accountId'?: string;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {Plastic}
|
|
215
|
+
* @memberof CardResponse
|
|
216
|
+
*/
|
|
217
|
+
'plastic'?: Plastic;
|
|
218
|
+
/**
|
|
219
|
+
* Card versions ordered by sequence number ascending.
|
|
220
|
+
* @type {Array<CardVersion>}
|
|
221
|
+
* @memberof CardResponse
|
|
222
|
+
*/
|
|
223
|
+
'cardVersions'?: Array<CardVersion>;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {CardRole}
|
|
227
|
+
* @memberof CardResponse
|
|
228
|
+
*/
|
|
229
|
+
'role'?: CardRole;
|
|
230
|
+
/**
|
|
231
|
+
* Unique identifier of the main card. Populated if this card is part of a card application
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof CardResponse
|
|
234
|
+
*/
|
|
235
|
+
'mainCardId'?: string;
|
|
236
|
+
/**
|
|
237
|
+
* A unique code to identify the card configuration. Max character limit is 36.
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof CardResponse
|
|
240
|
+
*/
|
|
241
|
+
'cardConfigurationCode'?: string;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {CardConfigurationType}
|
|
245
|
+
* @memberof CardResponse
|
|
246
|
+
*/
|
|
247
|
+
'cardConfigurationType'?: CardConfigurationType;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {CardScheme}
|
|
251
|
+
* @memberof CardResponse
|
|
252
|
+
*/
|
|
253
|
+
'cardScheme'?: CardScheme;
|
|
254
|
+
/**
|
|
255
|
+
* A masked version of the primary account number
|
|
256
|
+
* @type {string}
|
|
257
|
+
* @memberof CardResponse
|
|
258
|
+
*/
|
|
259
|
+
'maskedPan'?: string;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @type {PinStatus}
|
|
263
|
+
* @memberof CardResponse
|
|
264
|
+
*/
|
|
265
|
+
'pinStatus'?: PinStatus;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @type {CardStatus}
|
|
269
|
+
* @memberof CardResponse
|
|
270
|
+
*/
|
|
271
|
+
'cardStatus'?: CardStatus;
|
|
272
|
+
/**
|
|
273
|
+
* A flag indicating whether automatic renewal is enabled or not.
|
|
274
|
+
* @type {boolean}
|
|
275
|
+
* @memberof CardResponse
|
|
276
|
+
*/
|
|
277
|
+
'automaticRenewal'?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* The digital layout code for the card. Max character limit is 36.
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof CardResponse
|
|
282
|
+
*/
|
|
283
|
+
'digitalLayoutCode'?: string;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {MultiApplicationProperties}
|
|
287
|
+
* @memberof CardResponse
|
|
288
|
+
*/
|
|
289
|
+
'multiApplicationProperties'?: MultiApplicationProperties;
|
|
290
|
+
/**
|
|
291
|
+
* The version number of the entity.
|
|
292
|
+
* @type {number}
|
|
293
|
+
* @memberof CardResponse
|
|
294
|
+
*/
|
|
295
|
+
'updateCount'?: number;
|
|
296
|
+
/**
|
|
297
|
+
* 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
|
+
*/
|
|
301
|
+
'additionalValues'?: { [key: string]: string; };
|
|
302
|
+
/**
|
|
303
|
+
* 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
|
+
*/
|
|
307
|
+
'feeConfigId'?: string | null;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* 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
|
+
*/
|
|
316
|
+
|
|
317
|
+
export const CardRole = {
|
|
318
|
+
MainCard: 'MAIN_CARD',
|
|
319
|
+
CardApplication: 'CARD_APPLICATION'
|
|
320
|
+
} as const;
|
|
321
|
+
|
|
322
|
+
export type CardRole = typeof CardRole[keyof typeof CardRole];
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @export
|
|
328
|
+
* @enum {string}
|
|
329
|
+
*/
|
|
330
|
+
|
|
331
|
+
export const CardScheme = {
|
|
332
|
+
Mastercard: 'MASTERCARD',
|
|
333
|
+
Visa: 'VISA'
|
|
334
|
+
} as const;
|
|
335
|
+
|
|
336
|
+
export type CardScheme = typeof CardScheme[keyof typeof CardScheme];
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* - 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
|
+
*/
|
|
344
|
+
|
|
345
|
+
export const CardStatus = {
|
|
346
|
+
Active: 'ACTIVE',
|
|
347
|
+
Blocked: 'BLOCKED',
|
|
348
|
+
BlockedSuspectedFraud: 'BLOCKED_SUSPECTED_FRAUD',
|
|
349
|
+
ClosedDueToFraud: 'CLOSED_DUE_TO_FRAUD',
|
|
350
|
+
ClosedLost: 'CLOSED_LOST',
|
|
351
|
+
ClosedStolen: 'CLOSED_STOLEN',
|
|
352
|
+
Closed: 'CLOSED',
|
|
353
|
+
ClosedExpired: 'CLOSED_EXPIRED'
|
|
354
|
+
} as const;
|
|
355
|
+
|
|
356
|
+
export type CardStatus = typeof CardStatus[keyof typeof CardStatus];
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @export
|
|
362
|
+
* @interface CardVersion
|
|
363
|
+
*/
|
|
364
|
+
export interface CardVersion {
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {CardVersionStatus}
|
|
368
|
+
* @memberof CardVersion
|
|
369
|
+
*/
|
|
370
|
+
'status'?: CardVersionStatus;
|
|
371
|
+
/**
|
|
372
|
+
* 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
|
+
*/
|
|
376
|
+
'expirationTime'?: string;
|
|
377
|
+
/**
|
|
378
|
+
* The date when the auto renewal occurs.
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @memberof CardVersion
|
|
381
|
+
*/
|
|
382
|
+
'renewalDate'?: string;
|
|
383
|
+
/**
|
|
384
|
+
* The sequence number of the card version, this value is also known as PSN (pan sequence number)
|
|
385
|
+
* @type {number}
|
|
386
|
+
* @memberof CardVersion
|
|
387
|
+
*/
|
|
388
|
+
'sequenceNumber'?: number;
|
|
389
|
+
/**
|
|
390
|
+
* The id of the key set used by this card version
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof CardVersion
|
|
393
|
+
*/
|
|
394
|
+
'keySetId'?: string;
|
|
395
|
+
/**
|
|
396
|
+
* The date and time when the card was created.
|
|
397
|
+
* @type {string}
|
|
398
|
+
* @memberof CardVersion
|
|
399
|
+
*/
|
|
400
|
+
'createdAt'?: string;
|
|
401
|
+
/**
|
|
402
|
+
* The date and time when the object/entity was updated last time.
|
|
403
|
+
* @type {string}
|
|
404
|
+
* @memberof CardVersion
|
|
405
|
+
*/
|
|
406
|
+
'updatedAt'?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* - 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
|
+
*/
|
|
415
|
+
|
|
416
|
+
export const CardVersionStatus = {
|
|
417
|
+
Active: 'ACTIVE',
|
|
418
|
+
Initial: 'INITIAL',
|
|
419
|
+
Closed: 'CLOSED'
|
|
420
|
+
} as const;
|
|
421
|
+
|
|
422
|
+
export type CardVersionStatus = typeof CardVersionStatus[keyof typeof CardVersionStatus];
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @export
|
|
428
|
+
* @interface CardholderResponse
|
|
429
|
+
*/
|
|
430
|
+
export interface CardholderResponse {
|
|
431
|
+
/**
|
|
432
|
+
* Enfuce generated unique identifier of the cardholder.
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @memberof CardholderResponse
|
|
435
|
+
*/
|
|
436
|
+
'id': string;
|
|
437
|
+
/**
|
|
438
|
+
* 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
|
+
*/
|
|
442
|
+
'customerNumber': string;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @type {Locale}
|
|
446
|
+
* @memberof CardholderResponse
|
|
447
|
+
*/
|
|
448
|
+
'locale': Locale;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {AddressResponse}
|
|
452
|
+
* @memberof CardholderResponse
|
|
453
|
+
*/
|
|
454
|
+
'address'?: AddressResponse;
|
|
455
|
+
/**
|
|
456
|
+
* 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
|
+
*/
|
|
460
|
+
'mobileNumber'?: string | null;
|
|
461
|
+
/**
|
|
462
|
+
* First name of the cardholder. Max character limit is 256.
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof CardholderResponse
|
|
465
|
+
*/
|
|
466
|
+
'firstName'?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Middle name of the cardholder. Max character limit is 256.
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof CardholderResponse
|
|
471
|
+
*/
|
|
472
|
+
'middleName'?: string | null;
|
|
473
|
+
/**
|
|
474
|
+
* Last name of the cardholder. Max character limit is 256.
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof CardholderResponse
|
|
477
|
+
*/
|
|
478
|
+
'lastName'?: string;
|
|
479
|
+
/**
|
|
480
|
+
* The date and time when the card was created.
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof CardholderResponse
|
|
483
|
+
*/
|
|
484
|
+
'createdAt'?: string;
|
|
485
|
+
/**
|
|
486
|
+
* The date and time when the object/entity was updated last time.
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof CardholderResponse
|
|
489
|
+
*/
|
|
490
|
+
'updatedAt'?: string | null;
|
|
491
|
+
/**
|
|
492
|
+
* The version number of the entity.
|
|
493
|
+
* @type {number}
|
|
494
|
+
* @memberof CardholderResponse
|
|
495
|
+
*/
|
|
496
|
+
'updateCount'?: number;
|
|
497
|
+
/**
|
|
498
|
+
* Email address of the cardholder. Max character limit is 256.
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof CardholderResponse
|
|
501
|
+
*/
|
|
502
|
+
'email'?: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* 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
|
+
*/
|
|
508
|
+
'taxId'?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* 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
|
+
*/
|
|
514
|
+
'dateOfBirth'?: string | null;
|
|
515
|
+
/**
|
|
516
|
+
* 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
|
+
*/
|
|
526
|
+
'riskScore'?: RiskScore | null;
|
|
527
|
+
/**
|
|
528
|
+
* 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
|
+
*/
|
|
532
|
+
'birthCountry'?: CountryCodesAlpha3 | null;
|
|
533
|
+
/**
|
|
534
|
+
* 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
|
+
*/
|
|
538
|
+
'identificationNumber'?: string | null;
|
|
539
|
+
}
|
|
540
|
+
|
|
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 = {
|
|
549
|
+
Abw: 'ABW',
|
|
550
|
+
Afg: 'AFG',
|
|
551
|
+
Ago: 'AGO',
|
|
552
|
+
Aia: 'AIA',
|
|
553
|
+
Ala: 'ALA',
|
|
554
|
+
Alb: 'ALB',
|
|
555
|
+
And: 'AND',
|
|
556
|
+
Are: 'ARE',
|
|
557
|
+
Arg: 'ARG',
|
|
558
|
+
Arm: 'ARM',
|
|
559
|
+
Asm: 'ASM',
|
|
560
|
+
Ata: 'ATA',
|
|
561
|
+
Atf: 'ATF',
|
|
562
|
+
Atg: 'ATG',
|
|
563
|
+
Aus: 'AUS',
|
|
564
|
+
Aut: 'AUT',
|
|
565
|
+
Aze: 'AZE',
|
|
566
|
+
Bdi: 'BDI',
|
|
567
|
+
Bel: 'BEL',
|
|
568
|
+
Ben: 'BEN',
|
|
569
|
+
Bes: 'BES',
|
|
570
|
+
Bfa: 'BFA',
|
|
571
|
+
Bgd: 'BGD',
|
|
572
|
+
Bgr: 'BGR',
|
|
573
|
+
Bhr: 'BHR',
|
|
574
|
+
Bhs: 'BHS',
|
|
575
|
+
Bih: 'BIH',
|
|
576
|
+
Blm: 'BLM',
|
|
577
|
+
Blr: 'BLR',
|
|
578
|
+
Blz: 'BLZ',
|
|
579
|
+
Bmu: 'BMU',
|
|
580
|
+
Bol: 'BOL',
|
|
581
|
+
Bra: 'BRA',
|
|
582
|
+
Brb: 'BRB',
|
|
583
|
+
Brn: 'BRN',
|
|
584
|
+
Btn: 'BTN',
|
|
585
|
+
Bvt: 'BVT',
|
|
586
|
+
Bwa: 'BWA',
|
|
587
|
+
Caf: 'CAF',
|
|
588
|
+
Can: 'CAN',
|
|
589
|
+
Cck: 'CCK',
|
|
590
|
+
Che: 'CHE',
|
|
591
|
+
Chl: 'CHL',
|
|
592
|
+
Chn: 'CHN',
|
|
593
|
+
Civ: 'CIV',
|
|
594
|
+
Cmr: 'CMR',
|
|
595
|
+
Cod: 'COD',
|
|
596
|
+
Cog: 'COG',
|
|
597
|
+
Cok: 'COK',
|
|
598
|
+
Col: 'COL',
|
|
599
|
+
Com: 'COM',
|
|
600
|
+
Cpv: 'CPV',
|
|
601
|
+
Cri: 'CRI',
|
|
602
|
+
Cub: 'CUB',
|
|
603
|
+
Cuw: 'CUW',
|
|
604
|
+
Cxr: 'CXR',
|
|
605
|
+
Cym: 'CYM',
|
|
606
|
+
Cyp: 'CYP',
|
|
607
|
+
Cze: 'CZE',
|
|
608
|
+
Deu: 'DEU',
|
|
609
|
+
Dji: 'DJI',
|
|
610
|
+
Dma: 'DMA',
|
|
611
|
+
Dnk: 'DNK',
|
|
612
|
+
Dom: 'DOM',
|
|
613
|
+
Dza: 'DZA',
|
|
614
|
+
Ecu: 'ECU',
|
|
615
|
+
Egy: 'EGY',
|
|
616
|
+
Eri: 'ERI',
|
|
617
|
+
Esh: 'ESH',
|
|
618
|
+
Esp: 'ESP',
|
|
619
|
+
Est: 'EST',
|
|
620
|
+
Eth: 'ETH',
|
|
621
|
+
Fin: 'FIN',
|
|
622
|
+
Fji: 'FJI',
|
|
623
|
+
Flk: 'FLK',
|
|
624
|
+
Fra: 'FRA',
|
|
625
|
+
Fro: 'FRO',
|
|
626
|
+
Fsm: 'FSM',
|
|
627
|
+
Gab: 'GAB',
|
|
628
|
+
Gbr: 'GBR',
|
|
629
|
+
Geo: 'GEO',
|
|
630
|
+
Ggy: 'GGY',
|
|
631
|
+
Gha: 'GHA',
|
|
632
|
+
Gib: 'GIB',
|
|
633
|
+
Gin: 'GIN',
|
|
634
|
+
Glp: 'GLP',
|
|
635
|
+
Gmb: 'GMB',
|
|
636
|
+
Gnb: 'GNB',
|
|
637
|
+
Gnq: 'GNQ',
|
|
638
|
+
Grc: 'GRC',
|
|
639
|
+
Grd: 'GRD',
|
|
640
|
+
Grl: 'GRL',
|
|
641
|
+
Gtm: 'GTM',
|
|
642
|
+
Guf: 'GUF',
|
|
643
|
+
Gum: 'GUM',
|
|
644
|
+
Guy: 'GUY',
|
|
645
|
+
Hkg: 'HKG',
|
|
646
|
+
Hmd: 'HMD',
|
|
647
|
+
Hnd: 'HND',
|
|
648
|
+
Hrv: 'HRV',
|
|
649
|
+
Hti: 'HTI',
|
|
650
|
+
Hun: 'HUN',
|
|
651
|
+
Idn: 'IDN',
|
|
652
|
+
Imn: 'IMN',
|
|
653
|
+
Ind: 'IND',
|
|
654
|
+
Iot: 'IOT',
|
|
655
|
+
Irl: 'IRL',
|
|
656
|
+
Irn: 'IRN',
|
|
657
|
+
Irq: 'IRQ',
|
|
658
|
+
Isl: 'ISL',
|
|
659
|
+
Isr: 'ISR',
|
|
660
|
+
Ita: 'ITA',
|
|
661
|
+
Jam: 'JAM',
|
|
662
|
+
Jey: 'JEY',
|
|
663
|
+
Jor: 'JOR',
|
|
664
|
+
Jpn: 'JPN',
|
|
665
|
+
Kaz: 'KAZ',
|
|
666
|
+
Ken: 'KEN',
|
|
667
|
+
Kgz: 'KGZ',
|
|
668
|
+
Khm: 'KHM',
|
|
669
|
+
Kir: 'KIR',
|
|
670
|
+
Kna: 'KNA',
|
|
671
|
+
Kor: 'KOR',
|
|
672
|
+
Kwt: 'KWT',
|
|
673
|
+
Lao: 'LAO',
|
|
674
|
+
Lbn: 'LBN',
|
|
675
|
+
Lbr: 'LBR',
|
|
676
|
+
Lby: 'LBY',
|
|
677
|
+
Lca: 'LCA',
|
|
678
|
+
Lie: 'LIE',
|
|
679
|
+
Lka: 'LKA',
|
|
680
|
+
Lso: 'LSO',
|
|
681
|
+
Ltu: 'LTU',
|
|
682
|
+
Lux: 'LUX',
|
|
683
|
+
Lva: 'LVA',
|
|
684
|
+
Mac: 'MAC',
|
|
685
|
+
Maf: 'MAF',
|
|
686
|
+
Mar: 'MAR',
|
|
687
|
+
Mco: 'MCO',
|
|
688
|
+
Mda: 'MDA',
|
|
689
|
+
Mdg: 'MDG',
|
|
690
|
+
Mdv: 'MDV',
|
|
691
|
+
Mex: 'MEX',
|
|
692
|
+
Mhl: 'MHL',
|
|
693
|
+
Mkd: 'MKD',
|
|
694
|
+
Mli: 'MLI',
|
|
695
|
+
Mlt: 'MLT',
|
|
696
|
+
Mmr: 'MMR',
|
|
697
|
+
Mne: 'MNE',
|
|
698
|
+
Mng: 'MNG',
|
|
699
|
+
Mnp: 'MNP',
|
|
700
|
+
Moz: 'MOZ',
|
|
701
|
+
Mrt: 'MRT',
|
|
702
|
+
Msr: 'MSR',
|
|
703
|
+
Mtq: 'MTQ',
|
|
704
|
+
Mus: 'MUS',
|
|
705
|
+
Mwi: 'MWI',
|
|
706
|
+
Mys: 'MYS',
|
|
707
|
+
Myt: 'MYT',
|
|
708
|
+
Nam: 'NAM',
|
|
709
|
+
Ncl: 'NCL',
|
|
710
|
+
Ner: 'NER',
|
|
711
|
+
Nfk: 'NFK',
|
|
712
|
+
Nga: 'NGA',
|
|
713
|
+
Nic: 'NIC',
|
|
714
|
+
Niu: 'NIU',
|
|
715
|
+
Nld: 'NLD',
|
|
716
|
+
Nor: 'NOR',
|
|
717
|
+
Npl: 'NPL',
|
|
718
|
+
Nru: 'NRU',
|
|
719
|
+
Nzl: 'NZL',
|
|
720
|
+
Omn: 'OMN',
|
|
721
|
+
Pak: 'PAK',
|
|
722
|
+
Pan: 'PAN',
|
|
723
|
+
Pcn: 'PCN',
|
|
724
|
+
Per: 'PER',
|
|
725
|
+
Phl: 'PHL',
|
|
726
|
+
Plw: 'PLW',
|
|
727
|
+
Png: 'PNG',
|
|
728
|
+
Pol: 'POL',
|
|
729
|
+
Pri: 'PRI',
|
|
730
|
+
Prk: 'PRK',
|
|
731
|
+
Prt: 'PRT',
|
|
732
|
+
Pry: 'PRY',
|
|
733
|
+
Pse: 'PSE',
|
|
734
|
+
Pyf: 'PYF',
|
|
735
|
+
Qat: 'QAT',
|
|
736
|
+
Reu: 'REU',
|
|
737
|
+
Rou: 'ROU',
|
|
738
|
+
Rus: 'RUS',
|
|
739
|
+
Rwa: 'RWA',
|
|
740
|
+
Sau: 'SAU',
|
|
741
|
+
Sdn: 'SDN',
|
|
742
|
+
Sen: 'SEN',
|
|
743
|
+
Sgp: 'SGP',
|
|
744
|
+
Sgs: 'SGS',
|
|
745
|
+
Shn: 'SHN',
|
|
746
|
+
Sjm: 'SJM',
|
|
747
|
+
Slb: 'SLB',
|
|
748
|
+
Sle: 'SLE',
|
|
749
|
+
Slv: 'SLV',
|
|
750
|
+
Smr: 'SMR',
|
|
751
|
+
Som: 'SOM',
|
|
752
|
+
Spm: 'SPM',
|
|
753
|
+
Srb: 'SRB',
|
|
754
|
+
Ssd: 'SSD',
|
|
755
|
+
Stp: 'STP',
|
|
756
|
+
Sur: 'SUR',
|
|
757
|
+
Svk: 'SVK',
|
|
758
|
+
Svn: 'SVN',
|
|
759
|
+
Swe: 'SWE',
|
|
760
|
+
Swz: 'SWZ',
|
|
761
|
+
Sxm: 'SXM',
|
|
762
|
+
Syc: 'SYC',
|
|
763
|
+
Syr: 'SYR',
|
|
764
|
+
Tca: 'TCA',
|
|
765
|
+
Tcd: 'TCD',
|
|
766
|
+
Tgo: 'TGO',
|
|
767
|
+
Tha: 'THA',
|
|
768
|
+
Tjk: 'TJK',
|
|
769
|
+
Tkl: 'TKL',
|
|
770
|
+
Tkm: 'TKM',
|
|
771
|
+
Tls: 'TLS',
|
|
772
|
+
Ton: 'TON',
|
|
773
|
+
Tto: 'TTO',
|
|
774
|
+
Tun: 'TUN',
|
|
775
|
+
Tur: 'TUR',
|
|
776
|
+
Tuv: 'TUV',
|
|
777
|
+
Twn: 'TWN',
|
|
778
|
+
Tza: 'TZA',
|
|
779
|
+
Uga: 'UGA',
|
|
780
|
+
Ukr: 'UKR',
|
|
781
|
+
Umi: 'UMI',
|
|
782
|
+
Ury: 'URY',
|
|
783
|
+
Usa: 'USA',
|
|
784
|
+
Uzb: 'UZB',
|
|
785
|
+
Vat: 'VAT',
|
|
786
|
+
Vct: 'VCT',
|
|
787
|
+
Ven: 'VEN',
|
|
788
|
+
Vgb: 'VGB',
|
|
789
|
+
Vir: 'VIR',
|
|
790
|
+
Vnm: 'VNM',
|
|
791
|
+
Vut: 'VUT',
|
|
792
|
+
Wlf: 'WLF',
|
|
793
|
+
Wsm: 'WSM',
|
|
794
|
+
Yem: 'YEM',
|
|
795
|
+
Zaf: 'ZAF',
|
|
796
|
+
Zmb: 'ZMB',
|
|
797
|
+
Zwe: 'ZWE',
|
|
798
|
+
Xkx: 'XKX'
|
|
799
|
+
} as const;
|
|
800
|
+
|
|
801
|
+
export type CountryCodesAlpha3 = typeof CountryCodesAlpha3[keyof typeof CountryCodesAlpha3];
|
|
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
|
+
|
|
896
|
+
|
|
897
|
+
/**
|
|
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}
|
|
950
|
+
*/
|
|
951
|
+
|
|
952
|
+
export const Locale = {
|
|
953
|
+
AfZa: 'af-ZA',
|
|
954
|
+
ArAe: 'ar-AE',
|
|
955
|
+
ArBh: 'ar-BH',
|
|
956
|
+
ArDz: 'ar-DZ',
|
|
957
|
+
ArEg: 'ar-EG',
|
|
958
|
+
ArIq: 'ar-IQ',
|
|
959
|
+
ArJo: 'ar-JO',
|
|
960
|
+
ArKw: 'ar-KW',
|
|
961
|
+
ArLb: 'ar-LB',
|
|
962
|
+
ArLy: 'ar-LY',
|
|
963
|
+
ArMa: 'ar-MA',
|
|
964
|
+
ArOm: 'ar-OM',
|
|
965
|
+
ArQa: 'ar-QA',
|
|
966
|
+
ArSa: 'ar-SA',
|
|
967
|
+
ArSy: 'ar-SY',
|
|
968
|
+
ArTn: 'ar-TN',
|
|
969
|
+
ArYe: 'ar-YE',
|
|
970
|
+
AzAz: 'az-AZ',
|
|
971
|
+
BeBy: 'be-BY',
|
|
972
|
+
BgBg: 'bg-BG',
|
|
973
|
+
BnIn: 'bn-IN',
|
|
974
|
+
BsBa: 'bs-BA',
|
|
975
|
+
CaEs: 'ca-ES',
|
|
976
|
+
CsCz: 'cs-CZ',
|
|
977
|
+
CyGb: 'cy-GB',
|
|
978
|
+
DaDk: 'da-DK',
|
|
979
|
+
DeAt: 'de-AT',
|
|
980
|
+
DeCh: 'de-CH',
|
|
981
|
+
DeDe: 'de-DE',
|
|
982
|
+
DeLi: 'de-LI',
|
|
983
|
+
DeNl: 'de-NL',
|
|
984
|
+
ElGr: 'el-GR',
|
|
985
|
+
EnAu: 'en-AU',
|
|
986
|
+
EnBz: 'en-BZ',
|
|
987
|
+
EnCa: 'en-CA',
|
|
988
|
+
EnGb: 'en-GB',
|
|
989
|
+
EnIe: 'en-IE',
|
|
990
|
+
EnJm: 'en-JM',
|
|
991
|
+
EnMt: 'en-MT',
|
|
992
|
+
EnNz: 'en-NZ',
|
|
993
|
+
EnPh: 'en-PH',
|
|
994
|
+
EnTt: 'en-TT',
|
|
995
|
+
EnUs: 'en-US',
|
|
996
|
+
EnVi: 'en-VI',
|
|
997
|
+
EnZa: 'en-ZA',
|
|
998
|
+
EnZw: 'en-ZW',
|
|
999
|
+
EsAr: 'es-AR',
|
|
1000
|
+
EsBo: 'es-BO',
|
|
1001
|
+
EsCl: 'es-CL',
|
|
1002
|
+
EsCo: 'es-CO',
|
|
1003
|
+
EsCr: 'es-CR',
|
|
1004
|
+
EsDo: 'es-DO',
|
|
1005
|
+
EsEc: 'es-EC',
|
|
1006
|
+
EsEs: 'es-ES',
|
|
1007
|
+
EsGt: 'es-GT',
|
|
1008
|
+
EsHn: 'es-HN',
|
|
1009
|
+
EsMx: 'es-MX',
|
|
1010
|
+
EsNi: 'es-NI',
|
|
1011
|
+
EsPa: 'es-PA',
|
|
1012
|
+
EsPe: 'es-PE',
|
|
1013
|
+
EsPr: 'es-PR',
|
|
1014
|
+
EsPy: 'es-PY',
|
|
1015
|
+
EsSv: 'es-SV',
|
|
1016
|
+
EsUy: 'es-UY',
|
|
1017
|
+
EsVe: 'es-VE',
|
|
1018
|
+
EtEe: 'et-EE',
|
|
1019
|
+
EuEs: 'eu-ES',
|
|
1020
|
+
FaIr: 'fa-IR',
|
|
1021
|
+
FiFi: 'fi-FI',
|
|
1022
|
+
FoFo: 'fo-FO',
|
|
1023
|
+
FrBe: 'fr-BE',
|
|
1024
|
+
FrCa: 'fr-CA',
|
|
1025
|
+
FrCh: 'fr-CH',
|
|
1026
|
+
FrFr: 'fr-FR',
|
|
1027
|
+
FrMc: 'fr-MC',
|
|
1028
|
+
FrNl: 'fr-NL',
|
|
1029
|
+
GaIe: 'ga-IE',
|
|
1030
|
+
GlEs: 'gl-ES',
|
|
1031
|
+
GuIn: 'gu-IN',
|
|
1032
|
+
HeIl: 'he-IL',
|
|
1033
|
+
HiIn: 'hi-IN',
|
|
1034
|
+
HrHr: 'hr-HR',
|
|
1035
|
+
HuHu: 'hu-HU',
|
|
1036
|
+
HyAm: 'hy-AM',
|
|
1037
|
+
IdId: 'id-ID',
|
|
1038
|
+
IsIs: 'is-IS',
|
|
1039
|
+
ItCh: 'it-CH',
|
|
1040
|
+
ItIt: 'it-IT',
|
|
1041
|
+
JaJp: 'ja-JP',
|
|
1042
|
+
KaGe: 'ka-GE',
|
|
1043
|
+
KkKz: 'kk-KZ',
|
|
1044
|
+
KlGl: 'kl-GL',
|
|
1045
|
+
KnIn: 'kn-IN',
|
|
1046
|
+
KoKr: 'ko-KR',
|
|
1047
|
+
KokIn: 'kok-IN',
|
|
1048
|
+
LtLt: 'lt-LT',
|
|
1049
|
+
LvLv: 'lv-LV',
|
|
1050
|
+
MkMk: 'mk-MK',
|
|
1051
|
+
MlIn: 'ml-IN',
|
|
1052
|
+
MnMn: 'mn-MN',
|
|
1053
|
+
MrIn: 'mr-IN',
|
|
1054
|
+
MsBn: 'ms-BN',
|
|
1055
|
+
MsMy: 'ms-MY',
|
|
1056
|
+
MtMt: 'mt-MT',
|
|
1057
|
+
NbNo: 'nb-NO',
|
|
1058
|
+
NlBe: 'nl-BE',
|
|
1059
|
+
NlNl: 'nl-NL',
|
|
1060
|
+
NnNo: 'nn-NO',
|
|
1061
|
+
NoNo: 'no-NO',
|
|
1062
|
+
PaIn: 'pa-IN',
|
|
1063
|
+
PlPl: 'pl-PL',
|
|
1064
|
+
PtBr: 'pt-BR',
|
|
1065
|
+
PtPt: 'pt-PT',
|
|
1066
|
+
RoRo: 'ro-RO',
|
|
1067
|
+
RuRu: 'ru-RU',
|
|
1068
|
+
SeNo: 'se-NO',
|
|
1069
|
+
SkSk: 'sk-SK',
|
|
1070
|
+
SlSi: 'sl-SI',
|
|
1071
|
+
SqAl: 'sq-AL',
|
|
1072
|
+
SrBa: 'sr-BA',
|
|
1073
|
+
SrCs: 'sr-CS',
|
|
1074
|
+
SvFi: 'sv-FI',
|
|
1075
|
+
SvSe: 'sv-SE',
|
|
1076
|
+
SwKe: 'sw-KE',
|
|
1077
|
+
SyrSy: 'syr-SY',
|
|
1078
|
+
TaIn: 'ta-IN',
|
|
1079
|
+
TeIn: 'te-IN',
|
|
1080
|
+
ThTh: 'th-TH',
|
|
1081
|
+
TnZa: 'tn-ZA',
|
|
1082
|
+
TrTr: 'tr-TR',
|
|
1083
|
+
UkUa: 'uk-UA',
|
|
1084
|
+
UzUz: 'uz-UZ',
|
|
1085
|
+
ViVn: 'vi-VN',
|
|
1086
|
+
XhZa: 'xh-ZA',
|
|
1087
|
+
ZhCn: 'zh-CN',
|
|
1088
|
+
ZhHk: 'zh-HK',
|
|
1089
|
+
ZhMo: 'zh-MO',
|
|
1090
|
+
ZhSg: 'zh-SG',
|
|
1091
|
+
ZhTw: 'zh-TW',
|
|
1092
|
+
ZuZa: 'zu-ZA',
|
|
1093
|
+
AfZa2: 'af_ZA',
|
|
1094
|
+
ArAe2: 'ar_AE',
|
|
1095
|
+
ArBh2: 'ar_BH',
|
|
1096
|
+
ArDz2: 'ar_DZ',
|
|
1097
|
+
ArEg2: 'ar_EG',
|
|
1098
|
+
ArIq2: 'ar_IQ',
|
|
1099
|
+
ArJo2: 'ar_JO',
|
|
1100
|
+
ArKw2: 'ar_KW',
|
|
1101
|
+
ArLb2: 'ar_LB',
|
|
1102
|
+
ArLy2: 'ar_LY',
|
|
1103
|
+
ArMa2: 'ar_MA',
|
|
1104
|
+
ArOm2: 'ar_OM',
|
|
1105
|
+
ArQa2: 'ar_QA',
|
|
1106
|
+
ArSa2: 'ar_SA',
|
|
1107
|
+
ArSy2: 'ar_SY',
|
|
1108
|
+
ArTn2: 'ar_TN',
|
|
1109
|
+
ArYe2: 'ar_YE',
|
|
1110
|
+
AzAz2: 'az_AZ',
|
|
1111
|
+
BeBy2: 'be_BY',
|
|
1112
|
+
BgBg2: 'bg_BG',
|
|
1113
|
+
BnIn2: 'bn_IN',
|
|
1114
|
+
BsBa2: 'bs_BA',
|
|
1115
|
+
CaEs2: 'ca_ES',
|
|
1116
|
+
CsCz2: 'cs_CZ',
|
|
1117
|
+
CyGb2: 'cy_GB',
|
|
1118
|
+
DaDk2: 'da_DK',
|
|
1119
|
+
DeAt2: 'de_AT',
|
|
1120
|
+
DeCh2: 'de_CH',
|
|
1121
|
+
DeDe2: 'de_DE',
|
|
1122
|
+
DeLi2: 'de_LI',
|
|
1123
|
+
DeNl2: 'de_NL',
|
|
1124
|
+
ElGr2: 'el_GR',
|
|
1125
|
+
EnAu2: 'en_AU',
|
|
1126
|
+
EnBz2: 'en_BZ',
|
|
1127
|
+
EnCa2: 'en_CA',
|
|
1128
|
+
EnGb2: 'en_GB',
|
|
1129
|
+
EnIe2: 'en_IE',
|
|
1130
|
+
EnJm2: 'en_JM',
|
|
1131
|
+
EnMt2: 'en_MT',
|
|
1132
|
+
EnNz2: 'en_NZ',
|
|
1133
|
+
EnPh2: 'en_PH',
|
|
1134
|
+
EnTt2: 'en_TT',
|
|
1135
|
+
EnUs2: 'en_US',
|
|
1136
|
+
EnVi2: 'en_VI',
|
|
1137
|
+
EnZa2: 'en_ZA',
|
|
1138
|
+
EnZw2: 'en_ZW',
|
|
1139
|
+
EsAr2: 'es_AR',
|
|
1140
|
+
EsBo2: 'es_BO',
|
|
1141
|
+
EsCl2: 'es_CL',
|
|
1142
|
+
EsCo2: 'es_CO',
|
|
1143
|
+
EsCr2: 'es_CR',
|
|
1144
|
+
EsDo2: 'es_DO',
|
|
1145
|
+
EsEc2: 'es_EC',
|
|
1146
|
+
EsEs2: 'es_ES',
|
|
1147
|
+
EsGt2: 'es_GT',
|
|
1148
|
+
EsHn2: 'es_HN',
|
|
1149
|
+
EsMx2: 'es_MX',
|
|
1150
|
+
EsNi2: 'es_NI',
|
|
1151
|
+
EsPa2: 'es_PA',
|
|
1152
|
+
EsPe2: 'es_PE',
|
|
1153
|
+
EsPr2: 'es_PR',
|
|
1154
|
+
EsPy2: 'es_PY',
|
|
1155
|
+
EsSv2: 'es_SV',
|
|
1156
|
+
EsUy2: 'es_UY',
|
|
1157
|
+
EsVe2: 'es_VE',
|
|
1158
|
+
EtEe2: 'et_EE',
|
|
1159
|
+
EuEs2: 'eu_ES',
|
|
1160
|
+
FaIr2: 'fa_IR',
|
|
1161
|
+
FiFi2: 'fi_FI',
|
|
1162
|
+
FoFo2: 'fo_FO',
|
|
1163
|
+
FrBe2: 'fr_BE',
|
|
1164
|
+
FrCa2: 'fr_CA',
|
|
1165
|
+
FrCh2: 'fr_CH',
|
|
1166
|
+
FrFr2: 'fr_FR',
|
|
1167
|
+
FrMc2: 'fr_MC',
|
|
1168
|
+
FrNl2: 'fr_NL',
|
|
1169
|
+
GaIe2: 'ga_IE',
|
|
1170
|
+
GlEs2: 'gl_ES',
|
|
1171
|
+
GuIn2: 'gu_IN',
|
|
1172
|
+
HeIl2: 'he_IL',
|
|
1173
|
+
HiIn2: 'hi_IN',
|
|
1174
|
+
HrHr2: 'hr_HR',
|
|
1175
|
+
HuHu2: 'hu_HU',
|
|
1176
|
+
HyAm2: 'hy_AM',
|
|
1177
|
+
IdId2: 'id_ID',
|
|
1178
|
+
IsIs2: 'is_IS',
|
|
1179
|
+
ItCh2: 'it_CH',
|
|
1180
|
+
ItIt2: 'it_IT',
|
|
1181
|
+
JaJp2: 'ja_JP',
|
|
1182
|
+
KaGe2: 'ka_GE',
|
|
1183
|
+
KkKz2: 'kk_KZ',
|
|
1184
|
+
KlGl2: 'kl_GL',
|
|
1185
|
+
KnIn2: 'kn_IN',
|
|
1186
|
+
KoKr2: 'ko_KR',
|
|
1187
|
+
KokIn2: 'kok_IN',
|
|
1188
|
+
LtLt2: 'lt_LT',
|
|
1189
|
+
LvLv2: 'lv_LV',
|
|
1190
|
+
MkMk2: 'mk_MK',
|
|
1191
|
+
MlIn2: 'ml_IN',
|
|
1192
|
+
MnMn2: 'mn_MN',
|
|
1193
|
+
MrIn2: 'mr_IN',
|
|
1194
|
+
MsBn2: 'ms_BN',
|
|
1195
|
+
MsMy2: 'ms_MY',
|
|
1196
|
+
MtMt2: 'mt_MT',
|
|
1197
|
+
NbNo2: 'nb_NO',
|
|
1198
|
+
NlBe2: 'nl_BE',
|
|
1199
|
+
NlNl2: 'nl_NL',
|
|
1200
|
+
NnNo2: 'nn_NO',
|
|
1201
|
+
NoNo2: 'no_NO',
|
|
1202
|
+
PaIn2: 'pa_IN',
|
|
1203
|
+
PlPl2: 'pl_PL',
|
|
1204
|
+
PtBr2: 'pt_BR',
|
|
1205
|
+
PtPt2: 'pt_PT',
|
|
1206
|
+
RoRo2: 'ro_RO',
|
|
1207
|
+
RuRu2: 'ru_RU',
|
|
1208
|
+
SeNo2: 'se_NO',
|
|
1209
|
+
SkSk2: 'sk_SK',
|
|
1210
|
+
SlSi2: 'sl_SI',
|
|
1211
|
+
SqAl2: 'sq_AL',
|
|
1212
|
+
SrBa2: 'sr_BA',
|
|
1213
|
+
SrCs2: 'sr_CS',
|
|
1214
|
+
SvFi2: 'sv_FI',
|
|
1215
|
+
SvSe2: 'sv_SE',
|
|
1216
|
+
SwKe2: 'sw_KE',
|
|
1217
|
+
SyrSy2: 'syr_SY',
|
|
1218
|
+
TaIn2: 'ta_IN',
|
|
1219
|
+
TeIn2: 'te_IN',
|
|
1220
|
+
ThTh2: 'th_TH',
|
|
1221
|
+
TnZa2: 'tn_ZA',
|
|
1222
|
+
TrTr2: 'tr_TR',
|
|
1223
|
+
UkUa2: 'uk_UA',
|
|
1224
|
+
UzUz2: 'uz_UZ',
|
|
1225
|
+
ViVn2: 'vi_VN',
|
|
1226
|
+
XhZa2: 'xh_ZA',
|
|
1227
|
+
ZhCn2: 'zh_CN',
|
|
1228
|
+
ZhHk2: 'zh_HK',
|
|
1229
|
+
ZhMo2: 'zh_MO',
|
|
1230
|
+
ZhSg2: 'zh_SG',
|
|
1231
|
+
ZhTw2: 'zh_TW',
|
|
1232
|
+
ZuZa2: 'zu_ZA'
|
|
1233
|
+
} as const;
|
|
1234
|
+
|
|
1235
|
+
export type Locale = typeof Locale[keyof typeof Locale];
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @export
|
|
1241
|
+
* @interface MultiApplicationProperties
|
|
1242
|
+
*/
|
|
1243
|
+
export interface MultiApplicationProperties {
|
|
1244
|
+
/**
|
|
1245
|
+
* 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
|
+
*/
|
|
1249
|
+
'applicationName'?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* The index of the application
|
|
1252
|
+
* @type {number}
|
|
1253
|
+
* @memberof MultiApplicationProperties
|
|
1254
|
+
*/
|
|
1255
|
+
'applicationIndex'?: number;
|
|
1256
|
+
/**
|
|
1257
|
+
* 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
|
+
*/
|
|
1261
|
+
'contactPriorityLevel'?: number;
|
|
1262
|
+
/**
|
|
1263
|
+
* 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
|
+
*/
|
|
1267
|
+
'contactlessPriorityLevel'?: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* 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
|
+
*/
|
|
1273
|
+
'printed'?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* 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
|
+
*/
|
|
1279
|
+
'chipEnabled'?: boolean;
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* @type NationalityInner
|
|
1283
|
+
* @export
|
|
1284
|
+
*/
|
|
1285
|
+
export type NationalityInner = CountryCodesAlpha3 | string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @export
|
|
1290
|
+
* @interface PaginatedCardResponse
|
|
1291
|
+
*/
|
|
1292
|
+
export interface PaginatedCardResponse {
|
|
1293
|
+
/**
|
|
1294
|
+
* Total number of elements across all pages in the entire dataset.
|
|
1295
|
+
* @type {number}
|
|
1296
|
+
* @memberof PaginatedCardResponse
|
|
1297
|
+
*/
|
|
1298
|
+
'totalElements'?: number;
|
|
1299
|
+
/**
|
|
1300
|
+
* Total number of pages calculated based on the total number of elements and the page size.
|
|
1301
|
+
* @type {number}
|
|
1302
|
+
* @memberof PaginatedCardResponse
|
|
1303
|
+
*/
|
|
1304
|
+
'totalPages'?: number;
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @type {Sort}
|
|
1308
|
+
* @memberof PaginatedCardResponse
|
|
1309
|
+
*/
|
|
1310
|
+
'sort'?: Sort;
|
|
1311
|
+
/**
|
|
1312
|
+
* Indicates whether the current page is the first page.
|
|
1313
|
+
* @type {boolean}
|
|
1314
|
+
* @memberof PaginatedCardResponse
|
|
1315
|
+
*/
|
|
1316
|
+
'first'?: boolean;
|
|
1317
|
+
/**
|
|
1318
|
+
* Indicates whether the current page is the last page.
|
|
1319
|
+
* @type {boolean}
|
|
1320
|
+
* @memberof PaginatedCardResponse
|
|
1321
|
+
*/
|
|
1322
|
+
'last'?: boolean;
|
|
1323
|
+
/**
|
|
1324
|
+
* The current page number (0-based index).
|
|
1325
|
+
* @type {number}
|
|
1326
|
+
* @memberof PaginatedCardResponse
|
|
1327
|
+
*/
|
|
1328
|
+
'number'?: number;
|
|
1329
|
+
/**
|
|
1330
|
+
* The number of elements present in the current page.
|
|
1331
|
+
* @type {number}
|
|
1332
|
+
* @memberof PaginatedCardResponse
|
|
1333
|
+
*/
|
|
1334
|
+
'numberOfElements'?: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* The size of the page, i.e., the maximum number of elements per page.
|
|
1337
|
+
* @type {number}
|
|
1338
|
+
* @memberof PaginatedCardResponse
|
|
1339
|
+
*/
|
|
1340
|
+
'size'?: number;
|
|
1341
|
+
/**
|
|
1342
|
+
*
|
|
1343
|
+
* @type {Array<CardResponse>}
|
|
1344
|
+
* @memberof PaginatedCardResponse
|
|
1345
|
+
*/
|
|
1346
|
+
'content'?: Array<CardResponse>;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
*
|
|
1350
|
+
* @export
|
|
1351
|
+
* @interface PaginationResponse
|
|
1352
|
+
*/
|
|
1353
|
+
export interface PaginationResponse {
|
|
1354
|
+
/**
|
|
1355
|
+
* Total number of elements across all pages in the entire dataset.
|
|
1356
|
+
* @type {number}
|
|
1357
|
+
* @memberof PaginationResponse
|
|
1358
|
+
*/
|
|
1359
|
+
'totalElements'?: number;
|
|
1360
|
+
/**
|
|
1361
|
+
* Total number of pages calculated based on the total number of elements and the page size.
|
|
1362
|
+
* @type {number}
|
|
1363
|
+
* @memberof PaginationResponse
|
|
1364
|
+
*/
|
|
1365
|
+
'totalPages'?: number;
|
|
1366
|
+
/**
|
|
1367
|
+
*
|
|
1368
|
+
* @type {Sort}
|
|
1369
|
+
* @memberof PaginationResponse
|
|
1370
|
+
*/
|
|
1371
|
+
'sort'?: Sort;
|
|
1372
|
+
/**
|
|
1373
|
+
* Indicates whether the current page is the first page.
|
|
1374
|
+
* @type {boolean}
|
|
1375
|
+
* @memberof PaginationResponse
|
|
1376
|
+
*/
|
|
1377
|
+
'first'?: boolean;
|
|
1378
|
+
/**
|
|
1379
|
+
* Indicates whether the current page is the last page.
|
|
1380
|
+
* @type {boolean}
|
|
1381
|
+
* @memberof PaginationResponse
|
|
1382
|
+
*/
|
|
1383
|
+
'last'?: boolean;
|
|
1384
|
+
/**
|
|
1385
|
+
* The current page number (0-based index).
|
|
1386
|
+
* @type {number}
|
|
1387
|
+
* @memberof PaginationResponse
|
|
1388
|
+
*/
|
|
1389
|
+
'number'?: number;
|
|
1390
|
+
/**
|
|
1391
|
+
* The number of elements present in the current page.
|
|
1392
|
+
* @type {number}
|
|
1393
|
+
* @memberof PaginationResponse
|
|
1394
|
+
*/
|
|
1395
|
+
'numberOfElements'?: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* The size of the page, i.e., the maximum number of elements per page.
|
|
1398
|
+
* @type {number}
|
|
1399
|
+
* @memberof PaginationResponse
|
|
1400
|
+
*/
|
|
1401
|
+
'size'?: number;
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* 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
|
+
*/
|
|
1408
|
+
|
|
1409
|
+
export const PinDeliveryType = {
|
|
1410
|
+
Mail: 'MAIL',
|
|
1411
|
+
Courier: 'COURIER',
|
|
1412
|
+
Epin: 'EPIN'
|
|
1413
|
+
} as const;
|
|
1414
|
+
|
|
1415
|
+
export type PinDeliveryType = typeof PinDeliveryType[keyof typeof PinDeliveryType];
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* - 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
|
+
*/
|
|
1423
|
+
|
|
1424
|
+
export const PinStatus = {
|
|
1425
|
+
Generated: 'GENERATED',
|
|
1426
|
+
Waiting: 'WAITING',
|
|
1427
|
+
Set: 'SET',
|
|
1428
|
+
Inherited: 'INHERITED'
|
|
1429
|
+
} as const;
|
|
1430
|
+
|
|
1431
|
+
export type PinStatus = typeof PinStatus[keyof typeof PinStatus];
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
*
|
|
1436
|
+
* @export
|
|
1437
|
+
* @interface Plastic
|
|
1438
|
+
*/
|
|
1439
|
+
export interface Plastic {
|
|
1440
|
+
/**
|
|
1441
|
+
* The name to be embossed on the card. Max character limit is 26.
|
|
1442
|
+
* @type {string}
|
|
1443
|
+
* @memberof Plastic
|
|
1444
|
+
*/
|
|
1445
|
+
'embossingName'?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
*
|
|
1448
|
+
* @type {Address}
|
|
1449
|
+
* @memberof Plastic
|
|
1450
|
+
*/
|
|
1451
|
+
'preferredCardAddress'?: Address;
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @type {CardDeliveryType}
|
|
1455
|
+
* @memberof Plastic
|
|
1456
|
+
*/
|
|
1457
|
+
'preferredCardDeliveryType': CardDeliveryType;
|
|
1458
|
+
/**
|
|
1459
|
+
*
|
|
1460
|
+
* @type {Address}
|
|
1461
|
+
* @memberof Plastic
|
|
1462
|
+
*/
|
|
1463
|
+
'preferredPinAddress'?: Address;
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @type {PinDeliveryType}
|
|
1467
|
+
* @memberof Plastic
|
|
1468
|
+
*/
|
|
1469
|
+
'preferredPinDeliveryType': PinDeliveryType;
|
|
1470
|
+
/**
|
|
1471
|
+
* Unique identifier of a resource.
|
|
1472
|
+
* @type {string}
|
|
1473
|
+
* @memberof Plastic
|
|
1474
|
+
*/
|
|
1475
|
+
'manufacturerId'?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* 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
|
+
*/
|
|
1481
|
+
'externalLayoutCode'?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* The date and time when the card was created.
|
|
1484
|
+
* @type {string}
|
|
1485
|
+
* @memberof Plastic
|
|
1486
|
+
*/
|
|
1487
|
+
'createdAt'?: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* The date and time when the object/entity was updated last time.
|
|
1490
|
+
* @type {string}
|
|
1491
|
+
* @memberof Plastic
|
|
1492
|
+
*/
|
|
1493
|
+
'updatedAt'?: string;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @export
|
|
1500
|
+
* @interface ResourceResponse
|
|
1501
|
+
*/
|
|
1502
|
+
export interface ResourceResponse {
|
|
1503
|
+
/**
|
|
1504
|
+
* A description of the response returned.
|
|
1505
|
+
* @type {string}
|
|
1506
|
+
* @memberof ResourceResponse
|
|
1507
|
+
*/
|
|
1508
|
+
'description'?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* A unique identifier assigned to identify the endpoint request.
|
|
1511
|
+
* @type {string}
|
|
1512
|
+
* @memberof ResourceResponse
|
|
1513
|
+
*/
|
|
1514
|
+
'id'?: string;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* 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
|
+
*/
|
|
1521
|
+
|
|
1522
|
+
export const RiskScore = {
|
|
1523
|
+
High: 'High',
|
|
1524
|
+
Med: 'Med',
|
|
1525
|
+
Low: 'Low',
|
|
1526
|
+
Pep: 'Pep',
|
|
1527
|
+
Prohibited: 'Prohibited'
|
|
1528
|
+
} as const;
|
|
1529
|
+
|
|
1530
|
+
export type RiskScore = typeof RiskScore[keyof typeof RiskScore];
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
*
|
|
1535
|
+
* @export
|
|
1536
|
+
* @interface Sort
|
|
1537
|
+
*/
|
|
1538
|
+
export interface Sort {
|
|
1539
|
+
/**
|
|
1540
|
+
* Indicates whether the current page is sorted by any property.
|
|
1541
|
+
* @type {boolean}
|
|
1542
|
+
* @memberof Sort
|
|
1543
|
+
*/
|
|
1544
|
+
'sorted'?: boolean;
|
|
1545
|
+
/**
|
|
1546
|
+
* Indicates whether the current page is not sorted (i.e., no sort was applied).
|
|
1547
|
+
* @type {boolean}
|
|
1548
|
+
* @memberof Sort
|
|
1549
|
+
*/
|
|
1550
|
+
'unsorted'?: boolean;
|
|
1551
|
+
/**
|
|
1552
|
+
* Indicates whether no sorting information is available (i.e., no sort was requested).
|
|
1553
|
+
* @type {boolean}
|
|
1554
|
+
* @memberof Sort
|
|
1555
|
+
*/
|
|
1556
|
+
'empty'?: boolean;
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @export
|
|
1561
|
+
* @interface UpdateCardholderBody
|
|
1562
|
+
*/
|
|
1563
|
+
export interface UpdateCardholderBody {
|
|
1564
|
+
/**
|
|
1565
|
+
* 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
|
+
*/
|
|
1569
|
+
'customerNumber'?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @type {Locale}
|
|
1573
|
+
* @memberof UpdateCardholderBody
|
|
1574
|
+
*/
|
|
1575
|
+
'locale'?: Locale;
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {Address}
|
|
1579
|
+
* @memberof UpdateCardholderBody
|
|
1580
|
+
*/
|
|
1581
|
+
'address'?: Address;
|
|
1582
|
+
/**
|
|
1583
|
+
* First name of the cardholder. Max character limit is 256.
|
|
1584
|
+
* @type {string}
|
|
1585
|
+
* @memberof UpdateCardholderBody
|
|
1586
|
+
*/
|
|
1587
|
+
'firstName'?: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* Middle name of the cardholder. Max character limit is 256.
|
|
1590
|
+
* @type {string}
|
|
1591
|
+
* @memberof UpdateCardholderBody
|
|
1592
|
+
*/
|
|
1593
|
+
'middleName'?: string;
|
|
1594
|
+
/**
|
|
1595
|
+
* Last name of the cardholder. Max character limit is 256.
|
|
1596
|
+
* @type {string}
|
|
1597
|
+
* @memberof UpdateCardholderBody
|
|
1598
|
+
*/
|
|
1599
|
+
'lastName'?: string;
|
|
1600
|
+
/**
|
|
1601
|
+
* 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
|
+
*/
|
|
1605
|
+
'mobileNumber'?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Email address of the cardholder. Max character limit is 256.
|
|
1608
|
+
* @type {string}
|
|
1609
|
+
* @memberof UpdateCardholderBody
|
|
1610
|
+
*/
|
|
1611
|
+
'email'?: string;
|
|
1612
|
+
/**
|
|
1613
|
+
* 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
|
+
*/
|
|
1617
|
+
'taxId'?: string | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* 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
|
+
*/
|
|
1623
|
+
'dateOfBirth'?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* 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
|
+
*/
|
|
1635
|
+
'riskScore'?: RiskScore;
|
|
1636
|
+
/**
|
|
1637
|
+
* 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
|
+
*/
|
|
1641
|
+
'birthCountry'?: CountryCodesAlpha3;
|
|
1642
|
+
/**
|
|
1643
|
+
* 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
|
+
*/
|
|
1647
|
+
'identificationNumber'?: string;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* CreateCardholderApi - axios parameter creator
|
|
1654
|
+
* @export
|
|
1655
|
+
*/
|
|
1656
|
+
export const CreateCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1657
|
+
return {
|
|
1658
|
+
/**
|
|
1659
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
1660
|
+
* @summary Create Cardholder
|
|
1661
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
1662
|
+
* @param {string} [xIdempotencyKey]
|
|
1663
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1664
|
+
* @param {*} [options] Override http request option.
|
|
1665
|
+
* @throws {RequiredError}
|
|
1666
|
+
*/
|
|
1667
|
+
createCardholder: async (createCardholderBody: CreateCardholderBody, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1668
|
+
// verify required parameter 'createCardholderBody' is not null or undefined
|
|
1669
|
+
assertParamExists('createCardholder', 'createCardholderBody', createCardholderBody)
|
|
1670
|
+
const localVarPath = `/v1/cardholders`;
|
|
1671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1672
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1673
|
+
let baseOptions;
|
|
1674
|
+
if (configuration) {
|
|
1675
|
+
baseOptions = configuration.baseOptions;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1679
|
+
const localVarHeaderParameter = {} as any;
|
|
1680
|
+
const localVarQueryParameter = {} as any;
|
|
1681
|
+
|
|
1682
|
+
// authentication bearerAuth required
|
|
1683
|
+
// http bearer authentication required
|
|
1684
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1689
|
+
|
|
1690
|
+
if (xIdempotencyKey != null) {
|
|
1691
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
1692
|
+
}
|
|
1693
|
+
if (xAuditUser != null) {
|
|
1694
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1695
|
+
}
|
|
1696
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1698
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1699
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCardholderBody, localVarRequestOptions, configuration)
|
|
1700
|
+
|
|
1701
|
+
return {
|
|
1702
|
+
url: toPathString(localVarUrlObj),
|
|
1703
|
+
options: localVarRequestOptions,
|
|
1704
|
+
};
|
|
1705
|
+
},
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* CreateCardholderApi - functional programming interface
|
|
1711
|
+
* @export
|
|
1712
|
+
*/
|
|
1713
|
+
export const CreateCardholderApiFp = function(configuration?: Configuration) {
|
|
1714
|
+
const localVarAxiosParamCreator = CreateCardholderApiAxiosParamCreator(configuration)
|
|
1715
|
+
return {
|
|
1716
|
+
/**
|
|
1717
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
1718
|
+
* @summary Create Cardholder
|
|
1719
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
1720
|
+
* @param {string} [xIdempotencyKey]
|
|
1721
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
*/
|
|
1725
|
+
async createCardholder(createCardholderBody: CreateCardholderBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CardholderResponse>> {
|
|
1726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options);
|
|
1727
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1728
|
+
const localVarOperationServerBasePath = operationServerMap['CreateCardholderApi.createCardholder']?.[localVarOperationServerIndex]?.url;
|
|
1729
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1730
|
+
},
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* CreateCardholderApi - factory interface
|
|
1736
|
+
* @export
|
|
1737
|
+
*/
|
|
1738
|
+
export const CreateCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1739
|
+
const localVarFp = CreateCardholderApiFp(configuration)
|
|
1740
|
+
return {
|
|
1741
|
+
/**
|
|
1742
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
1743
|
+
* @summary Create Cardholder
|
|
1744
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
1745
|
+
* @param {string} [xIdempotencyKey]
|
|
1746
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1747
|
+
* @param {*} [options] Override http request option.
|
|
1748
|
+
* @throws {RequiredError}
|
|
1749
|
+
*/
|
|
1750
|
+
createCardholder(createCardholderBody: CreateCardholderBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<CardholderResponse> {
|
|
1751
|
+
return localVarFp.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1752
|
+
},
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* CreateCardholderApi - object-oriented interface
|
|
1758
|
+
* @export
|
|
1759
|
+
* @class CreateCardholderApi
|
|
1760
|
+
* @extends {BaseAPI}
|
|
1761
|
+
*/
|
|
1762
|
+
export class CreateCardholderApi extends BaseAPI {
|
|
1763
|
+
/**
|
|
1764
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
1765
|
+
* @summary Create Cardholder
|
|
1766
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
1767
|
+
* @param {string} [xIdempotencyKey]
|
|
1768
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1769
|
+
* @param {*} [options] Override http request option.
|
|
1770
|
+
* @throws {RequiredError}
|
|
1771
|
+
* @memberof CreateCardholderApi
|
|
1772
|
+
*/
|
|
1773
|
+
public createCardholder(createCardholderBody: CreateCardholderBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1774
|
+
return CreateCardholderApiFp(this.configuration).createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* GetCardholderApi - axios parameter creator
|
|
1782
|
+
* @export
|
|
1783
|
+
*/
|
|
1784
|
+
export const GetCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1785
|
+
return {
|
|
1786
|
+
/**
|
|
1787
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
1788
|
+
* @summary Get Cardholder by Cardholder ID
|
|
1789
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
1790
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1791
|
+
* @param {*} [options] Override http request option.
|
|
1792
|
+
* @throws {RequiredError}
|
|
1793
|
+
*/
|
|
1794
|
+
getCardholderById: async (id: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1795
|
+
// verify required parameter 'id' is not null or undefined
|
|
1796
|
+
assertParamExists('getCardholderById', 'id', id)
|
|
1797
|
+
const localVarPath = `/v1/cardholders/{id}`
|
|
1798
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1801
|
+
let baseOptions;
|
|
1802
|
+
if (configuration) {
|
|
1803
|
+
baseOptions = configuration.baseOptions;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1807
|
+
const localVarHeaderParameter = {} as any;
|
|
1808
|
+
const localVarQueryParameter = {} as any;
|
|
1809
|
+
|
|
1810
|
+
// authentication bearerAuth required
|
|
1811
|
+
// http bearer authentication required
|
|
1812
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
if (xAuditUser != null) {
|
|
1817
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1818
|
+
}
|
|
1819
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1821
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1822
|
+
|
|
1823
|
+
return {
|
|
1824
|
+
url: toPathString(localVarUrlObj),
|
|
1825
|
+
options: localVarRequestOptions,
|
|
1826
|
+
};
|
|
1827
|
+
},
|
|
1828
|
+
/**
|
|
1829
|
+
* Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
|
|
1830
|
+
* @summary Retrieve List of Cardholders
|
|
1831
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
1832
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
*/
|
|
1836
|
+
getCardholders: async (customerNumber: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1837
|
+
// verify required parameter 'customerNumber' is not null or undefined
|
|
1838
|
+
assertParamExists('getCardholders', 'customerNumber', customerNumber)
|
|
1839
|
+
const localVarPath = `/v1/cardholders`;
|
|
1840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1841
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1842
|
+
let baseOptions;
|
|
1843
|
+
if (configuration) {
|
|
1844
|
+
baseOptions = configuration.baseOptions;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1848
|
+
const localVarHeaderParameter = {} as any;
|
|
1849
|
+
const localVarQueryParameter = {} as any;
|
|
1850
|
+
|
|
1851
|
+
// authentication bearerAuth required
|
|
1852
|
+
// http bearer authentication required
|
|
1853
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1854
|
+
|
|
1855
|
+
if (customerNumber !== undefined) {
|
|
1856
|
+
localVarQueryParameter['customerNumber'] = customerNumber;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
if (xAuditUser != null) {
|
|
1862
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1863
|
+
}
|
|
1864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1866
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1867
|
+
|
|
1868
|
+
return {
|
|
1869
|
+
url: toPathString(localVarUrlObj),
|
|
1870
|
+
options: localVarRequestOptions,
|
|
1871
|
+
};
|
|
1872
|
+
},
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* GetCardholderApi - functional programming interface
|
|
1878
|
+
* @export
|
|
1879
|
+
*/
|
|
1880
|
+
export const GetCardholderApiFp = function(configuration?: Configuration) {
|
|
1881
|
+
const localVarAxiosParamCreator = GetCardholderApiAxiosParamCreator(configuration)
|
|
1882
|
+
return {
|
|
1883
|
+
/**
|
|
1884
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
1885
|
+
* @summary Get Cardholder by Cardholder ID
|
|
1886
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
1887
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1888
|
+
* @param {*} [options] Override http request option.
|
|
1889
|
+
* @throws {RequiredError}
|
|
1890
|
+
*/
|
|
1891
|
+
async getCardholderById(id: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CardholderResponse>> {
|
|
1892
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardholderById(id, xAuditUser, options);
|
|
1893
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1894
|
+
const localVarOperationServerBasePath = operationServerMap['GetCardholderApi.getCardholderById']?.[localVarOperationServerIndex]?.url;
|
|
1895
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1896
|
+
},
|
|
1897
|
+
/**
|
|
1898
|
+
* Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
|
|
1899
|
+
* @summary Retrieve List of Cardholders
|
|
1900
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
1901
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1902
|
+
* @param {*} [options] Override http request option.
|
|
1903
|
+
* @throws {RequiredError}
|
|
1904
|
+
*/
|
|
1905
|
+
async getCardholders(customerNumber: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CardholderResponse>>> {
|
|
1906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardholders(customerNumber, xAuditUser, options);
|
|
1907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1908
|
+
const localVarOperationServerBasePath = operationServerMap['GetCardholderApi.getCardholders']?.[localVarOperationServerIndex]?.url;
|
|
1909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1910
|
+
},
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* GetCardholderApi - factory interface
|
|
1916
|
+
* @export
|
|
1917
|
+
*/
|
|
1918
|
+
export const GetCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1919
|
+
const localVarFp = GetCardholderApiFp(configuration)
|
|
1920
|
+
return {
|
|
1921
|
+
/**
|
|
1922
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
1923
|
+
* @summary Get Cardholder by Cardholder ID
|
|
1924
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
1925
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
*/
|
|
1929
|
+
getCardholderById(id: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<CardholderResponse> {
|
|
1930
|
+
return localVarFp.getCardholderById(id, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1931
|
+
},
|
|
1932
|
+
/**
|
|
1933
|
+
* Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
|
|
1934
|
+
* @summary Retrieve List of Cardholders
|
|
1935
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
1936
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
*/
|
|
1940
|
+
getCardholders(customerNumber: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CardholderResponse>> {
|
|
1941
|
+
return localVarFp.getCardholders(customerNumber, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1942
|
+
},
|
|
1943
|
+
};
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* GetCardholderApi - object-oriented interface
|
|
1948
|
+
* @export
|
|
1949
|
+
* @class GetCardholderApi
|
|
1950
|
+
* @extends {BaseAPI}
|
|
1951
|
+
*/
|
|
1952
|
+
export class GetCardholderApi extends BaseAPI {
|
|
1953
|
+
/**
|
|
1954
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
1955
|
+
* @summary Get Cardholder by Cardholder ID
|
|
1956
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
1957
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1958
|
+
* @param {*} [options] Override http request option.
|
|
1959
|
+
* @throws {RequiredError}
|
|
1960
|
+
* @memberof GetCardholderApi
|
|
1961
|
+
*/
|
|
1962
|
+
public getCardholderById(id: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1963
|
+
return GetCardholderApiFp(this.configuration).getCardholderById(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
|
|
1968
|
+
* @summary Retrieve List of Cardholders
|
|
1969
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
1970
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1971
|
+
* @param {*} [options] Override http request option.
|
|
1972
|
+
* @throws {RequiredError}
|
|
1973
|
+
* @memberof GetCardholderApi
|
|
1974
|
+
*/
|
|
1975
|
+
public getCardholders(customerNumber: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1976
|
+
return GetCardholderApiFp(this.configuration).getCardholders(customerNumber, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* GetCardsByCardholderIdApi - axios parameter creator
|
|
1984
|
+
* @export
|
|
1985
|
+
*/
|
|
1986
|
+
export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1987
|
+
return {
|
|
1988
|
+
/**
|
|
1989
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
1990
|
+
* @summary Get Cards by Cardholder ID
|
|
1991
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
1992
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
1993
|
+
* @param {number} [size] The size of the page to be returned.
|
|
1994
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1995
|
+
* @param {*} [options] Override http request option.
|
|
1996
|
+
* @throws {RequiredError}
|
|
1997
|
+
*/
|
|
1998
|
+
getCardsByCardholderId: async (id: string, page?: number, size?: number, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1999
|
+
// verify required parameter 'id' is not null or undefined
|
|
2000
|
+
assertParamExists('getCardsByCardholderId', 'id', id)
|
|
2001
|
+
const localVarPath = `/v1/cardholders/{id}/cards`
|
|
2002
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2004
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2005
|
+
let baseOptions;
|
|
2006
|
+
if (configuration) {
|
|
2007
|
+
baseOptions = configuration.baseOptions;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2011
|
+
const localVarHeaderParameter = {} as any;
|
|
2012
|
+
const localVarQueryParameter = {} as any;
|
|
2013
|
+
|
|
2014
|
+
// authentication bearerAuth required
|
|
2015
|
+
// http bearer authentication required
|
|
2016
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2017
|
+
|
|
2018
|
+
if (page !== undefined) {
|
|
2019
|
+
localVarQueryParameter['page'] = page;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
if (size !== undefined) {
|
|
2023
|
+
localVarQueryParameter['size'] = size;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
if (xAuditUser != null) {
|
|
2029
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
2030
|
+
}
|
|
2031
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2032
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2033
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2034
|
+
|
|
2035
|
+
return {
|
|
2036
|
+
url: toPathString(localVarUrlObj),
|
|
2037
|
+
options: localVarRequestOptions,
|
|
2038
|
+
};
|
|
2039
|
+
},
|
|
2040
|
+
}
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* GetCardsByCardholderIdApi - functional programming interface
|
|
2045
|
+
* @export
|
|
2046
|
+
*/
|
|
2047
|
+
export const GetCardsByCardholderIdApiFp = function(configuration?: Configuration) {
|
|
2048
|
+
const localVarAxiosParamCreator = GetCardsByCardholderIdApiAxiosParamCreator(configuration)
|
|
2049
|
+
return {
|
|
2050
|
+
/**
|
|
2051
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
2052
|
+
* @summary Get Cards by Cardholder ID
|
|
2053
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
2054
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
2055
|
+
* @param {number} [size] The size of the page to be returned.
|
|
2056
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2057
|
+
* @param {*} [options] Override http request option.
|
|
2058
|
+
* @throws {RequiredError}
|
|
2059
|
+
*/
|
|
2060
|
+
async getCardsByCardholderId(id: string, page?: number, size?: number, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedCardResponse>> {
|
|
2061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCardsByCardholderId(id, page, size, xAuditUser, options);
|
|
2062
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2063
|
+
const localVarOperationServerBasePath = operationServerMap['GetCardsByCardholderIdApi.getCardsByCardholderId']?.[localVarOperationServerIndex]?.url;
|
|
2064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2065
|
+
},
|
|
2066
|
+
}
|
|
2067
|
+
};
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* GetCardsByCardholderIdApi - factory interface
|
|
2071
|
+
* @export
|
|
2072
|
+
*/
|
|
2073
|
+
export const GetCardsByCardholderIdApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2074
|
+
const localVarFp = GetCardsByCardholderIdApiFp(configuration)
|
|
2075
|
+
return {
|
|
2076
|
+
/**
|
|
2077
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
2078
|
+
* @summary Get Cards by Cardholder ID
|
|
2079
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
2080
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
2081
|
+
* @param {number} [size] The size of the page to be returned.
|
|
2082
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2083
|
+
* @param {*} [options] Override http request option.
|
|
2084
|
+
* @throws {RequiredError}
|
|
2085
|
+
*/
|
|
2086
|
+
getCardsByCardholderId(id: string, page?: number, size?: number, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedCardResponse> {
|
|
2087
|
+
return localVarFp.getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(axios, basePath));
|
|
2088
|
+
},
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* GetCardsByCardholderIdApi - object-oriented interface
|
|
2094
|
+
* @export
|
|
2095
|
+
* @class GetCardsByCardholderIdApi
|
|
2096
|
+
* @extends {BaseAPI}
|
|
2097
|
+
*/
|
|
2098
|
+
export class GetCardsByCardholderIdApi extends BaseAPI {
|
|
2099
|
+
/**
|
|
2100
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
2101
|
+
* @summary Get Cards by Cardholder ID
|
|
2102
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
2103
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
2104
|
+
* @param {number} [size] The size of the page to be returned.
|
|
2105
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
* @memberof GetCardsByCardholderIdApi
|
|
2109
|
+
*/
|
|
2110
|
+
public getCardsByCardholderId(id: string, page?: number, size?: number, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
2111
|
+
return GetCardsByCardholderIdApiFp(this.configuration).getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* UpdateCardholderApi - axios parameter creator
|
|
2119
|
+
* @export
|
|
2120
|
+
*/
|
|
2121
|
+
export const UpdateCardholderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2122
|
+
return {
|
|
2123
|
+
/**
|
|
2124
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
2125
|
+
* @summary Update Cardholder
|
|
2126
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
2127
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
2128
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2129
|
+
* @param {*} [options] Override http request option.
|
|
2130
|
+
* @throws {RequiredError}
|
|
2131
|
+
*/
|
|
2132
|
+
updateCardholder: async (id: string, updateCardholderBody: UpdateCardholderBody, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2133
|
+
// verify required parameter 'id' is not null or undefined
|
|
2134
|
+
assertParamExists('updateCardholder', 'id', id)
|
|
2135
|
+
// verify required parameter 'updateCardholderBody' is not null or undefined
|
|
2136
|
+
assertParamExists('updateCardholder', 'updateCardholderBody', updateCardholderBody)
|
|
2137
|
+
const localVarPath = `/v1/cardholders/{id}`
|
|
2138
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2141
|
+
let baseOptions;
|
|
2142
|
+
if (configuration) {
|
|
2143
|
+
baseOptions = configuration.baseOptions;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2147
|
+
const localVarHeaderParameter = {} as any;
|
|
2148
|
+
const localVarQueryParameter = {} as any;
|
|
2149
|
+
|
|
2150
|
+
// authentication bearerAuth required
|
|
2151
|
+
// http bearer authentication required
|
|
2152
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2157
|
+
|
|
2158
|
+
if (xAuditUser != null) {
|
|
2159
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
2160
|
+
}
|
|
2161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2163
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCardholderBody, localVarRequestOptions, configuration)
|
|
2165
|
+
|
|
2166
|
+
return {
|
|
2167
|
+
url: toPathString(localVarUrlObj),
|
|
2168
|
+
options: localVarRequestOptions,
|
|
2169
|
+
};
|
|
2170
|
+
},
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* UpdateCardholderApi - functional programming interface
|
|
2176
|
+
* @export
|
|
2177
|
+
*/
|
|
2178
|
+
export const UpdateCardholderApiFp = function(configuration?: Configuration) {
|
|
2179
|
+
const localVarAxiosParamCreator = UpdateCardholderApiAxiosParamCreator(configuration)
|
|
2180
|
+
return {
|
|
2181
|
+
/**
|
|
2182
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
2183
|
+
* @summary Update Cardholder
|
|
2184
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
2185
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
2186
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2187
|
+
* @param {*} [options] Override http request option.
|
|
2188
|
+
* @throws {RequiredError}
|
|
2189
|
+
*/
|
|
2190
|
+
async updateCardholder(id: string, updateCardholderBody: UpdateCardholderBody, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourceResponse>> {
|
|
2191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCardholder(id, updateCardholderBody, xAuditUser, options);
|
|
2192
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2193
|
+
const localVarOperationServerBasePath = operationServerMap['UpdateCardholderApi.updateCardholder']?.[localVarOperationServerIndex]?.url;
|
|
2194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2195
|
+
},
|
|
2196
|
+
}
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* UpdateCardholderApi - factory interface
|
|
2201
|
+
* @export
|
|
2202
|
+
*/
|
|
2203
|
+
export const UpdateCardholderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2204
|
+
const localVarFp = UpdateCardholderApiFp(configuration)
|
|
2205
|
+
return {
|
|
2206
|
+
/**
|
|
2207
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
2208
|
+
* @summary Update Cardholder
|
|
2209
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
2210
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
2211
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
updateCardholder(id: string, updateCardholderBody: UpdateCardholderBody, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceResponse> {
|
|
2216
|
+
return localVarFp.updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(axios, basePath));
|
|
2217
|
+
},
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* UpdateCardholderApi - object-oriented interface
|
|
2223
|
+
* @export
|
|
2224
|
+
* @class UpdateCardholderApi
|
|
2225
|
+
* @extends {BaseAPI}
|
|
2226
|
+
*/
|
|
2227
|
+
export class UpdateCardholderApi extends BaseAPI {
|
|
2228
|
+
/**
|
|
2229
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
2230
|
+
* @summary Update Cardholder
|
|
2231
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
2232
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
2233
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2234
|
+
* @param {*} [options] Override http request option.
|
|
2235
|
+
* @throws {RequiredError}
|
|
2236
|
+
* @memberof UpdateCardholderApi
|
|
2237
|
+
*/
|
|
2238
|
+
public updateCardholder(id: string, updateCardholderBody: UpdateCardholderBody, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
2239
|
+
return UpdateCardholderApiFp(this.configuration).updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|