@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,2083 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Wallet operations
|
|
5
|
+
* Wallet API enables getting needed data for tokenization and enablement in programs like Apple Pay and Google Pay. #### Terms used <table> <tr> <th>Term</th> <th>Definition</th> <tr> <td>Customer</td> <td>End customer using financial institution\'s mobile application</td> </tr> <tr> <td>In-app activation</td> <td>Wallet provisioning using financial institution app as authentication method</td> </tr> <tr> <td>In-app provisioning</td> <td>Mastercard\'s term for push provisioning</td> </tr> <tr> <td>Push provisioning</td> <td>VISA\'s term for pushing card details from within mobile application. This term will be used in this document</td> </tr> <tr> <td>Wallet provider</td> <td>Such as Apple Pay, Google Pay or Samsung Pay </td> </tr> </table> It\'s called in two cases: - *Push provisioning* - this is usually done within issuers own application and card holder does not need to enter any information. Then the different endpoints for push provisioning must be used. - *In-app activation* - activating a card by manually adding information, then endpoint for generate activation data must be used after authentication of end customer is completed.  In above case the difference between push provisioning and in-app activation is which endpoint that is called in step 3. Note that diagram above is a simplification of full flow in order to explain it from a developer point of view.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: info@enfuce.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ActivateResponse
|
|
30
|
+
*/
|
|
31
|
+
export interface ActivateResponse {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ActivateResponse
|
|
36
|
+
*/
|
|
37
|
+
'activationData': string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @export
|
|
42
|
+
* @interface AppleParametersRequest
|
|
43
|
+
*/
|
|
44
|
+
export interface AppleParametersRequest {
|
|
45
|
+
/**
|
|
46
|
+
* List of base64 encoded X.509 certificates in the certificate chain.
|
|
47
|
+
* @type {Array<string>}
|
|
48
|
+
* @memberof AppleParametersRequest
|
|
49
|
+
*/
|
|
50
|
+
'certificates': Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Lowercase hex string of the nonce given to the application via delegate callback.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AppleParametersRequest
|
|
55
|
+
*/
|
|
56
|
+
'nonce': string;
|
|
57
|
+
/**
|
|
58
|
+
* Lowercase hex string of the nonce signature given to the application via delegate callback.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AppleParametersRequest
|
|
61
|
+
*/
|
|
62
|
+
'nonceSignature': string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @interface AppleProvisioningResponse
|
|
68
|
+
*/
|
|
69
|
+
export interface AppleProvisioningResponse {
|
|
70
|
+
/**
|
|
71
|
+
* The activationData is a Base64 encoded crypto OTP value which is sent to the payment scheme which they will validate by using keys shared with Enfuce. - Visa: WSD key - MC: TAV key
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AppleProvisioningResponse
|
|
74
|
+
*/
|
|
75
|
+
'activationData': string;
|
|
76
|
+
/**
|
|
77
|
+
* The encryptedPassData is base64 encoded for Visa and hex string for Mastercard. Encrypted payload contains these fields: - primaryAccountNumber - The full primary account number (PAN), digits only - expiration - The expiration date as a string. For example, 11/24 - name - Name of the card holder - nonce - The hex string for the nonce value, provided in the delegate callback - nonceSignature - The hex string for the nonce signature, provided in the delegate callback
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AppleProvisioningResponse
|
|
80
|
+
*/
|
|
81
|
+
'encryptedPassData': string;
|
|
82
|
+
/**
|
|
83
|
+
* The ephemeralPublicKey is base64 encoded for Visa and hex string for Mastercard.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AppleProvisioningResponse
|
|
86
|
+
*/
|
|
87
|
+
'ephemeralPublicKey': string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The wallets common name for authorization decision.
|
|
91
|
+
* @export
|
|
92
|
+
* @enum {string}
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
export const AuthorizationDecisionColor = {
|
|
96
|
+
Green: 'GREEN',
|
|
97
|
+
Yellow: 'YELLOW',
|
|
98
|
+
Orange: 'ORANGE',
|
|
99
|
+
Red: 'RED'
|
|
100
|
+
} as const;
|
|
101
|
+
|
|
102
|
+
export type AuthorizationDecisionColor = typeof AuthorizationDecisionColor[keyof typeof AuthorizationDecisionColor];
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Device information.
|
|
107
|
+
* @export
|
|
108
|
+
* @interface DeviceInfo
|
|
109
|
+
*/
|
|
110
|
+
export interface DeviceInfo {
|
|
111
|
+
/**
|
|
112
|
+
* User-defined name of the device provided by the wallet or operating system.
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof DeviceInfo
|
|
115
|
+
*/
|
|
116
|
+
'deviceName'?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates the type of device on which the token is provisioned. Typical values include PHONE, WATCH, TABLET, or WEARABLE.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof DeviceInfo
|
|
121
|
+
*/
|
|
122
|
+
'deviceType'?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Operating system running on the device. Typical values include IOS, ANDROID, or WATCHOS.
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof DeviceInfo
|
|
127
|
+
*/
|
|
128
|
+
'operatingSystem'?: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @export
|
|
133
|
+
* @interface EligibleTokenRequestorsRequest
|
|
134
|
+
*/
|
|
135
|
+
export interface EligibleTokenRequestorsRequest {
|
|
136
|
+
/**
|
|
137
|
+
* List of card IDs to filter the eligible token requestors.
|
|
138
|
+
* @type {Array<string>}
|
|
139
|
+
* @memberof EligibleTokenRequestorsRequest
|
|
140
|
+
*/
|
|
141
|
+
'cardIds'?: Array<string>;
|
|
142
|
+
/**
|
|
143
|
+
* List of push methods supported by the token requestors — filters the token requestors that support at least one the methods sent in the request. Possible values are: * \"ANDROID\": The URI is an Android app intent. * \"IOS\": The URI is an iOS app intent. * \"WEB\": The URI is a browser URL.
|
|
144
|
+
* @type {Array<string>}
|
|
145
|
+
* @memberof EligibleTokenRequestorsRequest
|
|
146
|
+
*/
|
|
147
|
+
'availablePushMethods'?: Array<EligibleTokenRequestorsRequestAvailablePushMethodsEnum>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export const EligibleTokenRequestorsRequestAvailablePushMethodsEnum = {
|
|
151
|
+
Android: 'ANDROID',
|
|
152
|
+
Ios: 'IOS',
|
|
153
|
+
Web: 'WEB'
|
|
154
|
+
} as const;
|
|
155
|
+
|
|
156
|
+
export type EligibleTokenRequestorsRequestAvailablePushMethodsEnum = typeof EligibleTokenRequestorsRequestAvailablePushMethodsEnum[keyof typeof EligibleTokenRequestorsRequestAvailablePushMethodsEnum];
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface EligibleTokenRequestorsResponse
|
|
162
|
+
*/
|
|
163
|
+
export interface EligibleTokenRequestorsResponse {
|
|
164
|
+
/**
|
|
165
|
+
* List of eligible Token Requestors.
|
|
166
|
+
* @type {Array<EligibleTokenRequestorsResponseTokenRequestorsInner>}
|
|
167
|
+
* @memberof EligibleTokenRequestorsResponse
|
|
168
|
+
*/
|
|
169
|
+
'tokenRequestors'?: Array<EligibleTokenRequestorsResponseTokenRequestorsInner>;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @export
|
|
174
|
+
* @interface EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
175
|
+
*/
|
|
176
|
+
export interface EligibleTokenRequestorsResponseTokenRequestorsInner {
|
|
177
|
+
/**
|
|
178
|
+
* Unique identifier of the token requestor.
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
181
|
+
*/
|
|
182
|
+
'tokenRequestorId'?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The legal name of the token requestor.
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
187
|
+
*/
|
|
188
|
+
'name'?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The name of the token requestor to be displayed to the account holder.
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
193
|
+
*/
|
|
194
|
+
'consumerFacingEntityName'?: string;
|
|
195
|
+
/**
|
|
196
|
+
* The type of the token requestor. * MERCHANT: The Token Requestor is a merchant. * WALLET: The Token Requestor is a digital wallet or an ecommerce platform.
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
199
|
+
*/
|
|
200
|
+
'tokenRequestorType'?: EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum;
|
|
201
|
+
/**
|
|
202
|
+
* The identifier of the digital wallet provider. Returned only when the token is provided to a digital wallet provider.
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
205
|
+
*/
|
|
206
|
+
'walletId'?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Array of account range start numbers enabled for the token requestor. The start numbers will be 19 digits in length.
|
|
209
|
+
* @type {Array<number>}
|
|
210
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
211
|
+
*/
|
|
212
|
+
'enabledAccountRanges'?: Array<number>;
|
|
213
|
+
/**
|
|
214
|
+
* Array of programIds that are supported for the Token Requestor. Show the appropriate token requestors for the cards by matching the programIds.
|
|
215
|
+
* @type {Array<string>}
|
|
216
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
217
|
+
*/
|
|
218
|
+
'programIds'?: Array<string>;
|
|
219
|
+
/**
|
|
220
|
+
* Indicates whether the token requestor supports addition of multiple cards in a single request. When supported, a maximum of 5 cards might be sent to the token requestor in a single request.
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
223
|
+
*/
|
|
224
|
+
'supportsMultiplePushedCards'?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Account holder\'s data that the token requestor accepts from the issuer for a specific card or an account. Possible values are: * `NAME`: The first name and last name of the account holder. * `ADDRESS`: The billing address for the account holder. * `EMAIL_ADDRESS`: The email address for the account holder. * `MOBILE_PHONE_NUMBER`: The mobile phone number for the account holder.
|
|
227
|
+
* @type {Array<string>}
|
|
228
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
229
|
+
*/
|
|
230
|
+
'supportedAccountHolderData'?: Array<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Indicates whether the token requestor supports cardholder authentication, after the token is activated. Possible values are: * `TRUE`: Post Tokenization Cardholder Authentication (Consent Service) is supported. * `FALSE`: Post Tokenization Cardholder Authentication (Consent Service) is not supported.
|
|
233
|
+
* @type {boolean}
|
|
234
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
235
|
+
*/
|
|
236
|
+
'supportsCardHolderAuthentication'?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* List of push methods supported by the token requestor. __Conditional.__ Required if the push operation was successful. Not present otherwise.
|
|
239
|
+
* @type {Array<PushMethod>}
|
|
240
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
241
|
+
*/
|
|
242
|
+
'availablePushMethods'?: Array<PushMethod>;
|
|
243
|
+
/**
|
|
244
|
+
* Indicates whether the token requestor supports issuer initiated digitisation (push provisioning). Possible values are: - `TRUE`: Supports issuer initiated digitisation. - `FALSE`: Does not support issuer initiated.
|
|
245
|
+
* @type {boolean}
|
|
246
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
247
|
+
*/
|
|
248
|
+
'supportIssuerInitiatedDigitizationData'?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Contains all contents of the asset, including all variations. When the asset corresponds to a token requestor\'s logo, the logo is provided both in .svg as well as in .png format.
|
|
251
|
+
* @type {Array<EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner>}
|
|
252
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInner
|
|
253
|
+
*/
|
|
254
|
+
'mediaContents'?: Array<EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export const EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum = {
|
|
258
|
+
Merchant: 'MERCHANT',
|
|
259
|
+
Wallet: 'WALLET'
|
|
260
|
+
} as const;
|
|
261
|
+
|
|
262
|
+
export type EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum = typeof EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum[keyof typeof EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum];
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The content of the media. When the asset corresponds to a token requestor\'s logo, the content is a square image.
|
|
266
|
+
* @export
|
|
267
|
+
* @interface EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner
|
|
268
|
+
*/
|
|
269
|
+
export interface EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner {
|
|
270
|
+
/**
|
|
271
|
+
* What type of media this is. __Max Length:__ 32. Specified as a MIME type, which will be one of the following supported types: * \"application/pdf\": for images (must be a vector PDF image) * \"image/png\": includes alpha channel * \"image/svg+xml\": image in SVG format * \"text/plain\" * \"text/html\"
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner
|
|
274
|
+
*/
|
|
275
|
+
'type': string;
|
|
276
|
+
/**
|
|
277
|
+
* The data for this item of media. Base64-encoded data, where the decoded data is in the format as specified in ‘type\'.
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner
|
|
280
|
+
*/
|
|
281
|
+
'data': string;
|
|
282
|
+
/**
|
|
283
|
+
* For non-SVG image assets, the height of the image. Specified in pixels. __Max Length:__ 6.
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner
|
|
286
|
+
*/
|
|
287
|
+
'height'?: string;
|
|
288
|
+
/**
|
|
289
|
+
* For non-SVG image assets, the width of the image. Specified in pixels. __Max Length:__ 6.
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof EligibleTokenRequestorsResponseTokenRequestorsInnerMediaContentsInner
|
|
292
|
+
*/
|
|
293
|
+
'width'?: string;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @export
|
|
298
|
+
* @interface ErrorResponse
|
|
299
|
+
*/
|
|
300
|
+
export interface ErrorResponse {
|
|
301
|
+
/**
|
|
302
|
+
* The problem type.
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof ErrorResponse
|
|
305
|
+
*/
|
|
306
|
+
'type'?: string;
|
|
307
|
+
/**
|
|
308
|
+
* The reason phrase of HttpStatus.
|
|
309
|
+
* @type {string}
|
|
310
|
+
* @memberof ErrorResponse
|
|
311
|
+
*/
|
|
312
|
+
'title'?: string;
|
|
313
|
+
/**
|
|
314
|
+
* HTTP problem status.
|
|
315
|
+
* @type {number}
|
|
316
|
+
* @memberof ErrorResponse
|
|
317
|
+
*/
|
|
318
|
+
'status'?: number;
|
|
319
|
+
/**
|
|
320
|
+
* The problem detail.
|
|
321
|
+
* @type {string}
|
|
322
|
+
* @memberof ErrorResponse
|
|
323
|
+
*/
|
|
324
|
+
'detail'?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The request path.
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof ErrorResponse
|
|
329
|
+
*/
|
|
330
|
+
'instance'?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Unique error identifier.
|
|
333
|
+
* @type {string}
|
|
334
|
+
* @memberof ErrorResponse
|
|
335
|
+
*/
|
|
336
|
+
'id'?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Date-time when error occurred.
|
|
339
|
+
* @type {string}
|
|
340
|
+
* @memberof ErrorResponse
|
|
341
|
+
*/
|
|
342
|
+
'timestamp'?: string;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @export
|
|
347
|
+
* @interface ExternalResponseIssuerInitiatedDigitizationData
|
|
348
|
+
*/
|
|
349
|
+
export interface ExternalResponseIssuerInitiatedDigitizationData {
|
|
350
|
+
/**
|
|
351
|
+
* Base64 encoded json structure containing needed data for MDES/VTS
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @memberof ExternalResponseIssuerInitiatedDigitizationData
|
|
354
|
+
*/
|
|
355
|
+
'digitizationData'?: string;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @export
|
|
360
|
+
* @interface GoogleParametersRequest
|
|
361
|
+
*/
|
|
362
|
+
export interface GoogleParametersRequest {
|
|
363
|
+
/**
|
|
364
|
+
* Only applicable for VTS customers
|
|
365
|
+
* @type {string}
|
|
366
|
+
* @memberof GoogleParametersRequest
|
|
367
|
+
*/
|
|
368
|
+
'clientAppID'?: string;
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @type {string}
|
|
372
|
+
* @memberof GoogleParametersRequest
|
|
373
|
+
*/
|
|
374
|
+
'clientDeviceID'?: string;
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof GoogleParametersRequest
|
|
379
|
+
*/
|
|
380
|
+
'clientWalletAccountID'?: string;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @export
|
|
385
|
+
* @interface PushAccountsToTokenRequestorRequest
|
|
386
|
+
*/
|
|
387
|
+
export interface PushAccountsToTokenRequestorRequest {
|
|
388
|
+
/**
|
|
389
|
+
* Unique identifier of the token requestor.
|
|
390
|
+
* @type {string}
|
|
391
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
392
|
+
*/
|
|
393
|
+
'tokenRequestorId': string;
|
|
394
|
+
/**
|
|
395
|
+
* List of card IDs to be added to the token requestor server.
|
|
396
|
+
* @type {Array<string>}
|
|
397
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
398
|
+
*/
|
|
399
|
+
'cardIds': Array<string>;
|
|
400
|
+
/**
|
|
401
|
+
* The token requestor\'s mobile or web application URI.
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
404
|
+
*/
|
|
405
|
+
'callbackURL'?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Cardholder\'s preferred locale (language and country). This information is useful to the token requestor to provide an optimised user experience. **Format**: Two letter ISO 639-1 language in lowercase, with a underscore (”_”), followed by two letter ISO 3166-1 country code in uppercase.
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
410
|
+
*/
|
|
411
|
+
'locale'?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Account holder\'s information. Information included in this list is sent to the token requestor, only when requestor supports `supportedAccountHolderData`. Otherwise the values are filtered out. Possible values are: * `ALL_SUPPORTED`: The Token Requestor\'s accepts `supportedAccountHolderData` object. * `NAME`: The first and the last name of the account holder. * `ADDRESS`: The billing address for the account holder. * `EMAIL_ADDRESS`: The email address for the account holder. * `MOBILE_PHONE_NUMBER`: The mobile phone number for the account holder.
|
|
414
|
+
* @type {Array<string>}
|
|
415
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
416
|
+
*/
|
|
417
|
+
'includeAccountHolderData'?: Array<PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum>;
|
|
418
|
+
/**
|
|
419
|
+
* Indicates whether the endpoint response would include issuer initiated digitization data (push provisioning information). Possible values are: - `TRUE`- Send `YES` if the endpoint response must include push provisioning data. - `FALSE`- Send `NO` if the endpoint response must not include push provisioning data.
|
|
420
|
+
* @type {boolean}
|
|
421
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
422
|
+
*/
|
|
423
|
+
'requestIssuerInitiatedDigitizationData'?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* The session Id provided by the token requestor; applicable when the card is added through pull provisioning method.
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof PushAccountsToTokenRequestorRequest
|
|
428
|
+
*/
|
|
429
|
+
'tokenRequestorSessionId'?: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export const PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum = {
|
|
433
|
+
AllSupported: 'ALL_SUPPORTED',
|
|
434
|
+
Name: 'NAME',
|
|
435
|
+
Address: 'ADDRESS',
|
|
436
|
+
EmailAddress: 'EMAIL_ADDRESS',
|
|
437
|
+
MobilePhoneNumber: 'MOBILE_PHONE_NUMBER'
|
|
438
|
+
} as const;
|
|
439
|
+
|
|
440
|
+
export type PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum = typeof PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum[keyof typeof PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum];
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
*
|
|
444
|
+
* @export
|
|
445
|
+
* @interface PushAccountsToTokenRequestorResponse
|
|
446
|
+
*/
|
|
447
|
+
export interface PushAccountsToTokenRequestorResponse {
|
|
448
|
+
/**
|
|
449
|
+
* Mastercard-signed package that validates the authenticity of the push provisioning response. Your application infrastructure uses this data before redirecting the cardholder to the digital wallet/merchant (for example, through a redirect or SDK call). The wallet can verify the response originated from Mastercard MDES.
|
|
450
|
+
* @type {string}
|
|
451
|
+
* @memberof PushAccountsToTokenRequestorResponse
|
|
452
|
+
*/
|
|
453
|
+
'signatureAccountData'?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Returned for each card added to the digital wallet/merchant.
|
|
456
|
+
* @type {Array<PushAccountsToTokenRequestorResponsePushAccountReceiptsInner>}
|
|
457
|
+
* @memberof PushAccountsToTokenRequestorResponse
|
|
458
|
+
*/
|
|
459
|
+
'pushAccountReceipts'?: Array<PushAccountsToTokenRequestorResponsePushAccountReceiptsInner>;
|
|
460
|
+
/**
|
|
461
|
+
* Array of push methods supported by the token requestor. Present only when the push operation is successful.
|
|
462
|
+
* @type {Array<PushMethod>}
|
|
463
|
+
* @memberof PushAccountsToTokenRequestorResponse
|
|
464
|
+
*/
|
|
465
|
+
'availablePushMethods'?: Array<PushMethod>;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @export
|
|
470
|
+
* @interface PushAccountsToTokenRequestorResponsePushAccountReceiptsInner
|
|
471
|
+
*/
|
|
472
|
+
export interface PushAccountsToTokenRequestorResponsePushAccountReceiptsInner {
|
|
473
|
+
/**
|
|
474
|
+
* Unique identifier of a card added to digital wallet/merchant.
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInner
|
|
477
|
+
*/
|
|
478
|
+
'cardId': string;
|
|
479
|
+
/**
|
|
480
|
+
* Unique reference number to identify the card added to the digital wallet/merchant.
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInner
|
|
483
|
+
*/
|
|
484
|
+
'pushAccountReceipt': string;
|
|
485
|
+
/**
|
|
486
|
+
* Base64Encoded String of fundingAccountInfo object that issuer can pass to Token Requestor proprietary communication.
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInner
|
|
489
|
+
*/
|
|
490
|
+
'issuerInitiatedDigitizationData'?: string;
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @type {Array<PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner>}
|
|
494
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInner
|
|
495
|
+
*/
|
|
496
|
+
'errors'?: Array<PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner>;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @export
|
|
501
|
+
* @interface PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
502
|
+
*/
|
|
503
|
+
export interface PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner {
|
|
504
|
+
/**
|
|
505
|
+
* Indicates the source of the error. Possible values are: * `INPUT`: Service input data triggered an error. * `MDES`: MDES reported an error.
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
508
|
+
*/
|
|
509
|
+
'source': string;
|
|
510
|
+
/**
|
|
511
|
+
* A reason code for the error that has occurred. See Error Reason Code definitions for the appropriate API service.
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
514
|
+
*/
|
|
515
|
+
'reasonCode': string;
|
|
516
|
+
/**
|
|
517
|
+
* Describes why the operation failed.
|
|
518
|
+
* @type {string}
|
|
519
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
520
|
+
*/
|
|
521
|
+
'description'?: string;
|
|
522
|
+
/**
|
|
523
|
+
* HTTP error response code cases. __Max Length:__ 100
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
526
|
+
*/
|
|
527
|
+
'errorCode'?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Only generated by Open API. See Open API documentation.
|
|
530
|
+
* @type {boolean}
|
|
531
|
+
* @memberof PushAccountsToTokenRequestorResponsePushAccountReceiptsInnerErrorsInner
|
|
532
|
+
*/
|
|
533
|
+
'recoverable'?: boolean;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @export
|
|
538
|
+
* @interface PushMethod
|
|
539
|
+
*/
|
|
540
|
+
export interface PushMethod {
|
|
541
|
+
/**
|
|
542
|
+
* The push method type corresponding to the URI supported by the Token Requestor. The array is absent if the Token Requestor does not support MDES Token Connect. __Max Length:__ 32 Possible values are: * \"ANDROID\": The URI is an Android app intent. * \"IOS\": The URI is an iOS app intent. * \"WEB\": The URI is a browser URL.
|
|
543
|
+
* @type {string}
|
|
544
|
+
* @memberof PushMethod
|
|
545
|
+
*/
|
|
546
|
+
'type': PushMethodTypeEnum;
|
|
547
|
+
/**
|
|
548
|
+
* The token requestor\'s application or website URI. | _Note_: Refer to the Issuer Interface Implementation Guide for the detail of how to send the data to the Token Requestor. __Max Length:__ 128
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof PushMethod
|
|
551
|
+
*/
|
|
552
|
+
'uri': string;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export const PushMethodTypeEnum = {
|
|
556
|
+
Android: 'ANDROID',
|
|
557
|
+
Ios: 'IOS',
|
|
558
|
+
Web: 'WEB'
|
|
559
|
+
} as const;
|
|
560
|
+
|
|
561
|
+
export type PushMethodTypeEnum = typeof PushMethodTypeEnum[keyof typeof PushMethodTypeEnum];
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @export
|
|
566
|
+
* @interface ResourceResponse
|
|
567
|
+
*/
|
|
568
|
+
export interface ResourceResponse {
|
|
569
|
+
/**
|
|
570
|
+
* A description of the result of the action
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof ResourceResponse
|
|
573
|
+
*/
|
|
574
|
+
'description'?: string;
|
|
575
|
+
/**
|
|
576
|
+
* Token Unique Reference ID
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof ResourceResponse
|
|
579
|
+
*/
|
|
580
|
+
'id'?: string;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @export
|
|
585
|
+
* @interface SamsungParametersRequest
|
|
586
|
+
*/
|
|
587
|
+
export interface SamsungParametersRequest {
|
|
588
|
+
/**
|
|
589
|
+
* Only applicable for VTS customers
|
|
590
|
+
* @type {string}
|
|
591
|
+
* @memberof SamsungParametersRequest
|
|
592
|
+
*/
|
|
593
|
+
'clientAppID'?: string;
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof SamsungParametersRequest
|
|
598
|
+
*/
|
|
599
|
+
'clientDeviceID'?: string;
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @type {string}
|
|
603
|
+
* @memberof SamsungParametersRequest
|
|
604
|
+
*/
|
|
605
|
+
'clientWalletAccountID'?: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Code of the wallet provider or merchant that requested the token (APPLE_PAY /GOOGLE_PAY/SAMSUNG_PAY/OTHER). OTHER is used for tokens not linked to a wallet provider, such as merchant tokens (credential-on-file, subscription payments) or cloud tokens (e.g., Mastercard APANs).
|
|
609
|
+
* @export
|
|
610
|
+
* @enum {string}
|
|
611
|
+
*/
|
|
612
|
+
|
|
613
|
+
export const TokenRequestor = {
|
|
614
|
+
ApplePay: 'APPLE_PAY',
|
|
615
|
+
GooglePay: 'GOOGLE_PAY',
|
|
616
|
+
SamsungPay: 'SAMSUNG_PAY',
|
|
617
|
+
Other: 'OTHER'
|
|
618
|
+
} as const;
|
|
619
|
+
|
|
620
|
+
export type TokenRequestor = typeof TokenRequestor[keyof typeof TokenRequestor];
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Represents a digital wallet token.
|
|
625
|
+
* @export
|
|
626
|
+
* @interface TokenResponse
|
|
627
|
+
*/
|
|
628
|
+
export interface TokenResponse {
|
|
629
|
+
/**
|
|
630
|
+
* A unique identifier for the token assigned by the Token Service Provider (TSP) (eg. Visa or MC) to manage the lifecycle of the token.
|
|
631
|
+
* @type {string}
|
|
632
|
+
* @memberof TokenResponse
|
|
633
|
+
*/
|
|
634
|
+
'tokenUniqueReferenceId'?: string;
|
|
635
|
+
/**
|
|
636
|
+
* Identifier used by merchants or wallet providers to request tokens from the TSP.
|
|
637
|
+
* @type {string}
|
|
638
|
+
* @memberof TokenResponse
|
|
639
|
+
*/
|
|
640
|
+
'tokenRequestorId'?: string;
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @type {TokenRequestor}
|
|
644
|
+
* @memberof TokenResponse
|
|
645
|
+
*/
|
|
646
|
+
'tokenRequestor'?: TokenRequestor;
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @type {TokenStatus}
|
|
650
|
+
* @memberof TokenResponse
|
|
651
|
+
*/
|
|
652
|
+
'status'?: TokenStatus;
|
|
653
|
+
/**
|
|
654
|
+
* The last 4 digits of the tokenised PAN (DPAN) used for display and identification purposes.
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof TokenResponse
|
|
657
|
+
*/
|
|
658
|
+
'tokenSuffix'?: string;
|
|
659
|
+
/**
|
|
660
|
+
* If the token was deleted from the consumer app
|
|
661
|
+
* @type {boolean}
|
|
662
|
+
* @memberof TokenResponse
|
|
663
|
+
*/
|
|
664
|
+
'deletedFromConsumerApp'?: boolean;
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @type {AuthorizationDecisionColor}
|
|
668
|
+
* @memberof TokenResponse
|
|
669
|
+
*/
|
|
670
|
+
'authorizationDecision'?: AuthorizationDecisionColor;
|
|
671
|
+
/**
|
|
672
|
+
* The id of the card associated with the token.
|
|
673
|
+
* @type {string}
|
|
674
|
+
* @memberof TokenResponse
|
|
675
|
+
*/
|
|
676
|
+
'cardId'?: string;
|
|
677
|
+
/**
|
|
678
|
+
* The timestamp when the token was created by the TSP.
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof TokenResponse
|
|
681
|
+
*/
|
|
682
|
+
'createdAt'?: string;
|
|
683
|
+
/**
|
|
684
|
+
* The timestamp of the most recent update to the token’s status.
|
|
685
|
+
* @type {string}
|
|
686
|
+
* @memberof TokenResponse
|
|
687
|
+
*/
|
|
688
|
+
'updatedAt'?: string;
|
|
689
|
+
/**
|
|
690
|
+
* The version number of the entity.
|
|
691
|
+
* @type {number}
|
|
692
|
+
* @memberof TokenResponse
|
|
693
|
+
*/
|
|
694
|
+
'updateCount'?: number;
|
|
695
|
+
/**
|
|
696
|
+
* The raw payload from the card scheme, if available.
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof TokenResponse
|
|
699
|
+
*/
|
|
700
|
+
'cardSchemePayload'?: string;
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @type {DeviceInfo}
|
|
704
|
+
* @memberof TokenResponse
|
|
705
|
+
*/
|
|
706
|
+
'deviceInfo'?: DeviceInfo;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Current status of the token: - ACTIVE - Available for payments - DEACTIVATED - Permanently deactivated - INACTIVE - Waiting for activation - SUSPENDED - Temporarily not available for payments
|
|
712
|
+
* @export
|
|
713
|
+
* @enum {string}
|
|
714
|
+
*/
|
|
715
|
+
|
|
716
|
+
export const TokenStatus = {
|
|
717
|
+
Active: 'ACTIVE',
|
|
718
|
+
Deactivated: 'DEACTIVATED',
|
|
719
|
+
Inactive: 'INACTIVE',
|
|
720
|
+
Suspended: 'SUSPENDED'
|
|
721
|
+
} as const;
|
|
722
|
+
|
|
723
|
+
export type TokenStatus = typeof TokenStatus[keyof typeof TokenStatus];
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* ActivateTokenApi - axios parameter creator
|
|
729
|
+
* @export
|
|
730
|
+
*/
|
|
731
|
+
export const ActivateTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
732
|
+
return {
|
|
733
|
+
/**
|
|
734
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
735
|
+
* @summary Generate activation data for MDES/VTS
|
|
736
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
737
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
activate: async (cardId: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
742
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
743
|
+
assertParamExists('activate', 'cardId', cardId)
|
|
744
|
+
const localVarPath = `/v1/wallet/{cardId}/activate`
|
|
745
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
746
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
747
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
748
|
+
let baseOptions;
|
|
749
|
+
if (configuration) {
|
|
750
|
+
baseOptions = configuration.baseOptions;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
754
|
+
const localVarHeaderParameter = {} as any;
|
|
755
|
+
const localVarQueryParameter = {} as any;
|
|
756
|
+
|
|
757
|
+
// authentication bearerAuth required
|
|
758
|
+
// http bearer authentication required
|
|
759
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
if (xAuditUser != null) {
|
|
764
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
765
|
+
}
|
|
766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
768
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
769
|
+
|
|
770
|
+
return {
|
|
771
|
+
url: toPathString(localVarUrlObj),
|
|
772
|
+
options: localVarRequestOptions,
|
|
773
|
+
};
|
|
774
|
+
},
|
|
775
|
+
/**
|
|
776
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
777
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
778
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
779
|
+
* @param {string} [xIdempotencyKey]
|
|
780
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
activateToken: async (id: string, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
785
|
+
// verify required parameter 'id' is not null or undefined
|
|
786
|
+
assertParamExists('activateToken', 'id', id)
|
|
787
|
+
const localVarPath = `/v1/wallet/tokens/{id}/activate`
|
|
788
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
789
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
790
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
791
|
+
let baseOptions;
|
|
792
|
+
if (configuration) {
|
|
793
|
+
baseOptions = configuration.baseOptions;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
797
|
+
const localVarHeaderParameter = {} as any;
|
|
798
|
+
const localVarQueryParameter = {} as any;
|
|
799
|
+
|
|
800
|
+
// authentication bearerAuth required
|
|
801
|
+
// http bearer authentication required
|
|
802
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
if (xIdempotencyKey != null) {
|
|
807
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
808
|
+
}
|
|
809
|
+
if (xAuditUser != null) {
|
|
810
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
811
|
+
}
|
|
812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
814
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
815
|
+
|
|
816
|
+
return {
|
|
817
|
+
url: toPathString(localVarUrlObj),
|
|
818
|
+
options: localVarRequestOptions,
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* ActivateTokenApi - functional programming interface
|
|
826
|
+
* @export
|
|
827
|
+
*/
|
|
828
|
+
export const ActivateTokenApiFp = function(configuration?: Configuration) {
|
|
829
|
+
const localVarAxiosParamCreator = ActivateTokenApiAxiosParamCreator(configuration)
|
|
830
|
+
return {
|
|
831
|
+
/**
|
|
832
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
833
|
+
* @summary Generate activation data for MDES/VTS
|
|
834
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
835
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
async activate(cardId: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivateResponse>> {
|
|
840
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activate(cardId, xAuditUser, options);
|
|
841
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
842
|
+
const localVarOperationServerBasePath = operationServerMap['ActivateTokenApi.activate']?.[localVarOperationServerIndex]?.url;
|
|
843
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
847
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
848
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
849
|
+
* @param {string} [xIdempotencyKey]
|
|
850
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
async activateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourceResponse>> {
|
|
855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activateToken(id, xIdempotencyKey, xAuditUser, options);
|
|
856
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
857
|
+
const localVarOperationServerBasePath = operationServerMap['ActivateTokenApi.activateToken']?.[localVarOperationServerIndex]?.url;
|
|
858
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
859
|
+
},
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* ActivateTokenApi - factory interface
|
|
865
|
+
* @export
|
|
866
|
+
*/
|
|
867
|
+
export const ActivateTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
868
|
+
const localVarFp = ActivateTokenApiFp(configuration)
|
|
869
|
+
return {
|
|
870
|
+
/**
|
|
871
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
872
|
+
* @summary Generate activation data for MDES/VTS
|
|
873
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
874
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
activate(cardId: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivateResponse> {
|
|
879
|
+
return localVarFp.activate(cardId, xAuditUser, options).then((request) => request(axios, basePath));
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
883
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
884
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
885
|
+
* @param {string} [xIdempotencyKey]
|
|
886
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
activateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceResponse> {
|
|
891
|
+
return localVarFp.activateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
892
|
+
},
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* ActivateTokenApi - object-oriented interface
|
|
898
|
+
* @export
|
|
899
|
+
* @class ActivateTokenApi
|
|
900
|
+
* @extends {BaseAPI}
|
|
901
|
+
*/
|
|
902
|
+
export class ActivateTokenApi extends BaseAPI {
|
|
903
|
+
/**
|
|
904
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
905
|
+
* @summary Generate activation data for MDES/VTS
|
|
906
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
907
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
908
|
+
* @param {*} [options] Override http request option.
|
|
909
|
+
* @throws {RequiredError}
|
|
910
|
+
* @memberof ActivateTokenApi
|
|
911
|
+
*/
|
|
912
|
+
public activate(cardId: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
913
|
+
return ActivateTokenApiFp(this.configuration).activate(cardId, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
918
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
919
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
920
|
+
* @param {string} [xIdempotencyKey]
|
|
921
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
922
|
+
* @param {*} [options] Override http request option.
|
|
923
|
+
* @throws {RequiredError}
|
|
924
|
+
* @memberof ActivateTokenApi
|
|
925
|
+
*/
|
|
926
|
+
public activateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
927
|
+
return ActivateTokenApiFp(this.configuration).activateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* DeactivateTokenApi - axios parameter creator
|
|
935
|
+
* @export
|
|
936
|
+
*/
|
|
937
|
+
export const DeactivateTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
938
|
+
return {
|
|
939
|
+
/**
|
|
940
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
941
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
942
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
943
|
+
* @param {string} [xIdempotencyKey]
|
|
944
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
deactivateToken: async (id: string, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
949
|
+
// verify required parameter 'id' is not null or undefined
|
|
950
|
+
assertParamExists('deactivateToken', 'id', id)
|
|
951
|
+
const localVarPath = `/v1/wallet/tokens/{id}/deactivate`
|
|
952
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
954
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
955
|
+
let baseOptions;
|
|
956
|
+
if (configuration) {
|
|
957
|
+
baseOptions = configuration.baseOptions;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
961
|
+
const localVarHeaderParameter = {} as any;
|
|
962
|
+
const localVarQueryParameter = {} as any;
|
|
963
|
+
|
|
964
|
+
// authentication bearerAuth required
|
|
965
|
+
// http bearer authentication required
|
|
966
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
if (xIdempotencyKey != null) {
|
|
971
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
972
|
+
}
|
|
973
|
+
if (xAuditUser != null) {
|
|
974
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
975
|
+
}
|
|
976
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
978
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
979
|
+
|
|
980
|
+
return {
|
|
981
|
+
url: toPathString(localVarUrlObj),
|
|
982
|
+
options: localVarRequestOptions,
|
|
983
|
+
};
|
|
984
|
+
},
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* DeactivateTokenApi - functional programming interface
|
|
990
|
+
* @export
|
|
991
|
+
*/
|
|
992
|
+
export const DeactivateTokenApiFp = function(configuration?: Configuration) {
|
|
993
|
+
const localVarAxiosParamCreator = DeactivateTokenApiAxiosParamCreator(configuration)
|
|
994
|
+
return {
|
|
995
|
+
/**
|
|
996
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
997
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
998
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
999
|
+
* @param {string} [xIdempotencyKey]
|
|
1000
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
async deactivateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourceResponse>> {
|
|
1005
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateToken(id, xIdempotencyKey, xAuditUser, options);
|
|
1006
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1007
|
+
const localVarOperationServerBasePath = operationServerMap['DeactivateTokenApi.deactivateToken']?.[localVarOperationServerIndex]?.url;
|
|
1008
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1009
|
+
},
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* DeactivateTokenApi - factory interface
|
|
1015
|
+
* @export
|
|
1016
|
+
*/
|
|
1017
|
+
export const DeactivateTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1018
|
+
const localVarFp = DeactivateTokenApiFp(configuration)
|
|
1019
|
+
return {
|
|
1020
|
+
/**
|
|
1021
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
1022
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
1023
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
1024
|
+
* @param {string} [xIdempotencyKey]
|
|
1025
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
deactivateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceResponse> {
|
|
1030
|
+
return localVarFp.deactivateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1031
|
+
},
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* DeactivateTokenApi - object-oriented interface
|
|
1037
|
+
* @export
|
|
1038
|
+
* @class DeactivateTokenApi
|
|
1039
|
+
* @extends {BaseAPI}
|
|
1040
|
+
*/
|
|
1041
|
+
export class DeactivateTokenApi extends BaseAPI {
|
|
1042
|
+
/**
|
|
1043
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
1044
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
1045
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
1046
|
+
* @param {string} [xIdempotencyKey]
|
|
1047
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1048
|
+
* @param {*} [options] Override http request option.
|
|
1049
|
+
* @throws {RequiredError}
|
|
1050
|
+
* @memberof DeactivateTokenApi
|
|
1051
|
+
*/
|
|
1052
|
+
public deactivateToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1053
|
+
return DeactivateTokenApiFp(this.configuration).deactivateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* EligibleTokenRequestorsApi - axios parameter creator
|
|
1061
|
+
* @export
|
|
1062
|
+
*/
|
|
1063
|
+
export const EligibleTokenRequestorsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1064
|
+
return {
|
|
1065
|
+
/**
|
|
1066
|
+
* Send a request to this endpoint to return a list of eligible token requestors (Samsung Pay and/order Click to Pay), as available for the specific card program.
|
|
1067
|
+
* @summary List Eligible Token Requestors
|
|
1068
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1069
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
getEligibleTokenRequestors: async (xAuditUser?: string, eligibleTokenRequestorsRequest?: EligibleTokenRequestorsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1074
|
+
const localVarPath = `/v1/wallet/mdestokenconnect/requestors`;
|
|
1075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1077
|
+
let baseOptions;
|
|
1078
|
+
if (configuration) {
|
|
1079
|
+
baseOptions = configuration.baseOptions;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1083
|
+
const localVarHeaderParameter = {} as any;
|
|
1084
|
+
const localVarQueryParameter = {} as any;
|
|
1085
|
+
|
|
1086
|
+
// authentication bearerAuth required
|
|
1087
|
+
// http bearer authentication required
|
|
1088
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1093
|
+
|
|
1094
|
+
if (xAuditUser != null) {
|
|
1095
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1096
|
+
}
|
|
1097
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1098
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1099
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1100
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eligibleTokenRequestorsRequest, localVarRequestOptions, configuration)
|
|
1101
|
+
|
|
1102
|
+
return {
|
|
1103
|
+
url: toPathString(localVarUrlObj),
|
|
1104
|
+
options: localVarRequestOptions,
|
|
1105
|
+
};
|
|
1106
|
+
},
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* EligibleTokenRequestorsApi - functional programming interface
|
|
1112
|
+
* @export
|
|
1113
|
+
*/
|
|
1114
|
+
export const EligibleTokenRequestorsApiFp = function(configuration?: Configuration) {
|
|
1115
|
+
const localVarAxiosParamCreator = EligibleTokenRequestorsApiAxiosParamCreator(configuration)
|
|
1116
|
+
return {
|
|
1117
|
+
/**
|
|
1118
|
+
* Send a request to this endpoint to return a list of eligible token requestors (Samsung Pay and/order Click to Pay), as available for the specific card program.
|
|
1119
|
+
* @summary List Eligible Token Requestors
|
|
1120
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1121
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
1122
|
+
* @param {*} [options] Override http request option.
|
|
1123
|
+
* @throws {RequiredError}
|
|
1124
|
+
*/
|
|
1125
|
+
async getEligibleTokenRequestors(xAuditUser?: string, eligibleTokenRequestorsRequest?: EligibleTokenRequestorsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EligibleTokenRequestorsResponse>> {
|
|
1126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options);
|
|
1127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1128
|
+
const localVarOperationServerBasePath = operationServerMap['EligibleTokenRequestorsApi.getEligibleTokenRequestors']?.[localVarOperationServerIndex]?.url;
|
|
1129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1130
|
+
},
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* EligibleTokenRequestorsApi - factory interface
|
|
1136
|
+
* @export
|
|
1137
|
+
*/
|
|
1138
|
+
export const EligibleTokenRequestorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1139
|
+
const localVarFp = EligibleTokenRequestorsApiFp(configuration)
|
|
1140
|
+
return {
|
|
1141
|
+
/**
|
|
1142
|
+
* Send a request to this endpoint to return a list of eligible token requestors (Samsung Pay and/order Click to Pay), as available for the specific card program.
|
|
1143
|
+
* @summary List Eligible Token Requestors
|
|
1144
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1145
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
getEligibleTokenRequestors(xAuditUser?: string, eligibleTokenRequestorsRequest?: EligibleTokenRequestorsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EligibleTokenRequestorsResponse> {
|
|
1150
|
+
return localVarFp.getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options).then((request) => request(axios, basePath));
|
|
1151
|
+
},
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* EligibleTokenRequestorsApi - object-oriented interface
|
|
1157
|
+
* @export
|
|
1158
|
+
* @class EligibleTokenRequestorsApi
|
|
1159
|
+
* @extends {BaseAPI}
|
|
1160
|
+
*/
|
|
1161
|
+
export class EligibleTokenRequestorsApi extends BaseAPI {
|
|
1162
|
+
/**
|
|
1163
|
+
* Send a request to this endpoint to return a list of eligible token requestors (Samsung Pay and/order Click to Pay), as available for the specific card program.
|
|
1164
|
+
* @summary List Eligible Token Requestors
|
|
1165
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1166
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
* @memberof EligibleTokenRequestorsApi
|
|
1170
|
+
*/
|
|
1171
|
+
public getEligibleTokenRequestors(xAuditUser?: string, eligibleTokenRequestorsRequest?: EligibleTokenRequestorsRequest, options?: RawAxiosRequestConfig) {
|
|
1172
|
+
return EligibleTokenRequestorsApiFp(this.configuration).getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* GetTokensApi - axios parameter creator
|
|
1180
|
+
* @export
|
|
1181
|
+
*/
|
|
1182
|
+
export const GetTokensApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1183
|
+
return {
|
|
1184
|
+
/**
|
|
1185
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
1186
|
+
* @summary Get token by token unique reference ID
|
|
1187
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
1188
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, token will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, token will be fetched from the internal system.</p> <br>
|
|
1189
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for the token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1190
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
getToken: async (id: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1195
|
+
// verify required parameter 'id' is not null or undefined
|
|
1196
|
+
assertParamExists('getToken', 'id', id)
|
|
1197
|
+
const localVarPath = `/v1/wallet/tokens/{id}`
|
|
1198
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1201
|
+
let baseOptions;
|
|
1202
|
+
if (configuration) {
|
|
1203
|
+
baseOptions = configuration.baseOptions;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1207
|
+
const localVarHeaderParameter = {} as any;
|
|
1208
|
+
const localVarQueryParameter = {} as any;
|
|
1209
|
+
|
|
1210
|
+
// authentication bearerAuth required
|
|
1211
|
+
// http bearer authentication required
|
|
1212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1213
|
+
|
|
1214
|
+
if (fetchFromCardScheme !== undefined) {
|
|
1215
|
+
localVarQueryParameter['fetchFromCardScheme'] = fetchFromCardScheme;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if (includeCardSchemePayload !== undefined) {
|
|
1219
|
+
localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
if (xAuditUser != null) {
|
|
1225
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1226
|
+
}
|
|
1227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1230
|
+
|
|
1231
|
+
return {
|
|
1232
|
+
url: toPathString(localVarUrlObj),
|
|
1233
|
+
options: localVarRequestOptions,
|
|
1234
|
+
};
|
|
1235
|
+
},
|
|
1236
|
+
/**
|
|
1237
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
1238
|
+
* @summary Lists tokens for a card
|
|
1239
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
1240
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, tokens will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, tokens will be fetched from the internal system.</p> <br>
|
|
1241
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for each token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1242
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1243
|
+
* @param {*} [options] Override http request option.
|
|
1244
|
+
* @throws {RequiredError}
|
|
1245
|
+
*/
|
|
1246
|
+
getTokens: async (cardId: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1247
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
1248
|
+
assertParamExists('getTokens', 'cardId', cardId)
|
|
1249
|
+
const localVarPath = `/v1/wallet/{cardId}/tokens`
|
|
1250
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
1251
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1252
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1253
|
+
let baseOptions;
|
|
1254
|
+
if (configuration) {
|
|
1255
|
+
baseOptions = configuration.baseOptions;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1259
|
+
const localVarHeaderParameter = {} as any;
|
|
1260
|
+
const localVarQueryParameter = {} as any;
|
|
1261
|
+
|
|
1262
|
+
// authentication bearerAuth required
|
|
1263
|
+
// http bearer authentication required
|
|
1264
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1265
|
+
|
|
1266
|
+
if (fetchFromCardScheme !== undefined) {
|
|
1267
|
+
localVarQueryParameter['fetchFromCardScheme'] = fetchFromCardScheme;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
if (includeCardSchemePayload !== undefined) {
|
|
1271
|
+
localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
if (xAuditUser != null) {
|
|
1277
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1278
|
+
}
|
|
1279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1282
|
+
|
|
1283
|
+
return {
|
|
1284
|
+
url: toPathString(localVarUrlObj),
|
|
1285
|
+
options: localVarRequestOptions,
|
|
1286
|
+
};
|
|
1287
|
+
},
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* GetTokensApi - functional programming interface
|
|
1293
|
+
* @export
|
|
1294
|
+
*/
|
|
1295
|
+
export const GetTokensApiFp = function(configuration?: Configuration) {
|
|
1296
|
+
const localVarAxiosParamCreator = GetTokensApiAxiosParamCreator(configuration)
|
|
1297
|
+
return {
|
|
1298
|
+
/**
|
|
1299
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
1300
|
+
* @summary Get token by token unique reference ID
|
|
1301
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
1302
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, token will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, token will be fetched from the internal system.</p> <br>
|
|
1303
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for the token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1304
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1305
|
+
* @param {*} [options] Override http request option.
|
|
1306
|
+
* @throws {RequiredError}
|
|
1307
|
+
*/
|
|
1308
|
+
async getToken(id: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenResponse>> {
|
|
1309
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options);
|
|
1310
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1311
|
+
const localVarOperationServerBasePath = operationServerMap['GetTokensApi.getToken']?.[localVarOperationServerIndex]?.url;
|
|
1312
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1313
|
+
},
|
|
1314
|
+
/**
|
|
1315
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
1316
|
+
* @summary Lists tokens for a card
|
|
1317
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
1318
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, tokens will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, tokens will be fetched from the internal system.</p> <br>
|
|
1319
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for each token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1320
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
*/
|
|
1324
|
+
async getTokens(cardId: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TokenResponse>>> {
|
|
1325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options);
|
|
1326
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1327
|
+
const localVarOperationServerBasePath = operationServerMap['GetTokensApi.getTokens']?.[localVarOperationServerIndex]?.url;
|
|
1328
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1329
|
+
},
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* GetTokensApi - factory interface
|
|
1335
|
+
* @export
|
|
1336
|
+
*/
|
|
1337
|
+
export const GetTokensApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1338
|
+
const localVarFp = GetTokensApiFp(configuration)
|
|
1339
|
+
return {
|
|
1340
|
+
/**
|
|
1341
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
1342
|
+
* @summary Get token by token unique reference ID
|
|
1343
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
1344
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, token will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, token will be fetched from the internal system.</p> <br>
|
|
1345
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for the token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1346
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
getToken(id: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<TokenResponse> {
|
|
1351
|
+
return localVarFp.getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1352
|
+
},
|
|
1353
|
+
/**
|
|
1354
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
1355
|
+
* @summary Lists tokens for a card
|
|
1356
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
1357
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, tokens will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, tokens will be fetched from the internal system.</p> <br>
|
|
1358
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for each token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1359
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
getTokens(cardId: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<TokenResponse>> {
|
|
1364
|
+
return localVarFp.getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1365
|
+
},
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* GetTokensApi - object-oriented interface
|
|
1371
|
+
* @export
|
|
1372
|
+
* @class GetTokensApi
|
|
1373
|
+
* @extends {BaseAPI}
|
|
1374
|
+
*/
|
|
1375
|
+
export class GetTokensApi extends BaseAPI {
|
|
1376
|
+
/**
|
|
1377
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
1378
|
+
* @summary Get token by token unique reference ID
|
|
1379
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
1380
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, token will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, token will be fetched from the internal system.</p> <br>
|
|
1381
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for the token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1382
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1383
|
+
* @param {*} [options] Override http request option.
|
|
1384
|
+
* @throws {RequiredError}
|
|
1385
|
+
* @memberof GetTokensApi
|
|
1386
|
+
*/
|
|
1387
|
+
public getToken(id: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1388
|
+
return GetTokensApiFp(this.configuration).getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
1393
|
+
* @summary Lists tokens for a card
|
|
1394
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
1395
|
+
* @param {boolean} [fetchFromCardScheme] <p>If <code>true</code>, tokens will be fetched directly from the card scheme (e.g., Mastercard, Visa).</p> <br> <p>If <code>false</code>, tokens will be fetched from the internal system.</p> <br>
|
|
1396
|
+
* @param {boolean} [includeCardSchemePayload] <p>If <code>true</code>, the response will include the raw payload from the card scheme for each token (if available).</p> <br> <p>If <code>false</code>, the card scheme payload will be omitted from the response.</p> <br>
|
|
1397
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1398
|
+
* @param {*} [options] Override http request option.
|
|
1399
|
+
* @throws {RequiredError}
|
|
1400
|
+
* @memberof GetTokensApi
|
|
1401
|
+
*/
|
|
1402
|
+
public getTokens(cardId: string, fetchFromCardScheme?: boolean, includeCardSchemePayload?: boolean, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1403
|
+
return GetTokensApiFp(this.configuration).getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* PushCardsApi - axios parameter creator
|
|
1411
|
+
* @export
|
|
1412
|
+
*/
|
|
1413
|
+
export const PushCardsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1414
|
+
return {
|
|
1415
|
+
/**
|
|
1416
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
1417
|
+
* @summary Push Cards to Token Requestors
|
|
1418
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
1419
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1420
|
+
* @param {*} [options] Override http request option.
|
|
1421
|
+
* @throws {RequiredError}
|
|
1422
|
+
*/
|
|
1423
|
+
pushCardsToTokenRequestor: async (pushAccountsToTokenRequestorRequest: PushAccountsToTokenRequestorRequest, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1424
|
+
// verify required parameter 'pushAccountsToTokenRequestorRequest' is not null or undefined
|
|
1425
|
+
assertParamExists('pushCardsToTokenRequestor', 'pushAccountsToTokenRequestorRequest', pushAccountsToTokenRequestorRequest)
|
|
1426
|
+
const localVarPath = `/v1/wallet/mdestokenconnect/push`;
|
|
1427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1429
|
+
let baseOptions;
|
|
1430
|
+
if (configuration) {
|
|
1431
|
+
baseOptions = configuration.baseOptions;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1435
|
+
const localVarHeaderParameter = {} as any;
|
|
1436
|
+
const localVarQueryParameter = {} as any;
|
|
1437
|
+
|
|
1438
|
+
// authentication bearerAuth required
|
|
1439
|
+
// http bearer authentication required
|
|
1440
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1445
|
+
|
|
1446
|
+
if (xAuditUser != null) {
|
|
1447
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1448
|
+
}
|
|
1449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1452
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pushAccountsToTokenRequestorRequest, localVarRequestOptions, configuration)
|
|
1453
|
+
|
|
1454
|
+
return {
|
|
1455
|
+
url: toPathString(localVarUrlObj),
|
|
1456
|
+
options: localVarRequestOptions,
|
|
1457
|
+
};
|
|
1458
|
+
},
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* PushCardsApi - functional programming interface
|
|
1464
|
+
* @export
|
|
1465
|
+
*/
|
|
1466
|
+
export const PushCardsApiFp = function(configuration?: Configuration) {
|
|
1467
|
+
const localVarAxiosParamCreator = PushCardsApiAxiosParamCreator(configuration)
|
|
1468
|
+
return {
|
|
1469
|
+
/**
|
|
1470
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
1471
|
+
* @summary Push Cards to Token Requestors
|
|
1472
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
1473
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
async pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest: PushAccountsToTokenRequestorRequest, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PushAccountsToTokenRequestorResponse>> {
|
|
1478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options);
|
|
1479
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1480
|
+
const localVarOperationServerBasePath = operationServerMap['PushCardsApi.pushCardsToTokenRequestor']?.[localVarOperationServerIndex]?.url;
|
|
1481
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1482
|
+
},
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* PushCardsApi - factory interface
|
|
1488
|
+
* @export
|
|
1489
|
+
*/
|
|
1490
|
+
export const PushCardsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1491
|
+
const localVarFp = PushCardsApiFp(configuration)
|
|
1492
|
+
return {
|
|
1493
|
+
/**
|
|
1494
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
1495
|
+
* @summary Push Cards to Token Requestors
|
|
1496
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
1497
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1498
|
+
* @param {*} [options] Override http request option.
|
|
1499
|
+
* @throws {RequiredError}
|
|
1500
|
+
*/
|
|
1501
|
+
pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest: PushAccountsToTokenRequestorRequest, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<PushAccountsToTokenRequestorResponse> {
|
|
1502
|
+
return localVarFp.pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1503
|
+
},
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* PushCardsApi - object-oriented interface
|
|
1509
|
+
* @export
|
|
1510
|
+
* @class PushCardsApi
|
|
1511
|
+
* @extends {BaseAPI}
|
|
1512
|
+
*/
|
|
1513
|
+
export class PushCardsApi extends BaseAPI {
|
|
1514
|
+
/**
|
|
1515
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
1516
|
+
* @summary Push Cards to Token Requestors
|
|
1517
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
1518
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
* @memberof PushCardsApi
|
|
1522
|
+
*/
|
|
1523
|
+
public pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest: PushAccountsToTokenRequestorRequest, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1524
|
+
return PushCardsApiFp(this.configuration).pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* PushProvisionApi - axios parameter creator
|
|
1532
|
+
* @export
|
|
1533
|
+
*/
|
|
1534
|
+
export const PushProvisionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1535
|
+
return {
|
|
1536
|
+
/**
|
|
1537
|
+
* This endpoint is only used for Apple Pay push provisioning. It requires a certificate and a nonce from Apple. For Apple there exists special sandbox cards in different regions that are listed here: https://developer.apple.com/apple-pay/sandbox-testing/. In order to be able to test this properly in Apple\'s sandbox environment one of these cards must be used. This implies that you need to use special cardIds for getting the data. The cardId that Enfuce provides for this purpose are: - CardID: `20218aae-b15e-406c-9e9f-23735cd86a48`, card number: `5204 2477 5000 1471`
|
|
1538
|
+
* @summary Apple Pay push provisioning
|
|
1539
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1540
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1541
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
*/
|
|
1545
|
+
provisionApplePay: async (cardId: string, appleParametersRequest: AppleParametersRequest, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1546
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
1547
|
+
assertParamExists('provisionApplePay', 'cardId', cardId)
|
|
1548
|
+
// verify required parameter 'appleParametersRequest' is not null or undefined
|
|
1549
|
+
assertParamExists('provisionApplePay', 'appleParametersRequest', appleParametersRequest)
|
|
1550
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/applepay`
|
|
1551
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
1552
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1553
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1554
|
+
let baseOptions;
|
|
1555
|
+
if (configuration) {
|
|
1556
|
+
baseOptions = configuration.baseOptions;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1560
|
+
const localVarHeaderParameter = {} as any;
|
|
1561
|
+
const localVarQueryParameter = {} as any;
|
|
1562
|
+
|
|
1563
|
+
// authentication bearerAuth required
|
|
1564
|
+
// http bearer authentication required
|
|
1565
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1570
|
+
|
|
1571
|
+
if (xAuditUser != null) {
|
|
1572
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1573
|
+
}
|
|
1574
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1576
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1577
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleParametersRequest, localVarRequestOptions, configuration)
|
|
1578
|
+
|
|
1579
|
+
return {
|
|
1580
|
+
url: toPathString(localVarUrlObj),
|
|
1581
|
+
options: localVarRequestOptions,
|
|
1582
|
+
};
|
|
1583
|
+
},
|
|
1584
|
+
/**
|
|
1585
|
+
* This endpoint is only used for Google Pay push provisioning. Response is a JSON that must be passed to Google and onwards to MDES/VTS.
|
|
1586
|
+
* @summary Google Pay push provisioning
|
|
1587
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1588
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1589
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
provisionGooglePay: async (cardId: string, xAuditUser?: string, googleParametersRequest?: GoogleParametersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1594
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
1595
|
+
assertParamExists('provisionGooglePay', 'cardId', cardId)
|
|
1596
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/googlepay`
|
|
1597
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
1598
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1599
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1600
|
+
let baseOptions;
|
|
1601
|
+
if (configuration) {
|
|
1602
|
+
baseOptions = configuration.baseOptions;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1606
|
+
const localVarHeaderParameter = {} as any;
|
|
1607
|
+
const localVarQueryParameter = {} as any;
|
|
1608
|
+
|
|
1609
|
+
// authentication bearerAuth required
|
|
1610
|
+
// http bearer authentication required
|
|
1611
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1616
|
+
|
|
1617
|
+
if (xAuditUser != null) {
|
|
1618
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1619
|
+
}
|
|
1620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1622
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1623
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleParametersRequest, localVarRequestOptions, configuration)
|
|
1624
|
+
|
|
1625
|
+
return {
|
|
1626
|
+
url: toPathString(localVarUrlObj),
|
|
1627
|
+
options: localVarRequestOptions,
|
|
1628
|
+
};
|
|
1629
|
+
},
|
|
1630
|
+
/**
|
|
1631
|
+
* This endpoint is only used for Samsung Pay push provisioning. Response is a JSON that must be passed to Samsung and onwards to MDES/VTS.
|
|
1632
|
+
* @summary Samsung Pay push provisioning
|
|
1633
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1634
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1635
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
provisionSamsungPay: async (cardId: string, xAuditUser?: string, samsungParametersRequest?: SamsungParametersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1640
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
1641
|
+
assertParamExists('provisionSamsungPay', 'cardId', cardId)
|
|
1642
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/samsungpay`
|
|
1643
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
1644
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1645
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1646
|
+
let baseOptions;
|
|
1647
|
+
if (configuration) {
|
|
1648
|
+
baseOptions = configuration.baseOptions;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1652
|
+
const localVarHeaderParameter = {} as any;
|
|
1653
|
+
const localVarQueryParameter = {} as any;
|
|
1654
|
+
|
|
1655
|
+
// authentication bearerAuth required
|
|
1656
|
+
// http bearer authentication required
|
|
1657
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1662
|
+
|
|
1663
|
+
if (xAuditUser != null) {
|
|
1664
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1665
|
+
}
|
|
1666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1668
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(samsungParametersRequest, localVarRequestOptions, configuration)
|
|
1670
|
+
|
|
1671
|
+
return {
|
|
1672
|
+
url: toPathString(localVarUrlObj),
|
|
1673
|
+
options: localVarRequestOptions,
|
|
1674
|
+
};
|
|
1675
|
+
},
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* PushProvisionApi - functional programming interface
|
|
1681
|
+
* @export
|
|
1682
|
+
*/
|
|
1683
|
+
export const PushProvisionApiFp = function(configuration?: Configuration) {
|
|
1684
|
+
const localVarAxiosParamCreator = PushProvisionApiAxiosParamCreator(configuration)
|
|
1685
|
+
return {
|
|
1686
|
+
/**
|
|
1687
|
+
* This endpoint is only used for Apple Pay push provisioning. It requires a certificate and a nonce from Apple. For Apple there exists special sandbox cards in different regions that are listed here: https://developer.apple.com/apple-pay/sandbox-testing/. In order to be able to test this properly in Apple\'s sandbox environment one of these cards must be used. This implies that you need to use special cardIds for getting the data. The cardId that Enfuce provides for this purpose are: - CardID: `20218aae-b15e-406c-9e9f-23735cd86a48`, card number: `5204 2477 5000 1471`
|
|
1688
|
+
* @summary Apple Pay push provisioning
|
|
1689
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1690
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1691
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
async provisionApplePay(cardId: string, appleParametersRequest: AppleParametersRequest, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleProvisioningResponse>> {
|
|
1696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionApplePay(cardId, appleParametersRequest, xAuditUser, options);
|
|
1697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1698
|
+
const localVarOperationServerBasePath = operationServerMap['PushProvisionApi.provisionApplePay']?.[localVarOperationServerIndex]?.url;
|
|
1699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1700
|
+
},
|
|
1701
|
+
/**
|
|
1702
|
+
* This endpoint is only used for Google Pay push provisioning. Response is a JSON that must be passed to Google and onwards to MDES/VTS.
|
|
1703
|
+
* @summary Google Pay push provisioning
|
|
1704
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1705
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1706
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
*/
|
|
1710
|
+
async provisionGooglePay(cardId: string, xAuditUser?: string, googleParametersRequest?: GoogleParametersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExternalResponseIssuerInitiatedDigitizationData>> {
|
|
1711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options);
|
|
1712
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1713
|
+
const localVarOperationServerBasePath = operationServerMap['PushProvisionApi.provisionGooglePay']?.[localVarOperationServerIndex]?.url;
|
|
1714
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1715
|
+
},
|
|
1716
|
+
/**
|
|
1717
|
+
* This endpoint is only used for Samsung Pay push provisioning. Response is a JSON that must be passed to Samsung and onwards to MDES/VTS.
|
|
1718
|
+
* @summary Samsung Pay push provisioning
|
|
1719
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1720
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1721
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
*/
|
|
1725
|
+
async provisionSamsungPay(cardId: string, xAuditUser?: string, samsungParametersRequest?: SamsungParametersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExternalResponseIssuerInitiatedDigitizationData>> {
|
|
1726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options);
|
|
1727
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1728
|
+
const localVarOperationServerBasePath = operationServerMap['PushProvisionApi.provisionSamsungPay']?.[localVarOperationServerIndex]?.url;
|
|
1729
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1730
|
+
},
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* PushProvisionApi - factory interface
|
|
1736
|
+
* @export
|
|
1737
|
+
*/
|
|
1738
|
+
export const PushProvisionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1739
|
+
const localVarFp = PushProvisionApiFp(configuration)
|
|
1740
|
+
return {
|
|
1741
|
+
/**
|
|
1742
|
+
* This endpoint is only used for Apple Pay push provisioning. It requires a certificate and a nonce from Apple. For Apple there exists special sandbox cards in different regions that are listed here: https://developer.apple.com/apple-pay/sandbox-testing/. In order to be able to test this properly in Apple\'s sandbox environment one of these cards must be used. This implies that you need to use special cardIds for getting the data. The cardId that Enfuce provides for this purpose are: - CardID: `20218aae-b15e-406c-9e9f-23735cd86a48`, card number: `5204 2477 5000 1471`
|
|
1743
|
+
* @summary Apple Pay push provisioning
|
|
1744
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1745
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1746
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1747
|
+
* @param {*} [options] Override http request option.
|
|
1748
|
+
* @throws {RequiredError}
|
|
1749
|
+
*/
|
|
1750
|
+
provisionApplePay(cardId: string, appleParametersRequest: AppleParametersRequest, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<AppleProvisioningResponse> {
|
|
1751
|
+
return localVarFp.provisionApplePay(cardId, appleParametersRequest, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1752
|
+
},
|
|
1753
|
+
/**
|
|
1754
|
+
* This endpoint is only used for Google Pay push provisioning. Response is a JSON that must be passed to Google and onwards to MDES/VTS.
|
|
1755
|
+
* @summary Google Pay push provisioning
|
|
1756
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1757
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1758
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
*/
|
|
1762
|
+
provisionGooglePay(cardId: string, xAuditUser?: string, googleParametersRequest?: GoogleParametersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExternalResponseIssuerInitiatedDigitizationData> {
|
|
1763
|
+
return localVarFp.provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options).then((request) => request(axios, basePath));
|
|
1764
|
+
},
|
|
1765
|
+
/**
|
|
1766
|
+
* This endpoint is only used for Samsung Pay push provisioning. Response is a JSON that must be passed to Samsung and onwards to MDES/VTS.
|
|
1767
|
+
* @summary Samsung Pay push provisioning
|
|
1768
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1769
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1770
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1771
|
+
* @param {*} [options] Override http request option.
|
|
1772
|
+
* @throws {RequiredError}
|
|
1773
|
+
*/
|
|
1774
|
+
provisionSamsungPay(cardId: string, xAuditUser?: string, samsungParametersRequest?: SamsungParametersRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExternalResponseIssuerInitiatedDigitizationData> {
|
|
1775
|
+
return localVarFp.provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options).then((request) => request(axios, basePath));
|
|
1776
|
+
},
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* PushProvisionApi - object-oriented interface
|
|
1782
|
+
* @export
|
|
1783
|
+
* @class PushProvisionApi
|
|
1784
|
+
* @extends {BaseAPI}
|
|
1785
|
+
*/
|
|
1786
|
+
export class PushProvisionApi extends BaseAPI {
|
|
1787
|
+
/**
|
|
1788
|
+
* This endpoint is only used for Apple Pay push provisioning. It requires a certificate and a nonce from Apple. For Apple there exists special sandbox cards in different regions that are listed here: https://developer.apple.com/apple-pay/sandbox-testing/. In order to be able to test this properly in Apple\'s sandbox environment one of these cards must be used. This implies that you need to use special cardIds for getting the data. The cardId that Enfuce provides for this purpose are: - CardID: `20218aae-b15e-406c-9e9f-23735cd86a48`, card number: `5204 2477 5000 1471`
|
|
1789
|
+
* @summary Apple Pay push provisioning
|
|
1790
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1791
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1792
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
* @memberof PushProvisionApi
|
|
1796
|
+
*/
|
|
1797
|
+
public provisionApplePay(cardId: string, appleParametersRequest: AppleParametersRequest, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1798
|
+
return PushProvisionApiFp(this.configuration).provisionApplePay(cardId, appleParametersRequest, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* This endpoint is only used for Google Pay push provisioning. Response is a JSON that must be passed to Google and onwards to MDES/VTS.
|
|
1803
|
+
* @summary Google Pay push provisioning
|
|
1804
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1805
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1806
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
* @memberof PushProvisionApi
|
|
1810
|
+
*/
|
|
1811
|
+
public provisionGooglePay(cardId: string, xAuditUser?: string, googleParametersRequest?: GoogleParametersRequest, options?: RawAxiosRequestConfig) {
|
|
1812
|
+
return PushProvisionApiFp(this.configuration).provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* This endpoint is only used for Samsung Pay push provisioning. Response is a JSON that must be passed to Samsung and onwards to MDES/VTS.
|
|
1817
|
+
* @summary Samsung Pay push provisioning
|
|
1818
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1819
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1820
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
* @memberof PushProvisionApi
|
|
1824
|
+
*/
|
|
1825
|
+
public provisionSamsungPay(cardId: string, xAuditUser?: string, samsungParametersRequest?: SamsungParametersRequest, options?: RawAxiosRequestConfig) {
|
|
1826
|
+
return PushProvisionApiFp(this.configuration).provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* SuspendTokenApi - axios parameter creator
|
|
1834
|
+
* @export
|
|
1835
|
+
*/
|
|
1836
|
+
export const SuspendTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1837
|
+
return {
|
|
1838
|
+
/**
|
|
1839
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1840
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1841
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1842
|
+
* @param {string} [xIdempotencyKey]
|
|
1843
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1844
|
+
* @param {*} [options] Override http request option.
|
|
1845
|
+
* @throws {RequiredError}
|
|
1846
|
+
*/
|
|
1847
|
+
suspendToken: async (id: string, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1848
|
+
// verify required parameter 'id' is not null or undefined
|
|
1849
|
+
assertParamExists('suspendToken', 'id', id)
|
|
1850
|
+
const localVarPath = `/v1/wallet/tokens/{id}/suspend`
|
|
1851
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1852
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1853
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1854
|
+
let baseOptions;
|
|
1855
|
+
if (configuration) {
|
|
1856
|
+
baseOptions = configuration.baseOptions;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1860
|
+
const localVarHeaderParameter = {} as any;
|
|
1861
|
+
const localVarQueryParameter = {} as any;
|
|
1862
|
+
|
|
1863
|
+
// authentication bearerAuth required
|
|
1864
|
+
// http bearer authentication required
|
|
1865
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
if (xIdempotencyKey != null) {
|
|
1870
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
1871
|
+
}
|
|
1872
|
+
if (xAuditUser != null) {
|
|
1873
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1874
|
+
}
|
|
1875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1877
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1878
|
+
|
|
1879
|
+
return {
|
|
1880
|
+
url: toPathString(localVarUrlObj),
|
|
1881
|
+
options: localVarRequestOptions,
|
|
1882
|
+
};
|
|
1883
|
+
},
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* SuspendTokenApi - functional programming interface
|
|
1889
|
+
* @export
|
|
1890
|
+
*/
|
|
1891
|
+
export const SuspendTokenApiFp = function(configuration?: Configuration) {
|
|
1892
|
+
const localVarAxiosParamCreator = SuspendTokenApiAxiosParamCreator(configuration)
|
|
1893
|
+
return {
|
|
1894
|
+
/**
|
|
1895
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1896
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1897
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1898
|
+
* @param {string} [xIdempotencyKey]
|
|
1899
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
*/
|
|
1903
|
+
async suspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourceResponse>> {
|
|
1904
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suspendToken(id, xIdempotencyKey, xAuditUser, options);
|
|
1905
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1906
|
+
const localVarOperationServerBasePath = operationServerMap['SuspendTokenApi.suspendToken']?.[localVarOperationServerIndex]?.url;
|
|
1907
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1908
|
+
},
|
|
1909
|
+
}
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* SuspendTokenApi - factory interface
|
|
1914
|
+
* @export
|
|
1915
|
+
*/
|
|
1916
|
+
export const SuspendTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1917
|
+
const localVarFp = SuspendTokenApiFp(configuration)
|
|
1918
|
+
return {
|
|
1919
|
+
/**
|
|
1920
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1921
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1922
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1923
|
+
* @param {string} [xIdempotencyKey]
|
|
1924
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
*/
|
|
1928
|
+
suspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceResponse> {
|
|
1929
|
+
return localVarFp.suspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1930
|
+
},
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* SuspendTokenApi - object-oriented interface
|
|
1936
|
+
* @export
|
|
1937
|
+
* @class SuspendTokenApi
|
|
1938
|
+
* @extends {BaseAPI}
|
|
1939
|
+
*/
|
|
1940
|
+
export class SuspendTokenApi extends BaseAPI {
|
|
1941
|
+
/**
|
|
1942
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1943
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1944
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1945
|
+
* @param {string} [xIdempotencyKey]
|
|
1946
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1947
|
+
* @param {*} [options] Override http request option.
|
|
1948
|
+
* @throws {RequiredError}
|
|
1949
|
+
* @memberof SuspendTokenApi
|
|
1950
|
+
*/
|
|
1951
|
+
public suspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
1952
|
+
return SuspendTokenApiFp(this.configuration).suspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* UnsuspendTokenApi - axios parameter creator
|
|
1960
|
+
* @export
|
|
1961
|
+
*/
|
|
1962
|
+
export const UnsuspendTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1963
|
+
return {
|
|
1964
|
+
/**
|
|
1965
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
1966
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
1967
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
1968
|
+
* @param {string} [xIdempotencyKey]
|
|
1969
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1970
|
+
* @param {*} [options] Override http request option.
|
|
1971
|
+
* @throws {RequiredError}
|
|
1972
|
+
*/
|
|
1973
|
+
unsuspendToken: async (id: string, xIdempotencyKey?: string, xAuditUser?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1974
|
+
// verify required parameter 'id' is not null or undefined
|
|
1975
|
+
assertParamExists('unsuspendToken', 'id', id)
|
|
1976
|
+
const localVarPath = `/v1/wallet/tokens/{id}/unsuspend`
|
|
1977
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1978
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1979
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1980
|
+
let baseOptions;
|
|
1981
|
+
if (configuration) {
|
|
1982
|
+
baseOptions = configuration.baseOptions;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1986
|
+
const localVarHeaderParameter = {} as any;
|
|
1987
|
+
const localVarQueryParameter = {} as any;
|
|
1988
|
+
|
|
1989
|
+
// authentication bearerAuth required
|
|
1990
|
+
// http bearer authentication required
|
|
1991
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
if (xIdempotencyKey != null) {
|
|
1996
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
1997
|
+
}
|
|
1998
|
+
if (xAuditUser != null) {
|
|
1999
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
2000
|
+
}
|
|
2001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2004
|
+
|
|
2005
|
+
return {
|
|
2006
|
+
url: toPathString(localVarUrlObj),
|
|
2007
|
+
options: localVarRequestOptions,
|
|
2008
|
+
};
|
|
2009
|
+
},
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* UnsuspendTokenApi - functional programming interface
|
|
2015
|
+
* @export
|
|
2016
|
+
*/
|
|
2017
|
+
export const UnsuspendTokenApiFp = function(configuration?: Configuration) {
|
|
2018
|
+
const localVarAxiosParamCreator = UnsuspendTokenApiAxiosParamCreator(configuration)
|
|
2019
|
+
return {
|
|
2020
|
+
/**
|
|
2021
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
2022
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
2023
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
2024
|
+
* @param {string} [xIdempotencyKey]
|
|
2025
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2026
|
+
* @param {*} [options] Override http request option.
|
|
2027
|
+
* @throws {RequiredError}
|
|
2028
|
+
*/
|
|
2029
|
+
async unsuspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourceResponse>> {
|
|
2030
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsuspendToken(id, xIdempotencyKey, xAuditUser, options);
|
|
2031
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2032
|
+
const localVarOperationServerBasePath = operationServerMap['UnsuspendTokenApi.unsuspendToken']?.[localVarOperationServerIndex]?.url;
|
|
2033
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2034
|
+
},
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* UnsuspendTokenApi - factory interface
|
|
2040
|
+
* @export
|
|
2041
|
+
*/
|
|
2042
|
+
export const UnsuspendTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2043
|
+
const localVarFp = UnsuspendTokenApiFp(configuration)
|
|
2044
|
+
return {
|
|
2045
|
+
/**
|
|
2046
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
2047
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
2048
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
2049
|
+
* @param {string} [xIdempotencyKey]
|
|
2050
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2051
|
+
* @param {*} [options] Override http request option.
|
|
2052
|
+
* @throws {RequiredError}
|
|
2053
|
+
*/
|
|
2054
|
+
unsuspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourceResponse> {
|
|
2055
|
+
return localVarFp.unsuspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
2056
|
+
},
|
|
2057
|
+
};
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* UnsuspendTokenApi - object-oriented interface
|
|
2062
|
+
* @export
|
|
2063
|
+
* @class UnsuspendTokenApi
|
|
2064
|
+
* @extends {BaseAPI}
|
|
2065
|
+
*/
|
|
2066
|
+
export class UnsuspendTokenApi extends BaseAPI {
|
|
2067
|
+
/**
|
|
2068
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
2069
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
2070
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
2071
|
+
* @param {string} [xIdempotencyKey]
|
|
2072
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
2073
|
+
* @param {*} [options] Override http request option.
|
|
2074
|
+
* @throws {RequiredError}
|
|
2075
|
+
* @memberof UnsuspendTokenApi
|
|
2076
|
+
*/
|
|
2077
|
+
public unsuspendToken(id: string, xIdempotencyKey?: string, xAuditUser?: string, options?: RawAxiosRequestConfig) {
|
|
2078
|
+
return UnsuspendTokenApiFp(this.configuration).unsuspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|