@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,1239 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cardholder API
6
+ * Endpoints for doing various actions connected to the Cardholder entity. All date-time fields adhere to the ISO 8601 standard unless specified otherwise. For example: 2024-05-31T06:55:17Z
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: info@enfuce.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.UpdateCardholderApi = exports.UpdateCardholderApiFactory = exports.UpdateCardholderApiFp = exports.UpdateCardholderApiAxiosParamCreator = exports.GetCardsByCardholderIdApi = exports.GetCardsByCardholderIdApiFactory = exports.GetCardsByCardholderIdApiFp = exports.GetCardsByCardholderIdApiAxiosParamCreator = exports.GetCardholderApi = exports.GetCardholderApiFactory = exports.GetCardholderApiFp = exports.GetCardholderApiAxiosParamCreator = exports.CreateCardholderApi = exports.CreateCardholderApiFactory = exports.CreateCardholderApiFp = exports.CreateCardholderApiAxiosParamCreator = exports.RiskScore = exports.PinStatus = exports.PinDeliveryType = exports.Locale = exports.CountryCodesAlpha3 = exports.CardVersionStatus = exports.CardStatus = exports.CardScheme = exports.CardRole = exports.CardDeliveryType = exports.CardConfigurationType = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ /**
33
+ * The type of card defined by this card configuration.
34
+ * @export
35
+ * @enum {string}
36
+ */
37
+ exports.CardConfigurationType = {
38
+ Debit: 'DEBIT',
39
+ Credit: 'CREDIT',
40
+ Combo: 'COMBO'
41
+ };
42
+ /**
43
+ * 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.
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ exports.CardDeliveryType = {
48
+ Mail: 'MAIL',
49
+ Courier: 'COURIER',
50
+ Custom1: 'CUSTOM_1',
51
+ Custom2: 'CUSTOM_2',
52
+ Custom3: 'CUSTOM_3',
53
+ Custom4: 'CUSTOM_4',
54
+ Custom5: 'CUSTOM_5'
55
+ };
56
+ /**
57
+ * 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.
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ exports.CardRole = {
62
+ MainCard: 'MAIN_CARD',
63
+ CardApplication: 'CARD_APPLICATION'
64
+ };
65
+ /**
66
+ *
67
+ * @export
68
+ * @enum {string}
69
+ */
70
+ exports.CardScheme = {
71
+ Mastercard: 'MASTERCARD',
72
+ Visa: 'VISA'
73
+ };
74
+ /**
75
+ * - 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.
76
+ * @export
77
+ * @enum {string}
78
+ */
79
+ exports.CardStatus = {
80
+ Active: 'ACTIVE',
81
+ Blocked: 'BLOCKED',
82
+ BlockedSuspectedFraud: 'BLOCKED_SUSPECTED_FRAUD',
83
+ ClosedDueToFraud: 'CLOSED_DUE_TO_FRAUD',
84
+ ClosedLost: 'CLOSED_LOST',
85
+ ClosedStolen: 'CLOSED_STOLEN',
86
+ Closed: 'CLOSED',
87
+ ClosedExpired: 'CLOSED_EXPIRED'
88
+ };
89
+ /**
90
+ * - 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.
91
+ * @export
92
+ * @enum {string}
93
+ */
94
+ exports.CardVersionStatus = {
95
+ Active: 'ACTIVE',
96
+ Initial: 'INITIAL',
97
+ Closed: 'CLOSED'
98
+ };
99
+ /**
100
+ * ISO 3166-1 alpha-3 country codes. XKX is used for the Kosovo.
101
+ * @export
102
+ * @enum {string}
103
+ */
104
+ exports.CountryCodesAlpha3 = {
105
+ Abw: 'ABW',
106
+ Afg: 'AFG',
107
+ Ago: 'AGO',
108
+ Aia: 'AIA',
109
+ Ala: 'ALA',
110
+ Alb: 'ALB',
111
+ And: 'AND',
112
+ Are: 'ARE',
113
+ Arg: 'ARG',
114
+ Arm: 'ARM',
115
+ Asm: 'ASM',
116
+ Ata: 'ATA',
117
+ Atf: 'ATF',
118
+ Atg: 'ATG',
119
+ Aus: 'AUS',
120
+ Aut: 'AUT',
121
+ Aze: 'AZE',
122
+ Bdi: 'BDI',
123
+ Bel: 'BEL',
124
+ Ben: 'BEN',
125
+ Bes: 'BES',
126
+ Bfa: 'BFA',
127
+ Bgd: 'BGD',
128
+ Bgr: 'BGR',
129
+ Bhr: 'BHR',
130
+ Bhs: 'BHS',
131
+ Bih: 'BIH',
132
+ Blm: 'BLM',
133
+ Blr: 'BLR',
134
+ Blz: 'BLZ',
135
+ Bmu: 'BMU',
136
+ Bol: 'BOL',
137
+ Bra: 'BRA',
138
+ Brb: 'BRB',
139
+ Brn: 'BRN',
140
+ Btn: 'BTN',
141
+ Bvt: 'BVT',
142
+ Bwa: 'BWA',
143
+ Caf: 'CAF',
144
+ Can: 'CAN',
145
+ Cck: 'CCK',
146
+ Che: 'CHE',
147
+ Chl: 'CHL',
148
+ Chn: 'CHN',
149
+ Civ: 'CIV',
150
+ Cmr: 'CMR',
151
+ Cod: 'COD',
152
+ Cog: 'COG',
153
+ Cok: 'COK',
154
+ Col: 'COL',
155
+ Com: 'COM',
156
+ Cpv: 'CPV',
157
+ Cri: 'CRI',
158
+ Cub: 'CUB',
159
+ Cuw: 'CUW',
160
+ Cxr: 'CXR',
161
+ Cym: 'CYM',
162
+ Cyp: 'CYP',
163
+ Cze: 'CZE',
164
+ Deu: 'DEU',
165
+ Dji: 'DJI',
166
+ Dma: 'DMA',
167
+ Dnk: 'DNK',
168
+ Dom: 'DOM',
169
+ Dza: 'DZA',
170
+ Ecu: 'ECU',
171
+ Egy: 'EGY',
172
+ Eri: 'ERI',
173
+ Esh: 'ESH',
174
+ Esp: 'ESP',
175
+ Est: 'EST',
176
+ Eth: 'ETH',
177
+ Fin: 'FIN',
178
+ Fji: 'FJI',
179
+ Flk: 'FLK',
180
+ Fra: 'FRA',
181
+ Fro: 'FRO',
182
+ Fsm: 'FSM',
183
+ Gab: 'GAB',
184
+ Gbr: 'GBR',
185
+ Geo: 'GEO',
186
+ Ggy: 'GGY',
187
+ Gha: 'GHA',
188
+ Gib: 'GIB',
189
+ Gin: 'GIN',
190
+ Glp: 'GLP',
191
+ Gmb: 'GMB',
192
+ Gnb: 'GNB',
193
+ Gnq: 'GNQ',
194
+ Grc: 'GRC',
195
+ Grd: 'GRD',
196
+ Grl: 'GRL',
197
+ Gtm: 'GTM',
198
+ Guf: 'GUF',
199
+ Gum: 'GUM',
200
+ Guy: 'GUY',
201
+ Hkg: 'HKG',
202
+ Hmd: 'HMD',
203
+ Hnd: 'HND',
204
+ Hrv: 'HRV',
205
+ Hti: 'HTI',
206
+ Hun: 'HUN',
207
+ Idn: 'IDN',
208
+ Imn: 'IMN',
209
+ Ind: 'IND',
210
+ Iot: 'IOT',
211
+ Irl: 'IRL',
212
+ Irn: 'IRN',
213
+ Irq: 'IRQ',
214
+ Isl: 'ISL',
215
+ Isr: 'ISR',
216
+ Ita: 'ITA',
217
+ Jam: 'JAM',
218
+ Jey: 'JEY',
219
+ Jor: 'JOR',
220
+ Jpn: 'JPN',
221
+ Kaz: 'KAZ',
222
+ Ken: 'KEN',
223
+ Kgz: 'KGZ',
224
+ Khm: 'KHM',
225
+ Kir: 'KIR',
226
+ Kna: 'KNA',
227
+ Kor: 'KOR',
228
+ Kwt: 'KWT',
229
+ Lao: 'LAO',
230
+ Lbn: 'LBN',
231
+ Lbr: 'LBR',
232
+ Lby: 'LBY',
233
+ Lca: 'LCA',
234
+ Lie: 'LIE',
235
+ Lka: 'LKA',
236
+ Lso: 'LSO',
237
+ Ltu: 'LTU',
238
+ Lux: 'LUX',
239
+ Lva: 'LVA',
240
+ Mac: 'MAC',
241
+ Maf: 'MAF',
242
+ Mar: 'MAR',
243
+ Mco: 'MCO',
244
+ Mda: 'MDA',
245
+ Mdg: 'MDG',
246
+ Mdv: 'MDV',
247
+ Mex: 'MEX',
248
+ Mhl: 'MHL',
249
+ Mkd: 'MKD',
250
+ Mli: 'MLI',
251
+ Mlt: 'MLT',
252
+ Mmr: 'MMR',
253
+ Mne: 'MNE',
254
+ Mng: 'MNG',
255
+ Mnp: 'MNP',
256
+ Moz: 'MOZ',
257
+ Mrt: 'MRT',
258
+ Msr: 'MSR',
259
+ Mtq: 'MTQ',
260
+ Mus: 'MUS',
261
+ Mwi: 'MWI',
262
+ Mys: 'MYS',
263
+ Myt: 'MYT',
264
+ Nam: 'NAM',
265
+ Ncl: 'NCL',
266
+ Ner: 'NER',
267
+ Nfk: 'NFK',
268
+ Nga: 'NGA',
269
+ Nic: 'NIC',
270
+ Niu: 'NIU',
271
+ Nld: 'NLD',
272
+ Nor: 'NOR',
273
+ Npl: 'NPL',
274
+ Nru: 'NRU',
275
+ Nzl: 'NZL',
276
+ Omn: 'OMN',
277
+ Pak: 'PAK',
278
+ Pan: 'PAN',
279
+ Pcn: 'PCN',
280
+ Per: 'PER',
281
+ Phl: 'PHL',
282
+ Plw: 'PLW',
283
+ Png: 'PNG',
284
+ Pol: 'POL',
285
+ Pri: 'PRI',
286
+ Prk: 'PRK',
287
+ Prt: 'PRT',
288
+ Pry: 'PRY',
289
+ Pse: 'PSE',
290
+ Pyf: 'PYF',
291
+ Qat: 'QAT',
292
+ Reu: 'REU',
293
+ Rou: 'ROU',
294
+ Rus: 'RUS',
295
+ Rwa: 'RWA',
296
+ Sau: 'SAU',
297
+ Sdn: 'SDN',
298
+ Sen: 'SEN',
299
+ Sgp: 'SGP',
300
+ Sgs: 'SGS',
301
+ Shn: 'SHN',
302
+ Sjm: 'SJM',
303
+ Slb: 'SLB',
304
+ Sle: 'SLE',
305
+ Slv: 'SLV',
306
+ Smr: 'SMR',
307
+ Som: 'SOM',
308
+ Spm: 'SPM',
309
+ Srb: 'SRB',
310
+ Ssd: 'SSD',
311
+ Stp: 'STP',
312
+ Sur: 'SUR',
313
+ Svk: 'SVK',
314
+ Svn: 'SVN',
315
+ Swe: 'SWE',
316
+ Swz: 'SWZ',
317
+ Sxm: 'SXM',
318
+ Syc: 'SYC',
319
+ Syr: 'SYR',
320
+ Tca: 'TCA',
321
+ Tcd: 'TCD',
322
+ Tgo: 'TGO',
323
+ Tha: 'THA',
324
+ Tjk: 'TJK',
325
+ Tkl: 'TKL',
326
+ Tkm: 'TKM',
327
+ Tls: 'TLS',
328
+ Ton: 'TON',
329
+ Tto: 'TTO',
330
+ Tun: 'TUN',
331
+ Tur: 'TUR',
332
+ Tuv: 'TUV',
333
+ Twn: 'TWN',
334
+ Tza: 'TZA',
335
+ Uga: 'UGA',
336
+ Ukr: 'UKR',
337
+ Umi: 'UMI',
338
+ Ury: 'URY',
339
+ Usa: 'USA',
340
+ Uzb: 'UZB',
341
+ Vat: 'VAT',
342
+ Vct: 'VCT',
343
+ Ven: 'VEN',
344
+ Vgb: 'VGB',
345
+ Vir: 'VIR',
346
+ Vnm: 'VNM',
347
+ Vut: 'VUT',
348
+ Wlf: 'WLF',
349
+ Wsm: 'WSM',
350
+ Yem: 'YEM',
351
+ Zaf: 'ZAF',
352
+ Zmb: 'ZMB',
353
+ Zwe: 'ZWE',
354
+ Xkx: 'XKX'
355
+ };
356
+ /**
357
+ * Cardholder\'s language and country code in RFC 5646 format. Temporary for backwards compatibility, the API also accepts legacy underscore values such as en_GB, but will be removed in future releases. Responses and events always use the RFC 5646 hyphenated format.
358
+ * @export
359
+ * @enum {string}
360
+ */
361
+ exports.Locale = {
362
+ AfZa: 'af-ZA',
363
+ ArAe: 'ar-AE',
364
+ ArBh: 'ar-BH',
365
+ ArDz: 'ar-DZ',
366
+ ArEg: 'ar-EG',
367
+ ArIq: 'ar-IQ',
368
+ ArJo: 'ar-JO',
369
+ ArKw: 'ar-KW',
370
+ ArLb: 'ar-LB',
371
+ ArLy: 'ar-LY',
372
+ ArMa: 'ar-MA',
373
+ ArOm: 'ar-OM',
374
+ ArQa: 'ar-QA',
375
+ ArSa: 'ar-SA',
376
+ ArSy: 'ar-SY',
377
+ ArTn: 'ar-TN',
378
+ ArYe: 'ar-YE',
379
+ AzAz: 'az-AZ',
380
+ BeBy: 'be-BY',
381
+ BgBg: 'bg-BG',
382
+ BnIn: 'bn-IN',
383
+ BsBa: 'bs-BA',
384
+ CaEs: 'ca-ES',
385
+ CsCz: 'cs-CZ',
386
+ CyGb: 'cy-GB',
387
+ DaDk: 'da-DK',
388
+ DeAt: 'de-AT',
389
+ DeCh: 'de-CH',
390
+ DeDe: 'de-DE',
391
+ DeLi: 'de-LI',
392
+ DeNl: 'de-NL',
393
+ ElGr: 'el-GR',
394
+ EnAu: 'en-AU',
395
+ EnBz: 'en-BZ',
396
+ EnCa: 'en-CA',
397
+ EnGb: 'en-GB',
398
+ EnIe: 'en-IE',
399
+ EnJm: 'en-JM',
400
+ EnMt: 'en-MT',
401
+ EnNz: 'en-NZ',
402
+ EnPh: 'en-PH',
403
+ EnTt: 'en-TT',
404
+ EnUs: 'en-US',
405
+ EnVi: 'en-VI',
406
+ EnZa: 'en-ZA',
407
+ EnZw: 'en-ZW',
408
+ EsAr: 'es-AR',
409
+ EsBo: 'es-BO',
410
+ EsCl: 'es-CL',
411
+ EsCo: 'es-CO',
412
+ EsCr: 'es-CR',
413
+ EsDo: 'es-DO',
414
+ EsEc: 'es-EC',
415
+ EsEs: 'es-ES',
416
+ EsGt: 'es-GT',
417
+ EsHn: 'es-HN',
418
+ EsMx: 'es-MX',
419
+ EsNi: 'es-NI',
420
+ EsPa: 'es-PA',
421
+ EsPe: 'es-PE',
422
+ EsPr: 'es-PR',
423
+ EsPy: 'es-PY',
424
+ EsSv: 'es-SV',
425
+ EsUy: 'es-UY',
426
+ EsVe: 'es-VE',
427
+ EtEe: 'et-EE',
428
+ EuEs: 'eu-ES',
429
+ FaIr: 'fa-IR',
430
+ FiFi: 'fi-FI',
431
+ FoFo: 'fo-FO',
432
+ FrBe: 'fr-BE',
433
+ FrCa: 'fr-CA',
434
+ FrCh: 'fr-CH',
435
+ FrFr: 'fr-FR',
436
+ FrMc: 'fr-MC',
437
+ FrNl: 'fr-NL',
438
+ GaIe: 'ga-IE',
439
+ GlEs: 'gl-ES',
440
+ GuIn: 'gu-IN',
441
+ HeIl: 'he-IL',
442
+ HiIn: 'hi-IN',
443
+ HrHr: 'hr-HR',
444
+ HuHu: 'hu-HU',
445
+ HyAm: 'hy-AM',
446
+ IdId: 'id-ID',
447
+ IsIs: 'is-IS',
448
+ ItCh: 'it-CH',
449
+ ItIt: 'it-IT',
450
+ JaJp: 'ja-JP',
451
+ KaGe: 'ka-GE',
452
+ KkKz: 'kk-KZ',
453
+ KlGl: 'kl-GL',
454
+ KnIn: 'kn-IN',
455
+ KoKr: 'ko-KR',
456
+ KokIn: 'kok-IN',
457
+ LtLt: 'lt-LT',
458
+ LvLv: 'lv-LV',
459
+ MkMk: 'mk-MK',
460
+ MlIn: 'ml-IN',
461
+ MnMn: 'mn-MN',
462
+ MrIn: 'mr-IN',
463
+ MsBn: 'ms-BN',
464
+ MsMy: 'ms-MY',
465
+ MtMt: 'mt-MT',
466
+ NbNo: 'nb-NO',
467
+ NlBe: 'nl-BE',
468
+ NlNl: 'nl-NL',
469
+ NnNo: 'nn-NO',
470
+ NoNo: 'no-NO',
471
+ PaIn: 'pa-IN',
472
+ PlPl: 'pl-PL',
473
+ PtBr: 'pt-BR',
474
+ PtPt: 'pt-PT',
475
+ RoRo: 'ro-RO',
476
+ RuRu: 'ru-RU',
477
+ SeNo: 'se-NO',
478
+ SkSk: 'sk-SK',
479
+ SlSi: 'sl-SI',
480
+ SqAl: 'sq-AL',
481
+ SrBa: 'sr-BA',
482
+ SrCs: 'sr-CS',
483
+ SvFi: 'sv-FI',
484
+ SvSe: 'sv-SE',
485
+ SwKe: 'sw-KE',
486
+ SyrSy: 'syr-SY',
487
+ TaIn: 'ta-IN',
488
+ TeIn: 'te-IN',
489
+ ThTh: 'th-TH',
490
+ TnZa: 'tn-ZA',
491
+ TrTr: 'tr-TR',
492
+ UkUa: 'uk-UA',
493
+ UzUz: 'uz-UZ',
494
+ ViVn: 'vi-VN',
495
+ XhZa: 'xh-ZA',
496
+ ZhCn: 'zh-CN',
497
+ ZhHk: 'zh-HK',
498
+ ZhMo: 'zh-MO',
499
+ ZhSg: 'zh-SG',
500
+ ZhTw: 'zh-TW',
501
+ ZuZa: 'zu-ZA',
502
+ AfZa2: 'af_ZA',
503
+ ArAe2: 'ar_AE',
504
+ ArBh2: 'ar_BH',
505
+ ArDz2: 'ar_DZ',
506
+ ArEg2: 'ar_EG',
507
+ ArIq2: 'ar_IQ',
508
+ ArJo2: 'ar_JO',
509
+ ArKw2: 'ar_KW',
510
+ ArLb2: 'ar_LB',
511
+ ArLy2: 'ar_LY',
512
+ ArMa2: 'ar_MA',
513
+ ArOm2: 'ar_OM',
514
+ ArQa2: 'ar_QA',
515
+ ArSa2: 'ar_SA',
516
+ ArSy2: 'ar_SY',
517
+ ArTn2: 'ar_TN',
518
+ ArYe2: 'ar_YE',
519
+ AzAz2: 'az_AZ',
520
+ BeBy2: 'be_BY',
521
+ BgBg2: 'bg_BG',
522
+ BnIn2: 'bn_IN',
523
+ BsBa2: 'bs_BA',
524
+ CaEs2: 'ca_ES',
525
+ CsCz2: 'cs_CZ',
526
+ CyGb2: 'cy_GB',
527
+ DaDk2: 'da_DK',
528
+ DeAt2: 'de_AT',
529
+ DeCh2: 'de_CH',
530
+ DeDe2: 'de_DE',
531
+ DeLi2: 'de_LI',
532
+ DeNl2: 'de_NL',
533
+ ElGr2: 'el_GR',
534
+ EnAu2: 'en_AU',
535
+ EnBz2: 'en_BZ',
536
+ EnCa2: 'en_CA',
537
+ EnGb2: 'en_GB',
538
+ EnIe2: 'en_IE',
539
+ EnJm2: 'en_JM',
540
+ EnMt2: 'en_MT',
541
+ EnNz2: 'en_NZ',
542
+ EnPh2: 'en_PH',
543
+ EnTt2: 'en_TT',
544
+ EnUs2: 'en_US',
545
+ EnVi2: 'en_VI',
546
+ EnZa2: 'en_ZA',
547
+ EnZw2: 'en_ZW',
548
+ EsAr2: 'es_AR',
549
+ EsBo2: 'es_BO',
550
+ EsCl2: 'es_CL',
551
+ EsCo2: 'es_CO',
552
+ EsCr2: 'es_CR',
553
+ EsDo2: 'es_DO',
554
+ EsEc2: 'es_EC',
555
+ EsEs2: 'es_ES',
556
+ EsGt2: 'es_GT',
557
+ EsHn2: 'es_HN',
558
+ EsMx2: 'es_MX',
559
+ EsNi2: 'es_NI',
560
+ EsPa2: 'es_PA',
561
+ EsPe2: 'es_PE',
562
+ EsPr2: 'es_PR',
563
+ EsPy2: 'es_PY',
564
+ EsSv2: 'es_SV',
565
+ EsUy2: 'es_UY',
566
+ EsVe2: 'es_VE',
567
+ EtEe2: 'et_EE',
568
+ EuEs2: 'eu_ES',
569
+ FaIr2: 'fa_IR',
570
+ FiFi2: 'fi_FI',
571
+ FoFo2: 'fo_FO',
572
+ FrBe2: 'fr_BE',
573
+ FrCa2: 'fr_CA',
574
+ FrCh2: 'fr_CH',
575
+ FrFr2: 'fr_FR',
576
+ FrMc2: 'fr_MC',
577
+ FrNl2: 'fr_NL',
578
+ GaIe2: 'ga_IE',
579
+ GlEs2: 'gl_ES',
580
+ GuIn2: 'gu_IN',
581
+ HeIl2: 'he_IL',
582
+ HiIn2: 'hi_IN',
583
+ HrHr2: 'hr_HR',
584
+ HuHu2: 'hu_HU',
585
+ HyAm2: 'hy_AM',
586
+ IdId2: 'id_ID',
587
+ IsIs2: 'is_IS',
588
+ ItCh2: 'it_CH',
589
+ ItIt2: 'it_IT',
590
+ JaJp2: 'ja_JP',
591
+ KaGe2: 'ka_GE',
592
+ KkKz2: 'kk_KZ',
593
+ KlGl2: 'kl_GL',
594
+ KnIn2: 'kn_IN',
595
+ KoKr2: 'ko_KR',
596
+ KokIn2: 'kok_IN',
597
+ LtLt2: 'lt_LT',
598
+ LvLv2: 'lv_LV',
599
+ MkMk2: 'mk_MK',
600
+ MlIn2: 'ml_IN',
601
+ MnMn2: 'mn_MN',
602
+ MrIn2: 'mr_IN',
603
+ MsBn2: 'ms_BN',
604
+ MsMy2: 'ms_MY',
605
+ MtMt2: 'mt_MT',
606
+ NbNo2: 'nb_NO',
607
+ NlBe2: 'nl_BE',
608
+ NlNl2: 'nl_NL',
609
+ NnNo2: 'nn_NO',
610
+ NoNo2: 'no_NO',
611
+ PaIn2: 'pa_IN',
612
+ PlPl2: 'pl_PL',
613
+ PtBr2: 'pt_BR',
614
+ PtPt2: 'pt_PT',
615
+ RoRo2: 'ro_RO',
616
+ RuRu2: 'ru_RU',
617
+ SeNo2: 'se_NO',
618
+ SkSk2: 'sk_SK',
619
+ SlSi2: 'sl_SI',
620
+ SqAl2: 'sq_AL',
621
+ SrBa2: 'sr_BA',
622
+ SrCs2: 'sr_CS',
623
+ SvFi2: 'sv_FI',
624
+ SvSe2: 'sv_SE',
625
+ SwKe2: 'sw_KE',
626
+ SyrSy2: 'syr_SY',
627
+ TaIn2: 'ta_IN',
628
+ TeIn2: 'te_IN',
629
+ ThTh2: 'th_TH',
630
+ TnZa2: 'tn_ZA',
631
+ TrTr2: 'tr_TR',
632
+ UkUa2: 'uk_UA',
633
+ UzUz2: 'uz_UZ',
634
+ ViVn2: 'vi_VN',
635
+ XhZa2: 'xh_ZA',
636
+ ZhCn2: 'zh_CN',
637
+ ZhHk2: 'zh_HK',
638
+ ZhMo2: 'zh_MO',
639
+ ZhSg2: 'zh_SG',
640
+ ZhTw2: 'zh_TW',
641
+ ZuZa2: 'zu_ZA'
642
+ };
643
+ /**
644
+ * 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.
645
+ * @export
646
+ * @enum {string}
647
+ */
648
+ exports.PinDeliveryType = {
649
+ Mail: 'MAIL',
650
+ Courier: 'COURIER',
651
+ Epin: 'EPIN'
652
+ };
653
+ /**
654
+ * - 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.
655
+ * @export
656
+ * @enum {string}
657
+ */
658
+ exports.PinStatus = {
659
+ Generated: 'GENERATED',
660
+ Waiting: 'WAITING',
661
+ Set: 'SET',
662
+ Inherited: 'INHERITED'
663
+ };
664
+ /**
665
+ * Risk assessment score of the customer: - High - High-risk customer - Med - Medium-risk customer - Low - Low-risk customer - Pep - Politically Exposed Person (PEP) - Prohibited - Customer sanctioned or outside of risk appetite If you are using Enfuce as your BIN sponsor (under ELS or EUK licensing), you are required to populate this field due to regulatory requirements.
666
+ * @export
667
+ * @enum {string}
668
+ */
669
+ exports.RiskScore = {
670
+ High: 'High',
671
+ Med: 'Med',
672
+ Low: 'Low',
673
+ Pep: 'Pep',
674
+ Prohibited: 'Prohibited'
675
+ };
676
+ /**
677
+ * CreateCardholderApi - axios parameter creator
678
+ * @export
679
+ */
680
+ const CreateCardholderApiAxiosParamCreator = function (configuration) {
681
+ return {
682
+ /**
683
+ * Send a request to this endpoint to create a new cardholder record in Enfuce.
684
+ * @summary Create Cardholder
685
+ * @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
686
+ * @param {string} [xIdempotencyKey]
687
+ * @param {string} [xAuditUser] Optional audit user header
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ createCardholder: (createCardholderBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [createCardholderBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (createCardholderBody, xIdempotencyKey, xAuditUser, options = {}) {
692
+ // verify required parameter 'createCardholderBody' is not null or undefined
693
+ (0, common_1.assertParamExists)('createCardholder', 'createCardholderBody', createCardholderBody);
694
+ const localVarPath = `/v1/cardholders`;
695
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
696
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
697
+ let baseOptions;
698
+ if (configuration) {
699
+ baseOptions = configuration.baseOptions;
700
+ }
701
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
702
+ const localVarHeaderParameter = {};
703
+ const localVarQueryParameter = {};
704
+ // authentication bearerAuth required
705
+ // http bearer authentication required
706
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
707
+ localVarHeaderParameter['Content-Type'] = 'application/json';
708
+ if (xIdempotencyKey != null) {
709
+ localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
710
+ }
711
+ if (xAuditUser != null) {
712
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
713
+ }
714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
717
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCardholderBody, localVarRequestOptions, configuration);
718
+ return {
719
+ url: (0, common_1.toPathString)(localVarUrlObj),
720
+ options: localVarRequestOptions,
721
+ };
722
+ }),
723
+ };
724
+ };
725
+ exports.CreateCardholderApiAxiosParamCreator = CreateCardholderApiAxiosParamCreator;
726
+ /**
727
+ * CreateCardholderApi - functional programming interface
728
+ * @export
729
+ */
730
+ const CreateCardholderApiFp = function (configuration) {
731
+ const localVarAxiosParamCreator = (0, exports.CreateCardholderApiAxiosParamCreator)(configuration);
732
+ return {
733
+ /**
734
+ * Send a request to this endpoint to create a new cardholder record in Enfuce.
735
+ * @summary Create Cardholder
736
+ * @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
737
+ * @param {string} [xIdempotencyKey]
738
+ * @param {string} [xAuditUser] Optional audit user header
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
743
+ return __awaiter(this, void 0, void 0, function* () {
744
+ var _a, _b, _c;
745
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options);
746
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
747
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CreateCardholderApi.createCardholder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
748
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
749
+ });
750
+ },
751
+ };
752
+ };
753
+ exports.CreateCardholderApiFp = CreateCardholderApiFp;
754
+ /**
755
+ * CreateCardholderApi - factory interface
756
+ * @export
757
+ */
758
+ const CreateCardholderApiFactory = function (configuration, basePath, axios) {
759
+ const localVarFp = (0, exports.CreateCardholderApiFp)(configuration);
760
+ return {
761
+ /**
762
+ * Send a request to this endpoint to create a new cardholder record in Enfuce.
763
+ * @summary Create Cardholder
764
+ * @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
765
+ * @param {string} [xIdempotencyKey]
766
+ * @param {string} [xAuditUser] Optional audit user header
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
771
+ return localVarFp.createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
772
+ },
773
+ };
774
+ };
775
+ exports.CreateCardholderApiFactory = CreateCardholderApiFactory;
776
+ /**
777
+ * CreateCardholderApi - object-oriented interface
778
+ * @export
779
+ * @class CreateCardholderApi
780
+ * @extends {BaseAPI}
781
+ */
782
+ class CreateCardholderApi extends base_1.BaseAPI {
783
+ /**
784
+ * Send a request to this endpoint to create a new cardholder record in Enfuce.
785
+ * @summary Create Cardholder
786
+ * @param {CreateCardholderBody} createCardholderBody Details of the new cardholder to be created.
787
+ * @param {string} [xIdempotencyKey]
788
+ * @param {string} [xAuditUser] Optional audit user header
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ * @memberof CreateCardholderApi
792
+ */
793
+ createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options) {
794
+ return (0, exports.CreateCardholderApiFp)(this.configuration).createCardholder(createCardholderBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
795
+ }
796
+ }
797
+ exports.CreateCardholderApi = CreateCardholderApi;
798
+ /**
799
+ * GetCardholderApi - axios parameter creator
800
+ * @export
801
+ */
802
+ const GetCardholderApiAxiosParamCreator = function (configuration) {
803
+ return {
804
+ /**
805
+ * Send a request to this endpoint to retrieve details of a cardholder.
806
+ * @summary Get Cardholder by Cardholder ID
807
+ * @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
808
+ * @param {string} [xAuditUser] Optional audit user header
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ getCardholderById: (id_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, xAuditUser_1, ...args_1], void 0, function* (id, xAuditUser, options = {}) {
813
+ // verify required parameter 'id' is not null or undefined
814
+ (0, common_1.assertParamExists)('getCardholderById', 'id', id);
815
+ const localVarPath = `/v1/cardholders/{id}`
816
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
818
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
819
+ let baseOptions;
820
+ if (configuration) {
821
+ baseOptions = configuration.baseOptions;
822
+ }
823
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
824
+ const localVarHeaderParameter = {};
825
+ const localVarQueryParameter = {};
826
+ // authentication bearerAuth required
827
+ // http bearer authentication required
828
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
829
+ if (xAuditUser != null) {
830
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
831
+ }
832
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
834
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
835
+ return {
836
+ url: (0, common_1.toPathString)(localVarUrlObj),
837
+ options: localVarRequestOptions,
838
+ };
839
+ }),
840
+ /**
841
+ * Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
842
+ * @summary Retrieve List of Cardholders
843
+ * @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
844
+ * @param {string} [xAuditUser] Optional audit user header
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ */
848
+ getCardholders: (customerNumber_1, xAuditUser_1, ...args_1) => __awaiter(this, [customerNumber_1, xAuditUser_1, ...args_1], void 0, function* (customerNumber, xAuditUser, options = {}) {
849
+ // verify required parameter 'customerNumber' is not null or undefined
850
+ (0, common_1.assertParamExists)('getCardholders', 'customerNumber', customerNumber);
851
+ const localVarPath = `/v1/cardholders`;
852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
853
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
854
+ let baseOptions;
855
+ if (configuration) {
856
+ baseOptions = configuration.baseOptions;
857
+ }
858
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
859
+ const localVarHeaderParameter = {};
860
+ const localVarQueryParameter = {};
861
+ // authentication bearerAuth required
862
+ // http bearer authentication required
863
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
864
+ if (customerNumber !== undefined) {
865
+ localVarQueryParameter['customerNumber'] = customerNumber;
866
+ }
867
+ if (xAuditUser != null) {
868
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
869
+ }
870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
871
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
872
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
873
+ return {
874
+ url: (0, common_1.toPathString)(localVarUrlObj),
875
+ options: localVarRequestOptions,
876
+ };
877
+ }),
878
+ };
879
+ };
880
+ exports.GetCardholderApiAxiosParamCreator = GetCardholderApiAxiosParamCreator;
881
+ /**
882
+ * GetCardholderApi - functional programming interface
883
+ * @export
884
+ */
885
+ const GetCardholderApiFp = function (configuration) {
886
+ const localVarAxiosParamCreator = (0, exports.GetCardholderApiAxiosParamCreator)(configuration);
887
+ return {
888
+ /**
889
+ * Send a request to this endpoint to retrieve details of a cardholder.
890
+ * @summary Get Cardholder by Cardholder ID
891
+ * @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
892
+ * @param {string} [xAuditUser] Optional audit user header
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ getCardholderById(id, xAuditUser, options) {
897
+ return __awaiter(this, void 0, void 0, function* () {
898
+ var _a, _b, _c;
899
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardholderById(id, xAuditUser, options);
900
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
901
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GetCardholderApi.getCardholderById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
902
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
903
+ });
904
+ },
905
+ /**
906
+ * Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
907
+ * @summary Retrieve List of Cardholders
908
+ * @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
909
+ * @param {string} [xAuditUser] Optional audit user header
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ getCardholders(customerNumber, xAuditUser, options) {
914
+ return __awaiter(this, void 0, void 0, function* () {
915
+ var _a, _b, _c;
916
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardholders(customerNumber, xAuditUser, options);
917
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
918
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GetCardholderApi.getCardholders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
919
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
920
+ });
921
+ },
922
+ };
923
+ };
924
+ exports.GetCardholderApiFp = GetCardholderApiFp;
925
+ /**
926
+ * GetCardholderApi - factory interface
927
+ * @export
928
+ */
929
+ const GetCardholderApiFactory = function (configuration, basePath, axios) {
930
+ const localVarFp = (0, exports.GetCardholderApiFp)(configuration);
931
+ return {
932
+ /**
933
+ * Send a request to this endpoint to retrieve details of a cardholder.
934
+ * @summary Get Cardholder by Cardholder ID
935
+ * @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
936
+ * @param {string} [xAuditUser] Optional audit user header
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ getCardholderById(id, xAuditUser, options) {
941
+ return localVarFp.getCardholderById(id, xAuditUser, options).then((request) => request(axios, basePath));
942
+ },
943
+ /**
944
+ * Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
945
+ * @summary Retrieve List of Cardholders
946
+ * @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
947
+ * @param {string} [xAuditUser] Optional audit user header
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ getCardholders(customerNumber, xAuditUser, options) {
952
+ return localVarFp.getCardholders(customerNumber, xAuditUser, options).then((request) => request(axios, basePath));
953
+ },
954
+ };
955
+ };
956
+ exports.GetCardholderApiFactory = GetCardholderApiFactory;
957
+ /**
958
+ * GetCardholderApi - object-oriented interface
959
+ * @export
960
+ * @class GetCardholderApi
961
+ * @extends {BaseAPI}
962
+ */
963
+ class GetCardholderApi extends base_1.BaseAPI {
964
+ /**
965
+ * Send a request to this endpoint to retrieve details of a cardholder.
966
+ * @summary Get Cardholder by Cardholder ID
967
+ * @param {string} id Enfuce generated unique ID of the cardholder that you want to retrieve.
968
+ * @param {string} [xAuditUser] Optional audit user header
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ * @memberof GetCardholderApi
972
+ */
973
+ getCardholderById(id, xAuditUser, options) {
974
+ return (0, exports.GetCardholderApiFp)(this.configuration).getCardholderById(id, xAuditUser, options).then((request) => request(this.axios, this.basePath));
975
+ }
976
+ /**
977
+ * Send a request to this endpoint to retrieve details of a cardholder that conforms with the parameters you have entered. <Note>In future, more parameters would be added to return a list of cardholders.</Note>
978
+ * @summary Retrieve List of Cardholders
979
+ * @param {string} customerNumber External unique identifier of the cardholder that you want to retrieve.
980
+ * @param {string} [xAuditUser] Optional audit user header
981
+ * @param {*} [options] Override http request option.
982
+ * @throws {RequiredError}
983
+ * @memberof GetCardholderApi
984
+ */
985
+ getCardholders(customerNumber, xAuditUser, options) {
986
+ return (0, exports.GetCardholderApiFp)(this.configuration).getCardholders(customerNumber, xAuditUser, options).then((request) => request(this.axios, this.basePath));
987
+ }
988
+ }
989
+ exports.GetCardholderApi = GetCardholderApi;
990
+ /**
991
+ * GetCardsByCardholderIdApi - axios parameter creator
992
+ * @export
993
+ */
994
+ const GetCardsByCardholderIdApiAxiosParamCreator = function (configuration) {
995
+ return {
996
+ /**
997
+ * Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
998
+ * @summary Get Cards by Cardholder ID
999
+ * @param {string} id Enfuce generated unique identifier of the cardholder.
1000
+ * @param {number} [page] Zero-based page index (0..N)\&quot;
1001
+ * @param {number} [size] The size of the page to be returned.
1002
+ * @param {string} [xAuditUser] Optional audit user header
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ getCardsByCardholderId: (id_1, page_1, size_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, page_1, size_1, xAuditUser_1, ...args_1], void 0, function* (id, page, size, xAuditUser, options = {}) {
1007
+ // verify required parameter 'id' is not null or undefined
1008
+ (0, common_1.assertParamExists)('getCardsByCardholderId', 'id', id);
1009
+ const localVarPath = `/v1/cardholders/{id}/cards`
1010
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1011
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1012
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1013
+ let baseOptions;
1014
+ if (configuration) {
1015
+ baseOptions = configuration.baseOptions;
1016
+ }
1017
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1018
+ const localVarHeaderParameter = {};
1019
+ const localVarQueryParameter = {};
1020
+ // authentication bearerAuth required
1021
+ // http bearer authentication required
1022
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1023
+ if (page !== undefined) {
1024
+ localVarQueryParameter['page'] = page;
1025
+ }
1026
+ if (size !== undefined) {
1027
+ localVarQueryParameter['size'] = size;
1028
+ }
1029
+ if (xAuditUser != null) {
1030
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
1031
+ }
1032
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1034
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1035
+ return {
1036
+ url: (0, common_1.toPathString)(localVarUrlObj),
1037
+ options: localVarRequestOptions,
1038
+ };
1039
+ }),
1040
+ };
1041
+ };
1042
+ exports.GetCardsByCardholderIdApiAxiosParamCreator = GetCardsByCardholderIdApiAxiosParamCreator;
1043
+ /**
1044
+ * GetCardsByCardholderIdApi - functional programming interface
1045
+ * @export
1046
+ */
1047
+ const GetCardsByCardholderIdApiFp = function (configuration) {
1048
+ const localVarAxiosParamCreator = (0, exports.GetCardsByCardholderIdApiAxiosParamCreator)(configuration);
1049
+ return {
1050
+ /**
1051
+ * Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
1052
+ * @summary Get Cards by Cardholder ID
1053
+ * @param {string} id Enfuce generated unique identifier of the cardholder.
1054
+ * @param {number} [page] Zero-based page index (0..N)\&quot;
1055
+ * @param {number} [size] The size of the page to be returned.
1056
+ * @param {string} [xAuditUser] Optional audit user header
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ getCardsByCardholderId(id, page, size, xAuditUser, options) {
1061
+ return __awaiter(this, void 0, void 0, function* () {
1062
+ var _a, _b, _c;
1063
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCardsByCardholderId(id, page, size, xAuditUser, options);
1064
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1065
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GetCardsByCardholderIdApi.getCardsByCardholderId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1066
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1067
+ });
1068
+ },
1069
+ };
1070
+ };
1071
+ exports.GetCardsByCardholderIdApiFp = GetCardsByCardholderIdApiFp;
1072
+ /**
1073
+ * GetCardsByCardholderIdApi - factory interface
1074
+ * @export
1075
+ */
1076
+ const GetCardsByCardholderIdApiFactory = function (configuration, basePath, axios) {
1077
+ const localVarFp = (0, exports.GetCardsByCardholderIdApiFp)(configuration);
1078
+ return {
1079
+ /**
1080
+ * Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
1081
+ * @summary Get Cards by Cardholder ID
1082
+ * @param {string} id Enfuce generated unique identifier of the cardholder.
1083
+ * @param {number} [page] Zero-based page index (0..N)\&quot;
1084
+ * @param {number} [size] The size of the page to be returned.
1085
+ * @param {string} [xAuditUser] Optional audit user header
1086
+ * @param {*} [options] Override http request option.
1087
+ * @throws {RequiredError}
1088
+ */
1089
+ getCardsByCardholderId(id, page, size, xAuditUser, options) {
1090
+ return localVarFp.getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(axios, basePath));
1091
+ },
1092
+ };
1093
+ };
1094
+ exports.GetCardsByCardholderIdApiFactory = GetCardsByCardholderIdApiFactory;
1095
+ /**
1096
+ * GetCardsByCardholderIdApi - object-oriented interface
1097
+ * @export
1098
+ * @class GetCardsByCardholderIdApi
1099
+ * @extends {BaseAPI}
1100
+ */
1101
+ class GetCardsByCardholderIdApi extends base_1.BaseAPI {
1102
+ /**
1103
+ * Send a request to this endpoint to retrieve a list of main cards associated with a cardholder.
1104
+ * @summary Get Cards by Cardholder ID
1105
+ * @param {string} id Enfuce generated unique identifier of the cardholder.
1106
+ * @param {number} [page] Zero-based page index (0..N)\&quot;
1107
+ * @param {number} [size] The size of the page to be returned.
1108
+ * @param {string} [xAuditUser] Optional audit user header
1109
+ * @param {*} [options] Override http request option.
1110
+ * @throws {RequiredError}
1111
+ * @memberof GetCardsByCardholderIdApi
1112
+ */
1113
+ getCardsByCardholderId(id, page, size, xAuditUser, options) {
1114
+ return (0, exports.GetCardsByCardholderIdApiFp)(this.configuration).getCardsByCardholderId(id, page, size, xAuditUser, options).then((request) => request(this.axios, this.basePath));
1115
+ }
1116
+ }
1117
+ exports.GetCardsByCardholderIdApi = GetCardsByCardholderIdApi;
1118
+ /**
1119
+ * UpdateCardholderApi - axios parameter creator
1120
+ * @export
1121
+ */
1122
+ const UpdateCardholderApiAxiosParamCreator = function (configuration) {
1123
+ return {
1124
+ /**
1125
+ * Send a request to this endpoint to modify details of a cardholder.
1126
+ * @summary Update Cardholder
1127
+ * @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
1128
+ * @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
1129
+ * @param {string} [xAuditUser] Optional audit user header
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ updateCardholder: (id_1, updateCardholderBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [id_1, updateCardholderBody_1, xAuditUser_1, ...args_1], void 0, function* (id, updateCardholderBody, xAuditUser, options = {}) {
1134
+ // verify required parameter 'id' is not null or undefined
1135
+ (0, common_1.assertParamExists)('updateCardholder', 'id', id);
1136
+ // verify required parameter 'updateCardholderBody' is not null or undefined
1137
+ (0, common_1.assertParamExists)('updateCardholder', 'updateCardholderBody', updateCardholderBody);
1138
+ const localVarPath = `/v1/cardholders/{id}`
1139
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1141
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1142
+ let baseOptions;
1143
+ if (configuration) {
1144
+ baseOptions = configuration.baseOptions;
1145
+ }
1146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1147
+ const localVarHeaderParameter = {};
1148
+ const localVarQueryParameter = {};
1149
+ // authentication bearerAuth required
1150
+ // http bearer authentication required
1151
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1152
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1153
+ if (xAuditUser != null) {
1154
+ localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
1155
+ }
1156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1158
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1159
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCardholderBody, localVarRequestOptions, configuration);
1160
+ return {
1161
+ url: (0, common_1.toPathString)(localVarUrlObj),
1162
+ options: localVarRequestOptions,
1163
+ };
1164
+ }),
1165
+ };
1166
+ };
1167
+ exports.UpdateCardholderApiAxiosParamCreator = UpdateCardholderApiAxiosParamCreator;
1168
+ /**
1169
+ * UpdateCardholderApi - functional programming interface
1170
+ * @export
1171
+ */
1172
+ const UpdateCardholderApiFp = function (configuration) {
1173
+ const localVarAxiosParamCreator = (0, exports.UpdateCardholderApiAxiosParamCreator)(configuration);
1174
+ return {
1175
+ /**
1176
+ * Send a request to this endpoint to modify details of a cardholder.
1177
+ * @summary Update Cardholder
1178
+ * @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
1179
+ * @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
1180
+ * @param {string} [xAuditUser] Optional audit user header
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ updateCardholder(id, updateCardholderBody, xAuditUser, options) {
1185
+ return __awaiter(this, void 0, void 0, function* () {
1186
+ var _a, _b, _c;
1187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCardholder(id, updateCardholderBody, xAuditUser, options);
1188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1189
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UpdateCardholderApi.updateCardholder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1190
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1191
+ });
1192
+ },
1193
+ };
1194
+ };
1195
+ exports.UpdateCardholderApiFp = UpdateCardholderApiFp;
1196
+ /**
1197
+ * UpdateCardholderApi - factory interface
1198
+ * @export
1199
+ */
1200
+ const UpdateCardholderApiFactory = function (configuration, basePath, axios) {
1201
+ const localVarFp = (0, exports.UpdateCardholderApiFp)(configuration);
1202
+ return {
1203
+ /**
1204
+ * Send a request to this endpoint to modify details of a cardholder.
1205
+ * @summary Update Cardholder
1206
+ * @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
1207
+ * @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
1208
+ * @param {string} [xAuditUser] Optional audit user header
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ updateCardholder(id, updateCardholderBody, xAuditUser, options) {
1213
+ return localVarFp.updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(axios, basePath));
1214
+ },
1215
+ };
1216
+ };
1217
+ exports.UpdateCardholderApiFactory = UpdateCardholderApiFactory;
1218
+ /**
1219
+ * UpdateCardholderApi - object-oriented interface
1220
+ * @export
1221
+ * @class UpdateCardholderApi
1222
+ * @extends {BaseAPI}
1223
+ */
1224
+ class UpdateCardholderApi extends base_1.BaseAPI {
1225
+ /**
1226
+ * Send a request to this endpoint to modify details of a cardholder.
1227
+ * @summary Update Cardholder
1228
+ * @param {string} id Enfuce generated unique identifier of the cardholder that you to modify.
1229
+ * @param {UpdateCardholderBody} updateCardholderBody Cardholder details to be updated.
1230
+ * @param {string} [xAuditUser] Optional audit user header
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ * @memberof UpdateCardholderApi
1234
+ */
1235
+ updateCardholder(id, updateCardholderBody, xAuditUser, options) {
1236
+ return (0, exports.UpdateCardholderApiFp)(this.configuration).updateCardholder(id, updateCardholderBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
1237
+ }
1238
+ }
1239
+ exports.UpdateCardholderApi = UpdateCardholderApi;