@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,947 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Issuer Events API
6
+ * 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.0.0
9
+ *
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.IssuerEventWebhooksApi = exports.IssuerEventWebhooksApiFactory = exports.IssuerEventWebhooksApiFp = exports.IssuerEventWebhooksApiAxiosParamCreator = exports.TokenStatus = exports.TokenRequestor = exports.RiskScore = exports.PinStatus = exports.PinDeliveryType = exports.Locale = exports.CountryCodesAlpha3 = exports.CardVersionStatus = exports.CardStatus = exports.CardScheme = exports.CardRole = exports.CardDeliveryType = exports.CardConfigurationType = exports.AuthorizationDecisionColor = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ /**
33
+ * The wallets common name for authorization decision.
34
+ * @export
35
+ * @enum {string}
36
+ */
37
+ exports.AuthorizationDecisionColor = {
38
+ Green: 'GREEN',
39
+ Yellow: 'YELLOW',
40
+ Orange: 'ORANGE',
41
+ Red: 'RED'
42
+ };
43
+ /**
44
+ * The type of card defined by this card configuration.
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ exports.CardConfigurationType = {
49
+ Debit: 'DEBIT',
50
+ Credit: 'CREDIT',
51
+ Combo: 'COMBO'
52
+ };
53
+ /**
54
+ * 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.
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ exports.CardDeliveryType = {
59
+ Mail: 'MAIL',
60
+ Courier: 'COURIER',
61
+ Custom1: 'CUSTOM_1',
62
+ Custom2: 'CUSTOM_2',
63
+ Custom3: 'CUSTOM_3',
64
+ Custom4: 'CUSTOM_4',
65
+ Custom5: 'CUSTOM_5'
66
+ };
67
+ /**
68
+ * 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.
69
+ * @export
70
+ * @enum {string}
71
+ */
72
+ exports.CardRole = {
73
+ MainCard: 'MAIN_CARD',
74
+ CardApplication: 'CARD_APPLICATION'
75
+ };
76
+ /**
77
+ *
78
+ * @export
79
+ * @enum {string}
80
+ */
81
+ exports.CardScheme = {
82
+ Mastercard: 'MASTERCARD',
83
+ Visa: 'VISA'
84
+ };
85
+ /**
86
+ * - 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.
87
+ * @export
88
+ * @enum {string}
89
+ */
90
+ exports.CardStatus = {
91
+ Active: 'ACTIVE',
92
+ Blocked: 'BLOCKED',
93
+ BlockedSuspectedFraud: 'BLOCKED_SUSPECTED_FRAUD',
94
+ ClosedDueToFraud: 'CLOSED_DUE_TO_FRAUD',
95
+ ClosedLost: 'CLOSED_LOST',
96
+ ClosedStolen: 'CLOSED_STOLEN',
97
+ Closed: 'CLOSED',
98
+ ClosedExpired: 'CLOSED_EXPIRED'
99
+ };
100
+ /**
101
+ * - 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.
102
+ * @export
103
+ * @enum {string}
104
+ */
105
+ exports.CardVersionStatus = {
106
+ Active: 'ACTIVE',
107
+ Initial: 'INITIAL',
108
+ Closed: 'CLOSED'
109
+ };
110
+ /**
111
+ * ISO 3166-1 alpha-3 country codes. XKX is used for the Kosovo.
112
+ * @export
113
+ * @enum {string}
114
+ */
115
+ exports.CountryCodesAlpha3 = {
116
+ Abw: 'ABW',
117
+ Afg: 'AFG',
118
+ Ago: 'AGO',
119
+ Aia: 'AIA',
120
+ Ala: 'ALA',
121
+ Alb: 'ALB',
122
+ And: 'AND',
123
+ Are: 'ARE',
124
+ Arg: 'ARG',
125
+ Arm: 'ARM',
126
+ Asm: 'ASM',
127
+ Ata: 'ATA',
128
+ Atf: 'ATF',
129
+ Atg: 'ATG',
130
+ Aus: 'AUS',
131
+ Aut: 'AUT',
132
+ Aze: 'AZE',
133
+ Bdi: 'BDI',
134
+ Bel: 'BEL',
135
+ Ben: 'BEN',
136
+ Bes: 'BES',
137
+ Bfa: 'BFA',
138
+ Bgd: 'BGD',
139
+ Bgr: 'BGR',
140
+ Bhr: 'BHR',
141
+ Bhs: 'BHS',
142
+ Bih: 'BIH',
143
+ Blm: 'BLM',
144
+ Blr: 'BLR',
145
+ Blz: 'BLZ',
146
+ Bmu: 'BMU',
147
+ Bol: 'BOL',
148
+ Bra: 'BRA',
149
+ Brb: 'BRB',
150
+ Brn: 'BRN',
151
+ Btn: 'BTN',
152
+ Bvt: 'BVT',
153
+ Bwa: 'BWA',
154
+ Caf: 'CAF',
155
+ Can: 'CAN',
156
+ Cck: 'CCK',
157
+ Che: 'CHE',
158
+ Chl: 'CHL',
159
+ Chn: 'CHN',
160
+ Civ: 'CIV',
161
+ Cmr: 'CMR',
162
+ Cod: 'COD',
163
+ Cog: 'COG',
164
+ Cok: 'COK',
165
+ Col: 'COL',
166
+ Com: 'COM',
167
+ Cpv: 'CPV',
168
+ Cri: 'CRI',
169
+ Cub: 'CUB',
170
+ Cuw: 'CUW',
171
+ Cxr: 'CXR',
172
+ Cym: 'CYM',
173
+ Cyp: 'CYP',
174
+ Cze: 'CZE',
175
+ Deu: 'DEU',
176
+ Dji: 'DJI',
177
+ Dma: 'DMA',
178
+ Dnk: 'DNK',
179
+ Dom: 'DOM',
180
+ Dza: 'DZA',
181
+ Ecu: 'ECU',
182
+ Egy: 'EGY',
183
+ Eri: 'ERI',
184
+ Esh: 'ESH',
185
+ Esp: 'ESP',
186
+ Est: 'EST',
187
+ Eth: 'ETH',
188
+ Fin: 'FIN',
189
+ Fji: 'FJI',
190
+ Flk: 'FLK',
191
+ Fra: 'FRA',
192
+ Fro: 'FRO',
193
+ Fsm: 'FSM',
194
+ Gab: 'GAB',
195
+ Gbr: 'GBR',
196
+ Geo: 'GEO',
197
+ Ggy: 'GGY',
198
+ Gha: 'GHA',
199
+ Gib: 'GIB',
200
+ Gin: 'GIN',
201
+ Glp: 'GLP',
202
+ Gmb: 'GMB',
203
+ Gnb: 'GNB',
204
+ Gnq: 'GNQ',
205
+ Grc: 'GRC',
206
+ Grd: 'GRD',
207
+ Grl: 'GRL',
208
+ Gtm: 'GTM',
209
+ Guf: 'GUF',
210
+ Gum: 'GUM',
211
+ Guy: 'GUY',
212
+ Hkg: 'HKG',
213
+ Hmd: 'HMD',
214
+ Hnd: 'HND',
215
+ Hrv: 'HRV',
216
+ Hti: 'HTI',
217
+ Hun: 'HUN',
218
+ Idn: 'IDN',
219
+ Imn: 'IMN',
220
+ Ind: 'IND',
221
+ Iot: 'IOT',
222
+ Irl: 'IRL',
223
+ Irn: 'IRN',
224
+ Irq: 'IRQ',
225
+ Isl: 'ISL',
226
+ Isr: 'ISR',
227
+ Ita: 'ITA',
228
+ Jam: 'JAM',
229
+ Jey: 'JEY',
230
+ Jor: 'JOR',
231
+ Jpn: 'JPN',
232
+ Kaz: 'KAZ',
233
+ Ken: 'KEN',
234
+ Kgz: 'KGZ',
235
+ Khm: 'KHM',
236
+ Kir: 'KIR',
237
+ Kna: 'KNA',
238
+ Kor: 'KOR',
239
+ Kwt: 'KWT',
240
+ Lao: 'LAO',
241
+ Lbn: 'LBN',
242
+ Lbr: 'LBR',
243
+ Lby: 'LBY',
244
+ Lca: 'LCA',
245
+ Lie: 'LIE',
246
+ Lka: 'LKA',
247
+ Lso: 'LSO',
248
+ Ltu: 'LTU',
249
+ Lux: 'LUX',
250
+ Lva: 'LVA',
251
+ Mac: 'MAC',
252
+ Maf: 'MAF',
253
+ Mar: 'MAR',
254
+ Mco: 'MCO',
255
+ Mda: 'MDA',
256
+ Mdg: 'MDG',
257
+ Mdv: 'MDV',
258
+ Mex: 'MEX',
259
+ Mhl: 'MHL',
260
+ Mkd: 'MKD',
261
+ Mli: 'MLI',
262
+ Mlt: 'MLT',
263
+ Mmr: 'MMR',
264
+ Mne: 'MNE',
265
+ Mng: 'MNG',
266
+ Mnp: 'MNP',
267
+ Moz: 'MOZ',
268
+ Mrt: 'MRT',
269
+ Msr: 'MSR',
270
+ Mtq: 'MTQ',
271
+ Mus: 'MUS',
272
+ Mwi: 'MWI',
273
+ Mys: 'MYS',
274
+ Myt: 'MYT',
275
+ Nam: 'NAM',
276
+ Ncl: 'NCL',
277
+ Ner: 'NER',
278
+ Nfk: 'NFK',
279
+ Nga: 'NGA',
280
+ Nic: 'NIC',
281
+ Niu: 'NIU',
282
+ Nld: 'NLD',
283
+ Nor: 'NOR',
284
+ Npl: 'NPL',
285
+ Nru: 'NRU',
286
+ Nzl: 'NZL',
287
+ Omn: 'OMN',
288
+ Pak: 'PAK',
289
+ Pan: 'PAN',
290
+ Pcn: 'PCN',
291
+ Per: 'PER',
292
+ Phl: 'PHL',
293
+ Plw: 'PLW',
294
+ Png: 'PNG',
295
+ Pol: 'POL',
296
+ Pri: 'PRI',
297
+ Prk: 'PRK',
298
+ Prt: 'PRT',
299
+ Pry: 'PRY',
300
+ Pse: 'PSE',
301
+ Pyf: 'PYF',
302
+ Qat: 'QAT',
303
+ Reu: 'REU',
304
+ Rou: 'ROU',
305
+ Rus: 'RUS',
306
+ Rwa: 'RWA',
307
+ Sau: 'SAU',
308
+ Sdn: 'SDN',
309
+ Sen: 'SEN',
310
+ Sgp: 'SGP',
311
+ Sgs: 'SGS',
312
+ Shn: 'SHN',
313
+ Sjm: 'SJM',
314
+ Slb: 'SLB',
315
+ Sle: 'SLE',
316
+ Slv: 'SLV',
317
+ Smr: 'SMR',
318
+ Som: 'SOM',
319
+ Spm: 'SPM',
320
+ Srb: 'SRB',
321
+ Ssd: 'SSD',
322
+ Stp: 'STP',
323
+ Sur: 'SUR',
324
+ Svk: 'SVK',
325
+ Svn: 'SVN',
326
+ Swe: 'SWE',
327
+ Swz: 'SWZ',
328
+ Sxm: 'SXM',
329
+ Syc: 'SYC',
330
+ Syr: 'SYR',
331
+ Tca: 'TCA',
332
+ Tcd: 'TCD',
333
+ Tgo: 'TGO',
334
+ Tha: 'THA',
335
+ Tjk: 'TJK',
336
+ Tkl: 'TKL',
337
+ Tkm: 'TKM',
338
+ Tls: 'TLS',
339
+ Ton: 'TON',
340
+ Tto: 'TTO',
341
+ Tun: 'TUN',
342
+ Tur: 'TUR',
343
+ Tuv: 'TUV',
344
+ Twn: 'TWN',
345
+ Tza: 'TZA',
346
+ Uga: 'UGA',
347
+ Ukr: 'UKR',
348
+ Umi: 'UMI',
349
+ Ury: 'URY',
350
+ Usa: 'USA',
351
+ Uzb: 'UZB',
352
+ Vat: 'VAT',
353
+ Vct: 'VCT',
354
+ Ven: 'VEN',
355
+ Vgb: 'VGB',
356
+ Vir: 'VIR',
357
+ Vnm: 'VNM',
358
+ Vut: 'VUT',
359
+ Wlf: 'WLF',
360
+ Wsm: 'WSM',
361
+ Yem: 'YEM',
362
+ Zaf: 'ZAF',
363
+ Zmb: 'ZMB',
364
+ Zwe: 'ZWE',
365
+ Xkx: 'XKX'
366
+ };
367
+ /**
368
+ * 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.
369
+ * @export
370
+ * @enum {string}
371
+ */
372
+ exports.Locale = {
373
+ AfZa: 'af-ZA',
374
+ ArAe: 'ar-AE',
375
+ ArBh: 'ar-BH',
376
+ ArDz: 'ar-DZ',
377
+ ArEg: 'ar-EG',
378
+ ArIq: 'ar-IQ',
379
+ ArJo: 'ar-JO',
380
+ ArKw: 'ar-KW',
381
+ ArLb: 'ar-LB',
382
+ ArLy: 'ar-LY',
383
+ ArMa: 'ar-MA',
384
+ ArOm: 'ar-OM',
385
+ ArQa: 'ar-QA',
386
+ ArSa: 'ar-SA',
387
+ ArSy: 'ar-SY',
388
+ ArTn: 'ar-TN',
389
+ ArYe: 'ar-YE',
390
+ AzAz: 'az-AZ',
391
+ BeBy: 'be-BY',
392
+ BgBg: 'bg-BG',
393
+ BnIn: 'bn-IN',
394
+ BsBa: 'bs-BA',
395
+ CaEs: 'ca-ES',
396
+ CsCz: 'cs-CZ',
397
+ CyGb: 'cy-GB',
398
+ DaDk: 'da-DK',
399
+ DeAt: 'de-AT',
400
+ DeCh: 'de-CH',
401
+ DeDe: 'de-DE',
402
+ DeLi: 'de-LI',
403
+ DeNl: 'de-NL',
404
+ ElGr: 'el-GR',
405
+ EnAu: 'en-AU',
406
+ EnBz: 'en-BZ',
407
+ EnCa: 'en-CA',
408
+ EnGb: 'en-GB',
409
+ EnIe: 'en-IE',
410
+ EnJm: 'en-JM',
411
+ EnMt: 'en-MT',
412
+ EnNz: 'en-NZ',
413
+ EnPh: 'en-PH',
414
+ EnTt: 'en-TT',
415
+ EnUs: 'en-US',
416
+ EnVi: 'en-VI',
417
+ EnZa: 'en-ZA',
418
+ EnZw: 'en-ZW',
419
+ EsAr: 'es-AR',
420
+ EsBo: 'es-BO',
421
+ EsCl: 'es-CL',
422
+ EsCo: 'es-CO',
423
+ EsCr: 'es-CR',
424
+ EsDo: 'es-DO',
425
+ EsEc: 'es-EC',
426
+ EsEs: 'es-ES',
427
+ EsGt: 'es-GT',
428
+ EsHn: 'es-HN',
429
+ EsMx: 'es-MX',
430
+ EsNi: 'es-NI',
431
+ EsPa: 'es-PA',
432
+ EsPe: 'es-PE',
433
+ EsPr: 'es-PR',
434
+ EsPy: 'es-PY',
435
+ EsSv: 'es-SV',
436
+ EsUy: 'es-UY',
437
+ EsVe: 'es-VE',
438
+ EtEe: 'et-EE',
439
+ EuEs: 'eu-ES',
440
+ FaIr: 'fa-IR',
441
+ FiFi: 'fi-FI',
442
+ FoFo: 'fo-FO',
443
+ FrBe: 'fr-BE',
444
+ FrCa: 'fr-CA',
445
+ FrCh: 'fr-CH',
446
+ FrFr: 'fr-FR',
447
+ FrMc: 'fr-MC',
448
+ FrNl: 'fr-NL',
449
+ GaIe: 'ga-IE',
450
+ GlEs: 'gl-ES',
451
+ GuIn: 'gu-IN',
452
+ HeIl: 'he-IL',
453
+ HiIn: 'hi-IN',
454
+ HrHr: 'hr-HR',
455
+ HuHu: 'hu-HU',
456
+ HyAm: 'hy-AM',
457
+ IdId: 'id-ID',
458
+ IsIs: 'is-IS',
459
+ ItCh: 'it-CH',
460
+ ItIt: 'it-IT',
461
+ JaJp: 'ja-JP',
462
+ KaGe: 'ka-GE',
463
+ KkKz: 'kk-KZ',
464
+ KlGl: 'kl-GL',
465
+ KnIn: 'kn-IN',
466
+ KoKr: 'ko-KR',
467
+ KokIn: 'kok-IN',
468
+ LtLt: 'lt-LT',
469
+ LvLv: 'lv-LV',
470
+ MkMk: 'mk-MK',
471
+ MlIn: 'ml-IN',
472
+ MnMn: 'mn-MN',
473
+ MrIn: 'mr-IN',
474
+ MsBn: 'ms-BN',
475
+ MsMy: 'ms-MY',
476
+ MtMt: 'mt-MT',
477
+ NbNo: 'nb-NO',
478
+ NlBe: 'nl-BE',
479
+ NlNl: 'nl-NL',
480
+ NnNo: 'nn-NO',
481
+ NoNo: 'no-NO',
482
+ PaIn: 'pa-IN',
483
+ PlPl: 'pl-PL',
484
+ PtBr: 'pt-BR',
485
+ PtPt: 'pt-PT',
486
+ RoRo: 'ro-RO',
487
+ RuRu: 'ru-RU',
488
+ SeNo: 'se-NO',
489
+ SkSk: 'sk-SK',
490
+ SlSi: 'sl-SI',
491
+ SqAl: 'sq-AL',
492
+ SrBa: 'sr-BA',
493
+ SrCs: 'sr-CS',
494
+ SvFi: 'sv-FI',
495
+ SvSe: 'sv-SE',
496
+ SwKe: 'sw-KE',
497
+ SyrSy: 'syr-SY',
498
+ TaIn: 'ta-IN',
499
+ TeIn: 'te-IN',
500
+ ThTh: 'th-TH',
501
+ TnZa: 'tn-ZA',
502
+ TrTr: 'tr-TR',
503
+ UkUa: 'uk-UA',
504
+ UzUz: 'uz-UZ',
505
+ ViVn: 'vi-VN',
506
+ XhZa: 'xh-ZA',
507
+ ZhCn: 'zh-CN',
508
+ ZhHk: 'zh-HK',
509
+ ZhMo: 'zh-MO',
510
+ ZhSg: 'zh-SG',
511
+ ZhTw: 'zh-TW',
512
+ ZuZa: 'zu-ZA',
513
+ AfZa2: 'af_ZA',
514
+ ArAe2: 'ar_AE',
515
+ ArBh2: 'ar_BH',
516
+ ArDz2: 'ar_DZ',
517
+ ArEg2: 'ar_EG',
518
+ ArIq2: 'ar_IQ',
519
+ ArJo2: 'ar_JO',
520
+ ArKw2: 'ar_KW',
521
+ ArLb2: 'ar_LB',
522
+ ArLy2: 'ar_LY',
523
+ ArMa2: 'ar_MA',
524
+ ArOm2: 'ar_OM',
525
+ ArQa2: 'ar_QA',
526
+ ArSa2: 'ar_SA',
527
+ ArSy2: 'ar_SY',
528
+ ArTn2: 'ar_TN',
529
+ ArYe2: 'ar_YE',
530
+ AzAz2: 'az_AZ',
531
+ BeBy2: 'be_BY',
532
+ BgBg2: 'bg_BG',
533
+ BnIn2: 'bn_IN',
534
+ BsBa2: 'bs_BA',
535
+ CaEs2: 'ca_ES',
536
+ CsCz2: 'cs_CZ',
537
+ CyGb2: 'cy_GB',
538
+ DaDk2: 'da_DK',
539
+ DeAt2: 'de_AT',
540
+ DeCh2: 'de_CH',
541
+ DeDe2: 'de_DE',
542
+ DeLi2: 'de_LI',
543
+ DeNl2: 'de_NL',
544
+ ElGr2: 'el_GR',
545
+ EnAu2: 'en_AU',
546
+ EnBz2: 'en_BZ',
547
+ EnCa2: 'en_CA',
548
+ EnGb2: 'en_GB',
549
+ EnIe2: 'en_IE',
550
+ EnJm2: 'en_JM',
551
+ EnMt2: 'en_MT',
552
+ EnNz2: 'en_NZ',
553
+ EnPh2: 'en_PH',
554
+ EnTt2: 'en_TT',
555
+ EnUs2: 'en_US',
556
+ EnVi2: 'en_VI',
557
+ EnZa2: 'en_ZA',
558
+ EnZw2: 'en_ZW',
559
+ EsAr2: 'es_AR',
560
+ EsBo2: 'es_BO',
561
+ EsCl2: 'es_CL',
562
+ EsCo2: 'es_CO',
563
+ EsCr2: 'es_CR',
564
+ EsDo2: 'es_DO',
565
+ EsEc2: 'es_EC',
566
+ EsEs2: 'es_ES',
567
+ EsGt2: 'es_GT',
568
+ EsHn2: 'es_HN',
569
+ EsMx2: 'es_MX',
570
+ EsNi2: 'es_NI',
571
+ EsPa2: 'es_PA',
572
+ EsPe2: 'es_PE',
573
+ EsPr2: 'es_PR',
574
+ EsPy2: 'es_PY',
575
+ EsSv2: 'es_SV',
576
+ EsUy2: 'es_UY',
577
+ EsVe2: 'es_VE',
578
+ EtEe2: 'et_EE',
579
+ EuEs2: 'eu_ES',
580
+ FaIr2: 'fa_IR',
581
+ FiFi2: 'fi_FI',
582
+ FoFo2: 'fo_FO',
583
+ FrBe2: 'fr_BE',
584
+ FrCa2: 'fr_CA',
585
+ FrCh2: 'fr_CH',
586
+ FrFr2: 'fr_FR',
587
+ FrMc2: 'fr_MC',
588
+ FrNl2: 'fr_NL',
589
+ GaIe2: 'ga_IE',
590
+ GlEs2: 'gl_ES',
591
+ GuIn2: 'gu_IN',
592
+ HeIl2: 'he_IL',
593
+ HiIn2: 'hi_IN',
594
+ HrHr2: 'hr_HR',
595
+ HuHu2: 'hu_HU',
596
+ HyAm2: 'hy_AM',
597
+ IdId2: 'id_ID',
598
+ IsIs2: 'is_IS',
599
+ ItCh2: 'it_CH',
600
+ ItIt2: 'it_IT',
601
+ JaJp2: 'ja_JP',
602
+ KaGe2: 'ka_GE',
603
+ KkKz2: 'kk_KZ',
604
+ KlGl2: 'kl_GL',
605
+ KnIn2: 'kn_IN',
606
+ KoKr2: 'ko_KR',
607
+ KokIn2: 'kok_IN',
608
+ LtLt2: 'lt_LT',
609
+ LvLv2: 'lv_LV',
610
+ MkMk2: 'mk_MK',
611
+ MlIn2: 'ml_IN',
612
+ MnMn2: 'mn_MN',
613
+ MrIn2: 'mr_IN',
614
+ MsBn2: 'ms_BN',
615
+ MsMy2: 'ms_MY',
616
+ MtMt2: 'mt_MT',
617
+ NbNo2: 'nb_NO',
618
+ NlBe2: 'nl_BE',
619
+ NlNl2: 'nl_NL',
620
+ NnNo2: 'nn_NO',
621
+ NoNo2: 'no_NO',
622
+ PaIn2: 'pa_IN',
623
+ PlPl2: 'pl_PL',
624
+ PtBr2: 'pt_BR',
625
+ PtPt2: 'pt_PT',
626
+ RoRo2: 'ro_RO',
627
+ RuRu2: 'ru_RU',
628
+ SeNo2: 'se_NO',
629
+ SkSk2: 'sk_SK',
630
+ SlSi2: 'sl_SI',
631
+ SqAl2: 'sq_AL',
632
+ SrBa2: 'sr_BA',
633
+ SrCs2: 'sr_CS',
634
+ SvFi2: 'sv_FI',
635
+ SvSe2: 'sv_SE',
636
+ SwKe2: 'sw_KE',
637
+ SyrSy2: 'syr_SY',
638
+ TaIn2: 'ta_IN',
639
+ TeIn2: 'te_IN',
640
+ ThTh2: 'th_TH',
641
+ TnZa2: 'tn_ZA',
642
+ TrTr2: 'tr_TR',
643
+ UkUa2: 'uk_UA',
644
+ UzUz2: 'uz_UZ',
645
+ ViVn2: 'vi_VN',
646
+ XhZa2: 'xh_ZA',
647
+ ZhCn2: 'zh_CN',
648
+ ZhHk2: 'zh_HK',
649
+ ZhMo2: 'zh_MO',
650
+ ZhSg2: 'zh_SG',
651
+ ZhTw2: 'zh_TW',
652
+ ZuZa2: 'zu_ZA'
653
+ };
654
+ /**
655
+ * 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.
656
+ * @export
657
+ * @enum {string}
658
+ */
659
+ exports.PinDeliveryType = {
660
+ Mail: 'MAIL',
661
+ Courier: 'COURIER',
662
+ Epin: 'EPIN'
663
+ };
664
+ /**
665
+ * - 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.
666
+ * @export
667
+ * @enum {string}
668
+ */
669
+ exports.PinStatus = {
670
+ Generated: 'GENERATED',
671
+ Waiting: 'WAITING',
672
+ Set: 'SET',
673
+ Inherited: 'INHERITED'
674
+ };
675
+ /**
676
+ * 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.
677
+ * @export
678
+ * @enum {string}
679
+ */
680
+ exports.RiskScore = {
681
+ High: 'High',
682
+ Med: 'Med',
683
+ Low: 'Low',
684
+ Pep: 'Pep',
685
+ Prohibited: 'Prohibited'
686
+ };
687
+ /**
688
+ * Code of the wallet provider or merchant that requested the token (APPLE_PAY /GOOGLE_PAY/SAMSUNG_PAY/OTHER). OTHER is used for tokens not linked to a wallet provider, such as merchant tokens (credential-on-file, subscription payments) or cloud tokens (e.g., Mastercard APANs).
689
+ * @export
690
+ * @enum {string}
691
+ */
692
+ exports.TokenRequestor = {
693
+ ApplePay: 'APPLE_PAY',
694
+ GooglePay: 'GOOGLE_PAY',
695
+ SamsungPay: 'SAMSUNG_PAY',
696
+ Other: 'OTHER'
697
+ };
698
+ /**
699
+ * Current status of the token: - ACTIVE - Available for payments - DEACTIVATED - Permanently deactivated - INACTIVE - Waiting for activation - SUSPENDED - Temporarily not available for payments
700
+ * @export
701
+ * @enum {string}
702
+ */
703
+ exports.TokenStatus = {
704
+ Active: 'ACTIVE',
705
+ Deactivated: 'DEACTIVATED',
706
+ Inactive: 'INACTIVE',
707
+ Suspended: 'SUSPENDED'
708
+ };
709
+ /**
710
+ * IssuerEventWebhooksApi - axios parameter creator
711
+ * @export
712
+ */
713
+ const IssuerEventWebhooksApiAxiosParamCreator = function (configuration) {
714
+ return {
715
+ /**
716
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
717
+ * @summary Outgoing card event webhook endpoint
718
+ * @param {CardEvent} cardEvent Card event
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ cardEvent: (cardEvent_1, ...args_1) => __awaiter(this, [cardEvent_1, ...args_1], void 0, function* (cardEvent, options = {}) {
723
+ // verify required parameter 'cardEvent' is not null or undefined
724
+ (0, common_1.assertParamExists)('cardEvent', 'cardEvent', cardEvent);
725
+ const localVarPath = `/card`;
726
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
727
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
728
+ let baseOptions;
729
+ if (configuration) {
730
+ baseOptions = configuration.baseOptions;
731
+ }
732
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
733
+ const localVarHeaderParameter = {};
734
+ const localVarQueryParameter = {};
735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
736
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
738
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
739
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cardEvent, localVarRequestOptions, configuration);
740
+ return {
741
+ url: (0, common_1.toPathString)(localVarUrlObj),
742
+ options: localVarRequestOptions,
743
+ };
744
+ }),
745
+ /**
746
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
747
+ * @summary Outgoing cardholder event webhook endpoint
748
+ * @param {CardholderEvent} cardholderEvent Cardholder event
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ cardholderEvent: (cardholderEvent_1, ...args_1) => __awaiter(this, [cardholderEvent_1, ...args_1], void 0, function* (cardholderEvent, options = {}) {
753
+ // verify required parameter 'cardholderEvent' is not null or undefined
754
+ (0, common_1.assertParamExists)('cardholderEvent', 'cardholderEvent', cardholderEvent);
755
+ const localVarPath = `/cardholder`;
756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
757
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
758
+ let baseOptions;
759
+ if (configuration) {
760
+ baseOptions = configuration.baseOptions;
761
+ }
762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
763
+ const localVarHeaderParameter = {};
764
+ const localVarQueryParameter = {};
765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
766
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
769
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cardholderEvent, localVarRequestOptions, configuration);
770
+ return {
771
+ url: (0, common_1.toPathString)(localVarUrlObj),
772
+ options: localVarRequestOptions,
773
+ };
774
+ }),
775
+ /**
776
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
777
+ * @summary Outgoing token event webhook endpoint
778
+ * @param {TokenEvent} tokenEvent Token event
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ tokenEvent: (tokenEvent_1, ...args_1) => __awaiter(this, [tokenEvent_1, ...args_1], void 0, function* (tokenEvent, options = {}) {
783
+ // verify required parameter 'tokenEvent' is not null or undefined
784
+ (0, common_1.assertParamExists)('tokenEvent', 'tokenEvent', tokenEvent);
785
+ const localVarPath = `/token`;
786
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
787
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
788
+ let baseOptions;
789
+ if (configuration) {
790
+ baseOptions = configuration.baseOptions;
791
+ }
792
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
793
+ const localVarHeaderParameter = {};
794
+ const localVarQueryParameter = {};
795
+ localVarHeaderParameter['Content-Type'] = 'application/json';
796
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
797
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
799
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tokenEvent, localVarRequestOptions, configuration);
800
+ return {
801
+ url: (0, common_1.toPathString)(localVarUrlObj),
802
+ options: localVarRequestOptions,
803
+ };
804
+ }),
805
+ };
806
+ };
807
+ exports.IssuerEventWebhooksApiAxiosParamCreator = IssuerEventWebhooksApiAxiosParamCreator;
808
+ /**
809
+ * IssuerEventWebhooksApi - functional programming interface
810
+ * @export
811
+ */
812
+ const IssuerEventWebhooksApiFp = function (configuration) {
813
+ const localVarAxiosParamCreator = (0, exports.IssuerEventWebhooksApiAxiosParamCreator)(configuration);
814
+ return {
815
+ /**
816
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
817
+ * @summary Outgoing card event webhook endpoint
818
+ * @param {CardEvent} cardEvent Card event
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ */
822
+ cardEvent(cardEvent, options) {
823
+ return __awaiter(this, void 0, void 0, function* () {
824
+ var _a, _b, _c;
825
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cardEvent(cardEvent, options);
826
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
827
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IssuerEventWebhooksApi.cardEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
828
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
829
+ });
830
+ },
831
+ /**
832
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
833
+ * @summary Outgoing cardholder event webhook endpoint
834
+ * @param {CardholderEvent} cardholderEvent Cardholder event
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ */
838
+ cardholderEvent(cardholderEvent, options) {
839
+ return __awaiter(this, void 0, void 0, function* () {
840
+ var _a, _b, _c;
841
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cardholderEvent(cardholderEvent, options);
842
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
843
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IssuerEventWebhooksApi.cardholderEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
844
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
845
+ });
846
+ },
847
+ /**
848
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
849
+ * @summary Outgoing token event webhook endpoint
850
+ * @param {TokenEvent} tokenEvent Token event
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ tokenEvent(tokenEvent, options) {
855
+ return __awaiter(this, void 0, void 0, function* () {
856
+ var _a, _b, _c;
857
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tokenEvent(tokenEvent, options);
858
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
859
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IssuerEventWebhooksApi.tokenEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
860
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
861
+ });
862
+ },
863
+ };
864
+ };
865
+ exports.IssuerEventWebhooksApiFp = IssuerEventWebhooksApiFp;
866
+ /**
867
+ * IssuerEventWebhooksApi - factory interface
868
+ * @export
869
+ */
870
+ const IssuerEventWebhooksApiFactory = function (configuration, basePath, axios) {
871
+ const localVarFp = (0, exports.IssuerEventWebhooksApiFp)(configuration);
872
+ return {
873
+ /**
874
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
875
+ * @summary Outgoing card event webhook endpoint
876
+ * @param {CardEvent} cardEvent Card event
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ */
880
+ cardEvent(cardEvent, options) {
881
+ return localVarFp.cardEvent(cardEvent, options).then((request) => request(axios, basePath));
882
+ },
883
+ /**
884
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
885
+ * @summary Outgoing cardholder event webhook endpoint
886
+ * @param {CardholderEvent} cardholderEvent Cardholder event
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ cardholderEvent(cardholderEvent, options) {
891
+ return localVarFp.cardholderEvent(cardholderEvent, options).then((request) => request(axios, basePath));
892
+ },
893
+ /**
894
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
895
+ * @summary Outgoing token event webhook endpoint
896
+ * @param {TokenEvent} tokenEvent Token event
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ tokenEvent(tokenEvent, options) {
901
+ return localVarFp.tokenEvent(tokenEvent, options).then((request) => request(axios, basePath));
902
+ },
903
+ };
904
+ };
905
+ exports.IssuerEventWebhooksApiFactory = IssuerEventWebhooksApiFactory;
906
+ /**
907
+ * IssuerEventWebhooksApi - object-oriented interface
908
+ * @export
909
+ * @class IssuerEventWebhooksApi
910
+ * @extends {BaseAPI}
911
+ */
912
+ class IssuerEventWebhooksApi extends base_1.BaseAPI {
913
+ /**
914
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon card creation, update or closure.
915
+ * @summary Outgoing card event webhook endpoint
916
+ * @param {CardEvent} cardEvent Card event
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ * @memberof IssuerEventWebhooksApi
920
+ */
921
+ cardEvent(cardEvent, options) {
922
+ return (0, exports.IssuerEventWebhooksApiFp)(this.configuration).cardEvent(cardEvent, options).then((request) => request(this.axios, this.basePath));
923
+ }
924
+ /**
925
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon cardholder creation or update.
926
+ * @summary Outgoing cardholder event webhook endpoint
927
+ * @param {CardholderEvent} cardholderEvent Cardholder event
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ * @memberof IssuerEventWebhooksApi
931
+ */
932
+ cardholderEvent(cardholderEvent, options) {
933
+ return (0, exports.IssuerEventWebhooksApiFp)(this.configuration).cardholderEvent(cardholderEvent, options).then((request) => request(this.axios, this.basePath));
934
+ }
935
+ /**
936
+ * This is not an endpoint. This is the description of a request that is sent to subscribed webhooks upon token creation or update.
937
+ * @summary Outgoing token event webhook endpoint
938
+ * @param {TokenEvent} tokenEvent Token event
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ * @memberof IssuerEventWebhooksApi
942
+ */
943
+ tokenEvent(tokenEvent, options) {
944
+ return (0, exports.IssuerEventWebhooksApiFp)(this.configuration).tokenEvent(tokenEvent, options).then((request) => request(this.axios, this.basePath));
945
+ }
946
+ }
947
+ exports.IssuerEventWebhooksApi = IssuerEventWebhooksApi;