@enfuce/nextgen-sdk 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authorisation-control/api.d.ts +0 -302
- package/dist/authorisation-control/api.js +10 -28
- package/dist/authorisation-control/base.d.ts +0 -24
- package/dist/authorisation-control/base.js +0 -19
- package/dist/authorisation-control/common.d.ts +4 -35
- package/dist/authorisation-control/common.js +16 -38
- package/dist/authorisation-control/configuration.d.ts +24 -17
- package/dist/authorisation-control/configuration.js +3 -3
- package/dist/card/api.d.ts +41 -740
- package/dist/card/api.js +38 -105
- package/dist/card/base.d.ts +0 -24
- package/dist/card/base.js +0 -19
- package/dist/card/common.d.ts +4 -35
- package/dist/card/common.js +16 -38
- package/dist/card/configuration.d.ts +24 -17
- package/dist/card/configuration.js +3 -3
- package/dist/cardholder/api.d.ts +959 -686
- package/dist/cardholder/api.js +783 -73
- package/dist/cardholder/base.d.ts +0 -24
- package/dist/cardholder/base.js +0 -19
- package/dist/cardholder/common.d.ts +4 -35
- package/dist/cardholder/common.js +16 -38
- package/dist/cardholder/configuration.d.ts +24 -17
- package/dist/cardholder/configuration.js +3 -3
- package/dist/cards/api.d.ts +0 -7
- package/dist/cards/api.js +2 -9
- package/dist/cards/base.d.ts +0 -24
- package/dist/cards/base.js +0 -19
- package/dist/cards/common.d.ts +4 -35
- package/dist/cards/common.js +16 -38
- package/dist/cards/configuration.d.ts +24 -17
- package/dist/cards/configuration.js +3 -3
- package/dist/clearing-file-copy/api.d.ts +0 -497
- package/dist/clearing-file-copy/api.js +12 -26
- package/dist/clearing-file-copy/base.d.ts +0 -24
- package/dist/clearing-file-copy/base.js +0 -19
- package/dist/clearing-file-copy/common.d.ts +4 -35
- package/dist/clearing-file-copy/common.js +16 -38
- package/dist/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/authorisation-control/api.d.ts +0 -302
- package/dist/esm/authorisation-control/api.js +10 -28
- package/dist/esm/authorisation-control/base.d.ts +0 -24
- package/dist/esm/authorisation-control/base.js +0 -19
- package/dist/esm/authorisation-control/common.d.ts +4 -35
- package/dist/esm/authorisation-control/common.js +14 -37
- package/dist/esm/authorisation-control/configuration.d.ts +24 -17
- package/dist/esm/authorisation-control/configuration.js +3 -3
- package/dist/esm/card/api.d.ts +41 -740
- package/dist/esm/card/api.js +38 -105
- package/dist/esm/card/base.d.ts +0 -24
- package/dist/esm/card/base.js +0 -19
- package/dist/esm/card/common.d.ts +4 -35
- package/dist/esm/card/common.js +14 -37
- package/dist/esm/card/configuration.d.ts +24 -17
- package/dist/esm/card/configuration.js +3 -3
- package/dist/esm/cardholder/api.d.ts +959 -686
- package/dist/esm/cardholder/api.js +782 -72
- package/dist/esm/cardholder/base.d.ts +0 -24
- package/dist/esm/cardholder/base.js +0 -19
- package/dist/esm/cardholder/common.d.ts +4 -35
- package/dist/esm/cardholder/common.js +14 -37
- package/dist/esm/cardholder/configuration.d.ts +24 -17
- package/dist/esm/cardholder/configuration.js +3 -3
- package/dist/esm/cards/api.d.ts +0 -7
- package/dist/esm/cards/api.js +2 -9
- package/dist/esm/cards/base.d.ts +0 -24
- package/dist/esm/cards/base.js +0 -19
- package/dist/esm/cards/common.d.ts +4 -35
- package/dist/esm/cards/common.js +14 -37
- package/dist/esm/cards/configuration.d.ts +24 -17
- package/dist/esm/cards/configuration.js +3 -3
- package/dist/esm/clearing-file-copy/api.d.ts +0 -497
- package/dist/esm/clearing-file-copy/api.js +12 -26
- package/dist/esm/clearing-file-copy/base.d.ts +0 -24
- package/dist/esm/clearing-file-copy/base.js +0 -19
- package/dist/esm/clearing-file-copy/common.d.ts +4 -35
- package/dist/esm/clearing-file-copy/common.js +14 -37
- package/dist/esm/clearing-file-copy/configuration.d.ts +24 -17
- package/dist/esm/clearing-file-copy/configuration.js +3 -3
- package/dist/esm/issuer-events/api.d.ts +639 -601
- package/dist/esm/issuer-events/api.js +520 -54
- package/dist/esm/issuer-events/base.d.ts +0 -24
- package/dist/esm/issuer-events/base.js +0 -19
- package/dist/esm/issuer-events/common.d.ts +4 -35
- package/dist/esm/issuer-events/common.js +14 -37
- package/dist/esm/issuer-events/configuration.d.ts +24 -17
- package/dist/esm/issuer-events/configuration.js +3 -3
- package/dist/esm/pin/api.d.ts +0 -76
- package/dist/esm/pin/api.js +3 -15
- package/dist/esm/pin/base.d.ts +0 -24
- package/dist/esm/pin/base.js +0 -19
- package/dist/esm/pin/common.d.ts +4 -35
- package/dist/esm/pin/common.js +14 -37
- package/dist/esm/pin/configuration.d.ts +24 -17
- package/dist/esm/pin/configuration.js +3 -3
- package/dist/esm/threeds/api.d.ts +0 -18
- package/dist/esm/threeds/api.js +1 -8
- package/dist/esm/threeds/base.d.ts +0 -24
- package/dist/esm/threeds/base.js +0 -19
- package/dist/esm/threeds/common.d.ts +4 -35
- package/dist/esm/threeds/common.js +14 -37
- package/dist/esm/threeds/configuration.d.ts +24 -17
- package/dist/esm/threeds/configuration.js +3 -3
- package/dist/esm/threeds-oob/api.d.ts +0 -90
- package/dist/esm/threeds-oob/api.js +2 -9
- package/dist/esm/threeds-oob/base.d.ts +0 -24
- package/dist/esm/threeds-oob/base.js +0 -19
- package/dist/esm/threeds-oob/common.d.ts +4 -35
- package/dist/esm/threeds-oob/common.js +14 -37
- package/dist/esm/threeds-oob/configuration.d.ts +24 -17
- package/dist/esm/threeds-oob/configuration.js +3 -3
- package/dist/esm/transaction-event/api.d.ts +0 -452
- package/dist/esm/transaction-event/api.js +11 -27
- package/dist/esm/transaction-event/base.d.ts +0 -24
- package/dist/esm/transaction-event/base.js +0 -19
- package/dist/esm/transaction-event/common.d.ts +4 -35
- package/dist/esm/transaction-event/common.js +14 -37
- package/dist/esm/transaction-event/configuration.d.ts +24 -17
- package/dist/esm/transaction-event/configuration.js +3 -3
- package/dist/esm/wallet/api.d.ts +0 -342
- package/dist/esm/wallet/api.js +29 -83
- package/dist/esm/wallet/base.d.ts +0 -24
- package/dist/esm/wallet/base.js +0 -19
- package/dist/esm/wallet/common.d.ts +4 -35
- package/dist/esm/wallet/common.js +14 -37
- package/dist/esm/wallet/configuration.d.ts +24 -17
- package/dist/esm/wallet/configuration.js +3 -3
- package/dist/issuer-events/api.d.ts +639 -601
- package/dist/issuer-events/api.js +521 -55
- package/dist/issuer-events/base.d.ts +0 -24
- package/dist/issuer-events/base.js +0 -19
- package/dist/issuer-events/common.d.ts +4 -35
- package/dist/issuer-events/common.js +16 -38
- package/dist/issuer-events/configuration.d.ts +24 -17
- package/dist/issuer-events/configuration.js +3 -3
- package/dist/pin/api.d.ts +0 -76
- package/dist/pin/api.js +3 -15
- package/dist/pin/base.d.ts +0 -24
- package/dist/pin/base.js +0 -19
- package/dist/pin/common.d.ts +4 -35
- package/dist/pin/common.js +16 -38
- package/dist/pin/configuration.d.ts +24 -17
- package/dist/pin/configuration.js +3 -3
- package/dist/threeds/api.d.ts +0 -18
- package/dist/threeds/api.js +1 -8
- package/dist/threeds/base.d.ts +0 -24
- package/dist/threeds/base.js +0 -19
- package/dist/threeds/common.d.ts +4 -35
- package/dist/threeds/common.js +16 -38
- package/dist/threeds/configuration.d.ts +24 -17
- package/dist/threeds/configuration.js +3 -3
- package/dist/threeds-oob/api.d.ts +0 -90
- package/dist/threeds-oob/api.js +2 -9
- package/dist/threeds-oob/base.d.ts +0 -24
- package/dist/threeds-oob/base.js +0 -19
- package/dist/threeds-oob/common.d.ts +4 -35
- package/dist/threeds-oob/common.js +16 -38
- package/dist/threeds-oob/configuration.d.ts +24 -17
- package/dist/threeds-oob/configuration.js +3 -3
- package/dist/transaction-event/api.d.ts +0 -452
- package/dist/transaction-event/api.js +11 -27
- package/dist/transaction-event/base.d.ts +0 -24
- package/dist/transaction-event/base.js +0 -19
- package/dist/transaction-event/common.d.ts +4 -35
- package/dist/transaction-event/common.js +16 -38
- package/dist/transaction-event/configuration.d.ts +24 -17
- package/dist/transaction-event/configuration.js +3 -3
- package/dist/wallet/api.d.ts +0 -342
- package/dist/wallet/api.js +29 -83
- package/dist/wallet/base.d.ts +0 -24
- package/dist/wallet/base.js +0 -19
- package/dist/wallet/common.d.ts +4 -35
- package/dist/wallet/common.js +16 -38
- package/dist/wallet/configuration.d.ts +24 -17
- package/dist/wallet/configuration.js +3 -3
- package/package.json +2 -2
- package/src/authorisation-control/api.ts +11 -314
- package/src/authorisation-control/base.ts +0 -24
- package/src/authorisation-control/common.ts +15 -38
- package/src/authorisation-control/configuration.ts +26 -20
- package/src/card/api.ts +80 -786
- package/src/card/base.ts +0 -24
- package/src/card/common.ts +15 -38
- package/src/card/configuration.ts +26 -20
- package/src/cardholder/api.ts +987 -714
- package/src/cardholder/base.ts +0 -24
- package/src/cardholder/common.ts +15 -38
- package/src/cardholder/configuration.ts +26 -20
- package/src/cards/api.ts +3 -11
- package/src/cards/base.ts +0 -24
- package/src/cards/common.ts +15 -38
- package/src/cards/configuration.ts +26 -20
- package/src/clearing-file-copy/api.ts +13 -510
- package/src/clearing-file-copy/base.ts +0 -24
- package/src/clearing-file-copy/common.ts +15 -38
- package/src/clearing-file-copy/configuration.ts +26 -20
- package/src/issuer-events/api.ts +661 -628
- package/src/issuer-events/base.ts +0 -24
- package/src/issuer-events/common.ts +15 -38
- package/src/issuer-events/configuration.ts +26 -20
- package/src/pin/api.ts +4 -83
- package/src/pin/base.ts +0 -24
- package/src/pin/common.ts +15 -38
- package/src/pin/configuration.ts +26 -20
- package/src/threeds/api.ts +2 -22
- package/src/threeds/base.ts +0 -24
- package/src/threeds/common.ts +15 -38
- package/src/threeds/configuration.ts +26 -20
- package/src/threeds-oob/api.ts +3 -95
- package/src/threeds-oob/base.ts +0 -24
- package/src/threeds-oob/common.ts +15 -38
- package/src/threeds-oob/configuration.ts +26 -20
- package/src/transaction-event/api.ts +12 -464
- package/src/transaction-event/base.ts +0 -24
- package/src/transaction-event/common.ts +15 -38
- package/src/transaction-event/configuration.ts +26 -20
- package/src/wallet/api.ts +30 -377
- package/src/wallet/base.ts +0 -24
- package/src/wallet/common.ts +15 -38
- package/src/wallet/configuration.ts +26 -20
package/dist/esm/threeds/base.js
CHANGED
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
24
|
var _a;
|
|
@@ -40,12 +31,6 @@ export class BaseAPI {
|
|
|
40
31
|
}
|
|
41
32
|
}
|
|
42
33
|
;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @class RequiredError
|
|
47
|
-
* @extends {Error}
|
|
48
|
-
*/
|
|
49
34
|
export class RequiredError extends Error {
|
|
50
35
|
constructor(field, msg) {
|
|
51
36
|
super(msg);
|
|
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
|
|
|
53
38
|
this.name = "RequiredError";
|
|
54
39
|
}
|
|
55
40
|
}
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
41
|
export const operationServerMap = {};
|
|
@@ -12,54 +12,23 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
26
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
27
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
54
30
|
*/
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
55
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
33
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -21,25 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import { RequiredError } from "./base";
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
24
|
export const DUMMY_BASE_URL = 'https://example.com';
|
|
29
25
|
/**
|
|
30
26
|
*
|
|
31
27
|
* @throws {RequiredError}
|
|
32
|
-
* @export
|
|
33
28
|
*/
|
|
34
29
|
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
35
30
|
if (paramValue === null || paramValue === undefined) {
|
|
36
31
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
37
32
|
}
|
|
38
33
|
};
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
34
|
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
36
|
if (configuration && configuration.apiKey) {
|
|
@@ -50,19 +41,11 @@ export const setApiKeyToObject = function (object, keyParamName, configuration)
|
|
|
50
41
|
}
|
|
51
42
|
});
|
|
52
43
|
};
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @export
|
|
56
|
-
*/
|
|
57
44
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
58
45
|
if (configuration && (configuration.username || configuration.password)) {
|
|
59
46
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
60
47
|
}
|
|
61
48
|
};
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @export
|
|
65
|
-
*/
|
|
66
49
|
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
51
|
if (configuration && configuration.accessToken) {
|
|
@@ -73,10 +56,6 @@ export const setBearerAuthToObject = function (object, configuration) {
|
|
|
73
56
|
}
|
|
74
57
|
});
|
|
75
58
|
};
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @export
|
|
79
|
-
*/
|
|
80
59
|
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
61
|
if (configuration && configuration.accessToken) {
|
|
@@ -91,7 +70,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
70
|
if (parameter == null)
|
|
92
71
|
return;
|
|
93
72
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
73
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
74
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
96
75
|
}
|
|
97
76
|
else {
|
|
@@ -107,39 +86,37 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
107
86
|
}
|
|
108
87
|
}
|
|
109
88
|
}
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @export
|
|
113
|
-
*/
|
|
114
89
|
export const setSearchParams = function (url, ...objects) {
|
|
115
90
|
const searchParams = new URLSearchParams(url.search);
|
|
116
91
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
92
|
url.search = searchParams.toString();
|
|
118
93
|
};
|
|
119
94
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
95
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
96
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
122
98
|
*/
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
101
|
+
if (value instanceof Set) {
|
|
102
|
+
return Array.from(value);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
123
108
|
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
124
109
|
const nonString = typeof value !== 'string';
|
|
125
110
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
111
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
112
|
: nonString;
|
|
128
113
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
114
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
115
|
: (value || "");
|
|
131
116
|
};
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @export
|
|
135
|
-
*/
|
|
136
117
|
export const toPathString = function (url) {
|
|
137
118
|
return url.pathname + url.search + url.hash;
|
|
138
119
|
};
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @export
|
|
142
|
-
*/
|
|
143
120
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
121
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
122
|
var _a;
|
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* 3DS API
|
|
5
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -18,6 +17,7 @@ export class Configuration {
|
|
|
18
17
|
this.username = param.username;
|
|
19
18
|
this.password = param.password;
|
|
20
19
|
this.accessToken = param.accessToken;
|
|
20
|
+
this.awsv4 = param.awsv4;
|
|
21
21
|
this.basePath = param.basePath;
|
|
22
22
|
this.serverIndex = param.serverIndex;
|
|
23
23
|
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
@@ -34,7 +34,7 @@ export class Configuration {
|
|
|
34
34
|
* @return True if the given MIME is JSON, false otherwise.
|
|
35
35
|
*/
|
|
36
36
|
isJsonMime(mime) {
|
|
37
|
-
const jsonMime =
|
|
38
|
-
return mime !== null &&
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -13,159 +13,76 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface InitiateAuthenticationChallengeBody
|
|
20
|
-
*/
|
|
21
16
|
export interface InitiateAuthenticationChallengeBody {
|
|
22
17
|
/**
|
|
23
18
|
* Unique identifier of the authentication request.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
26
19
|
*/
|
|
27
20
|
'authenticationId': string;
|
|
28
21
|
/**
|
|
29
22
|
* Unique challenge identifier of this authentication step.
|
|
30
|
-
* @type {any}
|
|
31
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
32
23
|
*/
|
|
33
24
|
'challengeId': any;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {InitiateAuthenticationChallengeBodyCardholder}
|
|
37
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
38
|
-
*/
|
|
39
25
|
'cardholder': InitiateAuthenticationChallengeBodyCardholder;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {InitiateAuthenticationChallengeBodyCard}
|
|
43
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
44
|
-
*/
|
|
45
26
|
'card': InitiateAuthenticationChallengeBodyCard;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {ThreeDsTransaction}
|
|
49
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
50
|
-
*/
|
|
51
27
|
'threeDsTransaction'?: ThreeDsTransaction;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Merchant}
|
|
55
|
-
* @memberof InitiateAuthenticationChallengeBody
|
|
56
|
-
*/
|
|
57
28
|
'merchant'?: Merchant;
|
|
58
29
|
}
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
* @interface InitiateAuthenticationChallengeBodyCard
|
|
63
|
-
*/
|
|
64
30
|
export interface InitiateAuthenticationChallengeBodyCard {
|
|
65
31
|
/**
|
|
66
32
|
* Unique identification number of the card.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof InitiateAuthenticationChallengeBodyCard
|
|
69
33
|
*/
|
|
70
34
|
'id': string;
|
|
71
35
|
/**
|
|
72
36
|
* Truncated card number.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof InitiateAuthenticationChallengeBodyCard
|
|
75
37
|
*/
|
|
76
38
|
'maskedPan': string;
|
|
77
39
|
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @export
|
|
81
|
-
* @interface InitiateAuthenticationChallengeBodyCardholder
|
|
82
|
-
*/
|
|
83
40
|
export interface InitiateAuthenticationChallengeBodyCardholder {
|
|
84
41
|
/**
|
|
85
42
|
* Unique identification number of the cardholder.
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof InitiateAuthenticationChallengeBodyCardholder
|
|
88
43
|
*/
|
|
89
44
|
'id': string;
|
|
90
45
|
/**
|
|
91
46
|
* Unique identifier of the cardholder in other parts of the Enfuce API.
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof InitiateAuthenticationChallengeBodyCardholder
|
|
94
47
|
*/
|
|
95
48
|
'customerNumber': string;
|
|
96
49
|
}
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @export
|
|
100
|
-
* @interface Merchant
|
|
101
|
-
*/
|
|
102
50
|
export interface Merchant {
|
|
103
51
|
/**
|
|
104
52
|
* Merchant name
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof Merchant
|
|
107
53
|
*/
|
|
108
54
|
'name'?: string;
|
|
109
55
|
/**
|
|
110
56
|
* The country where the transaction or withdrawal has occurred, or where the merchant is registered.
|
|
111
|
-
* @type {string}
|
|
112
|
-
* @memberof Merchant
|
|
113
57
|
*/
|
|
114
58
|
'country'?: string;
|
|
115
59
|
/**
|
|
116
60
|
* Merchant URL
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof Merchant
|
|
119
61
|
*/
|
|
120
62
|
'url'?: string;
|
|
121
63
|
}
|
|
122
64
|
/**
|
|
123
65
|
* Amount including currency
|
|
124
|
-
* @export
|
|
125
|
-
* @interface Money
|
|
126
66
|
*/
|
|
127
67
|
export interface Money {
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {number}
|
|
131
|
-
* @memberof Money
|
|
132
|
-
*/
|
|
133
68
|
'amount': number;
|
|
134
69
|
/**
|
|
135
70
|
* A valid ISO 4217 currency code
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof Money
|
|
138
71
|
*/
|
|
139
72
|
'currency': string;
|
|
140
73
|
}
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @export
|
|
144
|
-
* @interface ThreeDsTransaction
|
|
145
|
-
*/
|
|
146
74
|
export interface ThreeDsTransaction {
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {Money}
|
|
150
|
-
* @memberof ThreeDsTransaction
|
|
151
|
-
*/
|
|
152
75
|
'transactionAmount'?: Money;
|
|
153
76
|
/**
|
|
154
77
|
* Transaction category: - `PAYMENT` — Payment authentication - `NON_PAYMENT` — Non-payment authentication
|
|
155
|
-
* @type {string}
|
|
156
|
-
* @memberof ThreeDsTransaction
|
|
157
78
|
*/
|
|
158
79
|
'category'?: ThreeDsTransactionCategoryEnum;
|
|
159
80
|
/**
|
|
160
81
|
* Channel where the transaction is initiated: - `APP` — App-based - `BROWSER` — Browser-based - `REQUESTOR_INITIATED` — 3DS Requestor Initiated
|
|
161
|
-
* @type {string}
|
|
162
|
-
* @memberof ThreeDsTransaction
|
|
163
82
|
*/
|
|
164
83
|
'deviceChannel': ThreeDsTransactionDeviceChannelEnum;
|
|
165
84
|
/**
|
|
166
85
|
* Time when the transaction is processed by Enfuce.
|
|
167
|
-
* @type {string}
|
|
168
|
-
* @memberof ThreeDsTransaction
|
|
169
86
|
*/
|
|
170
87
|
'processedDateTime': string;
|
|
171
88
|
}
|
|
@@ -182,7 +99,6 @@ export declare const ThreeDsTransactionDeviceChannelEnum: {
|
|
|
182
99
|
export type ThreeDsTransactionDeviceChannelEnum = typeof ThreeDsTransactionDeviceChannelEnum[keyof typeof ThreeDsTransactionDeviceChannelEnum];
|
|
183
100
|
/**
|
|
184
101
|
* OOBAuthenticationChallengeWebhookNotificationApi - axios parameter creator
|
|
185
|
-
* @export
|
|
186
102
|
*/
|
|
187
103
|
export declare const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
188
104
|
/**
|
|
@@ -196,7 +112,6 @@ export declare const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamC
|
|
|
196
112
|
};
|
|
197
113
|
/**
|
|
198
114
|
* OOBAuthenticationChallengeWebhookNotificationApi - functional programming interface
|
|
199
|
-
* @export
|
|
200
115
|
*/
|
|
201
116
|
export declare const OOBAuthenticationChallengeWebhookNotificationApiFp: (configuration?: Configuration) => {
|
|
202
117
|
/**
|
|
@@ -210,7 +125,6 @@ export declare const OOBAuthenticationChallengeWebhookNotificationApiFp: (config
|
|
|
210
125
|
};
|
|
211
126
|
/**
|
|
212
127
|
* OOBAuthenticationChallengeWebhookNotificationApi - factory interface
|
|
213
|
-
* @export
|
|
214
128
|
*/
|
|
215
129
|
export declare const OOBAuthenticationChallengeWebhookNotificationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
216
130
|
/**
|
|
@@ -224,9 +138,6 @@ export declare const OOBAuthenticationChallengeWebhookNotificationApiFactory: (c
|
|
|
224
138
|
};
|
|
225
139
|
/**
|
|
226
140
|
* OOBAuthenticationChallengeWebhookNotificationApi - object-oriented interface
|
|
227
|
-
* @export
|
|
228
|
-
* @class OOBAuthenticationChallengeWebhookNotificationApi
|
|
229
|
-
* @extends {BaseAPI}
|
|
230
141
|
*/
|
|
231
142
|
export declare class OOBAuthenticationChallengeWebhookNotificationApi extends BaseAPI {
|
|
232
143
|
/**
|
|
@@ -235,7 +146,6 @@ export declare class OOBAuthenticationChallengeWebhookNotificationApi extends Ba
|
|
|
235
146
|
* @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
|
|
236
147
|
* @param {*} [options] Override http request option.
|
|
237
148
|
* @throws {RequiredError}
|
|
238
|
-
* @memberof OOBAuthenticationChallengeWebhookNotificationApi
|
|
239
149
|
*/
|
|
240
150
|
initiateAuthenticationChallenge(initiateAuthenticationChallengeBody: InitiateAuthenticationChallengeBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
241
151
|
}
|
|
@@ -28,16 +28,15 @@ import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParam
|
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
export const ThreeDsTransactionCategoryEnum = {
|
|
30
30
|
Payment: 'PAYMENT',
|
|
31
|
-
NonPayment: 'NON_PAYMENT'
|
|
31
|
+
NonPayment: 'NON_PAYMENT',
|
|
32
32
|
};
|
|
33
33
|
export const ThreeDsTransactionDeviceChannelEnum = {
|
|
34
34
|
App: 'APP',
|
|
35
35
|
Browser: 'BROWSER',
|
|
36
|
-
RequestorInitiated: 'REQUESTOR_INITIATED'
|
|
36
|
+
RequestorInitiated: 'REQUESTOR_INITIATED',
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* OOBAuthenticationChallengeWebhookNotificationApi - axios parameter creator
|
|
40
|
-
* @export
|
|
41
40
|
*/
|
|
42
41
|
export const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator = function (configuration) {
|
|
43
42
|
return {
|
|
@@ -78,7 +77,6 @@ export const OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator =
|
|
|
78
77
|
};
|
|
79
78
|
/**
|
|
80
79
|
* OOBAuthenticationChallengeWebhookNotificationApi - functional programming interface
|
|
81
|
-
* @export
|
|
82
80
|
*/
|
|
83
81
|
export const OOBAuthenticationChallengeWebhookNotificationApiFp = function (configuration) {
|
|
84
82
|
const localVarAxiosParamCreator = OOBAuthenticationChallengeWebhookNotificationApiAxiosParamCreator(configuration);
|
|
@@ -103,7 +101,6 @@ export const OOBAuthenticationChallengeWebhookNotificationApiFp = function (conf
|
|
|
103
101
|
};
|
|
104
102
|
/**
|
|
105
103
|
* OOBAuthenticationChallengeWebhookNotificationApi - factory interface
|
|
106
|
-
* @export
|
|
107
104
|
*/
|
|
108
105
|
export const OOBAuthenticationChallengeWebhookNotificationApiFactory = function (configuration, basePath, axios) {
|
|
109
106
|
const localVarFp = OOBAuthenticationChallengeWebhookNotificationApiFp(configuration);
|
|
@@ -122,9 +119,6 @@ export const OOBAuthenticationChallengeWebhookNotificationApiFactory = function
|
|
|
122
119
|
};
|
|
123
120
|
/**
|
|
124
121
|
* OOBAuthenticationChallengeWebhookNotificationApi - object-oriented interface
|
|
125
|
-
* @export
|
|
126
|
-
* @class OOBAuthenticationChallengeWebhookNotificationApi
|
|
127
|
-
* @extends {BaseAPI}
|
|
128
122
|
*/
|
|
129
123
|
export class OOBAuthenticationChallengeWebhookNotificationApi extends BaseAPI {
|
|
130
124
|
/**
|
|
@@ -133,7 +127,6 @@ export class OOBAuthenticationChallengeWebhookNotificationApi extends BaseAPI {
|
|
|
133
127
|
* @param {InitiateAuthenticationChallengeBody} initiateAuthenticationChallengeBody
|
|
134
128
|
* @param {*} [options] Override http request option.
|
|
135
129
|
* @throws {RequiredError}
|
|
136
|
-
* @memberof OOBAuthenticationChallengeWebhookNotificationApi
|
|
137
130
|
*/
|
|
138
131
|
initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options) {
|
|
139
132
|
return OOBAuthenticationChallengeWebhookNotificationApiFp(this.configuration).initiateAuthenticationChallenge(initiateAuthenticationChallengeBody, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
24
|
var _a;
|
|
@@ -40,12 +31,6 @@ export class BaseAPI {
|
|
|
40
31
|
}
|
|
41
32
|
}
|
|
42
33
|
;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @class RequiredError
|
|
47
|
-
* @extends {Error}
|
|
48
|
-
*/
|
|
49
34
|
export class RequiredError extends Error {
|
|
50
35
|
constructor(field, msg) {
|
|
51
36
|
super(msg);
|
|
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
|
|
|
53
38
|
this.name = "RequiredError";
|
|
54
39
|
}
|
|
55
40
|
}
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
41
|
export const operationServerMap = {};
|