@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,1220 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
* The type of card defined by this card configuration.
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const CardConfigurationType = {
|
|
35
|
+
Debit: 'DEBIT',
|
|
36
|
+
Credit: 'CREDIT',
|
|
37
|
+
Combo: 'COMBO'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 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.
|
|
41
|
+
* @export
|
|
42
|
+
* @enum {string}
|
|
43
|
+
*/
|
|
44
|
+
export const CardDeliveryType = {
|
|
45
|
+
Mail: 'MAIL',
|
|
46
|
+
Courier: 'COURIER',
|
|
47
|
+
Custom1: 'CUSTOM_1',
|
|
48
|
+
Custom2: 'CUSTOM_2',
|
|
49
|
+
Custom3: 'CUSTOM_3',
|
|
50
|
+
Custom4: 'CUSTOM_4',
|
|
51
|
+
Custom5: 'CUSTOM_5'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 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.
|
|
55
|
+
* @export
|
|
56
|
+
* @enum {string}
|
|
57
|
+
*/
|
|
58
|
+
export const CardRole = {
|
|
59
|
+
MainCard: 'MAIN_CARD',
|
|
60
|
+
CardApplication: 'CARD_APPLICATION'
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @export
|
|
65
|
+
* @enum {string}
|
|
66
|
+
*/
|
|
67
|
+
export const CardScheme = {
|
|
68
|
+
Mastercard: 'MASTERCARD',
|
|
69
|
+
Visa: 'VISA'
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* - 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.
|
|
73
|
+
* @export
|
|
74
|
+
* @enum {string}
|
|
75
|
+
*/
|
|
76
|
+
export const CardStatus = {
|
|
77
|
+
Active: 'ACTIVE',
|
|
78
|
+
Blocked: 'BLOCKED',
|
|
79
|
+
BlockedSuspectedFraud: 'BLOCKED_SUSPECTED_FRAUD',
|
|
80
|
+
ClosedDueToFraud: 'CLOSED_DUE_TO_FRAUD',
|
|
81
|
+
ClosedLost: 'CLOSED_LOST',
|
|
82
|
+
ClosedStolen: 'CLOSED_STOLEN',
|
|
83
|
+
Closed: 'CLOSED',
|
|
84
|
+
ClosedExpired: 'CLOSED_EXPIRED'
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* - 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.
|
|
88
|
+
* @export
|
|
89
|
+
* @enum {string}
|
|
90
|
+
*/
|
|
91
|
+
export const CardVersionStatus = {
|
|
92
|
+
Active: 'ACTIVE',
|
|
93
|
+
Initial: 'INITIAL',
|
|
94
|
+
Closed: 'CLOSED'
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* ISO 3166-1 alpha-3 country codes. XKX is used for the Kosovo.
|
|
98
|
+
* @export
|
|
99
|
+
* @enum {string}
|
|
100
|
+
*/
|
|
101
|
+
export const CountryCodesAlpha3 = {
|
|
102
|
+
Abw: 'ABW',
|
|
103
|
+
Afg: 'AFG',
|
|
104
|
+
Ago: 'AGO',
|
|
105
|
+
Aia: 'AIA',
|
|
106
|
+
Ala: 'ALA',
|
|
107
|
+
Alb: 'ALB',
|
|
108
|
+
And: 'AND',
|
|
109
|
+
Are: 'ARE',
|
|
110
|
+
Arg: 'ARG',
|
|
111
|
+
Arm: 'ARM',
|
|
112
|
+
Asm: 'ASM',
|
|
113
|
+
Ata: 'ATA',
|
|
114
|
+
Atf: 'ATF',
|
|
115
|
+
Atg: 'ATG',
|
|
116
|
+
Aus: 'AUS',
|
|
117
|
+
Aut: 'AUT',
|
|
118
|
+
Aze: 'AZE',
|
|
119
|
+
Bdi: 'BDI',
|
|
120
|
+
Bel: 'BEL',
|
|
121
|
+
Ben: 'BEN',
|
|
122
|
+
Bes: 'BES',
|
|
123
|
+
Bfa: 'BFA',
|
|
124
|
+
Bgd: 'BGD',
|
|
125
|
+
Bgr: 'BGR',
|
|
126
|
+
Bhr: 'BHR',
|
|
127
|
+
Bhs: 'BHS',
|
|
128
|
+
Bih: 'BIH',
|
|
129
|
+
Blm: 'BLM',
|
|
130
|
+
Blr: 'BLR',
|
|
131
|
+
Blz: 'BLZ',
|
|
132
|
+
Bmu: 'BMU',
|
|
133
|
+
Bol: 'BOL',
|
|
134
|
+
Bra: 'BRA',
|
|
135
|
+
Brb: 'BRB',
|
|
136
|
+
Brn: 'BRN',
|
|
137
|
+
Btn: 'BTN',
|
|
138
|
+
Bvt: 'BVT',
|
|
139
|
+
Bwa: 'BWA',
|
|
140
|
+
Caf: 'CAF',
|
|
141
|
+
Can: 'CAN',
|
|
142
|
+
Cck: 'CCK',
|
|
143
|
+
Che: 'CHE',
|
|
144
|
+
Chl: 'CHL',
|
|
145
|
+
Chn: 'CHN',
|
|
146
|
+
Civ: 'CIV',
|
|
147
|
+
Cmr: 'CMR',
|
|
148
|
+
Cod: 'COD',
|
|
149
|
+
Cog: 'COG',
|
|
150
|
+
Cok: 'COK',
|
|
151
|
+
Col: 'COL',
|
|
152
|
+
Com: 'COM',
|
|
153
|
+
Cpv: 'CPV',
|
|
154
|
+
Cri: 'CRI',
|
|
155
|
+
Cub: 'CUB',
|
|
156
|
+
Cuw: 'CUW',
|
|
157
|
+
Cxr: 'CXR',
|
|
158
|
+
Cym: 'CYM',
|
|
159
|
+
Cyp: 'CYP',
|
|
160
|
+
Cze: 'CZE',
|
|
161
|
+
Deu: 'DEU',
|
|
162
|
+
Dji: 'DJI',
|
|
163
|
+
Dma: 'DMA',
|
|
164
|
+
Dnk: 'DNK',
|
|
165
|
+
Dom: 'DOM',
|
|
166
|
+
Dza: 'DZA',
|
|
167
|
+
Ecu: 'ECU',
|
|
168
|
+
Egy: 'EGY',
|
|
169
|
+
Eri: 'ERI',
|
|
170
|
+
Esh: 'ESH',
|
|
171
|
+
Esp: 'ESP',
|
|
172
|
+
Est: 'EST',
|
|
173
|
+
Eth: 'ETH',
|
|
174
|
+
Fin: 'FIN',
|
|
175
|
+
Fji: 'FJI',
|
|
176
|
+
Flk: 'FLK',
|
|
177
|
+
Fra: 'FRA',
|
|
178
|
+
Fro: 'FRO',
|
|
179
|
+
Fsm: 'FSM',
|
|
180
|
+
Gab: 'GAB',
|
|
181
|
+
Gbr: 'GBR',
|
|
182
|
+
Geo: 'GEO',
|
|
183
|
+
Ggy: 'GGY',
|
|
184
|
+
Gha: 'GHA',
|
|
185
|
+
Gib: 'GIB',
|
|
186
|
+
Gin: 'GIN',
|
|
187
|
+
Glp: 'GLP',
|
|
188
|
+
Gmb: 'GMB',
|
|
189
|
+
Gnb: 'GNB',
|
|
190
|
+
Gnq: 'GNQ',
|
|
191
|
+
Grc: 'GRC',
|
|
192
|
+
Grd: 'GRD',
|
|
193
|
+
Grl: 'GRL',
|
|
194
|
+
Gtm: 'GTM',
|
|
195
|
+
Guf: 'GUF',
|
|
196
|
+
Gum: 'GUM',
|
|
197
|
+
Guy: 'GUY',
|
|
198
|
+
Hkg: 'HKG',
|
|
199
|
+
Hmd: 'HMD',
|
|
200
|
+
Hnd: 'HND',
|
|
201
|
+
Hrv: 'HRV',
|
|
202
|
+
Hti: 'HTI',
|
|
203
|
+
Hun: 'HUN',
|
|
204
|
+
Idn: 'IDN',
|
|
205
|
+
Imn: 'IMN',
|
|
206
|
+
Ind: 'IND',
|
|
207
|
+
Iot: 'IOT',
|
|
208
|
+
Irl: 'IRL',
|
|
209
|
+
Irn: 'IRN',
|
|
210
|
+
Irq: 'IRQ',
|
|
211
|
+
Isl: 'ISL',
|
|
212
|
+
Isr: 'ISR',
|
|
213
|
+
Ita: 'ITA',
|
|
214
|
+
Jam: 'JAM',
|
|
215
|
+
Jey: 'JEY',
|
|
216
|
+
Jor: 'JOR',
|
|
217
|
+
Jpn: 'JPN',
|
|
218
|
+
Kaz: 'KAZ',
|
|
219
|
+
Ken: 'KEN',
|
|
220
|
+
Kgz: 'KGZ',
|
|
221
|
+
Khm: 'KHM',
|
|
222
|
+
Kir: 'KIR',
|
|
223
|
+
Kna: 'KNA',
|
|
224
|
+
Kor: 'KOR',
|
|
225
|
+
Kwt: 'KWT',
|
|
226
|
+
Lao: 'LAO',
|
|
227
|
+
Lbn: 'LBN',
|
|
228
|
+
Lbr: 'LBR',
|
|
229
|
+
Lby: 'LBY',
|
|
230
|
+
Lca: 'LCA',
|
|
231
|
+
Lie: 'LIE',
|
|
232
|
+
Lka: 'LKA',
|
|
233
|
+
Lso: 'LSO',
|
|
234
|
+
Ltu: 'LTU',
|
|
235
|
+
Lux: 'LUX',
|
|
236
|
+
Lva: 'LVA',
|
|
237
|
+
Mac: 'MAC',
|
|
238
|
+
Maf: 'MAF',
|
|
239
|
+
Mar: 'MAR',
|
|
240
|
+
Mco: 'MCO',
|
|
241
|
+
Mda: 'MDA',
|
|
242
|
+
Mdg: 'MDG',
|
|
243
|
+
Mdv: 'MDV',
|
|
244
|
+
Mex: 'MEX',
|
|
245
|
+
Mhl: 'MHL',
|
|
246
|
+
Mkd: 'MKD',
|
|
247
|
+
Mli: 'MLI',
|
|
248
|
+
Mlt: 'MLT',
|
|
249
|
+
Mmr: 'MMR',
|
|
250
|
+
Mne: 'MNE',
|
|
251
|
+
Mng: 'MNG',
|
|
252
|
+
Mnp: 'MNP',
|
|
253
|
+
Moz: 'MOZ',
|
|
254
|
+
Mrt: 'MRT',
|
|
255
|
+
Msr: 'MSR',
|
|
256
|
+
Mtq: 'MTQ',
|
|
257
|
+
Mus: 'MUS',
|
|
258
|
+
Mwi: 'MWI',
|
|
259
|
+
Mys: 'MYS',
|
|
260
|
+
Myt: 'MYT',
|
|
261
|
+
Nam: 'NAM',
|
|
262
|
+
Ncl: 'NCL',
|
|
263
|
+
Ner: 'NER',
|
|
264
|
+
Nfk: 'NFK',
|
|
265
|
+
Nga: 'NGA',
|
|
266
|
+
Nic: 'NIC',
|
|
267
|
+
Niu: 'NIU',
|
|
268
|
+
Nld: 'NLD',
|
|
269
|
+
Nor: 'NOR',
|
|
270
|
+
Npl: 'NPL',
|
|
271
|
+
Nru: 'NRU',
|
|
272
|
+
Nzl: 'NZL',
|
|
273
|
+
Omn: 'OMN',
|
|
274
|
+
Pak: 'PAK',
|
|
275
|
+
Pan: 'PAN',
|
|
276
|
+
Pcn: 'PCN',
|
|
277
|
+
Per: 'PER',
|
|
278
|
+
Phl: 'PHL',
|
|
279
|
+
Plw: 'PLW',
|
|
280
|
+
Png: 'PNG',
|
|
281
|
+
Pol: 'POL',
|
|
282
|
+
Pri: 'PRI',
|
|
283
|
+
Prk: 'PRK',
|
|
284
|
+
Prt: 'PRT',
|
|
285
|
+
Pry: 'PRY',
|
|
286
|
+
Pse: 'PSE',
|
|
287
|
+
Pyf: 'PYF',
|
|
288
|
+
Qat: 'QAT',
|
|
289
|
+
Reu: 'REU',
|
|
290
|
+
Rou: 'ROU',
|
|
291
|
+
Rus: 'RUS',
|
|
292
|
+
Rwa: 'RWA',
|
|
293
|
+
Sau: 'SAU',
|
|
294
|
+
Sdn: 'SDN',
|
|
295
|
+
Sen: 'SEN',
|
|
296
|
+
Sgp: 'SGP',
|
|
297
|
+
Sgs: 'SGS',
|
|
298
|
+
Shn: 'SHN',
|
|
299
|
+
Sjm: 'SJM',
|
|
300
|
+
Slb: 'SLB',
|
|
301
|
+
Sle: 'SLE',
|
|
302
|
+
Slv: 'SLV',
|
|
303
|
+
Smr: 'SMR',
|
|
304
|
+
Som: 'SOM',
|
|
305
|
+
Spm: 'SPM',
|
|
306
|
+
Srb: 'SRB',
|
|
307
|
+
Ssd: 'SSD',
|
|
308
|
+
Stp: 'STP',
|
|
309
|
+
Sur: 'SUR',
|
|
310
|
+
Svk: 'SVK',
|
|
311
|
+
Svn: 'SVN',
|
|
312
|
+
Swe: 'SWE',
|
|
313
|
+
Swz: 'SWZ',
|
|
314
|
+
Sxm: 'SXM',
|
|
315
|
+
Syc: 'SYC',
|
|
316
|
+
Syr: 'SYR',
|
|
317
|
+
Tca: 'TCA',
|
|
318
|
+
Tcd: 'TCD',
|
|
319
|
+
Tgo: 'TGO',
|
|
320
|
+
Tha: 'THA',
|
|
321
|
+
Tjk: 'TJK',
|
|
322
|
+
Tkl: 'TKL',
|
|
323
|
+
Tkm: 'TKM',
|
|
324
|
+
Tls: 'TLS',
|
|
325
|
+
Ton: 'TON',
|
|
326
|
+
Tto: 'TTO',
|
|
327
|
+
Tun: 'TUN',
|
|
328
|
+
Tur: 'TUR',
|
|
329
|
+
Tuv: 'TUV',
|
|
330
|
+
Twn: 'TWN',
|
|
331
|
+
Tza: 'TZA',
|
|
332
|
+
Uga: 'UGA',
|
|
333
|
+
Ukr: 'UKR',
|
|
334
|
+
Umi: 'UMI',
|
|
335
|
+
Ury: 'URY',
|
|
336
|
+
Usa: 'USA',
|
|
337
|
+
Uzb: 'UZB',
|
|
338
|
+
Vat: 'VAT',
|
|
339
|
+
Vct: 'VCT',
|
|
340
|
+
Ven: 'VEN',
|
|
341
|
+
Vgb: 'VGB',
|
|
342
|
+
Vir: 'VIR',
|
|
343
|
+
Vnm: 'VNM',
|
|
344
|
+
Vut: 'VUT',
|
|
345
|
+
Wlf: 'WLF',
|
|
346
|
+
Wsm: 'WSM',
|
|
347
|
+
Yem: 'YEM',
|
|
348
|
+
Zaf: 'ZAF',
|
|
349
|
+
Zmb: 'ZMB',
|
|
350
|
+
Zwe: 'ZWE',
|
|
351
|
+
Xkx: 'XKX'
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* 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.
|
|
355
|
+
* @export
|
|
356
|
+
* @enum {string}
|
|
357
|
+
*/
|
|
358
|
+
export const Locale = {
|
|
359
|
+
AfZa: 'af-ZA',
|
|
360
|
+
ArAe: 'ar-AE',
|
|
361
|
+
ArBh: 'ar-BH',
|
|
362
|
+
ArDz: 'ar-DZ',
|
|
363
|
+
ArEg: 'ar-EG',
|
|
364
|
+
ArIq: 'ar-IQ',
|
|
365
|
+
ArJo: 'ar-JO',
|
|
366
|
+
ArKw: 'ar-KW',
|
|
367
|
+
ArLb: 'ar-LB',
|
|
368
|
+
ArLy: 'ar-LY',
|
|
369
|
+
ArMa: 'ar-MA',
|
|
370
|
+
ArOm: 'ar-OM',
|
|
371
|
+
ArQa: 'ar-QA',
|
|
372
|
+
ArSa: 'ar-SA',
|
|
373
|
+
ArSy: 'ar-SY',
|
|
374
|
+
ArTn: 'ar-TN',
|
|
375
|
+
ArYe: 'ar-YE',
|
|
376
|
+
AzAz: 'az-AZ',
|
|
377
|
+
BeBy: 'be-BY',
|
|
378
|
+
BgBg: 'bg-BG',
|
|
379
|
+
BnIn: 'bn-IN',
|
|
380
|
+
BsBa: 'bs-BA',
|
|
381
|
+
CaEs: 'ca-ES',
|
|
382
|
+
CsCz: 'cs-CZ',
|
|
383
|
+
CyGb: 'cy-GB',
|
|
384
|
+
DaDk: 'da-DK',
|
|
385
|
+
DeAt: 'de-AT',
|
|
386
|
+
DeCh: 'de-CH',
|
|
387
|
+
DeDe: 'de-DE',
|
|
388
|
+
DeLi: 'de-LI',
|
|
389
|
+
DeNl: 'de-NL',
|
|
390
|
+
ElGr: 'el-GR',
|
|
391
|
+
EnAu: 'en-AU',
|
|
392
|
+
EnBz: 'en-BZ',
|
|
393
|
+
EnCa: 'en-CA',
|
|
394
|
+
EnGb: 'en-GB',
|
|
395
|
+
EnIe: 'en-IE',
|
|
396
|
+
EnJm: 'en-JM',
|
|
397
|
+
EnMt: 'en-MT',
|
|
398
|
+
EnNz: 'en-NZ',
|
|
399
|
+
EnPh: 'en-PH',
|
|
400
|
+
EnTt: 'en-TT',
|
|
401
|
+
EnUs: 'en-US',
|
|
402
|
+
EnVi: 'en-VI',
|
|
403
|
+
EnZa: 'en-ZA',
|
|
404
|
+
EnZw: 'en-ZW',
|
|
405
|
+
EsAr: 'es-AR',
|
|
406
|
+
EsBo: 'es-BO',
|
|
407
|
+
EsCl: 'es-CL',
|
|
408
|
+
EsCo: 'es-CO',
|
|
409
|
+
EsCr: 'es-CR',
|
|
410
|
+
EsDo: 'es-DO',
|
|
411
|
+
EsEc: 'es-EC',
|
|
412
|
+
EsEs: 'es-ES',
|
|
413
|
+
EsGt: 'es-GT',
|
|
414
|
+
EsHn: 'es-HN',
|
|
415
|
+
EsMx: 'es-MX',
|
|
416
|
+
EsNi: 'es-NI',
|
|
417
|
+
EsPa: 'es-PA',
|
|
418
|
+
EsPe: 'es-PE',
|
|
419
|
+
EsPr: 'es-PR',
|
|
420
|
+
EsPy: 'es-PY',
|
|
421
|
+
EsSv: 'es-SV',
|
|
422
|
+
EsUy: 'es-UY',
|
|
423
|
+
EsVe: 'es-VE',
|
|
424
|
+
EtEe: 'et-EE',
|
|
425
|
+
EuEs: 'eu-ES',
|
|
426
|
+
FaIr: 'fa-IR',
|
|
427
|
+
FiFi: 'fi-FI',
|
|
428
|
+
FoFo: 'fo-FO',
|
|
429
|
+
FrBe: 'fr-BE',
|
|
430
|
+
FrCa: 'fr-CA',
|
|
431
|
+
FrCh: 'fr-CH',
|
|
432
|
+
FrFr: 'fr-FR',
|
|
433
|
+
FrMc: 'fr-MC',
|
|
434
|
+
FrNl: 'fr-NL',
|
|
435
|
+
GaIe: 'ga-IE',
|
|
436
|
+
GlEs: 'gl-ES',
|
|
437
|
+
GuIn: 'gu-IN',
|
|
438
|
+
HeIl: 'he-IL',
|
|
439
|
+
HiIn: 'hi-IN',
|
|
440
|
+
HrHr: 'hr-HR',
|
|
441
|
+
HuHu: 'hu-HU',
|
|
442
|
+
HyAm: 'hy-AM',
|
|
443
|
+
IdId: 'id-ID',
|
|
444
|
+
IsIs: 'is-IS',
|
|
445
|
+
ItCh: 'it-CH',
|
|
446
|
+
ItIt: 'it-IT',
|
|
447
|
+
JaJp: 'ja-JP',
|
|
448
|
+
KaGe: 'ka-GE',
|
|
449
|
+
KkKz: 'kk-KZ',
|
|
450
|
+
KlGl: 'kl-GL',
|
|
451
|
+
KnIn: 'kn-IN',
|
|
452
|
+
KoKr: 'ko-KR',
|
|
453
|
+
KokIn: 'kok-IN',
|
|
454
|
+
LtLt: 'lt-LT',
|
|
455
|
+
LvLv: 'lv-LV',
|
|
456
|
+
MkMk: 'mk-MK',
|
|
457
|
+
MlIn: 'ml-IN',
|
|
458
|
+
MnMn: 'mn-MN',
|
|
459
|
+
MrIn: 'mr-IN',
|
|
460
|
+
MsBn: 'ms-BN',
|
|
461
|
+
MsMy: 'ms-MY',
|
|
462
|
+
MtMt: 'mt-MT',
|
|
463
|
+
NbNo: 'nb-NO',
|
|
464
|
+
NlBe: 'nl-BE',
|
|
465
|
+
NlNl: 'nl-NL',
|
|
466
|
+
NnNo: 'nn-NO',
|
|
467
|
+
NoNo: 'no-NO',
|
|
468
|
+
PaIn: 'pa-IN',
|
|
469
|
+
PlPl: 'pl-PL',
|
|
470
|
+
PtBr: 'pt-BR',
|
|
471
|
+
PtPt: 'pt-PT',
|
|
472
|
+
RoRo: 'ro-RO',
|
|
473
|
+
RuRu: 'ru-RU',
|
|
474
|
+
SeNo: 'se-NO',
|
|
475
|
+
SkSk: 'sk-SK',
|
|
476
|
+
SlSi: 'sl-SI',
|
|
477
|
+
SqAl: 'sq-AL',
|
|
478
|
+
SrBa: 'sr-BA',
|
|
479
|
+
SrCs: 'sr-CS',
|
|
480
|
+
SvFi: 'sv-FI',
|
|
481
|
+
SvSe: 'sv-SE',
|
|
482
|
+
SwKe: 'sw-KE',
|
|
483
|
+
SyrSy: 'syr-SY',
|
|
484
|
+
TaIn: 'ta-IN',
|
|
485
|
+
TeIn: 'te-IN',
|
|
486
|
+
ThTh: 'th-TH',
|
|
487
|
+
TnZa: 'tn-ZA',
|
|
488
|
+
TrTr: 'tr-TR',
|
|
489
|
+
UkUa: 'uk-UA',
|
|
490
|
+
UzUz: 'uz-UZ',
|
|
491
|
+
ViVn: 'vi-VN',
|
|
492
|
+
XhZa: 'xh-ZA',
|
|
493
|
+
ZhCn: 'zh-CN',
|
|
494
|
+
ZhHk: 'zh-HK',
|
|
495
|
+
ZhMo: 'zh-MO',
|
|
496
|
+
ZhSg: 'zh-SG',
|
|
497
|
+
ZhTw: 'zh-TW',
|
|
498
|
+
ZuZa: 'zu-ZA',
|
|
499
|
+
AfZa2: 'af_ZA',
|
|
500
|
+
ArAe2: 'ar_AE',
|
|
501
|
+
ArBh2: 'ar_BH',
|
|
502
|
+
ArDz2: 'ar_DZ',
|
|
503
|
+
ArEg2: 'ar_EG',
|
|
504
|
+
ArIq2: 'ar_IQ',
|
|
505
|
+
ArJo2: 'ar_JO',
|
|
506
|
+
ArKw2: 'ar_KW',
|
|
507
|
+
ArLb2: 'ar_LB',
|
|
508
|
+
ArLy2: 'ar_LY',
|
|
509
|
+
ArMa2: 'ar_MA',
|
|
510
|
+
ArOm2: 'ar_OM',
|
|
511
|
+
ArQa2: 'ar_QA',
|
|
512
|
+
ArSa2: 'ar_SA',
|
|
513
|
+
ArSy2: 'ar_SY',
|
|
514
|
+
ArTn2: 'ar_TN',
|
|
515
|
+
ArYe2: 'ar_YE',
|
|
516
|
+
AzAz2: 'az_AZ',
|
|
517
|
+
BeBy2: 'be_BY',
|
|
518
|
+
BgBg2: 'bg_BG',
|
|
519
|
+
BnIn2: 'bn_IN',
|
|
520
|
+
BsBa2: 'bs_BA',
|
|
521
|
+
CaEs2: 'ca_ES',
|
|
522
|
+
CsCz2: 'cs_CZ',
|
|
523
|
+
CyGb2: 'cy_GB',
|
|
524
|
+
DaDk2: 'da_DK',
|
|
525
|
+
DeAt2: 'de_AT',
|
|
526
|
+
DeCh2: 'de_CH',
|
|
527
|
+
DeDe2: 'de_DE',
|
|
528
|
+
DeLi2: 'de_LI',
|
|
529
|
+
DeNl2: 'de_NL',
|
|
530
|
+
ElGr2: 'el_GR',
|
|
531
|
+
EnAu2: 'en_AU',
|
|
532
|
+
EnBz2: 'en_BZ',
|
|
533
|
+
EnCa2: 'en_CA',
|
|
534
|
+
EnGb2: 'en_GB',
|
|
535
|
+
EnIe2: 'en_IE',
|
|
536
|
+
EnJm2: 'en_JM',
|
|
537
|
+
EnMt2: 'en_MT',
|
|
538
|
+
EnNz2: 'en_NZ',
|
|
539
|
+
EnPh2: 'en_PH',
|
|
540
|
+
EnTt2: 'en_TT',
|
|
541
|
+
EnUs2: 'en_US',
|
|
542
|
+
EnVi2: 'en_VI',
|
|
543
|
+
EnZa2: 'en_ZA',
|
|
544
|
+
EnZw2: 'en_ZW',
|
|
545
|
+
EsAr2: 'es_AR',
|
|
546
|
+
EsBo2: 'es_BO',
|
|
547
|
+
EsCl2: 'es_CL',
|
|
548
|
+
EsCo2: 'es_CO',
|
|
549
|
+
EsCr2: 'es_CR',
|
|
550
|
+
EsDo2: 'es_DO',
|
|
551
|
+
EsEc2: 'es_EC',
|
|
552
|
+
EsEs2: 'es_ES',
|
|
553
|
+
EsGt2: 'es_GT',
|
|
554
|
+
EsHn2: 'es_HN',
|
|
555
|
+
EsMx2: 'es_MX',
|
|
556
|
+
EsNi2: 'es_NI',
|
|
557
|
+
EsPa2: 'es_PA',
|
|
558
|
+
EsPe2: 'es_PE',
|
|
559
|
+
EsPr2: 'es_PR',
|
|
560
|
+
EsPy2: 'es_PY',
|
|
561
|
+
EsSv2: 'es_SV',
|
|
562
|
+
EsUy2: 'es_UY',
|
|
563
|
+
EsVe2: 'es_VE',
|
|
564
|
+
EtEe2: 'et_EE',
|
|
565
|
+
EuEs2: 'eu_ES',
|
|
566
|
+
FaIr2: 'fa_IR',
|
|
567
|
+
FiFi2: 'fi_FI',
|
|
568
|
+
FoFo2: 'fo_FO',
|
|
569
|
+
FrBe2: 'fr_BE',
|
|
570
|
+
FrCa2: 'fr_CA',
|
|
571
|
+
FrCh2: 'fr_CH',
|
|
572
|
+
FrFr2: 'fr_FR',
|
|
573
|
+
FrMc2: 'fr_MC',
|
|
574
|
+
FrNl2: 'fr_NL',
|
|
575
|
+
GaIe2: 'ga_IE',
|
|
576
|
+
GlEs2: 'gl_ES',
|
|
577
|
+
GuIn2: 'gu_IN',
|
|
578
|
+
HeIl2: 'he_IL',
|
|
579
|
+
HiIn2: 'hi_IN',
|
|
580
|
+
HrHr2: 'hr_HR',
|
|
581
|
+
HuHu2: 'hu_HU',
|
|
582
|
+
HyAm2: 'hy_AM',
|
|
583
|
+
IdId2: 'id_ID',
|
|
584
|
+
IsIs2: 'is_IS',
|
|
585
|
+
ItCh2: 'it_CH',
|
|
586
|
+
ItIt2: 'it_IT',
|
|
587
|
+
JaJp2: 'ja_JP',
|
|
588
|
+
KaGe2: 'ka_GE',
|
|
589
|
+
KkKz2: 'kk_KZ',
|
|
590
|
+
KlGl2: 'kl_GL',
|
|
591
|
+
KnIn2: 'kn_IN',
|
|
592
|
+
KoKr2: 'ko_KR',
|
|
593
|
+
KokIn2: 'kok_IN',
|
|
594
|
+
LtLt2: 'lt_LT',
|
|
595
|
+
LvLv2: 'lv_LV',
|
|
596
|
+
MkMk2: 'mk_MK',
|
|
597
|
+
MlIn2: 'ml_IN',
|
|
598
|
+
MnMn2: 'mn_MN',
|
|
599
|
+
MrIn2: 'mr_IN',
|
|
600
|
+
MsBn2: 'ms_BN',
|
|
601
|
+
MsMy2: 'ms_MY',
|
|
602
|
+
MtMt2: 'mt_MT',
|
|
603
|
+
NbNo2: 'nb_NO',
|
|
604
|
+
NlBe2: 'nl_BE',
|
|
605
|
+
NlNl2: 'nl_NL',
|
|
606
|
+
NnNo2: 'nn_NO',
|
|
607
|
+
NoNo2: 'no_NO',
|
|
608
|
+
PaIn2: 'pa_IN',
|
|
609
|
+
PlPl2: 'pl_PL',
|
|
610
|
+
PtBr2: 'pt_BR',
|
|
611
|
+
PtPt2: 'pt_PT',
|
|
612
|
+
RoRo2: 'ro_RO',
|
|
613
|
+
RuRu2: 'ru_RU',
|
|
614
|
+
SeNo2: 'se_NO',
|
|
615
|
+
SkSk2: 'sk_SK',
|
|
616
|
+
SlSi2: 'sl_SI',
|
|
617
|
+
SqAl2: 'sq_AL',
|
|
618
|
+
SrBa2: 'sr_BA',
|
|
619
|
+
SrCs2: 'sr_CS',
|
|
620
|
+
SvFi2: 'sv_FI',
|
|
621
|
+
SvSe2: 'sv_SE',
|
|
622
|
+
SwKe2: 'sw_KE',
|
|
623
|
+
SyrSy2: 'syr_SY',
|
|
624
|
+
TaIn2: 'ta_IN',
|
|
625
|
+
TeIn2: 'te_IN',
|
|
626
|
+
ThTh2: 'th_TH',
|
|
627
|
+
TnZa2: 'tn_ZA',
|
|
628
|
+
TrTr2: 'tr_TR',
|
|
629
|
+
UkUa2: 'uk_UA',
|
|
630
|
+
UzUz2: 'uz_UZ',
|
|
631
|
+
ViVn2: 'vi_VN',
|
|
632
|
+
XhZa2: 'xh_ZA',
|
|
633
|
+
ZhCn2: 'zh_CN',
|
|
634
|
+
ZhHk2: 'zh_HK',
|
|
635
|
+
ZhMo2: 'zh_MO',
|
|
636
|
+
ZhSg2: 'zh_SG',
|
|
637
|
+
ZhTw2: 'zh_TW',
|
|
638
|
+
ZuZa2: 'zu_ZA'
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* 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.
|
|
642
|
+
* @export
|
|
643
|
+
* @enum {string}
|
|
644
|
+
*/
|
|
645
|
+
export const PinDeliveryType = {
|
|
646
|
+
Mail: 'MAIL',
|
|
647
|
+
Courier: 'COURIER',
|
|
648
|
+
Epin: 'EPIN'
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* - 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.
|
|
652
|
+
* @export
|
|
653
|
+
* @enum {string}
|
|
654
|
+
*/
|
|
655
|
+
export const PinStatus = {
|
|
656
|
+
Generated: 'GENERATED',
|
|
657
|
+
Waiting: 'WAITING',
|
|
658
|
+
Set: 'SET',
|
|
659
|
+
Inherited: 'INHERITED'
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* 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.
|
|
663
|
+
* @export
|
|
664
|
+
* @enum {string}
|
|
665
|
+
*/
|
|
666
|
+
export const RiskScore = {
|
|
667
|
+
High: 'High',
|
|
668
|
+
Med: 'Med',
|
|
669
|
+
Low: 'Low',
|
|
670
|
+
Pep: 'Pep',
|
|
671
|
+
Prohibited: 'Prohibited'
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
* CreateCardholderApi - axios parameter creator
|
|
675
|
+
* @export
|
|
676
|
+
*/
|
|
677
|
+
export const CreateCardholderApiAxiosParamCreator = function (configuration) {
|
|
678
|
+
return {
|
|
679
|
+
/**
|
|
680
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
681
|
+
* @summary Create Cardholder
|
|
682
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
683
|
+
* @param {string} [xIdempotencyKey]
|
|
684
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
createCardholder: (createCardholderBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [createCardholderBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (createCardholderBody, xIdempotencyKey, xAuditUser, options = {}) {
|
|
689
|
+
// verify required parameter 'createCardholderBody' is not null or undefined
|
|
690
|
+
assertParamExists('createCardholder', 'createCardholderBody', createCardholderBody);
|
|
691
|
+
const localVarPath = `/v1/cardholders`;
|
|
692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
693
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
694
|
+
let baseOptions;
|
|
695
|
+
if (configuration) {
|
|
696
|
+
baseOptions = configuration.baseOptions;
|
|
697
|
+
}
|
|
698
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
699
|
+
const localVarHeaderParameter = {};
|
|
700
|
+
const localVarQueryParameter = {};
|
|
701
|
+
// authentication bearerAuth required
|
|
702
|
+
// http bearer authentication required
|
|
703
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
705
|
+
if (xIdempotencyKey != null) {
|
|
706
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
707
|
+
}
|
|
708
|
+
if (xAuditUser != null) {
|
|
709
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
710
|
+
}
|
|
711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
713
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
714
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCardholderBody, localVarRequestOptions, configuration);
|
|
715
|
+
return {
|
|
716
|
+
url: toPathString(localVarUrlObj),
|
|
717
|
+
options: localVarRequestOptions,
|
|
718
|
+
};
|
|
719
|
+
}),
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* CreateCardholderApi - functional programming interface
|
|
724
|
+
* @export
|
|
725
|
+
*/
|
|
726
|
+
export const CreateCardholderApiFp = function (configuration) {
|
|
727
|
+
const localVarAxiosParamCreator = CreateCardholderApiAxiosParamCreator(configuration);
|
|
728
|
+
return {
|
|
729
|
+
/**
|
|
730
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
731
|
+
* @summary Create Cardholder
|
|
732
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
733
|
+
* @param {string} [xIdempotencyKey]
|
|
734
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
|
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
var _a, _b, _c;
|
|
741
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options);
|
|
742
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
743
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CreateCardholderApi.createCardholder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
744
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
745
|
+
});
|
|
746
|
+
},
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* CreateCardholderApi - factory interface
|
|
751
|
+
* @export
|
|
752
|
+
*/
|
|
753
|
+
export const CreateCardholderApiFactory = function (configuration, basePath, axios) {
|
|
754
|
+
const localVarFp = CreateCardholderApiFp(configuration);
|
|
755
|
+
return {
|
|
756
|
+
/**
|
|
757
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
758
|
+
* @summary Create Cardholder
|
|
759
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
760
|
+
* @param {string} [xIdempotencyKey]
|
|
761
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
|
|
766
|
+
return localVarFp.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
/**
|
|
771
|
+
* CreateCardholderApi - object-oriented interface
|
|
772
|
+
* @export
|
|
773
|
+
* @class CreateCardholderApi
|
|
774
|
+
* @extends {BaseAPI}
|
|
775
|
+
*/
|
|
776
|
+
export class CreateCardholderApi extends BaseAPI {
|
|
777
|
+
/**
|
|
778
|
+
* Send a request to this endpoint to create a new cardholder record in Enfuce.
|
|
779
|
+
* @summary Create Cardholder
|
|
780
|
+
* @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
|
|
781
|
+
* @param {string} [xIdempotencyKey]
|
|
782
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
* @memberof CreateCardholderApi
|
|
786
|
+
*/
|
|
787
|
+
createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
|
|
788
|
+
return CreateCardholderApiFp(this.configuration).createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* GetCardholderApi - axios parameter creator
|
|
793
|
+
* @export
|
|
794
|
+
*/
|
|
795
|
+
export const GetCardholderApiAxiosParamCreator = function (configuration) {
|
|
796
|
+
return {
|
|
797
|
+
/**
|
|
798
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
799
|
+
* @summary Get Cardholder by Cardholder ID
|
|
800
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
801
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
getCardholderById: (id_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xAuditUser_1, ...args_1], void 0, function* (id, xAuditUser, options = {}) {
|
|
806
|
+
// verify required parameter 'id' is not null or undefined
|
|
807
|
+
assertParamExists('getCardholderById', 'id', id);
|
|
808
|
+
const localVarPath = `/v1/cardholders/{id}`
|
|
809
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
812
|
+
let baseOptions;
|
|
813
|
+
if (configuration) {
|
|
814
|
+
baseOptions = configuration.baseOptions;
|
|
815
|
+
}
|
|
816
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
817
|
+
const localVarHeaderParameter = {};
|
|
818
|
+
const localVarQueryParameter = {};
|
|
819
|
+
// authentication bearerAuth required
|
|
820
|
+
// http bearer authentication required
|
|
821
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
822
|
+
if (xAuditUser != null) {
|
|
823
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
824
|
+
}
|
|
825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
827
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
828
|
+
return {
|
|
829
|
+
url: toPathString(localVarUrlObj),
|
|
830
|
+
options: localVarRequestOptions,
|
|
831
|
+
};
|
|
832
|
+
}),
|
|
833
|
+
/**
|
|
834
|
+
* 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>
|
|
835
|
+
* @summary Retrieve List of Cardholders
|
|
836
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
837
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
838
|
+
* @param {*} [options] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
*/
|
|
841
|
+
getCardholders: (customerNumber_1, xAuditUser_1, ...args_1) => __awaiter(this, [customerNumber_1, xAuditUser_1, ...args_1], void 0, function* (customerNumber, xAuditUser, options = {}) {
|
|
842
|
+
// verify required parameter 'customerNumber' is not null or undefined
|
|
843
|
+
assertParamExists('getCardholders', 'customerNumber', customerNumber);
|
|
844
|
+
const localVarPath = `/v1/cardholders`;
|
|
845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
847
|
+
let baseOptions;
|
|
848
|
+
if (configuration) {
|
|
849
|
+
baseOptions = configuration.baseOptions;
|
|
850
|
+
}
|
|
851
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
852
|
+
const localVarHeaderParameter = {};
|
|
853
|
+
const localVarQueryParameter = {};
|
|
854
|
+
// authentication bearerAuth required
|
|
855
|
+
// http bearer authentication required
|
|
856
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
857
|
+
if (customerNumber !== undefined) {
|
|
858
|
+
localVarQueryParameter['customerNumber'] = customerNumber;
|
|
859
|
+
}
|
|
860
|
+
if (xAuditUser != null) {
|
|
861
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
862
|
+
}
|
|
863
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
864
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
865
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
866
|
+
return {
|
|
867
|
+
url: toPathString(localVarUrlObj),
|
|
868
|
+
options: localVarRequestOptions,
|
|
869
|
+
};
|
|
870
|
+
}),
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
* GetCardholderApi - functional programming interface
|
|
875
|
+
* @export
|
|
876
|
+
*/
|
|
877
|
+
export const GetCardholderApiFp = function (configuration) {
|
|
878
|
+
const localVarAxiosParamCreator = GetCardholderApiAxiosParamCreator(configuration);
|
|
879
|
+
return {
|
|
880
|
+
/**
|
|
881
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
882
|
+
* @summary Get Cardholder by Cardholder ID
|
|
883
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
884
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
getCardholderById(id, xAuditUser, options) {
|
|
889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
890
|
+
var _a, _b, _c;
|
|
891
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardholderById(id, xAuditUser, options);
|
|
892
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
893
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardholderApi.getCardholderById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
894
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
895
|
+
});
|
|
896
|
+
},
|
|
897
|
+
/**
|
|
898
|
+
* 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>
|
|
899
|
+
* @summary Retrieve List of Cardholders
|
|
900
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
901
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
getCardholders(customerNumber, xAuditUser, options) {
|
|
906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
907
|
+
var _a, _b, _c;
|
|
908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardholders(customerNumber, xAuditUser, options);
|
|
909
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
910
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardholderApi.getCardholders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
911
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
912
|
+
});
|
|
913
|
+
},
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
/**
|
|
917
|
+
* GetCardholderApi - factory interface
|
|
918
|
+
* @export
|
|
919
|
+
*/
|
|
920
|
+
export const GetCardholderApiFactory = function (configuration, basePath, axios) {
|
|
921
|
+
const localVarFp = GetCardholderApiFp(configuration);
|
|
922
|
+
return {
|
|
923
|
+
/**
|
|
924
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
925
|
+
* @summary Get Cardholder by Cardholder ID
|
|
926
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
927
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
getCardholderById(id, xAuditUser, options) {
|
|
932
|
+
return localVarFp.getCardholderById(id, xAuditUser, options).then((request) => request(axios, basePath));
|
|
933
|
+
},
|
|
934
|
+
/**
|
|
935
|
+
* 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>
|
|
936
|
+
* @summary Retrieve List of Cardholders
|
|
937
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
938
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
*/
|
|
942
|
+
getCardholders(customerNumber, xAuditUser, options) {
|
|
943
|
+
return localVarFp.getCardholders(customerNumber, xAuditUser, options).then((request) => request(axios, basePath));
|
|
944
|
+
},
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* GetCardholderApi - object-oriented interface
|
|
949
|
+
* @export
|
|
950
|
+
* @class GetCardholderApi
|
|
951
|
+
* @extends {BaseAPI}
|
|
952
|
+
*/
|
|
953
|
+
export class GetCardholderApi extends BaseAPI {
|
|
954
|
+
/**
|
|
955
|
+
* Send a request to this endpoint to retrieve details of a cardholder.
|
|
956
|
+
* @summary Get Cardholder by Cardholder ID
|
|
957
|
+
* @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
|
|
958
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
* @memberof GetCardholderApi
|
|
962
|
+
*/
|
|
963
|
+
getCardholderById(id, xAuditUser, options) {
|
|
964
|
+
return GetCardholderApiFp(this.configuration).getCardholderById(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* 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>
|
|
968
|
+
* @summary Retrieve List of Cardholders
|
|
969
|
+
* @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
|
|
970
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
* @memberof GetCardholderApi
|
|
974
|
+
*/
|
|
975
|
+
getCardholders(customerNumber, xAuditUser, options) {
|
|
976
|
+
return GetCardholderApiFp(this.configuration).getCardholders(customerNumber, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* GetCardsByCardholderIdApi - axios parameter creator
|
|
981
|
+
* @export
|
|
982
|
+
*/
|
|
983
|
+
export const GetCardsByCardholderIdApiAxiosParamCreator = function (configuration) {
|
|
984
|
+
return {
|
|
985
|
+
/**
|
|
986
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
987
|
+
* @summary Get Cards by Cardholder ID
|
|
988
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
989
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
990
|
+
* @param {number} [size] The size of the page to be returned.
|
|
991
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
*/
|
|
995
|
+
getCardsByCardholderId: (id_1, page_1, size_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, page_1, size_1, xAuditUser_1, ...args_1], void 0, function* (id, page, size, xAuditUser, options = {}) {
|
|
996
|
+
// verify required parameter 'id' is not null or undefined
|
|
997
|
+
assertParamExists('getCardsByCardholderId', 'id', id);
|
|
998
|
+
const localVarPath = `/v1/cardholders/{id}/cards`
|
|
999
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1000
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1001
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1002
|
+
let baseOptions;
|
|
1003
|
+
if (configuration) {
|
|
1004
|
+
baseOptions = configuration.baseOptions;
|
|
1005
|
+
}
|
|
1006
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1007
|
+
const localVarHeaderParameter = {};
|
|
1008
|
+
const localVarQueryParameter = {};
|
|
1009
|
+
// authentication bearerAuth required
|
|
1010
|
+
// http bearer authentication required
|
|
1011
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1012
|
+
if (page !== undefined) {
|
|
1013
|
+
localVarQueryParameter['page'] = page;
|
|
1014
|
+
}
|
|
1015
|
+
if (size !== undefined) {
|
|
1016
|
+
localVarQueryParameter['size'] = size;
|
|
1017
|
+
}
|
|
1018
|
+
if (xAuditUser != null) {
|
|
1019
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1020
|
+
}
|
|
1021
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1022
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1023
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1024
|
+
return {
|
|
1025
|
+
url: toPathString(localVarUrlObj),
|
|
1026
|
+
options: localVarRequestOptions,
|
|
1027
|
+
};
|
|
1028
|
+
}),
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* GetCardsByCardholderIdApi - functional programming interface
|
|
1033
|
+
* @export
|
|
1034
|
+
*/
|
|
1035
|
+
export const GetCardsByCardholderIdApiFp = function (configuration) {
|
|
1036
|
+
const localVarAxiosParamCreator = GetCardsByCardholderIdApiAxiosParamCreator(configuration);
|
|
1037
|
+
return {
|
|
1038
|
+
/**
|
|
1039
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
1040
|
+
* @summary Get Cards by Cardholder ID
|
|
1041
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
1042
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
1043
|
+
* @param {number} [size] The size of the page to be returned.
|
|
1044
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
getCardsByCardholderId(id, page, size, xAuditUser, options) {
|
|
1049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
|
+
var _a, _b, _c;
|
|
1051
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardsByCardholderId(id, page, size, xAuditUser, options);
|
|
1052
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1053
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardsByCardholderIdApi.getCardsByCardholderId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1054
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1055
|
+
});
|
|
1056
|
+
},
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
/**
|
|
1060
|
+
* GetCardsByCardholderIdApi - factory interface
|
|
1061
|
+
* @export
|
|
1062
|
+
*/
|
|
1063
|
+
export const GetCardsByCardholderIdApiFactory = function (configuration, basePath, axios) {
|
|
1064
|
+
const localVarFp = GetCardsByCardholderIdApiFp(configuration);
|
|
1065
|
+
return {
|
|
1066
|
+
/**
|
|
1067
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
1068
|
+
* @summary Get Cards by Cardholder ID
|
|
1069
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
1070
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
1071
|
+
* @param {number} [size] The size of the page to be returned.
|
|
1072
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
getCardsByCardholderId(id, page, size, xAuditUser, options) {
|
|
1077
|
+
return localVarFp.getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1078
|
+
},
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* GetCardsByCardholderIdApi - object-oriented interface
|
|
1083
|
+
* @export
|
|
1084
|
+
* @class GetCardsByCardholderIdApi
|
|
1085
|
+
* @extends {BaseAPI}
|
|
1086
|
+
*/
|
|
1087
|
+
export class GetCardsByCardholderIdApi extends BaseAPI {
|
|
1088
|
+
/**
|
|
1089
|
+
* Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
|
|
1090
|
+
* @summary Get Cards by Cardholder ID
|
|
1091
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder.
|
|
1092
|
+
* @param {number} [page] Zero-based page index (0..N)\"
|
|
1093
|
+
* @param {number} [size] The size of the page to be returned.
|
|
1094
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1095
|
+
* @param {*} [options] Override http request option.
|
|
1096
|
+
* @throws {RequiredError}
|
|
1097
|
+
* @memberof GetCardsByCardholderIdApi
|
|
1098
|
+
*/
|
|
1099
|
+
getCardsByCardholderId(id, page, size, xAuditUser, options) {
|
|
1100
|
+
return GetCardsByCardholderIdApiFp(this.configuration).getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* UpdateCardholderApi - axios parameter creator
|
|
1105
|
+
* @export
|
|
1106
|
+
*/
|
|
1107
|
+
export const UpdateCardholderApiAxiosParamCreator = function (configuration) {
|
|
1108
|
+
return {
|
|
1109
|
+
/**
|
|
1110
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
1111
|
+
* @summary Update Cardholder
|
|
1112
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
1113
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
1114
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
*/
|
|
1118
|
+
updateCardholder: (id_1, updateCardholderBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, updateCardholderBody_1, xAuditUser_1, ...args_1], void 0, function* (id, updateCardholderBody, xAuditUser, options = {}) {
|
|
1119
|
+
// verify required parameter 'id' is not null or undefined
|
|
1120
|
+
assertParamExists('updateCardholder', 'id', id);
|
|
1121
|
+
// verify required parameter 'updateCardholderBody' is not null or undefined
|
|
1122
|
+
assertParamExists('updateCardholder', 'updateCardholderBody', updateCardholderBody);
|
|
1123
|
+
const localVarPath = `/v1/cardholders/{id}`
|
|
1124
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
// authentication bearerAuth required
|
|
1135
|
+
// http bearer authentication required
|
|
1136
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1138
|
+
if (xAuditUser != null) {
|
|
1139
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1140
|
+
}
|
|
1141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1143
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1144
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCardholderBody, localVarRequestOptions, configuration);
|
|
1145
|
+
return {
|
|
1146
|
+
url: toPathString(localVarUrlObj),
|
|
1147
|
+
options: localVarRequestOptions,
|
|
1148
|
+
};
|
|
1149
|
+
}),
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
/**
|
|
1153
|
+
* UpdateCardholderApi - functional programming interface
|
|
1154
|
+
* @export
|
|
1155
|
+
*/
|
|
1156
|
+
export const UpdateCardholderApiFp = function (configuration) {
|
|
1157
|
+
const localVarAxiosParamCreator = UpdateCardholderApiAxiosParamCreator(configuration);
|
|
1158
|
+
return {
|
|
1159
|
+
/**
|
|
1160
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
1161
|
+
* @summary Update Cardholder
|
|
1162
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
1163
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
1164
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
updateCardholder(id, updateCardholderBody, xAuditUser, options) {
|
|
1169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1170
|
+
var _a, _b, _c;
|
|
1171
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCardholder(id, updateCardholderBody, xAuditUser, options);
|
|
1172
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1173
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardholderApi.updateCardholder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1174
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* UpdateCardholderApi - factory interface
|
|
1181
|
+
* @export
|
|
1182
|
+
*/
|
|
1183
|
+
export const UpdateCardholderApiFactory = function (configuration, basePath, axios) {
|
|
1184
|
+
const localVarFp = UpdateCardholderApiFp(configuration);
|
|
1185
|
+
return {
|
|
1186
|
+
/**
|
|
1187
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
1188
|
+
* @summary Update Cardholder
|
|
1189
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
1190
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
1191
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1192
|
+
* @param {*} [options] Override http request option.
|
|
1193
|
+
* @throws {RequiredError}
|
|
1194
|
+
*/
|
|
1195
|
+
updateCardholder(id, updateCardholderBody, xAuditUser, options) {
|
|
1196
|
+
return localVarFp.updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1197
|
+
},
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* UpdateCardholderApi - object-oriented interface
|
|
1202
|
+
* @export
|
|
1203
|
+
* @class UpdateCardholderApi
|
|
1204
|
+
* @extends {BaseAPI}
|
|
1205
|
+
*/
|
|
1206
|
+
export class UpdateCardholderApi extends BaseAPI {
|
|
1207
|
+
/**
|
|
1208
|
+
* Send a request to this endpoint to modify details of a cardholder.
|
|
1209
|
+
* @summary Update Cardholder
|
|
1210
|
+
* @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
|
|
1211
|
+
* @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
|
|
1212
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @throws {RequiredError}
|
|
1215
|
+
* @memberof UpdateCardholderApi
|
|
1216
|
+
*/
|
|
1217
|
+
updateCardholder(id, updateCardholderBody, xAuditUser, options) {
|
|
1218
|
+
return UpdateCardholderApiFp(this.configuration).updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1219
|
+
}
|
|
1220
|
+
}
|