@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,1342 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
* The wallets common name for authorization decision.
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const AuthorizationDecisionColor = {
|
|
35
|
+
Green: 'GREEN',
|
|
36
|
+
Yellow: 'YELLOW',
|
|
37
|
+
Orange: 'ORANGE',
|
|
38
|
+
Red: 'RED'
|
|
39
|
+
};
|
|
40
|
+
export const EligibleTokenRequestorsRequestAvailablePushMethodsEnum = {
|
|
41
|
+
Android: 'ANDROID',
|
|
42
|
+
Ios: 'IOS',
|
|
43
|
+
Web: 'WEB'
|
|
44
|
+
};
|
|
45
|
+
export const EligibleTokenRequestorsResponseTokenRequestorsInnerTokenRequestorTypeEnum = {
|
|
46
|
+
Merchant: 'MERCHANT',
|
|
47
|
+
Wallet: 'WALLET'
|
|
48
|
+
};
|
|
49
|
+
export const PushAccountsToTokenRequestorRequestIncludeAccountHolderDataEnum = {
|
|
50
|
+
AllSupported: 'ALL_SUPPORTED',
|
|
51
|
+
Name: 'NAME',
|
|
52
|
+
Address: 'ADDRESS',
|
|
53
|
+
EmailAddress: 'EMAIL_ADDRESS',
|
|
54
|
+
MobilePhoneNumber: 'MOBILE_PHONE_NUMBER'
|
|
55
|
+
};
|
|
56
|
+
export const PushMethodTypeEnum = {
|
|
57
|
+
Android: 'ANDROID',
|
|
58
|
+
Ios: 'IOS',
|
|
59
|
+
Web: 'WEB'
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 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).
|
|
63
|
+
* @export
|
|
64
|
+
* @enum {string}
|
|
65
|
+
*/
|
|
66
|
+
export const TokenRequestor = {
|
|
67
|
+
ApplePay: 'APPLE_PAY',
|
|
68
|
+
GooglePay: 'GOOGLE_PAY',
|
|
69
|
+
SamsungPay: 'SAMSUNG_PAY',
|
|
70
|
+
Other: 'OTHER'
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Current status of the token: - ACTIVE - Available for payments - DEACTIVATED - Permanently deactivated - INACTIVE - Waiting for activation - SUSPENDED - Temporarily not available for payments
|
|
74
|
+
* @export
|
|
75
|
+
* @enum {string}
|
|
76
|
+
*/
|
|
77
|
+
export const TokenStatus = {
|
|
78
|
+
Active: 'ACTIVE',
|
|
79
|
+
Deactivated: 'DEACTIVATED',
|
|
80
|
+
Inactive: 'INACTIVE',
|
|
81
|
+
Suspended: 'SUSPENDED'
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* ActivateTokenApi - axios parameter creator
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const ActivateTokenApiAxiosParamCreator = function (configuration) {
|
|
88
|
+
return {
|
|
89
|
+
/**
|
|
90
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
91
|
+
* @summary Generate activation data for MDES/VTS
|
|
92
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
93
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
activate: (cardId_1, xAuditUser_1, ...args_1) => __awaiter(this, [cardId_1, xAuditUser_1, ...args_1], void 0, function* (cardId, xAuditUser, options = {}) {
|
|
98
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
99
|
+
assertParamExists('activate', 'cardId', cardId);
|
|
100
|
+
const localVarPath = `/v1/wallet/{cardId}/activate`
|
|
101
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
109
|
+
const localVarHeaderParameter = {};
|
|
110
|
+
const localVarQueryParameter = {};
|
|
111
|
+
// authentication bearerAuth required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
114
|
+
if (xAuditUser != null) {
|
|
115
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
116
|
+
}
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
}),
|
|
125
|
+
/**
|
|
126
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
127
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
128
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
129
|
+
* @param {string} [xIdempotencyKey]
|
|
130
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
activateToken: (id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, options = {}) {
|
|
135
|
+
// verify required parameter 'id' is not null or undefined
|
|
136
|
+
assertParamExists('activateToken', 'id', id);
|
|
137
|
+
const localVarPath = `/v1/wallet/tokens/{id}/activate`
|
|
138
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
141
|
+
let baseOptions;
|
|
142
|
+
if (configuration) {
|
|
143
|
+
baseOptions = configuration.baseOptions;
|
|
144
|
+
}
|
|
145
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
146
|
+
const localVarHeaderParameter = {};
|
|
147
|
+
const localVarQueryParameter = {};
|
|
148
|
+
// authentication bearerAuth required
|
|
149
|
+
// http bearer authentication required
|
|
150
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
151
|
+
if (xIdempotencyKey != null) {
|
|
152
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
153
|
+
}
|
|
154
|
+
if (xAuditUser != null) {
|
|
155
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
156
|
+
}
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
return {
|
|
161
|
+
url: toPathString(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* ActivateTokenApi - functional programming interface
|
|
169
|
+
* @export
|
|
170
|
+
*/
|
|
171
|
+
export const ActivateTokenApiFp = function (configuration) {
|
|
172
|
+
const localVarAxiosParamCreator = ActivateTokenApiAxiosParamCreator(configuration);
|
|
173
|
+
return {
|
|
174
|
+
/**
|
|
175
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
176
|
+
* @summary Generate activation data for MDES/VTS
|
|
177
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
178
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
activate(cardId, xAuditUser, options) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
var _a, _b, _c;
|
|
185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activate(cardId, xAuditUser, options);
|
|
186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
187
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivateTokenApi.activate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
193
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
194
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
195
|
+
* @param {string} [xIdempotencyKey]
|
|
196
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
activateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
var _a, _b, _c;
|
|
203
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activateToken(id, xIdempotencyKey, xAuditUser, options);
|
|
204
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
205
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivateTokenApi.activateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
206
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* ActivateTokenApi - factory interface
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
export const ActivateTokenApiFactory = function (configuration, basePath, axios) {
|
|
216
|
+
const localVarFp = ActivateTokenApiFp(configuration);
|
|
217
|
+
return {
|
|
218
|
+
/**
|
|
219
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
220
|
+
* @summary Generate activation data for MDES/VTS
|
|
221
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
222
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
activate(cardId, xAuditUser, options) {
|
|
227
|
+
return localVarFp.activate(cardId, xAuditUser, options).then((request) => request(axios, basePath));
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
231
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
232
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
233
|
+
* @param {string} [xIdempotencyKey]
|
|
234
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
activateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
239
|
+
return localVarFp.activateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* ActivateTokenApi - object-oriented interface
|
|
245
|
+
* @export
|
|
246
|
+
* @class ActivateTokenApi
|
|
247
|
+
* @extends {BaseAPI}
|
|
248
|
+
*/
|
|
249
|
+
export class ActivateTokenApi extends BaseAPI {
|
|
250
|
+
/**
|
|
251
|
+
* This operation will generate activation data with encrypted card data to passed on to MDES/VTS
|
|
252
|
+
* @summary Generate activation data for MDES/VTS
|
|
253
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
254
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
* @memberof ActivateTokenApi
|
|
258
|
+
*/
|
|
259
|
+
activate(cardId, xAuditUser, options) {
|
|
260
|
+
return ActivateTokenApiFp(this.configuration).activate(cardId, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Activates an inactive token (for example, completing the “orange flow” where cardholder needs to activate a token after provisioning).
|
|
264
|
+
* @summary Activate token by its card scheme\'s unique reference
|
|
265
|
+
* @param {string} id Token unique reference ID identifying the token to activate.
|
|
266
|
+
* @param {string} [xIdempotencyKey]
|
|
267
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
* @memberof ActivateTokenApi
|
|
271
|
+
*/
|
|
272
|
+
activateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
273
|
+
return ActivateTokenApiFp(this.configuration).activateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* DeactivateTokenApi - axios parameter creator
|
|
278
|
+
* @export
|
|
279
|
+
*/
|
|
280
|
+
export const DeactivateTokenApiAxiosParamCreator = function (configuration) {
|
|
281
|
+
return {
|
|
282
|
+
/**
|
|
283
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
284
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
285
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
286
|
+
* @param {string} [xIdempotencyKey]
|
|
287
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
deactivateToken: (id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, options = {}) {
|
|
292
|
+
// verify required parameter 'id' is not null or undefined
|
|
293
|
+
assertParamExists('deactivateToken', 'id', id);
|
|
294
|
+
const localVarPath = `/v1/wallet/tokens/{id}/deactivate`
|
|
295
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
298
|
+
let baseOptions;
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
}
|
|
302
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
303
|
+
const localVarHeaderParameter = {};
|
|
304
|
+
const localVarQueryParameter = {};
|
|
305
|
+
// authentication bearerAuth required
|
|
306
|
+
// http bearer authentication required
|
|
307
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
308
|
+
if (xIdempotencyKey != null) {
|
|
309
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
310
|
+
}
|
|
311
|
+
if (xAuditUser != null) {
|
|
312
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
313
|
+
}
|
|
314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
317
|
+
return {
|
|
318
|
+
url: toPathString(localVarUrlObj),
|
|
319
|
+
options: localVarRequestOptions,
|
|
320
|
+
};
|
|
321
|
+
}),
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* DeactivateTokenApi - functional programming interface
|
|
326
|
+
* @export
|
|
327
|
+
*/
|
|
328
|
+
export const DeactivateTokenApiFp = function (configuration) {
|
|
329
|
+
const localVarAxiosParamCreator = DeactivateTokenApiAxiosParamCreator(configuration);
|
|
330
|
+
return {
|
|
331
|
+
/**
|
|
332
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
333
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
334
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
335
|
+
* @param {string} [xIdempotencyKey]
|
|
336
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
deactivateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
var _a, _b, _c;
|
|
343
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateToken(id, xIdempotencyKey, xAuditUser, options);
|
|
344
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
345
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeactivateTokenApi.deactivateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
346
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* DeactivateTokenApi - factory interface
|
|
353
|
+
* @export
|
|
354
|
+
*/
|
|
355
|
+
export const DeactivateTokenApiFactory = function (configuration, basePath, axios) {
|
|
356
|
+
const localVarFp = DeactivateTokenApiFp(configuration);
|
|
357
|
+
return {
|
|
358
|
+
/**
|
|
359
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
360
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
361
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
362
|
+
* @param {string} [xIdempotencyKey]
|
|
363
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
deactivateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
368
|
+
return localVarFp.deactivateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
369
|
+
},
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* DeactivateTokenApi - object-oriented interface
|
|
374
|
+
* @export
|
|
375
|
+
* @class DeactivateTokenApi
|
|
376
|
+
* @extends {BaseAPI}
|
|
377
|
+
*/
|
|
378
|
+
export class DeactivateTokenApi extends BaseAPI {
|
|
379
|
+
/**
|
|
380
|
+
* Permanently deactivates a token so it can never be used again. Typical use case: confirmed theft or device permanently compromised.
|
|
381
|
+
* @summary Deactivate token by its card scheme\'s unique reference
|
|
382
|
+
* @param {string} id Token unique reference ID identifying the token to deactivate.
|
|
383
|
+
* @param {string} [xIdempotencyKey]
|
|
384
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
* @memberof DeactivateTokenApi
|
|
388
|
+
*/
|
|
389
|
+
deactivateToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
390
|
+
return DeactivateTokenApiFp(this.configuration).deactivateToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* EligibleTokenRequestorsApi - axios parameter creator
|
|
395
|
+
* @export
|
|
396
|
+
*/
|
|
397
|
+
export const EligibleTokenRequestorsApiAxiosParamCreator = function (configuration) {
|
|
398
|
+
return {
|
|
399
|
+
/**
|
|
400
|
+
* 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.
|
|
401
|
+
* @summary List Eligible Token Requestors
|
|
402
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
403
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
getEligibleTokenRequestors: (xAuditUser_1, eligibleTokenRequestorsRequest_1, ...args_1) => __awaiter(this, [xAuditUser_1, eligibleTokenRequestorsRequest_1, ...args_1], void 0, function* (xAuditUser, eligibleTokenRequestorsRequest, options = {}) {
|
|
408
|
+
const localVarPath = `/v1/wallet/mdestokenconnect/requestors`;
|
|
409
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
410
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
411
|
+
let baseOptions;
|
|
412
|
+
if (configuration) {
|
|
413
|
+
baseOptions = configuration.baseOptions;
|
|
414
|
+
}
|
|
415
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
416
|
+
const localVarHeaderParameter = {};
|
|
417
|
+
const localVarQueryParameter = {};
|
|
418
|
+
// authentication bearerAuth required
|
|
419
|
+
// http bearer authentication required
|
|
420
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
421
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
422
|
+
if (xAuditUser != null) {
|
|
423
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
424
|
+
}
|
|
425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
428
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eligibleTokenRequestorsRequest, localVarRequestOptions, configuration);
|
|
429
|
+
return {
|
|
430
|
+
url: toPathString(localVarUrlObj),
|
|
431
|
+
options: localVarRequestOptions,
|
|
432
|
+
};
|
|
433
|
+
}),
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* EligibleTokenRequestorsApi - functional programming interface
|
|
438
|
+
* @export
|
|
439
|
+
*/
|
|
440
|
+
export const EligibleTokenRequestorsApiFp = function (configuration) {
|
|
441
|
+
const localVarAxiosParamCreator = EligibleTokenRequestorsApiAxiosParamCreator(configuration);
|
|
442
|
+
return {
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
* @summary List Eligible Token Requestors
|
|
446
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
447
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
var _a, _b, _c;
|
|
454
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options);
|
|
455
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
456
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EligibleTokenRequestorsApi.getEligibleTokenRequestors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
|
+
});
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* EligibleTokenRequestorsApi - factory interface
|
|
464
|
+
* @export
|
|
465
|
+
*/
|
|
466
|
+
export const EligibleTokenRequestorsApiFactory = function (configuration, basePath, axios) {
|
|
467
|
+
const localVarFp = EligibleTokenRequestorsApiFp(configuration);
|
|
468
|
+
return {
|
|
469
|
+
/**
|
|
470
|
+
* 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.
|
|
471
|
+
* @summary List Eligible Token Requestors
|
|
472
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
473
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
474
|
+
* @param {*} [options] Override http request option.
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
*/
|
|
477
|
+
getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options) {
|
|
478
|
+
return localVarFp.getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options).then((request) => request(axios, basePath));
|
|
479
|
+
},
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* EligibleTokenRequestorsApi - object-oriented interface
|
|
484
|
+
* @export
|
|
485
|
+
* @class EligibleTokenRequestorsApi
|
|
486
|
+
* @extends {BaseAPI}
|
|
487
|
+
*/
|
|
488
|
+
export class EligibleTokenRequestorsApi extends BaseAPI {
|
|
489
|
+
/**
|
|
490
|
+
* 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.
|
|
491
|
+
* @summary List Eligible Token Requestors
|
|
492
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
493
|
+
* @param {EligibleTokenRequestorsRequest} [eligibleTokenRequestorsRequest]
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
* @memberof EligibleTokenRequestorsApi
|
|
497
|
+
*/
|
|
498
|
+
getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options) {
|
|
499
|
+
return EligibleTokenRequestorsApiFp(this.configuration).getEligibleTokenRequestors(xAuditUser, eligibleTokenRequestorsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* GetTokensApi - axios parameter creator
|
|
504
|
+
* @export
|
|
505
|
+
*/
|
|
506
|
+
export const GetTokensApiAxiosParamCreator = function (configuration) {
|
|
507
|
+
return {
|
|
508
|
+
/**
|
|
509
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
510
|
+
* @summary Get token by token unique reference ID
|
|
511
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
512
|
+
* @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>
|
|
513
|
+
* @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>
|
|
514
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getToken: (id_1, fetchFromCardScheme_1, includeCardSchemePayload_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, fetchFromCardScheme_1, includeCardSchemePayload_1, xAuditUser_1, ...args_1], void 0, function* (id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options = {}) {
|
|
519
|
+
// verify required parameter 'id' is not null or undefined
|
|
520
|
+
assertParamExists('getToken', 'id', id);
|
|
521
|
+
const localVarPath = `/v1/wallet/tokens/{id}`
|
|
522
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
523
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
524
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
525
|
+
let baseOptions;
|
|
526
|
+
if (configuration) {
|
|
527
|
+
baseOptions = configuration.baseOptions;
|
|
528
|
+
}
|
|
529
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
530
|
+
const localVarHeaderParameter = {};
|
|
531
|
+
const localVarQueryParameter = {};
|
|
532
|
+
// authentication bearerAuth required
|
|
533
|
+
// http bearer authentication required
|
|
534
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
535
|
+
if (fetchFromCardScheme !== undefined) {
|
|
536
|
+
localVarQueryParameter['fetchFromCardScheme'] = fetchFromCardScheme;
|
|
537
|
+
}
|
|
538
|
+
if (includeCardSchemePayload !== undefined) {
|
|
539
|
+
localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
|
|
540
|
+
}
|
|
541
|
+
if (xAuditUser != null) {
|
|
542
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
543
|
+
}
|
|
544
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
545
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
546
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
547
|
+
return {
|
|
548
|
+
url: toPathString(localVarUrlObj),
|
|
549
|
+
options: localVarRequestOptions,
|
|
550
|
+
};
|
|
551
|
+
}),
|
|
552
|
+
/**
|
|
553
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
554
|
+
* @summary Lists tokens for a card
|
|
555
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
556
|
+
* @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>
|
|
557
|
+
* @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>
|
|
558
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
getTokens: (cardId_1, fetchFromCardScheme_1, includeCardSchemePayload_1, xAuditUser_1, ...args_1) => __awaiter(this, [cardId_1, fetchFromCardScheme_1, includeCardSchemePayload_1, xAuditUser_1, ...args_1], void 0, function* (cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options = {}) {
|
|
563
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
564
|
+
assertParamExists('getTokens', 'cardId', cardId);
|
|
565
|
+
const localVarPath = `/v1/wallet/{cardId}/tokens`
|
|
566
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
569
|
+
let baseOptions;
|
|
570
|
+
if (configuration) {
|
|
571
|
+
baseOptions = configuration.baseOptions;
|
|
572
|
+
}
|
|
573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
574
|
+
const localVarHeaderParameter = {};
|
|
575
|
+
const localVarQueryParameter = {};
|
|
576
|
+
// authentication bearerAuth required
|
|
577
|
+
// http bearer authentication required
|
|
578
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
579
|
+
if (fetchFromCardScheme !== undefined) {
|
|
580
|
+
localVarQueryParameter['fetchFromCardScheme'] = fetchFromCardScheme;
|
|
581
|
+
}
|
|
582
|
+
if (includeCardSchemePayload !== undefined) {
|
|
583
|
+
localVarQueryParameter['includeCardSchemePayload'] = includeCardSchemePayload;
|
|
584
|
+
}
|
|
585
|
+
if (xAuditUser != null) {
|
|
586
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
587
|
+
}
|
|
588
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
589
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
590
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
591
|
+
return {
|
|
592
|
+
url: toPathString(localVarUrlObj),
|
|
593
|
+
options: localVarRequestOptions,
|
|
594
|
+
};
|
|
595
|
+
}),
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* GetTokensApi - functional programming interface
|
|
600
|
+
* @export
|
|
601
|
+
*/
|
|
602
|
+
export const GetTokensApiFp = function (configuration) {
|
|
603
|
+
const localVarAxiosParamCreator = GetTokensApiAxiosParamCreator(configuration);
|
|
604
|
+
return {
|
|
605
|
+
/**
|
|
606
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
607
|
+
* @summary Get token by token unique reference ID
|
|
608
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
609
|
+
* @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>
|
|
610
|
+
* @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>
|
|
611
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
+
var _a, _b, _c;
|
|
618
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options);
|
|
619
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
620
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetTokensApi.getToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
622
|
+
});
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
626
|
+
* @summary Lists tokens for a card
|
|
627
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
628
|
+
* @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>
|
|
629
|
+
* @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>
|
|
630
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
636
|
+
var _a, _b, _c;
|
|
637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options);
|
|
638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
639
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetTokensApi.getTokens']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
641
|
+
});
|
|
642
|
+
},
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
/**
|
|
646
|
+
* GetTokensApi - factory interface
|
|
647
|
+
* @export
|
|
648
|
+
*/
|
|
649
|
+
export const GetTokensApiFactory = function (configuration, basePath, axios) {
|
|
650
|
+
const localVarFp = GetTokensApiFp(configuration);
|
|
651
|
+
return {
|
|
652
|
+
/**
|
|
653
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
654
|
+
* @summary Get token by token unique reference ID
|
|
655
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
656
|
+
* @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>
|
|
657
|
+
* @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>
|
|
658
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
663
|
+
return localVarFp.getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(axios, basePath));
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
667
|
+
* @summary Lists tokens for a card
|
|
668
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
669
|
+
* @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>
|
|
670
|
+
* @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>
|
|
671
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
676
|
+
return localVarFp.getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(axios, basePath));
|
|
677
|
+
},
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* GetTokensApi - object-oriented interface
|
|
682
|
+
* @export
|
|
683
|
+
* @class GetTokensApi
|
|
684
|
+
* @extends {BaseAPI}
|
|
685
|
+
*/
|
|
686
|
+
export class GetTokensApi extends BaseAPI {
|
|
687
|
+
/**
|
|
688
|
+
* Retrieves details of a token by its card scheme\'s unique reference. Typical use case: allow customer systems to display token information.
|
|
689
|
+
* @summary Get token by token unique reference ID
|
|
690
|
+
* @param {string} id Token unique reference ID identifying the token to retrieve.
|
|
691
|
+
* @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>
|
|
692
|
+
* @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>
|
|
693
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof GetTokensApi
|
|
697
|
+
*/
|
|
698
|
+
getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
699
|
+
return GetTokensApiFp(this.configuration).getToken(id, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Returns a list of tokens associated with the specified card ID.
|
|
703
|
+
* @summary Lists tokens for a card
|
|
704
|
+
* @param {string} cardId CardId of the card for which tokens are requested.
|
|
705
|
+
* @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>
|
|
706
|
+
* @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>
|
|
707
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
* @memberof GetTokensApi
|
|
711
|
+
*/
|
|
712
|
+
getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options) {
|
|
713
|
+
return GetTokensApiFp(this.configuration).getTokens(cardId, fetchFromCardScheme, includeCardSchemePayload, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* PushCardsApi - axios parameter creator
|
|
718
|
+
* @export
|
|
719
|
+
*/
|
|
720
|
+
export const PushCardsApiAxiosParamCreator = function (configuration) {
|
|
721
|
+
return {
|
|
722
|
+
/**
|
|
723
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
724
|
+
* @summary Push Cards to Token Requestors
|
|
725
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
726
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
pushCardsToTokenRequestor: (pushAccountsToTokenRequestorRequest_1, xAuditUser_1, ...args_1) => __awaiter(this, [pushAccountsToTokenRequestorRequest_1, xAuditUser_1, ...args_1], void 0, function* (pushAccountsToTokenRequestorRequest, xAuditUser, options = {}) {
|
|
731
|
+
// verify required parameter 'pushAccountsToTokenRequestorRequest' is not null or undefined
|
|
732
|
+
assertParamExists('pushCardsToTokenRequestor', 'pushAccountsToTokenRequestorRequest', pushAccountsToTokenRequestorRequest);
|
|
733
|
+
const localVarPath = `/v1/wallet/mdestokenconnect/push`;
|
|
734
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
735
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
736
|
+
let baseOptions;
|
|
737
|
+
if (configuration) {
|
|
738
|
+
baseOptions = configuration.baseOptions;
|
|
739
|
+
}
|
|
740
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
741
|
+
const localVarHeaderParameter = {};
|
|
742
|
+
const localVarQueryParameter = {};
|
|
743
|
+
// authentication bearerAuth required
|
|
744
|
+
// http bearer authentication required
|
|
745
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
746
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
747
|
+
if (xAuditUser != null) {
|
|
748
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
749
|
+
}
|
|
750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pushAccountsToTokenRequestorRequest, localVarRequestOptions, configuration);
|
|
754
|
+
return {
|
|
755
|
+
url: toPathString(localVarUrlObj),
|
|
756
|
+
options: localVarRequestOptions,
|
|
757
|
+
};
|
|
758
|
+
}),
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* PushCardsApi - functional programming interface
|
|
763
|
+
* @export
|
|
764
|
+
*/
|
|
765
|
+
export const PushCardsApiFp = function (configuration) {
|
|
766
|
+
const localVarAxiosParamCreator = PushCardsApiAxiosParamCreator(configuration);
|
|
767
|
+
return {
|
|
768
|
+
/**
|
|
769
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
770
|
+
* @summary Push Cards to Token Requestors
|
|
771
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
772
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options) {
|
|
777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
778
|
+
var _a, _b, _c;
|
|
779
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options);
|
|
780
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
781
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PushCardsApi.pushCardsToTokenRequestor']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
782
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
783
|
+
});
|
|
784
|
+
},
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
/**
|
|
788
|
+
* PushCardsApi - factory interface
|
|
789
|
+
* @export
|
|
790
|
+
*/
|
|
791
|
+
export const PushCardsApiFactory = function (configuration, basePath, axios) {
|
|
792
|
+
const localVarFp = PushCardsApiFp(configuration);
|
|
793
|
+
return {
|
|
794
|
+
/**
|
|
795
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
796
|
+
* @summary Push Cards to Token Requestors
|
|
797
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
798
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options) {
|
|
803
|
+
return localVarFp.pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options).then((request) => request(axios, basePath));
|
|
804
|
+
},
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* PushCardsApi - object-oriented interface
|
|
809
|
+
* @export
|
|
810
|
+
* @class PushCardsApi
|
|
811
|
+
* @extends {BaseAPI}
|
|
812
|
+
*/
|
|
813
|
+
export class PushCardsApi extends BaseAPI {
|
|
814
|
+
/**
|
|
815
|
+
* Send a request to this endpoint to add the cards to the digital wallet or the merchant.
|
|
816
|
+
* @summary Push Cards to Token Requestors
|
|
817
|
+
* @param {PushAccountsToTokenRequestorRequest} pushAccountsToTokenRequestorRequest
|
|
818
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
* @memberof PushCardsApi
|
|
822
|
+
*/
|
|
823
|
+
pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options) {
|
|
824
|
+
return PushCardsApiFp(this.configuration).pushCardsToTokenRequestor(pushAccountsToTokenRequestorRequest, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* PushProvisionApi - axios parameter creator
|
|
829
|
+
* @export
|
|
830
|
+
*/
|
|
831
|
+
export const PushProvisionApiAxiosParamCreator = function (configuration) {
|
|
832
|
+
return {
|
|
833
|
+
/**
|
|
834
|
+
* 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`
|
|
835
|
+
* @summary Apple Pay push provisioning
|
|
836
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
837
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
838
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
provisionApplePay: (cardId_1, appleParametersRequest_1, xAuditUser_1, ...args_1) => __awaiter(this, [cardId_1, appleParametersRequest_1, xAuditUser_1, ...args_1], void 0, function* (cardId, appleParametersRequest, xAuditUser, options = {}) {
|
|
843
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
844
|
+
assertParamExists('provisionApplePay', 'cardId', cardId);
|
|
845
|
+
// verify required parameter 'appleParametersRequest' is not null or undefined
|
|
846
|
+
assertParamExists('provisionApplePay', 'appleParametersRequest', appleParametersRequest);
|
|
847
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/applepay`
|
|
848
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
850
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
851
|
+
let baseOptions;
|
|
852
|
+
if (configuration) {
|
|
853
|
+
baseOptions = configuration.baseOptions;
|
|
854
|
+
}
|
|
855
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
856
|
+
const localVarHeaderParameter = {};
|
|
857
|
+
const localVarQueryParameter = {};
|
|
858
|
+
// authentication bearerAuth required
|
|
859
|
+
// http bearer authentication required
|
|
860
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
861
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
862
|
+
if (xAuditUser != null) {
|
|
863
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
864
|
+
}
|
|
865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
867
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
868
|
+
localVarRequestOptions.data = serializeDataIfNeeded(appleParametersRequest, localVarRequestOptions, configuration);
|
|
869
|
+
return {
|
|
870
|
+
url: toPathString(localVarUrlObj),
|
|
871
|
+
options: localVarRequestOptions,
|
|
872
|
+
};
|
|
873
|
+
}),
|
|
874
|
+
/**
|
|
875
|
+
* 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.
|
|
876
|
+
* @summary Google Pay push provisioning
|
|
877
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
878
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
879
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
provisionGooglePay: (cardId_1, xAuditUser_1, googleParametersRequest_1, ...args_1) => __awaiter(this, [cardId_1, xAuditUser_1, googleParametersRequest_1, ...args_1], void 0, function* (cardId, xAuditUser, googleParametersRequest, options = {}) {
|
|
884
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
885
|
+
assertParamExists('provisionGooglePay', 'cardId', cardId);
|
|
886
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/googlepay`
|
|
887
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
890
|
+
let baseOptions;
|
|
891
|
+
if (configuration) {
|
|
892
|
+
baseOptions = configuration.baseOptions;
|
|
893
|
+
}
|
|
894
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
895
|
+
const localVarHeaderParameter = {};
|
|
896
|
+
const localVarQueryParameter = {};
|
|
897
|
+
// authentication bearerAuth required
|
|
898
|
+
// http bearer authentication required
|
|
899
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
901
|
+
if (xAuditUser != null) {
|
|
902
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
903
|
+
}
|
|
904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
906
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
907
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleParametersRequest, localVarRequestOptions, configuration);
|
|
908
|
+
return {
|
|
909
|
+
url: toPathString(localVarUrlObj),
|
|
910
|
+
options: localVarRequestOptions,
|
|
911
|
+
};
|
|
912
|
+
}),
|
|
913
|
+
/**
|
|
914
|
+
* 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.
|
|
915
|
+
* @summary Samsung Pay push provisioning
|
|
916
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
917
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
918
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
provisionSamsungPay: (cardId_1, xAuditUser_1, samsungParametersRequest_1, ...args_1) => __awaiter(this, [cardId_1, xAuditUser_1, samsungParametersRequest_1, ...args_1], void 0, function* (cardId, xAuditUser, samsungParametersRequest, options = {}) {
|
|
923
|
+
// verify required parameter 'cardId' is not null or undefined
|
|
924
|
+
assertParamExists('provisionSamsungPay', 'cardId', cardId);
|
|
925
|
+
const localVarPath = `/v1/wallet/{cardId}/provision/samsungpay`
|
|
926
|
+
.replace(`{${"cardId"}}`, encodeURIComponent(String(cardId)));
|
|
927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
928
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
929
|
+
let baseOptions;
|
|
930
|
+
if (configuration) {
|
|
931
|
+
baseOptions = configuration.baseOptions;
|
|
932
|
+
}
|
|
933
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
934
|
+
const localVarHeaderParameter = {};
|
|
935
|
+
const localVarQueryParameter = {};
|
|
936
|
+
// authentication bearerAuth required
|
|
937
|
+
// http bearer authentication required
|
|
938
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
939
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
940
|
+
if (xAuditUser != null) {
|
|
941
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
942
|
+
}
|
|
943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
945
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
946
|
+
localVarRequestOptions.data = serializeDataIfNeeded(samsungParametersRequest, localVarRequestOptions, configuration);
|
|
947
|
+
return {
|
|
948
|
+
url: toPathString(localVarUrlObj),
|
|
949
|
+
options: localVarRequestOptions,
|
|
950
|
+
};
|
|
951
|
+
}),
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
/**
|
|
955
|
+
* PushProvisionApi - functional programming interface
|
|
956
|
+
* @export
|
|
957
|
+
*/
|
|
958
|
+
export const PushProvisionApiFp = function (configuration) {
|
|
959
|
+
const localVarAxiosParamCreator = PushProvisionApiAxiosParamCreator(configuration);
|
|
960
|
+
return {
|
|
961
|
+
/**
|
|
962
|
+
* 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`
|
|
963
|
+
* @summary Apple Pay push provisioning
|
|
964
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
965
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
966
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
967
|
+
* @param {*} [options] Override http request option.
|
|
968
|
+
* @throws {RequiredError}
|
|
969
|
+
*/
|
|
970
|
+
provisionApplePay(cardId, appleParametersRequest, xAuditUser, options) {
|
|
971
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
972
|
+
var _a, _b, _c;
|
|
973
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.provisionApplePay(cardId, appleParametersRequest, xAuditUser, options);
|
|
974
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
975
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PushProvisionApi.provisionApplePay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
976
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
977
|
+
});
|
|
978
|
+
},
|
|
979
|
+
/**
|
|
980
|
+
* 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.
|
|
981
|
+
* @summary Google Pay push provisioning
|
|
982
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
983
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
984
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
*/
|
|
988
|
+
provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options) {
|
|
989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
990
|
+
var _a, _b, _c;
|
|
991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options);
|
|
992
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
993
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PushProvisionApi.provisionGooglePay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
995
|
+
});
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* 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.
|
|
999
|
+
* @summary Samsung Pay push provisioning
|
|
1000
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1001
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1002
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options) {
|
|
1007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
var _a, _b, _c;
|
|
1009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options);
|
|
1010
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1011
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PushProvisionApi.provisionSamsungPay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1012
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1013
|
+
});
|
|
1014
|
+
},
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
/**
|
|
1018
|
+
* PushProvisionApi - factory interface
|
|
1019
|
+
* @export
|
|
1020
|
+
*/
|
|
1021
|
+
export const PushProvisionApiFactory = function (configuration, basePath, axios) {
|
|
1022
|
+
const localVarFp = PushProvisionApiFp(configuration);
|
|
1023
|
+
return {
|
|
1024
|
+
/**
|
|
1025
|
+
* 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`
|
|
1026
|
+
* @summary Apple Pay push provisioning
|
|
1027
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1028
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1029
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
provisionApplePay(cardId, appleParametersRequest, xAuditUser, options) {
|
|
1034
|
+
return localVarFp.provisionApplePay(cardId, appleParametersRequest, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
* 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.
|
|
1038
|
+
* @summary Google Pay push provisioning
|
|
1039
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1040
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1041
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options) {
|
|
1046
|
+
return localVarFp.provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options).then((request) => request(axios, basePath));
|
|
1047
|
+
},
|
|
1048
|
+
/**
|
|
1049
|
+
* 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.
|
|
1050
|
+
* @summary Samsung Pay push provisioning
|
|
1051
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1052
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1053
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
*/
|
|
1057
|
+
provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options) {
|
|
1058
|
+
return localVarFp.provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options).then((request) => request(axios, basePath));
|
|
1059
|
+
},
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
/**
|
|
1063
|
+
* PushProvisionApi - object-oriented interface
|
|
1064
|
+
* @export
|
|
1065
|
+
* @class PushProvisionApi
|
|
1066
|
+
* @extends {BaseAPI}
|
|
1067
|
+
*/
|
|
1068
|
+
export class PushProvisionApi extends BaseAPI {
|
|
1069
|
+
/**
|
|
1070
|
+
* 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`
|
|
1071
|
+
* @summary Apple Pay push provisioning
|
|
1072
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1073
|
+
* @param {AppleParametersRequest} appleParametersRequest Provisioning data
|
|
1074
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
* @memberof PushProvisionApi
|
|
1078
|
+
*/
|
|
1079
|
+
provisionApplePay(cardId, appleParametersRequest, xAuditUser, options) {
|
|
1080
|
+
return PushProvisionApiFp(this.configuration).provisionApplePay(cardId, appleParametersRequest, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* 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.
|
|
1084
|
+
* @summary Google Pay push provisioning
|
|
1085
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1086
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1087
|
+
* @param {GoogleParametersRequest} [googleParametersRequest]
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
* @memberof PushProvisionApi
|
|
1091
|
+
*/
|
|
1092
|
+
provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options) {
|
|
1093
|
+
return PushProvisionApiFp(this.configuration).provisionGooglePay(cardId, xAuditUser, googleParametersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* 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.
|
|
1097
|
+
* @summary Samsung Pay push provisioning
|
|
1098
|
+
* @param {string} cardId CardId for the card that should be provisioned (returned from card operation)
|
|
1099
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1100
|
+
* @param {SamsungParametersRequest} [samsungParametersRequest]
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
* @memberof PushProvisionApi
|
|
1104
|
+
*/
|
|
1105
|
+
provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options) {
|
|
1106
|
+
return PushProvisionApiFp(this.configuration).provisionSamsungPay(cardId, xAuditUser, samsungParametersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* SuspendTokenApi - axios parameter creator
|
|
1111
|
+
* @export
|
|
1112
|
+
*/
|
|
1113
|
+
export const SuspendTokenApiAxiosParamCreator = function (configuration) {
|
|
1114
|
+
return {
|
|
1115
|
+
/**
|
|
1116
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1117
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1118
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1119
|
+
* @param {string} [xIdempotencyKey]
|
|
1120
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1121
|
+
* @param {*} [options] Override http request option.
|
|
1122
|
+
* @throws {RequiredError}
|
|
1123
|
+
*/
|
|
1124
|
+
suspendToken: (id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, options = {}) {
|
|
1125
|
+
// verify required parameter 'id' is not null or undefined
|
|
1126
|
+
assertParamExists('suspendToken', 'id', id);
|
|
1127
|
+
const localVarPath = `/v1/wallet/tokens/{id}/suspend`
|
|
1128
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1131
|
+
let baseOptions;
|
|
1132
|
+
if (configuration) {
|
|
1133
|
+
baseOptions = configuration.baseOptions;
|
|
1134
|
+
}
|
|
1135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1136
|
+
const localVarHeaderParameter = {};
|
|
1137
|
+
const localVarQueryParameter = {};
|
|
1138
|
+
// authentication bearerAuth required
|
|
1139
|
+
// http bearer authentication required
|
|
1140
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1141
|
+
if (xIdempotencyKey != null) {
|
|
1142
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
1143
|
+
}
|
|
1144
|
+
if (xAuditUser != null) {
|
|
1145
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1146
|
+
}
|
|
1147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1149
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1150
|
+
return {
|
|
1151
|
+
url: toPathString(localVarUrlObj),
|
|
1152
|
+
options: localVarRequestOptions,
|
|
1153
|
+
};
|
|
1154
|
+
}),
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* SuspendTokenApi - functional programming interface
|
|
1159
|
+
* @export
|
|
1160
|
+
*/
|
|
1161
|
+
export const SuspendTokenApiFp = function (configuration) {
|
|
1162
|
+
const localVarAxiosParamCreator = SuspendTokenApiAxiosParamCreator(configuration);
|
|
1163
|
+
return {
|
|
1164
|
+
/**
|
|
1165
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1166
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1167
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1168
|
+
* @param {string} [xIdempotencyKey]
|
|
1169
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1170
|
+
* @param {*} [options] Override http request option.
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
suspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
|
+
var _a, _b, _c;
|
|
1176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.suspendToken(id, xIdempotencyKey, xAuditUser, options);
|
|
1177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SuspendTokenApi.suspendToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1180
|
+
});
|
|
1181
|
+
},
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* SuspendTokenApi - factory interface
|
|
1186
|
+
* @export
|
|
1187
|
+
*/
|
|
1188
|
+
export const SuspendTokenApiFactory = function (configuration, basePath, axios) {
|
|
1189
|
+
const localVarFp = SuspendTokenApiFp(configuration);
|
|
1190
|
+
return {
|
|
1191
|
+
/**
|
|
1192
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1193
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1194
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1195
|
+
* @param {string} [xIdempotencyKey]
|
|
1196
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
suspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1201
|
+
return localVarFp.suspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1202
|
+
},
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* SuspendTokenApi - object-oriented interface
|
|
1207
|
+
* @export
|
|
1208
|
+
* @class SuspendTokenApi
|
|
1209
|
+
* @extends {BaseAPI}
|
|
1210
|
+
*/
|
|
1211
|
+
export class SuspendTokenApi extends BaseAPI {
|
|
1212
|
+
/**
|
|
1213
|
+
* Temporarily suspends a token to prevent usage without deactivating it permanently. Typical use case: cardholder reports a lost device but may recover it.
|
|
1214
|
+
* @summary Suspend token by its card scheme\'s unique reference
|
|
1215
|
+
* @param {string} id Token unique reference ID identifying the token to suspend.
|
|
1216
|
+
* @param {string} [xIdempotencyKey]
|
|
1217
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof SuspendTokenApi
|
|
1221
|
+
*/
|
|
1222
|
+
suspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1223
|
+
return SuspendTokenApiFp(this.configuration).suspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* UnsuspendTokenApi - axios parameter creator
|
|
1228
|
+
* @export
|
|
1229
|
+
*/
|
|
1230
|
+
export const UnsuspendTokenApiAxiosParamCreator = function (configuration) {
|
|
1231
|
+
return {
|
|
1232
|
+
/**
|
|
1233
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
1234
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
1235
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
1236
|
+
* @param {string} [xIdempotencyKey]
|
|
1237
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
unsuspendToken: (id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, options = {}) {
|
|
1242
|
+
// verify required parameter 'id' is not null or undefined
|
|
1243
|
+
assertParamExists('unsuspendToken', 'id', id);
|
|
1244
|
+
const localVarPath = `/v1/wallet/tokens/{id}/unsuspend`
|
|
1245
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1246
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1247
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1248
|
+
let baseOptions;
|
|
1249
|
+
if (configuration) {
|
|
1250
|
+
baseOptions = configuration.baseOptions;
|
|
1251
|
+
}
|
|
1252
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1253
|
+
const localVarHeaderParameter = {};
|
|
1254
|
+
const localVarQueryParameter = {};
|
|
1255
|
+
// authentication bearerAuth required
|
|
1256
|
+
// http bearer authentication required
|
|
1257
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1258
|
+
if (xIdempotencyKey != null) {
|
|
1259
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
1260
|
+
}
|
|
1261
|
+
if (xAuditUser != null) {
|
|
1262
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
1263
|
+
}
|
|
1264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1266
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1267
|
+
return {
|
|
1268
|
+
url: toPathString(localVarUrlObj),
|
|
1269
|
+
options: localVarRequestOptions,
|
|
1270
|
+
};
|
|
1271
|
+
}),
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* UnsuspendTokenApi - functional programming interface
|
|
1276
|
+
* @export
|
|
1277
|
+
*/
|
|
1278
|
+
export const UnsuspendTokenApiFp = function (configuration) {
|
|
1279
|
+
const localVarAxiosParamCreator = UnsuspendTokenApiAxiosParamCreator(configuration);
|
|
1280
|
+
return {
|
|
1281
|
+
/**
|
|
1282
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
1283
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
1284
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
1285
|
+
* @param {string} [xIdempotencyKey]
|
|
1286
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
*/
|
|
1290
|
+
unsuspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1292
|
+
var _a, _b, _c;
|
|
1293
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unsuspendToken(id, xIdempotencyKey, xAuditUser, options);
|
|
1294
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1295
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UnsuspendTokenApi.unsuspendToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1296
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1297
|
+
});
|
|
1298
|
+
},
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* UnsuspendTokenApi - factory interface
|
|
1303
|
+
* @export
|
|
1304
|
+
*/
|
|
1305
|
+
export const UnsuspendTokenApiFactory = function (configuration, basePath, axios) {
|
|
1306
|
+
const localVarFp = UnsuspendTokenApiFp(configuration);
|
|
1307
|
+
return {
|
|
1308
|
+
/**
|
|
1309
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
1310
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
1311
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
1312
|
+
* @param {string} [xIdempotencyKey]
|
|
1313
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1314
|
+
* @param {*} [options] Override http request option.
|
|
1315
|
+
* @throws {RequiredError}
|
|
1316
|
+
*/
|
|
1317
|
+
unsuspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1318
|
+
return localVarFp.unsuspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
1319
|
+
},
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* UnsuspendTokenApi - object-oriented interface
|
|
1324
|
+
* @export
|
|
1325
|
+
* @class UnsuspendTokenApi
|
|
1326
|
+
* @extends {BaseAPI}
|
|
1327
|
+
*/
|
|
1328
|
+
export class UnsuspendTokenApi extends BaseAPI {
|
|
1329
|
+
/**
|
|
1330
|
+
* Brings a suspended token back into active use, for example, when a cardholder finds their previously lost device.
|
|
1331
|
+
* @summary Unsuspend token by its card scheme\'s unique reference
|
|
1332
|
+
* @param {string} id Token unique reference ID identifying the token to unsuspend.
|
|
1333
|
+
* @param {string} [xIdempotencyKey]
|
|
1334
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
1335
|
+
* @param {*} [options] Override http request option.
|
|
1336
|
+
* @throws {RequiredError}
|
|
1337
|
+
* @memberof UnsuspendTokenApi
|
|
1338
|
+
*/
|
|
1339
|
+
unsuspendToken(id, xIdempotencyKey, xAuditUser, options) {
|
|
1340
|
+
return UnsuspendTokenApiFp(this.configuration).unsuspendToken(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
1341
|
+
}
|
|
1342
|
+
}
|