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