@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,1379 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Card API
5
+ * Endpoints for doing various actions connected to the Card entity. All date-time fields adhere to the ISO 8601 standard unless specified otherwise. For example: 2024-05-31T06:55:17Z
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: info@enfuce.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ * The type of card defined by this card configuration.
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const CardConfigurationType = {
35
+ Debit: 'DEBIT',
36
+ Credit: 'CREDIT',
37
+ Combo: 'COMBO'
38
+ };
39
+ /**
40
+ * Select the type of delivery you prefer for the new card being created. - MAIL - The card would be sent via mail services. - COURIER - The card would be sent via courier services. - CUSTOM_1–CUSTOM_5 - Custom delivery types that can be used for shipping methods agreed between the customer and the bureau.
41
+ * @export
42
+ * @enum {string}
43
+ */
44
+ export const CardDeliveryType = {
45
+ Mail: 'MAIL',
46
+ Courier: 'COURIER',
47
+ Custom1: 'CUSTOM_1',
48
+ Custom2: 'CUSTOM_2',
49
+ Custom3: 'CUSTOM_3',
50
+ Custom4: 'CUSTOM_4',
51
+ Custom5: 'CUSTOM_5'
52
+ };
53
+ /**
54
+ * The role of the card. Multi application cards will have one main card and multiple card applications. Single cards will be treated as main cards.
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ export const CardRole = {
59
+ MainCard: 'MAIN_CARD',
60
+ CardApplication: 'CARD_APPLICATION'
61
+ };
62
+ /**
63
+ *
64
+ * @export
65
+ * @enum {string}
66
+ */
67
+ export const CardScheme = {
68
+ Mastercard: 'MASTERCARD',
69
+ Visa: 'VISA'
70
+ };
71
+ /**
72
+ * - ACTIVE - Card is active and is enabled for normal usage. - BLOCKED - Card is temporarily blocked. - BLOCKED_SUSPECTED_FRAUD - Card is temporarily blocked due to suspected fraud. - CLOSED_DUE_TO_FRAUD - Card has been closed due to fraud. - CLOSED_LOST - Card has been closed due to being lost. - CLOSED_STOLEN - Card has been closed due to being stolen. - CLOSED - Card has been manually closed. - CLOSED_EXPIRED - Card has no active or initial card versions and cannot be used.
73
+ * @export
74
+ * @enum {string}
75
+ */
76
+ export const CardStatus = {
77
+ Active: 'ACTIVE',
78
+ Blocked: 'BLOCKED',
79
+ BlockedSuspectedFraud: 'BLOCKED_SUSPECTED_FRAUD',
80
+ ClosedDueToFraud: 'CLOSED_DUE_TO_FRAUD',
81
+ ClosedLost: 'CLOSED_LOST',
82
+ ClosedStolen: 'CLOSED_STOLEN',
83
+ Closed: 'CLOSED',
84
+ ClosedExpired: 'CLOSED_EXPIRED'
85
+ };
86
+ /**
87
+ * - ACTIVE - The card is completely operational. You can perform all actions with the card. - INITIAL - The specific card version is awaiting activation. During this state, the card can have limited usage, such as being added to a digital wallet or cardholder can view the PIN (if it is a plastic card). However, in the INITIAL state, the card cannot be used for payments. - CLOSED - The previous versions of the card are no longer valid as a new version is activated or the card is closed.
88
+ * @export
89
+ * @enum {string}
90
+ */
91
+ export const CardVersionStatus = {
92
+ Active: 'ACTIVE',
93
+ Initial: 'INITIAL',
94
+ Closed: 'CLOSED'
95
+ };
96
+ /**
97
+ * - GENERATED - A pin should be randomly generated for the card. - WAITING - A pin is waiting to be set on the card.
98
+ * @export
99
+ * @enum {string}
100
+ */
101
+ export const ChangePinStatus = {
102
+ Generated: 'GENERATED',
103
+ Waiting: 'WAITING'
104
+ };
105
+ /**
106
+ * - GENERATED - This endpoint request would generate a random PIN for the new card. - WAITING - The card PIN would be set later.
107
+ * @export
108
+ * @enum {string}
109
+ */
110
+ export const CreatePinStatus = {
111
+ Generated: 'GENERATED',
112
+ Waiting: 'WAITING'
113
+ };
114
+ export const EncryptCardPaymentInfoRequestBodyEncryptionMethodEnum = {
115
+ RsaEcbOaepSha256Mgf12048: 'RSA_ECB_OAEP_SHA256_MGF1_2048'
116
+ };
117
+ export const EncryptCardPaymentInfoRequestBodyFieldsEnum = {
118
+ PrimaryAccountNumber: 'PRIMARY_ACCOUNT_NUMBER',
119
+ ExpirationDate: 'EXPIRATION_DATE',
120
+ Cvv2: 'CVV2'
121
+ };
122
+ /**
123
+ * Reason for manufacturing the card.
124
+ * @export
125
+ * @enum {string}
126
+ */
127
+ export const ManufacturingReason = {
128
+ NewCard: 'NEW_CARD',
129
+ ReplaceCard: 'REPLACE_CARD',
130
+ ReissueCard: 'REISSUE_CARD',
131
+ ReorderPin: 'REORDER_PIN',
132
+ RenewCard: 'RENEW_CARD'
133
+ };
134
+ /**
135
+ * - AWAITING_CRYPTO_VALUES - The card is created and is awaiting to receive cryptographic values before being sent to the card manufacturer. - CRYPTO_VALUES_PROCESSED - The card is awaiting to be included in the next embossing file. - SENT_TO_MANUFACTURER - The card has been successfully processed and sent to the manufacturer. - MANUFACTURING_ABORTED - The manufacturing process is aborted.
136
+ * @export
137
+ * @enum {string}
138
+ */
139
+ export const ManufacturingStatus = {
140
+ AwaitingCryptoValues: 'AWAITING_CRYPTO_VALUES',
141
+ CryptoValuesProcessed: 'CRYPTO_VALUES_PROCESSED',
142
+ SentToManufacturer: 'SENT_TO_MANUFACTURER',
143
+ ManufacturingAborted: 'MANUFACTURING_ABORTED'
144
+ };
145
+ /**
146
+ * Select the type of delivery you prefer for sending the card PIN. - MAIL - The card PIN would be sent via mail services. - COURIER - The card PIN would be sent via courier services. - EPIN - The card PIN would be sent digitally.
147
+ * @export
148
+ * @enum {string}
149
+ */
150
+ export const PinDeliveryType = {
151
+ Mail: 'MAIL',
152
+ Courier: 'COURIER',
153
+ Epin: 'EPIN'
154
+ };
155
+ /**
156
+ * Describes the scope of the operation authorised by the user.
157
+ * @export
158
+ * @enum {string}
159
+ */
160
+ export const PinScope = {
161
+ ViewPin: 'VIEW_PIN',
162
+ SetPin: 'SET_PIN',
163
+ ChangePin: 'CHANGE_PIN'
164
+ };
165
+ /**
166
+ * - GENERATED - A pin has been randomly generated for the card. - WAITING - A pin is waiting to be set on the card. - SET - A pin has been manually set on the card. - INHERITED - For card applications only. The pin status is inherited from the main card.
167
+ * @export
168
+ * @enum {string}
169
+ */
170
+ export const PinStatus = {
171
+ Generated: 'GENERATED',
172
+ Waiting: 'WAITING',
173
+ Set: 'SET',
174
+ Inherited: 'INHERITED'
175
+ };
176
+ /**
177
+ * - GENERATED - A pin should be randomly generated for the card.
178
+ * @export
179
+ * @enum {string}
180
+ */
181
+ export const UpdatePinStatus = {
182
+ Generated: 'GENERATED'
183
+ };
184
+ /**
185
+ * CreateCardApi - axios parameter creator
186
+ * @export
187
+ */
188
+ export const CreateCardApiAxiosParamCreator = function (configuration) {
189
+ return {
190
+ /**
191
+ * Send a request to this endpoint to create a new card.
192
+ * @summary Create Card
193
+ * @param {CreateCardRequest} createCardRequest
194
+ * @param {string} [xAuditUser] Optional audit user header
195
+ * @param {string} [xIdempotencyKey] Idempotency key for the request.
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ createCard: (createCardRequest_1, xAuditUser_1, xIdempotencyKey_1, ...args_1) => __awaiter(this, [createCardRequest_1, xAuditUser_1, xIdempotencyKey_1, ...args_1], void 0, function* (createCardRequest, xAuditUser, xIdempotencyKey, options = {}) {
200
+ // verify required parameter 'createCardRequest' is not null or undefined
201
+ assertParamExists('createCard', 'createCardRequest', createCardRequest);
202
+ const localVarPath = `/v1/cards`;
203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
205
+ let baseOptions;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ }
209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
210
+ const localVarHeaderParameter = {};
211
+ const localVarQueryParameter = {};
212
+ // authentication bearerAuth required
213
+ // http bearer authentication required
214
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
215
+ localVarHeaderParameter['Content-Type'] = 'application/json';
216
+ if (xAuditUser != null) {
217
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
218
+ }
219
+ if (xIdempotencyKey != null) {
220
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
221
+ }
222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
225
+ localVarRequestOptions.data = serializeDataIfNeeded(createCardRequest, localVarRequestOptions, configuration);
226
+ return {
227
+ url: toPathString(localVarUrlObj),
228
+ options: localVarRequestOptions,
229
+ };
230
+ }),
231
+ };
232
+ };
233
+ /**
234
+ * CreateCardApi - functional programming interface
235
+ * @export
236
+ */
237
+ export const CreateCardApiFp = function (configuration) {
238
+ const localVarAxiosParamCreator = CreateCardApiAxiosParamCreator(configuration);
239
+ return {
240
+ /**
241
+ * Send a request to this endpoint to create a new card.
242
+ * @summary Create Card
243
+ * @param {CreateCardRequest} createCardRequest
244
+ * @param {string} [xAuditUser] Optional audit user header
245
+ * @param {string} [xIdempotencyKey] Idempotency key for the request.
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ createCard(createCardRequest, xAuditUser, xIdempotencyKey, options) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ var _a, _b, _c;
252
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCard(createCardRequest, xAuditUser, xIdempotencyKey, options);
253
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
254
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CreateCardApi.createCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
256
+ });
257
+ },
258
+ };
259
+ };
260
+ /**
261
+ * CreateCardApi - factory interface
262
+ * @export
263
+ */
264
+ export const CreateCardApiFactory = function (configuration, basePath, axios) {
265
+ const localVarFp = CreateCardApiFp(configuration);
266
+ return {
267
+ /**
268
+ * Send a request to this endpoint to create a new card.
269
+ * @summary Create Card
270
+ * @param {CreateCardRequest} createCardRequest
271
+ * @param {string} [xAuditUser] Optional audit user header
272
+ * @param {string} [xIdempotencyKey] Idempotency key for the request.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ createCard(createCardRequest, xAuditUser, xIdempotencyKey, options) {
277
+ return localVarFp.createCard(createCardRequest, xAuditUser, xIdempotencyKey, options).then((request) => request(axios, basePath));
278
+ },
279
+ };
280
+ };
281
+ /**
282
+ * CreateCardApi - object-oriented interface
283
+ * @export
284
+ * @class CreateCardApi
285
+ * @extends {BaseAPI}
286
+ */
287
+ export class CreateCardApi extends BaseAPI {
288
+ /**
289
+ * Send a request to this endpoint to create a new card.
290
+ * @summary Create Card
291
+ * @param {CreateCardRequest} createCardRequest
292
+ * @param {string} [xAuditUser] Optional audit user header
293
+ * @param {string} [xIdempotencyKey] Idempotency key for the request.
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ * @memberof CreateCardApi
297
+ */
298
+ createCard(createCardRequest, xAuditUser, xIdempotencyKey, options) {
299
+ return CreateCardApiFp(this.configuration).createCard(createCardRequest, xAuditUser, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
300
+ }
301
+ }
302
+ /**
303
+ * CreatePINControlAccessTokenApi - axios parameter creator
304
+ * @export
305
+ */
306
+ export const CreatePINControlAccessTokenApiAxiosParamCreator = function (configuration) {
307
+ return {
308
+ /**
309
+ * Send a request to this endpoint to generate a PIN control access token for a specific card version. The requested `scope` determines which PIN operation the token authorises: `VIEW_PIN`, `SET_PIN` or `CHANGE_PIN`. If no `sequenceNumber` is provided, the latest card version is used. A successful response returns the token `id`, a `pinUrl` for the mobile device webview and a `pinFrameUrl` for the desktop browser iframe. Both URLs are specific to the requested `scope`. The token is valid for 30 seconds. For the mobile webview flow, the device sends another API request — a `POST` to the `pinUrl`, including the token `id` in a parameter named `controlId`. For the desktop browser flow, open an iframe to the `pinFrameUrl`. After the iframe has loaded, the browser makes a `window.postMessage()` call to the iframe. The message object contains an `operation` field (`view-pin` for the `VIEW_PIN` scope, `set-pin` for the `SET_PIN` and `CHANGE_PIN` scopes) and a `controlId` field (the token `id`). Note that you must use `set-pin` as the `operation` for the `CHANGE_PIN` scope as well.
310
+ * @summary Request PIN Control Access Token
311
+ * @param {string} id Unique identifier of the card for which you want to access the PIN.
312
+ * @param {PinControlInfoRequestBody} pinControlInfoRequestBody
313
+ * @param {string} [xAuditUser] Optional audit user header
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ createPinControl: (id_1, pinControlInfoRequestBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, pinControlInfoRequestBody_1, xAuditUser_1, ...args_1], void 0, function* (id, pinControlInfoRequestBody, xAuditUser, options = {}) {
318
+ // verify required parameter 'id' is not null or undefined
319
+ assertParamExists('createPinControl', 'id', id);
320
+ // verify required parameter 'pinControlInfoRequestBody' is not null or undefined
321
+ assertParamExists('createPinControl', 'pinControlInfoRequestBody', pinControlInfoRequestBody);
322
+ const localVarPath = `/v1/cards/{id}/pinControl`
323
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
326
+ let baseOptions;
327
+ if (configuration) {
328
+ baseOptions = configuration.baseOptions;
329
+ }
330
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
331
+ const localVarHeaderParameter = {};
332
+ const localVarQueryParameter = {};
333
+ // authentication bearerAuth required
334
+ // http bearer authentication required
335
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
336
+ localVarHeaderParameter['Content-Type'] = 'application/json';
337
+ if (xAuditUser != null) {
338
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
339
+ }
340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
343
+ localVarRequestOptions.data = serializeDataIfNeeded(pinControlInfoRequestBody, localVarRequestOptions, configuration);
344
+ return {
345
+ url: toPathString(localVarUrlObj),
346
+ options: localVarRequestOptions,
347
+ };
348
+ }),
349
+ };
350
+ };
351
+ /**
352
+ * CreatePINControlAccessTokenApi - functional programming interface
353
+ * @export
354
+ */
355
+ export const CreatePINControlAccessTokenApiFp = function (configuration) {
356
+ const localVarAxiosParamCreator = CreatePINControlAccessTokenApiAxiosParamCreator(configuration);
357
+ return {
358
+ /**
359
+ * Send a request to this endpoint to generate a PIN control access token for a specific card version. The requested `scope` determines which PIN operation the token authorises: `VIEW_PIN`, `SET_PIN` or `CHANGE_PIN`. If no `sequenceNumber` is provided, the latest card version is used. A successful response returns the token `id`, a `pinUrl` for the mobile device webview and a `pinFrameUrl` for the desktop browser iframe. Both URLs are specific to the requested `scope`. The token is valid for 30 seconds. For the mobile webview flow, the device sends another API request — a `POST` to the `pinUrl`, including the token `id` in a parameter named `controlId`. For the desktop browser flow, open an iframe to the `pinFrameUrl`. After the iframe has loaded, the browser makes a `window.postMessage()` call to the iframe. The message object contains an `operation` field (`view-pin` for the `VIEW_PIN` scope, `set-pin` for the `SET_PIN` and `CHANGE_PIN` scopes) and a `controlId` field (the token `id`). Note that you must use `set-pin` as the `operation` for the `CHANGE_PIN` scope as well.
360
+ * @summary Request PIN Control Access Token
361
+ * @param {string} id Unique identifier of the card for which you want to access the PIN.
362
+ * @param {PinControlInfoRequestBody} pinControlInfoRequestBody
363
+ * @param {string} [xAuditUser] Optional audit user header
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ createPinControl(id, pinControlInfoRequestBody, xAuditUser, options) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ var _a, _b, _c;
370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPinControl(id, pinControlInfoRequestBody, xAuditUser, options);
371
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
372
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CreatePINControlAccessTokenApi.createPinControl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
373
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
374
+ });
375
+ },
376
+ };
377
+ };
378
+ /**
379
+ * CreatePINControlAccessTokenApi - factory interface
380
+ * @export
381
+ */
382
+ export const CreatePINControlAccessTokenApiFactory = function (configuration, basePath, axios) {
383
+ const localVarFp = CreatePINControlAccessTokenApiFp(configuration);
384
+ return {
385
+ /**
386
+ * Send a request to this endpoint to generate a PIN control access token for a specific card version. The requested `scope` determines which PIN operation the token authorises: `VIEW_PIN`, `SET_PIN` or `CHANGE_PIN`. If no `sequenceNumber` is provided, the latest card version is used. A successful response returns the token `id`, a `pinUrl` for the mobile device webview and a `pinFrameUrl` for the desktop browser iframe. Both URLs are specific to the requested `scope`. The token is valid for 30 seconds. For the mobile webview flow, the device sends another API request — a `POST` to the `pinUrl`, including the token `id` in a parameter named `controlId`. For the desktop browser flow, open an iframe to the `pinFrameUrl`. After the iframe has loaded, the browser makes a `window.postMessage()` call to the iframe. The message object contains an `operation` field (`view-pin` for the `VIEW_PIN` scope, `set-pin` for the `SET_PIN` and `CHANGE_PIN` scopes) and a `controlId` field (the token `id`). Note that you must use `set-pin` as the `operation` for the `CHANGE_PIN` scope as well.
387
+ * @summary Request PIN Control Access Token
388
+ * @param {string} id Unique identifier of the card for which you want to access the PIN.
389
+ * @param {PinControlInfoRequestBody} pinControlInfoRequestBody
390
+ * @param {string} [xAuditUser] Optional audit user header
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ createPinControl(id, pinControlInfoRequestBody, xAuditUser, options) {
395
+ return localVarFp.createPinControl(id, pinControlInfoRequestBody, xAuditUser, options).then((request) => request(axios, basePath));
396
+ },
397
+ };
398
+ };
399
+ /**
400
+ * CreatePINControlAccessTokenApi - object-oriented interface
401
+ * @export
402
+ * @class CreatePINControlAccessTokenApi
403
+ * @extends {BaseAPI}
404
+ */
405
+ export class CreatePINControlAccessTokenApi extends BaseAPI {
406
+ /**
407
+ * Send a request to this endpoint to generate a PIN control access token for a specific card version. The requested `scope` determines which PIN operation the token authorises: `VIEW_PIN`, `SET_PIN` or `CHANGE_PIN`. If no `sequenceNumber` is provided, the latest card version is used. A successful response returns the token `id`, a `pinUrl` for the mobile device webview and a `pinFrameUrl` for the desktop browser iframe. Both URLs are specific to the requested `scope`. The token is valid for 30 seconds. For the mobile webview flow, the device sends another API request — a `POST` to the `pinUrl`, including the token `id` in a parameter named `controlId`. For the desktop browser flow, open an iframe to the `pinFrameUrl`. After the iframe has loaded, the browser makes a `window.postMessage()` call to the iframe. The message object contains an `operation` field (`view-pin` for the `VIEW_PIN` scope, `set-pin` for the `SET_PIN` and `CHANGE_PIN` scopes) and a `controlId` field (the token `id`). Note that you must use `set-pin` as the `operation` for the `CHANGE_PIN` scope as well.
408
+ * @summary Request PIN Control Access Token
409
+ * @param {string} id Unique identifier of the card for which you want to access the PIN.
410
+ * @param {PinControlInfoRequestBody} pinControlInfoRequestBody
411
+ * @param {string} [xAuditUser] Optional audit user header
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof CreatePINControlAccessTokenApi
415
+ */
416
+ createPinControl(id, pinControlInfoRequestBody, xAuditUser, options) {
417
+ return CreatePINControlAccessTokenApiFp(this.configuration).createPinControl(id, pinControlInfoRequestBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
418
+ }
419
+ }
420
+ /**
421
+ * GetCardApi - axios parameter creator
422
+ * @export
423
+ */
424
+ export const GetCardApiAxiosParamCreator = function (configuration) {
425
+ return {
426
+ /**
427
+ *
428
+ * @summary Get Card
429
+ * @param {string} id Unique identifier of the card you want to retrieve.
430
+ * @param {string} [xAuditUser] Optional audit user header
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ getCard: (id_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xAuditUser_1, ...args_1], void 0, function* (id, xAuditUser, options = {}) {
435
+ // verify required parameter 'id' is not null or undefined
436
+ assertParamExists('getCard', 'id', id);
437
+ const localVarPath = `/v1/cards/{id}`
438
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
439
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
440
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
441
+ let baseOptions;
442
+ if (configuration) {
443
+ baseOptions = configuration.baseOptions;
444
+ }
445
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
446
+ const localVarHeaderParameter = {};
447
+ const localVarQueryParameter = {};
448
+ // authentication bearerAuth required
449
+ // http bearer authentication required
450
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
451
+ if (xAuditUser != null) {
452
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
453
+ }
454
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
455
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
+ return {
458
+ url: toPathString(localVarUrlObj),
459
+ options: localVarRequestOptions,
460
+ };
461
+ }),
462
+ /**
463
+ * Send a request to this endpoint when the cardholder wants to retrieve card data, such as PAN, expiry and CVV2/CVC2. If no sequence number is specified, the latest card version is used by default. Only card versions not in CLOSED status are allowed.
464
+ * @summary Initiate Card Data Retrieval
465
+ * @param {string} id Unique identifier of the card.
466
+ * @param {string} [xAuditUser] Optional audit user header
467
+ * @param {ControlTokenRequestBody} [controlTokenRequestBody]
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ getCardDataControlToken: (id_1, xAuditUser_1, controlTokenRequestBody_1, ...args_1) => __awaiter(this, [id_1, xAuditUser_1, controlTokenRequestBody_1, ...args_1], void 0, function* (id, xAuditUser, controlTokenRequestBody, options = {}) {
472
+ // verify required parameter 'id' is not null or undefined
473
+ assertParamExists('getCardDataControlToken', 'id', id);
474
+ const localVarPath = `/v1/cards/{id}/controlToken`
475
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
478
+ let baseOptions;
479
+ if (configuration) {
480
+ baseOptions = configuration.baseOptions;
481
+ }
482
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
483
+ const localVarHeaderParameter = {};
484
+ const localVarQueryParameter = {};
485
+ // authentication bearerAuth required
486
+ // http bearer authentication required
487
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
488
+ localVarHeaderParameter['Content-Type'] = 'application/json';
489
+ if (xAuditUser != null) {
490
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
491
+ }
492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
495
+ localVarRequestOptions.data = serializeDataIfNeeded(controlTokenRequestBody, localVarRequestOptions, configuration);
496
+ return {
497
+ url: toPathString(localVarUrlObj),
498
+ options: localVarRequestOptions,
499
+ };
500
+ }),
501
+ /**
502
+ * Send a request to this endpoint to return all card applications for a specific main card. If the main card does not exist, an empty array is returned.
503
+ * @summary Get Card Applications for Main Card
504
+ * @param {string} mainCardId Unique identifier of the main card for which you want to retrieve the list of card applications.
505
+ * @param {string} [xAuditUser] Optional audit user header
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ getCards: (mainCardId_1, xAuditUser_1, ...args_1) => __awaiter(this, [mainCardId_1, xAuditUser_1, ...args_1], void 0, function* (mainCardId, xAuditUser, options = {}) {
510
+ // verify required parameter 'mainCardId' is not null or undefined
511
+ assertParamExists('getCards', 'mainCardId', mainCardId);
512
+ const localVarPath = `/v1/cards`;
513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
515
+ let baseOptions;
516
+ if (configuration) {
517
+ baseOptions = configuration.baseOptions;
518
+ }
519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
520
+ const localVarHeaderParameter = {};
521
+ const localVarQueryParameter = {};
522
+ // authentication bearerAuth required
523
+ // http bearer authentication required
524
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
525
+ if (mainCardId !== undefined) {
526
+ localVarQueryParameter['mainCardId'] = mainCardId;
527
+ }
528
+ if (xAuditUser != null) {
529
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
530
+ }
531
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
532
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
533
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
534
+ return {
535
+ url: toPathString(localVarUrlObj),
536
+ options: localVarRequestOptions,
537
+ };
538
+ }),
539
+ };
540
+ };
541
+ /**
542
+ * GetCardApi - functional programming interface
543
+ * @export
544
+ */
545
+ export const GetCardApiFp = function (configuration) {
546
+ const localVarAxiosParamCreator = GetCardApiAxiosParamCreator(configuration);
547
+ return {
548
+ /**
549
+ *
550
+ * @summary Get Card
551
+ * @param {string} id Unique identifier of the card you want to retrieve.
552
+ * @param {string} [xAuditUser] Optional audit user header
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ getCard(id, xAuditUser, options) {
557
+ return __awaiter(this, void 0, void 0, function* () {
558
+ var _a, _b, _c;
559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCard(id, xAuditUser, options);
560
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
561
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardApi.getCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
563
+ });
564
+ },
565
+ /**
566
+ * Send a request to this endpoint when the cardholder wants to retrieve card data, such as PAN, expiry and CVV2/CVC2. If no sequence number is specified, the latest card version is used by default. Only card versions not in CLOSED status are allowed.
567
+ * @summary Initiate Card Data Retrieval
568
+ * @param {string} id Unique identifier of the card.
569
+ * @param {string} [xAuditUser] Optional audit user header
570
+ * @param {ControlTokenRequestBody} [controlTokenRequestBody]
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ var _a, _b, _c;
577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options);
578
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
579
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardApi.getCardDataControlToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
580
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
581
+ });
582
+ },
583
+ /**
584
+ * Send a request to this endpoint to return all card applications for a specific main card. If the main card does not exist, an empty array is returned.
585
+ * @summary Get Card Applications for Main Card
586
+ * @param {string} mainCardId Unique identifier of the main card for which you want to retrieve the list of card applications.
587
+ * @param {string} [xAuditUser] Optional audit user header
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ getCards(mainCardId, xAuditUser, options) {
592
+ return __awaiter(this, void 0, void 0, function* () {
593
+ var _a, _b, _c;
594
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCards(mainCardId, xAuditUser, options);
595
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
596
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardApi.getCards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
597
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
598
+ });
599
+ },
600
+ };
601
+ };
602
+ /**
603
+ * GetCardApi - factory interface
604
+ * @export
605
+ */
606
+ export const GetCardApiFactory = function (configuration, basePath, axios) {
607
+ const localVarFp = GetCardApiFp(configuration);
608
+ return {
609
+ /**
610
+ *
611
+ * @summary Get Card
612
+ * @param {string} id Unique identifier of the card you want to retrieve.
613
+ * @param {string} [xAuditUser] Optional audit user header
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ getCard(id, xAuditUser, options) {
618
+ return localVarFp.getCard(id, xAuditUser, options).then((request) => request(axios, basePath));
619
+ },
620
+ /**
621
+ * Send a request to this endpoint when the cardholder wants to retrieve card data, such as PAN, expiry and CVV2/CVC2. If no sequence number is specified, the latest card version is used by default. Only card versions not in CLOSED status are allowed.
622
+ * @summary Initiate Card Data Retrieval
623
+ * @param {string} id Unique identifier of the card.
624
+ * @param {string} [xAuditUser] Optional audit user header
625
+ * @param {ControlTokenRequestBody} [controlTokenRequestBody]
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options) {
630
+ return localVarFp.getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options).then((request) => request(axios, basePath));
631
+ },
632
+ /**
633
+ * Send a request to this endpoint to return all card applications for a specific main card. If the main card does not exist, an empty array is returned.
634
+ * @summary Get Card Applications for Main Card
635
+ * @param {string} mainCardId Unique identifier of the main card for which you want to retrieve the list of card applications.
636
+ * @param {string} [xAuditUser] Optional audit user header
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ getCards(mainCardId, xAuditUser, options) {
641
+ return localVarFp.getCards(mainCardId, xAuditUser, options).then((request) => request(axios, basePath));
642
+ },
643
+ };
644
+ };
645
+ /**
646
+ * GetCardApi - object-oriented interface
647
+ * @export
648
+ * @class GetCardApi
649
+ * @extends {BaseAPI}
650
+ */
651
+ export class GetCardApi extends BaseAPI {
652
+ /**
653
+ *
654
+ * @summary Get Card
655
+ * @param {string} id Unique identifier of the card you want to retrieve.
656
+ * @param {string} [xAuditUser] Optional audit user header
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ * @memberof GetCardApi
660
+ */
661
+ getCard(id, xAuditUser, options) {
662
+ return GetCardApiFp(this.configuration).getCard(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
663
+ }
664
+ /**
665
+ * Send a request to this endpoint when the cardholder wants to retrieve card data, such as PAN, expiry and CVV2/CVC2. If no sequence number is specified, the latest card version is used by default. Only card versions not in CLOSED status are allowed.
666
+ * @summary Initiate Card Data Retrieval
667
+ * @param {string} id Unique identifier of the card.
668
+ * @param {string} [xAuditUser] Optional audit user header
669
+ * @param {ControlTokenRequestBody} [controlTokenRequestBody]
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ * @memberof GetCardApi
673
+ */
674
+ getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options) {
675
+ return GetCardApiFp(this.configuration).getCardDataControlToken(id, xAuditUser, controlTokenRequestBody, options).then((request) => request(this.axios, this.basePath));
676
+ }
677
+ /**
678
+ * Send a request to this endpoint to return all card applications for a specific main card. If the main card does not exist, an empty array is returned.
679
+ * @summary Get Card Applications for Main Card
680
+ * @param {string} mainCardId Unique identifier of the main card for which you want to retrieve the list of card applications.
681
+ * @param {string} [xAuditUser] Optional audit user header
682
+ * @param {*} [options] Override http request option.
683
+ * @throws {RequiredError}
684
+ * @memberof GetCardApi
685
+ */
686
+ getCards(mainCardId, xAuditUser, options) {
687
+ return GetCardApiFp(this.configuration).getCards(mainCardId, xAuditUser, options).then((request) => request(this.axios, this.basePath));
688
+ }
689
+ }
690
+ /**
691
+ * GetCardPaymentInfoApi - axios parameter creator
692
+ * @export
693
+ */
694
+ export const GetCardPaymentInfoApiAxiosParamCreator = function (configuration) {
695
+ return {
696
+ /**
697
+ * This is a web service designed to retrieve the card data required for completing e-commerce payments — PAN, CVC2/CVV2, expiry date of the card can be retrieved. The returned payload is encrypted with an asymmetric public key; this enables end-to-end encryption to the card holder device. The parameters that were included in the request are only returned. The caller is responsible of validating the integrity of the public key. <Note><ul><li>Send a request to this endpoint, if you are not using the Enfuce BIN sponsorship.</li><li>Retrieving card data through this endpoint implies PCI DSS compliance of the client with the Scheme. An easier method that you can use is the `Initiate Card Data Retrieval` endpoint — this endpoint enables rendering of card information to the cardholder\'s device without requiring compliance of the client with PCI DSS.</li></ul></Note> ## Example: ```java // ... import java.security.KeyFactory; import java.security.PrivateKey; import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; import javax.crypto.Cipher; // ... ## Example of decrypting an encrypted field ```java private String decrypt(String data, String privKeyPEM) throws Exception { ## Example of preparing the key ```java String privKeyString = privKeyPEM.replaceAll(\"\\\\n\", \"\").replace(\"-----BEGIN PRIVATE KEY-----\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\"); byte[] encodedKey = Base64.getDecoder().decode(privKeyString); PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(encodedKey); KeyFactory kf = KeyFactory.getInstance(\"RSA\"); PrivateKey privateKey = kf.generatePrivate(spec); ## Example of preparing the decryption ```java Cipher cipher = Cipher.getInstance(\"RSA/ECB/OAEPWithSHA-256AndMGF1Padding\"); cipher.init(Cipher.DECRYPT_MODE, privateKey); ## Example of preparing the data ```java byte[] cryptogram = Base64.getDecoder().decode(data); ## Example of decryption ```java byte[] decryptedBytes = cipher.doFinal(cryptogram); return new String(decryptedBytes);
698
+ * @summary Retrieve Card Data | Additional Method
699
+ * @param {string} id Unique identifier of the card whose details you want to retrieve.
700
+ * @param {EncryptCardPaymentInfoRequestBody} encryptCardPaymentInfoRequestBody
701
+ * @param {string} [xAuditUser] Optional audit user header
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ encryptCardPaymentInfo: (id_1, encryptCardPaymentInfoRequestBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, encryptCardPaymentInfoRequestBody_1, xAuditUser_1, ...args_1], void 0, function* (id, encryptCardPaymentInfoRequestBody, xAuditUser, options = {}) {
706
+ // verify required parameter 'id' is not null or undefined
707
+ assertParamExists('encryptCardPaymentInfo', 'id', id);
708
+ // verify required parameter 'encryptCardPaymentInfoRequestBody' is not null or undefined
709
+ assertParamExists('encryptCardPaymentInfo', 'encryptCardPaymentInfoRequestBody', encryptCardPaymentInfoRequestBody);
710
+ const localVarPath = `/v1/cards/{id}/encrypt`
711
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
714
+ let baseOptions;
715
+ if (configuration) {
716
+ baseOptions = configuration.baseOptions;
717
+ }
718
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
719
+ const localVarHeaderParameter = {};
720
+ const localVarQueryParameter = {};
721
+ // authentication bearerAuth required
722
+ // http bearer authentication required
723
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
725
+ if (xAuditUser != null) {
726
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
727
+ }
728
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
730
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
731
+ localVarRequestOptions.data = serializeDataIfNeeded(encryptCardPaymentInfoRequestBody, localVarRequestOptions, configuration);
732
+ return {
733
+ url: toPathString(localVarUrlObj),
734
+ options: localVarRequestOptions,
735
+ };
736
+ }),
737
+ };
738
+ };
739
+ /**
740
+ * GetCardPaymentInfoApi - functional programming interface
741
+ * @export
742
+ */
743
+ export const GetCardPaymentInfoApiFp = function (configuration) {
744
+ const localVarAxiosParamCreator = GetCardPaymentInfoApiAxiosParamCreator(configuration);
745
+ return {
746
+ /**
747
+ * This is a web service designed to retrieve the card data required for completing e-commerce payments — PAN, CVC2/CVV2, expiry date of the card can be retrieved. The returned payload is encrypted with an asymmetric public key; this enables end-to-end encryption to the card holder device. The parameters that were included in the request are only returned. The caller is responsible of validating the integrity of the public key. <Note><ul><li>Send a request to this endpoint, if you are not using the Enfuce BIN sponsorship.</li><li>Retrieving card data through this endpoint implies PCI DSS compliance of the client with the Scheme. An easier method that you can use is the `Initiate Card Data Retrieval` endpoint — this endpoint enables rendering of card information to the cardholder\'s device without requiring compliance of the client with PCI DSS.</li></ul></Note> ## Example: ```java // ... import java.security.KeyFactory; import java.security.PrivateKey; import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; import javax.crypto.Cipher; // ... ## Example of decrypting an encrypted field ```java private String decrypt(String data, String privKeyPEM) throws Exception { ## Example of preparing the key ```java String privKeyString = privKeyPEM.replaceAll(\"\\\\n\", \"\").replace(\"-----BEGIN PRIVATE KEY-----\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\"); byte[] encodedKey = Base64.getDecoder().decode(privKeyString); PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(encodedKey); KeyFactory kf = KeyFactory.getInstance(\"RSA\"); PrivateKey privateKey = kf.generatePrivate(spec); ## Example of preparing the decryption ```java Cipher cipher = Cipher.getInstance(\"RSA/ECB/OAEPWithSHA-256AndMGF1Padding\"); cipher.init(Cipher.DECRYPT_MODE, privateKey); ## Example of preparing the data ```java byte[] cryptogram = Base64.getDecoder().decode(data); ## Example of decryption ```java byte[] decryptedBytes = cipher.doFinal(cryptogram); return new String(decryptedBytes);
748
+ * @summary Retrieve Card Data | Additional Method
749
+ * @param {string} id Unique identifier of the card whose details you want to retrieve.
750
+ * @param {EncryptCardPaymentInfoRequestBody} encryptCardPaymentInfoRequestBody
751
+ * @param {string} [xAuditUser] Optional audit user header
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options) {
756
+ return __awaiter(this, void 0, void 0, function* () {
757
+ var _a, _b, _c;
758
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options);
759
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
760
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetCardPaymentInfoApi.encryptCardPaymentInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
+ });
763
+ },
764
+ };
765
+ };
766
+ /**
767
+ * GetCardPaymentInfoApi - factory interface
768
+ * @export
769
+ */
770
+ export const GetCardPaymentInfoApiFactory = function (configuration, basePath, axios) {
771
+ const localVarFp = GetCardPaymentInfoApiFp(configuration);
772
+ return {
773
+ /**
774
+ * This is a web service designed to retrieve the card data required for completing e-commerce payments — PAN, CVC2/CVV2, expiry date of the card can be retrieved. The returned payload is encrypted with an asymmetric public key; this enables end-to-end encryption to the card holder device. The parameters that were included in the request are only returned. The caller is responsible of validating the integrity of the public key. <Note><ul><li>Send a request to this endpoint, if you are not using the Enfuce BIN sponsorship.</li><li>Retrieving card data through this endpoint implies PCI DSS compliance of the client with the Scheme. An easier method that you can use is the `Initiate Card Data Retrieval` endpoint — this endpoint enables rendering of card information to the cardholder\'s device without requiring compliance of the client with PCI DSS.</li></ul></Note> ## Example: ```java // ... import java.security.KeyFactory; import java.security.PrivateKey; import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; import javax.crypto.Cipher; // ... ## Example of decrypting an encrypted field ```java private String decrypt(String data, String privKeyPEM) throws Exception { ## Example of preparing the key ```java String privKeyString = privKeyPEM.replaceAll(\"\\\\n\", \"\").replace(\"-----BEGIN PRIVATE KEY-----\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\"); byte[] encodedKey = Base64.getDecoder().decode(privKeyString); PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(encodedKey); KeyFactory kf = KeyFactory.getInstance(\"RSA\"); PrivateKey privateKey = kf.generatePrivate(spec); ## Example of preparing the decryption ```java Cipher cipher = Cipher.getInstance(\"RSA/ECB/OAEPWithSHA-256AndMGF1Padding\"); cipher.init(Cipher.DECRYPT_MODE, privateKey); ## Example of preparing the data ```java byte[] cryptogram = Base64.getDecoder().decode(data); ## Example of decryption ```java byte[] decryptedBytes = cipher.doFinal(cryptogram); return new String(decryptedBytes);
775
+ * @summary Retrieve Card Data | Additional Method
776
+ * @param {string} id Unique identifier of the card whose details you want to retrieve.
777
+ * @param {EncryptCardPaymentInfoRequestBody} encryptCardPaymentInfoRequestBody
778
+ * @param {string} [xAuditUser] Optional audit user header
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options) {
783
+ return localVarFp.encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options).then((request) => request(axios, basePath));
784
+ },
785
+ };
786
+ };
787
+ /**
788
+ * GetCardPaymentInfoApi - object-oriented interface
789
+ * @export
790
+ * @class GetCardPaymentInfoApi
791
+ * @extends {BaseAPI}
792
+ */
793
+ export class GetCardPaymentInfoApi extends BaseAPI {
794
+ /**
795
+ * This is a web service designed to retrieve the card data required for completing e-commerce payments — PAN, CVC2/CVV2, expiry date of the card can be retrieved. The returned payload is encrypted with an asymmetric public key; this enables end-to-end encryption to the card holder device. The parameters that were included in the request are only returned. The caller is responsible of validating the integrity of the public key. <Note><ul><li>Send a request to this endpoint, if you are not using the Enfuce BIN sponsorship.</li><li>Retrieving card data through this endpoint implies PCI DSS compliance of the client with the Scheme. An easier method that you can use is the `Initiate Card Data Retrieval` endpoint — this endpoint enables rendering of card information to the cardholder\'s device without requiring compliance of the client with PCI DSS.</li></ul></Note> ## Example: ```java // ... import java.security.KeyFactory; import java.security.PrivateKey; import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; import javax.crypto.Cipher; // ... ## Example of decrypting an encrypted field ```java private String decrypt(String data, String privKeyPEM) throws Exception { ## Example of preparing the key ```java String privKeyString = privKeyPEM.replaceAll(\"\\\\n\", \"\").replace(\"-----BEGIN PRIVATE KEY-----\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\"); byte[] encodedKey = Base64.getDecoder().decode(privKeyString); PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(encodedKey); KeyFactory kf = KeyFactory.getInstance(\"RSA\"); PrivateKey privateKey = kf.generatePrivate(spec); ## Example of preparing the decryption ```java Cipher cipher = Cipher.getInstance(\"RSA/ECB/OAEPWithSHA-256AndMGF1Padding\"); cipher.init(Cipher.DECRYPT_MODE, privateKey); ## Example of preparing the data ```java byte[] cryptogram = Base64.getDecoder().decode(data); ## Example of decryption ```java byte[] decryptedBytes = cipher.doFinal(cryptogram); return new String(decryptedBytes);
796
+ * @summary Retrieve Card Data | Additional Method
797
+ * @param {string} id Unique identifier of the card whose details you want to retrieve.
798
+ * @param {EncryptCardPaymentInfoRequestBody} encryptCardPaymentInfoRequestBody
799
+ * @param {string} [xAuditUser] Optional audit user header
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ * @memberof GetCardPaymentInfoApi
803
+ */
804
+ encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options) {
805
+ return GetCardPaymentInfoApiFp(this.configuration).encryptCardPaymentInfo(id, encryptCardPaymentInfoRequestBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
806
+ }
807
+ }
808
+ /**
809
+ * GetPlasticManufacturingHistoryApi - axios parameter creator
810
+ * @export
811
+ */
812
+ export const GetPlasticManufacturingHistoryApiAxiosParamCreator = function (configuration) {
813
+ return {
814
+ /**
815
+ * Send a request to this endpoint to retrieve a detailed list of all past occurrences when the card has been physically manufactured.
816
+ * @summary Retrieve Manufacturing History of Card
817
+ * @param {string} id Unique identifier of the card for which you want to retrieve the manufacturing history.
818
+ * @param {string} [xAuditUser] Optional audit user header
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ */
822
+ manufacturingHistory: (id_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xAuditUser_1, ...args_1], void 0, function* (id, xAuditUser, options = {}) {
823
+ // verify required parameter 'id' is not null or undefined
824
+ assertParamExists('manufacturingHistory', 'id', id);
825
+ const localVarPath = `/v1/cards/{id}/manufacturing-history`
826
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
828
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
829
+ let baseOptions;
830
+ if (configuration) {
831
+ baseOptions = configuration.baseOptions;
832
+ }
833
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
834
+ const localVarHeaderParameter = {};
835
+ const localVarQueryParameter = {};
836
+ // authentication bearerAuth required
837
+ // http bearer authentication required
838
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
839
+ if (xAuditUser != null) {
840
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
841
+ }
842
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
843
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
844
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
845
+ return {
846
+ url: toPathString(localVarUrlObj),
847
+ options: localVarRequestOptions,
848
+ };
849
+ }),
850
+ };
851
+ };
852
+ /**
853
+ * GetPlasticManufacturingHistoryApi - functional programming interface
854
+ * @export
855
+ */
856
+ export const GetPlasticManufacturingHistoryApiFp = function (configuration) {
857
+ const localVarAxiosParamCreator = GetPlasticManufacturingHistoryApiAxiosParamCreator(configuration);
858
+ return {
859
+ /**
860
+ * Send a request to this endpoint to retrieve a detailed list of all past occurrences when the card has been physically manufactured.
861
+ * @summary Retrieve Manufacturing History of Card
862
+ * @param {string} id Unique identifier of the card for which you want to retrieve the manufacturing history.
863
+ * @param {string} [xAuditUser] Optional audit user header
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ manufacturingHistory(id, xAuditUser, options) {
868
+ return __awaiter(this, void 0, void 0, function* () {
869
+ var _a, _b, _c;
870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.manufacturingHistory(id, xAuditUser, options);
871
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
872
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GetPlasticManufacturingHistoryApi.manufacturingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
874
+ });
875
+ },
876
+ };
877
+ };
878
+ /**
879
+ * GetPlasticManufacturingHistoryApi - factory interface
880
+ * @export
881
+ */
882
+ export const GetPlasticManufacturingHistoryApiFactory = function (configuration, basePath, axios) {
883
+ const localVarFp = GetPlasticManufacturingHistoryApiFp(configuration);
884
+ return {
885
+ /**
886
+ * Send a request to this endpoint to retrieve a detailed list of all past occurrences when the card has been physically manufactured.
887
+ * @summary Retrieve Manufacturing History of Card
888
+ * @param {string} id Unique identifier of the card for which you want to retrieve the manufacturing history.
889
+ * @param {string} [xAuditUser] Optional audit user header
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ manufacturingHistory(id, xAuditUser, options) {
894
+ return localVarFp.manufacturingHistory(id, xAuditUser, options).then((request) => request(axios, basePath));
895
+ },
896
+ };
897
+ };
898
+ /**
899
+ * GetPlasticManufacturingHistoryApi - object-oriented interface
900
+ * @export
901
+ * @class GetPlasticManufacturingHistoryApi
902
+ * @extends {BaseAPI}
903
+ */
904
+ export class GetPlasticManufacturingHistoryApi extends BaseAPI {
905
+ /**
906
+ * Send a request to this endpoint to retrieve a detailed list of all past occurrences when the card has been physically manufactured.
907
+ * @summary Retrieve Manufacturing History of Card
908
+ * @param {string} id Unique identifier of the card for which you want to retrieve the manufacturing history.
909
+ * @param {string} [xAuditUser] Optional audit user header
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ * @memberof GetPlasticManufacturingHistoryApi
913
+ */
914
+ manufacturingHistory(id, xAuditUser, options) {
915
+ return GetPlasticManufacturingHistoryApiFp(this.configuration).manufacturingHistory(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
916
+ }
917
+ }
918
+ /**
919
+ * UpdateCardApi - axios parameter creator
920
+ * @export
921
+ */
922
+ export const UpdateCardApiAxiosParamCreator = function (configuration) {
923
+ return {
924
+ /**
925
+ * To change the latest card version status from `INITIAL` to `ACTIVE`, send a request to this endpoint.
926
+ * @summary Activate Card
927
+ * @param {string} id Unique ID of the card that you want to activate.
928
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
929
+ * @param {string} [xAuditUser] Optional audit user header
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ activateCard: (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 = {}) {
934
+ // verify required parameter 'id' is not null or undefined
935
+ assertParamExists('activateCard', 'id', id);
936
+ const localVarPath = `/v1/cards/{id}/activate`
937
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940
+ let baseOptions;
941
+ if (configuration) {
942
+ baseOptions = configuration.baseOptions;
943
+ }
944
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
945
+ const localVarHeaderParameter = {};
946
+ const localVarQueryParameter = {};
947
+ // authentication bearerAuth required
948
+ // http bearer authentication required
949
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
950
+ if (xIdempotencyKey != null) {
951
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
952
+ }
953
+ if (xAuditUser != null) {
954
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
955
+ }
956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
958
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
959
+ return {
960
+ url: toPathString(localVarUrlObj),
961
+ options: localVarRequestOptions,
962
+ };
963
+ }),
964
+ /**
965
+ * Send a request to this endpoint when you want to update details of a specific card.
966
+ * @summary Partially Update Card
967
+ * @param {string} id Unique identifier of the card that you want to update.
968
+ * @param {UpdateCardBody} updateCardBody Details of the card that you want to update.
969
+ * @param {string} [xAuditUser] Optional audit user header
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ patchCard: (id_1, updateCardBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, updateCardBody_1, xAuditUser_1, ...args_1], void 0, function* (id, updateCardBody, xAuditUser, options = {}) {
974
+ // verify required parameter 'id' is not null or undefined
975
+ assertParamExists('patchCard', 'id', id);
976
+ // verify required parameter 'updateCardBody' is not null or undefined
977
+ assertParamExists('patchCard', 'updateCardBody', updateCardBody);
978
+ const localVarPath = `/v1/cards/{id}`
979
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
980
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
981
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
982
+ let baseOptions;
983
+ if (configuration) {
984
+ baseOptions = configuration.baseOptions;
985
+ }
986
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
987
+ const localVarHeaderParameter = {};
988
+ const localVarQueryParameter = {};
989
+ // authentication bearerAuth required
990
+ // http bearer authentication required
991
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
992
+ localVarHeaderParameter['Content-Type'] = 'application/json';
993
+ if (xAuditUser != null) {
994
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
995
+ }
996
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
997
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
998
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
999
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCardBody, localVarRequestOptions, configuration);
1000
+ return {
1001
+ url: toPathString(localVarUrlObj),
1002
+ options: localVarRequestOptions,
1003
+ };
1004
+ }),
1005
+ /**
1006
+ * Send a request to this endpoint when you want to reissue a card.
1007
+ * @summary Reissue Card
1008
+ * @param {string} id Unique identifier of the card that you want to reissue.
1009
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1010
+ * @param {string} [xAuditUser] Optional audit user header
1011
+ * @param {ReissueCardBody} [reissueCardBody]
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ */
1015
+ reissueCard: (id_1, xIdempotencyKey_1, xAuditUser_1, reissueCardBody_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, reissueCardBody_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, reissueCardBody, options = {}) {
1016
+ // verify required parameter 'id' is not null or undefined
1017
+ assertParamExists('reissueCard', 'id', id);
1018
+ const localVarPath = `/v1/cards/{id}/reissue`
1019
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1020
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1021
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1022
+ let baseOptions;
1023
+ if (configuration) {
1024
+ baseOptions = configuration.baseOptions;
1025
+ }
1026
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1027
+ const localVarHeaderParameter = {};
1028
+ const localVarQueryParameter = {};
1029
+ // authentication bearerAuth required
1030
+ // http bearer authentication required
1031
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1032
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1033
+ if (xIdempotencyKey != null) {
1034
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
1035
+ }
1036
+ if (xAuditUser != null) {
1037
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
1038
+ }
1039
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1040
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1041
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1042
+ localVarRequestOptions.data = serializeDataIfNeeded(reissueCardBody, localVarRequestOptions, configuration);
1043
+ return {
1044
+ url: toPathString(localVarUrlObj),
1045
+ options: localVarRequestOptions,
1046
+ };
1047
+ }),
1048
+ /**
1049
+ * Send a request to this endpoint when you want to reorder existing PIN for a plastic card, if the cardholder has forgotten it. The PIN is delivered to the `preferredPinAddress`. If `preferredPinAddress` is absent, the PIN is delivered to the `preferredCardAddress`.
1050
+ * @summary Reorder PIN for Card
1051
+ * @param {string} id Unique identifier of the card for which you want to reorder PIN.
1052
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1053
+ * @param {string} [xAuditUser] Optional audit user header
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ */
1057
+ reorderPin: (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 = {}) {
1058
+ // verify required parameter 'id' is not null or undefined
1059
+ assertParamExists('reorderPin', 'id', id);
1060
+ const localVarPath = `/v1/cards/{id}/reorder-pin`
1061
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1062
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1063
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1064
+ let baseOptions;
1065
+ if (configuration) {
1066
+ baseOptions = configuration.baseOptions;
1067
+ }
1068
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1069
+ const localVarHeaderParameter = {};
1070
+ const localVarQueryParameter = {};
1071
+ // authentication bearerAuth required
1072
+ // http bearer authentication required
1073
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1074
+ if (xIdempotencyKey != null) {
1075
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
1076
+ }
1077
+ if (xAuditUser != null) {
1078
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
1079
+ }
1080
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1082
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1083
+ return {
1084
+ url: toPathString(localVarUrlObj),
1085
+ options: localVarRequestOptions,
1086
+ };
1087
+ }),
1088
+ /**
1089
+ * Send a request to this endpoint when you want to replace the current card. The old card is closed and a new card is issued, where the PAN and the expiry date are updated.
1090
+ * @summary Replace Card
1091
+ * @param {string} id Unique identifier of the card to be replaced.
1092
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1093
+ * @param {string} [xAuditUser] Optional audit user header
1094
+ * @param {ReplaceCardBody} [replaceCardBody]
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ replaceCard: (id_1, xIdempotencyKey_1, xAuditUser_1, replaceCardBody_1, ...args_1) => __awaiter(this, [id_1, xIdempotencyKey_1, xAuditUser_1, replaceCardBody_1, ...args_1], void 0, function* (id, xIdempotencyKey, xAuditUser, replaceCardBody, options = {}) {
1099
+ // verify required parameter 'id' is not null or undefined
1100
+ assertParamExists('replaceCard', 'id', id);
1101
+ const localVarPath = `/v1/cards/{id}/replace`
1102
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1105
+ let baseOptions;
1106
+ if (configuration) {
1107
+ baseOptions = configuration.baseOptions;
1108
+ }
1109
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1110
+ const localVarHeaderParameter = {};
1111
+ const localVarQueryParameter = {};
1112
+ // authentication bearerAuth required
1113
+ // http bearer authentication required
1114
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1115
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1116
+ if (xIdempotencyKey != null) {
1117
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
1118
+ }
1119
+ if (xAuditUser != null) {
1120
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
1121
+ }
1122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1125
+ localVarRequestOptions.data = serializeDataIfNeeded(replaceCardBody, localVarRequestOptions, configuration);
1126
+ return {
1127
+ url: toPathString(localVarUrlObj),
1128
+ options: localVarRequestOptions,
1129
+ };
1130
+ }),
1131
+ };
1132
+ };
1133
+ /**
1134
+ * UpdateCardApi - functional programming interface
1135
+ * @export
1136
+ */
1137
+ export const UpdateCardApiFp = function (configuration) {
1138
+ const localVarAxiosParamCreator = UpdateCardApiAxiosParamCreator(configuration);
1139
+ return {
1140
+ /**
1141
+ * To change the latest card version status from `INITIAL` to `ACTIVE`, send a request to this endpoint.
1142
+ * @summary Activate Card
1143
+ * @param {string} id Unique ID of the card that you want to activate.
1144
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1145
+ * @param {string} [xAuditUser] Optional audit user header
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ activateCard(id, xIdempotencyKey, xAuditUser, options) {
1150
+ return __awaiter(this, void 0, void 0, function* () {
1151
+ var _a, _b, _c;
1152
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.activateCard(id, xIdempotencyKey, xAuditUser, options);
1153
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1154
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardApi.activateCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1155
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1156
+ });
1157
+ },
1158
+ /**
1159
+ * Send a request to this endpoint when you want to update details of a specific card.
1160
+ * @summary Partially Update Card
1161
+ * @param {string} id Unique identifier of the card that you want to update.
1162
+ * @param {UpdateCardBody} updateCardBody Details of the card that you want to update.
1163
+ * @param {string} [xAuditUser] Optional audit user header
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ patchCard(id, updateCardBody, xAuditUser, options) {
1168
+ return __awaiter(this, void 0, void 0, function* () {
1169
+ var _a, _b, _c;
1170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patchCard(id, updateCardBody, xAuditUser, options);
1171
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1172
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardApi.patchCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1173
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1174
+ });
1175
+ },
1176
+ /**
1177
+ * Send a request to this endpoint when you want to reissue a card.
1178
+ * @summary Reissue Card
1179
+ * @param {string} id Unique identifier of the card that you want to reissue.
1180
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1181
+ * @param {string} [xAuditUser] Optional audit user header
1182
+ * @param {ReissueCardBody} [reissueCardBody]
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options) {
1187
+ return __awaiter(this, void 0, void 0, function* () {
1188
+ var _a, _b, _c;
1189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options);
1190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1191
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardApi.reissueCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1193
+ });
1194
+ },
1195
+ /**
1196
+ * Send a request to this endpoint when you want to reorder existing PIN for a plastic card, if the cardholder has forgotten it. The PIN is delivered to the `preferredPinAddress`. If `preferredPinAddress` is absent, the PIN is delivered to the `preferredCardAddress`.
1197
+ * @summary Reorder PIN for Card
1198
+ * @param {string} id Unique identifier of the card for which you want to reorder PIN.
1199
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1200
+ * @param {string} [xAuditUser] Optional audit user header
1201
+ * @param {*} [options] Override http request option.
1202
+ * @throws {RequiredError}
1203
+ */
1204
+ reorderPin(id, xIdempotencyKey, xAuditUser, options) {
1205
+ return __awaiter(this, void 0, void 0, function* () {
1206
+ var _a, _b, _c;
1207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderPin(id, xIdempotencyKey, xAuditUser, options);
1208
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1209
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardApi.reorderPin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1211
+ });
1212
+ },
1213
+ /**
1214
+ * Send a request to this endpoint when you want to replace the current card. The old card is closed and a new card is issued, where the PAN and the expiry date are updated.
1215
+ * @summary Replace Card
1216
+ * @param {string} id Unique identifier of the card to be replaced.
1217
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1218
+ * @param {string} [xAuditUser] Optional audit user header
1219
+ * @param {ReplaceCardBody} [replaceCardBody]
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options) {
1224
+ return __awaiter(this, void 0, void 0, function* () {
1225
+ var _a, _b, _c;
1226
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options);
1227
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1228
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UpdateCardApi.replaceCard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1229
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1230
+ });
1231
+ },
1232
+ };
1233
+ };
1234
+ /**
1235
+ * UpdateCardApi - factory interface
1236
+ * @export
1237
+ */
1238
+ export const UpdateCardApiFactory = function (configuration, basePath, axios) {
1239
+ const localVarFp = UpdateCardApiFp(configuration);
1240
+ return {
1241
+ /**
1242
+ * To change the latest card version status from `INITIAL` to `ACTIVE`, send a request to this endpoint.
1243
+ * @summary Activate Card
1244
+ * @param {string} id Unique ID of the card that you want to activate.
1245
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1246
+ * @param {string} [xAuditUser] Optional audit user header
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ */
1250
+ activateCard(id, xIdempotencyKey, xAuditUser, options) {
1251
+ return localVarFp.activateCard(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
1252
+ },
1253
+ /**
1254
+ * Send a request to this endpoint when you want to update details of a specific card.
1255
+ * @summary Partially Update Card
1256
+ * @param {string} id Unique identifier of the card that you want to update.
1257
+ * @param {UpdateCardBody} updateCardBody Details of the card that you want to update.
1258
+ * @param {string} [xAuditUser] Optional audit user header
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ patchCard(id, updateCardBody, xAuditUser, options) {
1263
+ return localVarFp.patchCard(id, updateCardBody, xAuditUser, options).then((request) => request(axios, basePath));
1264
+ },
1265
+ /**
1266
+ * Send a request to this endpoint when you want to reissue a card.
1267
+ * @summary Reissue Card
1268
+ * @param {string} id Unique identifier of the card that you want to reissue.
1269
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1270
+ * @param {string} [xAuditUser] Optional audit user header
1271
+ * @param {ReissueCardBody} [reissueCardBody]
1272
+ * @param {*} [options] Override http request option.
1273
+ * @throws {RequiredError}
1274
+ */
1275
+ reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options) {
1276
+ return localVarFp.reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options).then((request) => request(axios, basePath));
1277
+ },
1278
+ /**
1279
+ * Send a request to this endpoint when you want to reorder existing PIN for a plastic card, if the cardholder has forgotten it. The PIN is delivered to the `preferredPinAddress`. If `preferredPinAddress` is absent, the PIN is delivered to the `preferredCardAddress`.
1280
+ * @summary Reorder PIN for Card
1281
+ * @param {string} id Unique identifier of the card for which you want to reorder PIN.
1282
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1283
+ * @param {string} [xAuditUser] Optional audit user header
1284
+ * @param {*} [options] Override http request option.
1285
+ * @throws {RequiredError}
1286
+ */
1287
+ reorderPin(id, xIdempotencyKey, xAuditUser, options) {
1288
+ return localVarFp.reorderPin(id, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
1289
+ },
1290
+ /**
1291
+ * Send a request to this endpoint when you want to replace the current card. The old card is closed and a new card is issued, where the PAN and the expiry date are updated.
1292
+ * @summary Replace Card
1293
+ * @param {string} id Unique identifier of the card to be replaced.
1294
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1295
+ * @param {string} [xAuditUser] Optional audit user header
1296
+ * @param {ReplaceCardBody} [replaceCardBody]
1297
+ * @param {*} [options] Override http request option.
1298
+ * @throws {RequiredError}
1299
+ */
1300
+ replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options) {
1301
+ return localVarFp.replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options).then((request) => request(axios, basePath));
1302
+ },
1303
+ };
1304
+ };
1305
+ /**
1306
+ * UpdateCardApi - object-oriented interface
1307
+ * @export
1308
+ * @class UpdateCardApi
1309
+ * @extends {BaseAPI}
1310
+ */
1311
+ export class UpdateCardApi extends BaseAPI {
1312
+ /**
1313
+ * To change the latest card version status from `INITIAL` to `ACTIVE`, send a request to this endpoint.
1314
+ * @summary Activate Card
1315
+ * @param {string} id Unique ID of the card that you want to activate.
1316
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1317
+ * @param {string} [xAuditUser] Optional audit user header
1318
+ * @param {*} [options] Override http request option.
1319
+ * @throws {RequiredError}
1320
+ * @memberof UpdateCardApi
1321
+ */
1322
+ activateCard(id, xIdempotencyKey, xAuditUser, options) {
1323
+ return UpdateCardApiFp(this.configuration).activateCard(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
1324
+ }
1325
+ /**
1326
+ * Send a request to this endpoint when you want to update details of a specific card.
1327
+ * @summary Partially Update Card
1328
+ * @param {string} id Unique identifier of the card that you want to update.
1329
+ * @param {UpdateCardBody} updateCardBody Details of the card that you want to update.
1330
+ * @param {string} [xAuditUser] Optional audit user header
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ * @memberof UpdateCardApi
1334
+ */
1335
+ patchCard(id, updateCardBody, xAuditUser, options) {
1336
+ return UpdateCardApiFp(this.configuration).patchCard(id, updateCardBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
1337
+ }
1338
+ /**
1339
+ * Send a request to this endpoint when you want to reissue a card.
1340
+ * @summary Reissue Card
1341
+ * @param {string} id Unique identifier of the card that you want to reissue.
1342
+ * @param {string} [xIdempotencyKey] Idempotency key of the request
1343
+ * @param {string} [xAuditUser] Optional audit user header
1344
+ * @param {ReissueCardBody} [reissueCardBody]
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ * @memberof UpdateCardApi
1348
+ */
1349
+ reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options) {
1350
+ return UpdateCardApiFp(this.configuration).reissueCard(id, xIdempotencyKey, xAuditUser, reissueCardBody, options).then((request) => request(this.axios, this.basePath));
1351
+ }
1352
+ /**
1353
+ * Send a request to this endpoint when you want to reorder existing PIN for a plastic card, if the cardholder has forgotten it. The PIN is delivered to the `preferredPinAddress`. If `preferredPinAddress` is absent, the PIN is delivered to the `preferredCardAddress`.
1354
+ * @summary Reorder PIN for Card
1355
+ * @param {string} id Unique identifier of the card for which you want to reorder PIN.
1356
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1357
+ * @param {string} [xAuditUser] Optional audit user header
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ * @memberof UpdateCardApi
1361
+ */
1362
+ reorderPin(id, xIdempotencyKey, xAuditUser, options) {
1363
+ return UpdateCardApiFp(this.configuration).reorderPin(id, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
1364
+ }
1365
+ /**
1366
+ * Send a request to this endpoint when you want to replace the current card. The old card is closed and a new card is issued, where the PAN and the expiry date are updated.
1367
+ * @summary Replace Card
1368
+ * @param {string} id Unique identifier of the card to be replaced.
1369
+ * @param {string} [xIdempotencyKey] Idempotency key of the request.
1370
+ * @param {string} [xAuditUser] Optional audit user header
1371
+ * @param {ReplaceCardBody} [replaceCardBody]
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ * @memberof UpdateCardApi
1375
+ */
1376
+ replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options) {
1377
+ return UpdateCardApiFp(this.configuration).replaceCard(id, xIdempotencyKey, xAuditUser, replaceCardBody, options).then((request) => request(this.axios, this.basePath));
1378
+ }
1379
+ }