@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
package/src/pin/api.ts
ADDED
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* PIN API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ChangePinRequestBody
|
|
30
|
+
*/
|
|
31
|
+
export interface ChangePinRequestBody {
|
|
32
|
+
/**
|
|
33
|
+
* The encrypted PIN block is in ISO Format 1 and is represented in hexadecimal.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ChangePinRequestBody
|
|
36
|
+
*/
|
|
37
|
+
'pinBlock': string;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier of a resource.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ChangePinRequestBody
|
|
42
|
+
*/
|
|
43
|
+
'cardId': string;
|
|
44
|
+
/**
|
|
45
|
+
* The sequence number of the card version, this value is also known as PSN (pan sequence number)
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ChangePinRequestBody
|
|
48
|
+
*/
|
|
49
|
+
'sequenceNumber'?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Pre-shared ZPK key index number. If it is not specified, the first key is used by default.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof ChangePinRequestBody
|
|
54
|
+
*/
|
|
55
|
+
'zpkIndex'?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @interface ErrorResponse
|
|
61
|
+
*/
|
|
62
|
+
export interface ErrorResponse {
|
|
63
|
+
/**
|
|
64
|
+
* The problem type.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ErrorResponse
|
|
67
|
+
*/
|
|
68
|
+
'type'?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The reason phrase of HttpStatus.
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ErrorResponse
|
|
73
|
+
*/
|
|
74
|
+
'title'?: string;
|
|
75
|
+
/**
|
|
76
|
+
* HTTP problem status.
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof ErrorResponse
|
|
79
|
+
*/
|
|
80
|
+
'status'?: number;
|
|
81
|
+
/**
|
|
82
|
+
* The problem detail.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ErrorResponse
|
|
85
|
+
*/
|
|
86
|
+
'detail'?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The request path.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof ErrorResponse
|
|
91
|
+
*/
|
|
92
|
+
'instance'?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Unique error identifier.
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ErrorResponse
|
|
97
|
+
*/
|
|
98
|
+
'id'?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Date-time when error occurred.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof ErrorResponse
|
|
103
|
+
*/
|
|
104
|
+
'timestamp'?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @export
|
|
109
|
+
* @interface SetPinRequestBody
|
|
110
|
+
*/
|
|
111
|
+
export interface SetPinRequestBody {
|
|
112
|
+
/**
|
|
113
|
+
* The encrypted PIN block is in ISO Format 1 and is represented in hexadecimal.
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof SetPinRequestBody
|
|
116
|
+
*/
|
|
117
|
+
'pinBlock': string;
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier of a resource.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof SetPinRequestBody
|
|
122
|
+
*/
|
|
123
|
+
'cardId': string;
|
|
124
|
+
/**
|
|
125
|
+
* Pre-shared ZPK key index number. If it is not specified, the first key is used by default.
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof SetPinRequestBody
|
|
128
|
+
*/
|
|
129
|
+
'zpkIndex'?: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @export
|
|
134
|
+
* @interface ViewPinRequestBody
|
|
135
|
+
*/
|
|
136
|
+
export interface ViewPinRequestBody {
|
|
137
|
+
/**
|
|
138
|
+
* Control ID that was returned in the [Request PIN Control Access Token Endpoint](https://nextgen-docs.enfuce.com/api/cards/post-card/create-pin-control-access-token).
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof ViewPinRequestBody
|
|
141
|
+
*/
|
|
142
|
+
'pinControlId': string;
|
|
143
|
+
/**
|
|
144
|
+
* RSA 2048 public key in PEM format (X.509 SubjectPublicKeyInfo). The key may contain: - new lines, - the PEM headers (\"-----BEGIN PUBLIC KEY-----\" and \"-----END PUBLIC KEY-----\") The key must not contain any spaces.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof ViewPinRequestBody
|
|
147
|
+
*/
|
|
148
|
+
'pubKey': string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @export
|
|
153
|
+
* @interface ViewPinResponseBody
|
|
154
|
+
*/
|
|
155
|
+
export interface ViewPinResponseBody {
|
|
156
|
+
/**
|
|
157
|
+
* Hex encoded value of the pin block (ISO PIN Block Format 1). It is 3DES (double length key) encrypted with the key from the tzpk field (which is provided in encrypted form).
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof ViewPinResponseBody
|
|
160
|
+
*/
|
|
161
|
+
'pinBlock': string;
|
|
162
|
+
/**
|
|
163
|
+
* Terminal Zone PIN Key (TZPK) that decrypts the generated PIN block to retrieve the actual PIN. Hex encoded value, encrypted with the pubKey passed as input. Once decrypted, this is the 3DES key used for decrypting the pin block.
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof ViewPinResponseBody
|
|
166
|
+
*/
|
|
167
|
+
'tzpk': string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* PINOperationsUsingPKIApi - axios parameter creator
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
export const PINOperationsUsingPKIApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
175
|
+
return {
|
|
176
|
+
/**
|
|
177
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
178
|
+
* @summary Retrieve Encrypted PIN
|
|
179
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
180
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
viewPin: async (viewPinRequestBody: ViewPinRequestBody, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
185
|
+
// verify required parameter 'viewPinRequestBody' is not null or undefined
|
|
186
|
+
assertParamExists('viewPin', 'viewPinRequestBody', viewPinRequestBody)
|
|
187
|
+
const localVarPath = `/v1/pin/view`;
|
|
188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
190
|
+
let baseOptions;
|
|
191
|
+
if (configuration) {
|
|
192
|
+
baseOptions = configuration.baseOptions;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
196
|
+
const localVarHeaderParameter = {} as any;
|
|
197
|
+
const localVarQueryParameter = {} as any;
|
|
198
|
+
|
|
199
|
+
// authentication bearerAuth required
|
|
200
|
+
// http bearer authentication required
|
|
201
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
206
|
+
|
|
207
|
+
if (xAuditUser != null) {
|
|
208
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
209
|
+
}
|
|
210
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
213
|
+
localVarRequestOptions.data = serializeDataIfNeeded(viewPinRequestBody, localVarRequestOptions, configuration)
|
|
214
|
+
|
|
215
|
+
return {
|
|
216
|
+
url: toPathString(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* PINOperationsUsingPKIApi - functional programming interface
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
export const PINOperationsUsingPKIApiFp = function(configuration?: Configuration) {
|
|
228
|
+
const localVarAxiosParamCreator = PINOperationsUsingPKIApiAxiosParamCreator(configuration)
|
|
229
|
+
return {
|
|
230
|
+
/**
|
|
231
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
232
|
+
* @summary Retrieve Encrypted PIN
|
|
233
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
234
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
async viewPin(viewPinRequestBody: ViewPinRequestBody, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewPinResponseBody>> {
|
|
239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.viewPin(viewPinRequestBody, xAuditUser, options);
|
|
240
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
241
|
+
const localVarOperationServerBasePath = operationServerMap['PINOperationsUsingPKIApi.viewPin']?.[localVarOperationServerIndex]?.url;
|
|
242
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
243
|
+
},
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* PINOperationsUsingPKIApi - factory interface
|
|
249
|
+
* @export
|
|
250
|
+
*/
|
|
251
|
+
export const PINOperationsUsingPKIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
252
|
+
const localVarFp = PINOperationsUsingPKIApiFp(configuration)
|
|
253
|
+
return {
|
|
254
|
+
/**
|
|
255
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
256
|
+
* @summary Retrieve Encrypted PIN
|
|
257
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
258
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
viewPin(viewPinRequestBody: ViewPinRequestBody, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ViewPinResponseBody> {
|
|
263
|
+
return localVarFp.viewPin(viewPinRequestBody, xAuditUser, options).then((request) => request(axios, basePath));
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* PINOperationsUsingPKIApi - object-oriented interface
|
|
270
|
+
* @export
|
|
271
|
+
* @class PINOperationsUsingPKIApi
|
|
272
|
+
* @extends {BaseAPI}
|
|
273
|
+
*/
|
|
274
|
+
export class PINOperationsUsingPKIApi extends BaseAPI {
|
|
275
|
+
/**
|
|
276
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
277
|
+
* @summary Retrieve Encrypted PIN
|
|
278
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
279
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
* @memberof PINOperationsUsingPKIApi
|
|
283
|
+
*/
|
|
284
|
+
public viewPin(viewPinRequestBody: ViewPinRequestBody, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
285
|
+
return PINOperationsUsingPKIApiFp(this.configuration).viewPin(viewPinRequestBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* PINOperationsWithPreSharedKeyApi - axios parameter creator
|
|
293
|
+
* @export
|
|
294
|
+
*/
|
|
295
|
+
export const PINOperationsWithPreSharedKeyApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
296
|
+
return {
|
|
297
|
+
/**
|
|
298
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
299
|
+
* @summary Change PIN
|
|
300
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
301
|
+
* @param {string} [xIdempotencyKey]
|
|
302
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
changePin: async (changePinRequestBody: ChangePinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
307
|
+
// verify required parameter 'changePinRequestBody' is not null or undefined
|
|
308
|
+
assertParamExists('changePin', 'changePinRequestBody', changePinRequestBody)
|
|
309
|
+
const localVarPath = `/v1/pin/change`;
|
|
310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
312
|
+
let baseOptions;
|
|
313
|
+
if (configuration) {
|
|
314
|
+
baseOptions = configuration.baseOptions;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
318
|
+
const localVarHeaderParameter = {} as any;
|
|
319
|
+
const localVarQueryParameter = {} as any;
|
|
320
|
+
|
|
321
|
+
// authentication bearerAuth required
|
|
322
|
+
// http bearer authentication required
|
|
323
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
328
|
+
|
|
329
|
+
if (xIdempotencyKey != null) {
|
|
330
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
331
|
+
}
|
|
332
|
+
if (xAuditUser != null) {
|
|
333
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
334
|
+
}
|
|
335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
338
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePinRequestBody, localVarRequestOptions, configuration)
|
|
339
|
+
|
|
340
|
+
return {
|
|
341
|
+
url: toPathString(localVarUrlObj),
|
|
342
|
+
options: localVarRequestOptions,
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
347
|
+
* @summary Set PIN
|
|
348
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
349
|
+
* @param {string} [xIdempotencyKey]
|
|
350
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
setPin: async (setPinRequestBody: SetPinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
355
|
+
// verify required parameter 'setPinRequestBody' is not null or undefined
|
|
356
|
+
assertParamExists('setPin', 'setPinRequestBody', setPinRequestBody)
|
|
357
|
+
const localVarPath = `/v1/pin/set`;
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
366
|
+
const localVarHeaderParameter = {} as any;
|
|
367
|
+
const localVarQueryParameter = {} as any;
|
|
368
|
+
|
|
369
|
+
// authentication bearerAuth required
|
|
370
|
+
// http bearer authentication required
|
|
371
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
376
|
+
|
|
377
|
+
if (xIdempotencyKey != null) {
|
|
378
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
379
|
+
}
|
|
380
|
+
if (xAuditUser != null) {
|
|
381
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
382
|
+
}
|
|
383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
386
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setPinRequestBody, localVarRequestOptions, configuration)
|
|
387
|
+
|
|
388
|
+
return {
|
|
389
|
+
url: toPathString(localVarUrlObj),
|
|
390
|
+
options: localVarRequestOptions,
|
|
391
|
+
};
|
|
392
|
+
},
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* PINOperationsWithPreSharedKeyApi - functional programming interface
|
|
398
|
+
* @export
|
|
399
|
+
*/
|
|
400
|
+
export const PINOperationsWithPreSharedKeyApiFp = function(configuration?: Configuration) {
|
|
401
|
+
const localVarAxiosParamCreator = PINOperationsWithPreSharedKeyApiAxiosParamCreator(configuration)
|
|
402
|
+
return {
|
|
403
|
+
/**
|
|
404
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
405
|
+
* @summary Change PIN
|
|
406
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
407
|
+
* @param {string} [xIdempotencyKey]
|
|
408
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
async changePin(changePinRequestBody: ChangePinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options);
|
|
414
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
415
|
+
const localVarOperationServerBasePath = operationServerMap['PINOperationsWithPreSharedKeyApi.changePin']?.[localVarOperationServerIndex]?.url;
|
|
416
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
420
|
+
* @summary Set PIN
|
|
421
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
422
|
+
* @param {string} [xIdempotencyKey]
|
|
423
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
async setPin(setPinRequestBody: SetPinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options);
|
|
429
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
430
|
+
const localVarOperationServerBasePath = operationServerMap['PINOperationsWithPreSharedKeyApi.setPin']?.[localVarOperationServerIndex]?.url;
|
|
431
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
432
|
+
},
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* PINOperationsWithPreSharedKeyApi - factory interface
|
|
438
|
+
* @export
|
|
439
|
+
*/
|
|
440
|
+
export const PINOperationsWithPreSharedKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
441
|
+
const localVarFp = PINOperationsWithPreSharedKeyApiFp(configuration)
|
|
442
|
+
return {
|
|
443
|
+
/**
|
|
444
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
445
|
+
* @summary Change PIN
|
|
446
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
447
|
+
* @param {string} [xIdempotencyKey]
|
|
448
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
changePin(changePinRequestBody: ChangePinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
453
|
+
return localVarFp.changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
457
|
+
* @summary Set PIN
|
|
458
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
459
|
+
* @param {string} [xIdempotencyKey]
|
|
460
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
setPin(setPinRequestBody: SetPinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
465
|
+
return localVarFp.setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
466
|
+
},
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* PINOperationsWithPreSharedKeyApi - object-oriented interface
|
|
472
|
+
* @export
|
|
473
|
+
* @class PINOperationsWithPreSharedKeyApi
|
|
474
|
+
* @extends {BaseAPI}
|
|
475
|
+
*/
|
|
476
|
+
export class PINOperationsWithPreSharedKeyApi extends BaseAPI {
|
|
477
|
+
/**
|
|
478
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
479
|
+
* @summary Change PIN
|
|
480
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
481
|
+
* @param {string} [xIdempotencyKey]
|
|
482
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
* @memberof PINOperationsWithPreSharedKeyApi
|
|
486
|
+
*/
|
|
487
|
+
public changePin(changePinRequestBody: ChangePinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
488
|
+
return PINOperationsWithPreSharedKeyApiFp(this.configuration).changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
493
|
+
* @summary Set PIN
|
|
494
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
495
|
+
* @param {string} [xIdempotencyKey]
|
|
496
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
* @memberof PINOperationsWithPreSharedKeyApi
|
|
500
|
+
*/
|
|
501
|
+
public setPin(setPinRequestBody: SetPinRequestBody, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
502
|
+
return PINOperationsWithPreSharedKeyApiFp(this.configuration).setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
package/src/pin/base.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* PIN API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
// Some imports not used depending on template conditions
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
+
import globalAxios from 'axios';
|
|
21
|
+
|
|
22
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const COLLECTION_FORMATS = {
|
|
29
|
+
csv: ",",
|
|
30
|
+
ssv: " ",
|
|
31
|
+
tsv: "\t",
|
|
32
|
+
pipes: "|",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface RequestArgs
|
|
39
|
+
*/
|
|
40
|
+
export interface RequestArgs {
|
|
41
|
+
url: string;
|
|
42
|
+
options: RawAxiosRequestConfig;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class BaseAPI
|
|
49
|
+
*/
|
|
50
|
+
export class BaseAPI {
|
|
51
|
+
protected configuration: Configuration | undefined;
|
|
52
|
+
|
|
53
|
+
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
+
if (configuration) {
|
|
55
|
+
this.configuration = configuration;
|
|
56
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
* @class RequiredError
|
|
65
|
+
* @extends {Error}
|
|
66
|
+
*/
|
|
67
|
+
export class RequiredError extends Error {
|
|
68
|
+
constructor(public field: string, msg?: string) {
|
|
69
|
+
super(msg);
|
|
70
|
+
this.name = "RequiredError"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface ServerMap {
|
|
75
|
+
[key: string]: {
|
|
76
|
+
url: string,
|
|
77
|
+
description: string,
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const operationServerMap: ServerMap = {
|
|
86
|
+
}
|