@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,1309 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Enfuce clearing file copy
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ * Information about the card used for the payment.
28
+ * @export
29
+ * @interface Card
30
+ */
31
+ export interface Card {
32
+ /**
33
+ * Enfuce generated unique ID assigned to each card used — enables you to identify the card that you must authorise.
34
+ * @type {string}
35
+ * @memberof Card
36
+ */
37
+ 'id'?: string;
38
+ /**
39
+ * Card expiration date as received in the scheme message.
40
+ * @type {Expiration}
41
+ * @memberof Card
42
+ */
43
+ 'expirationDate'?: Expiration;
44
+ /**
45
+ * Card sequence number as received in the scheme message.
46
+ * @type {number}
47
+ * @memberof Card
48
+ */
49
+ 'sequenceNumber'?: number;
50
+ /**
51
+ * Ledger provided account ID associated with the card.
52
+ * @type {string}
53
+ * @memberof Card
54
+ */
55
+ 'accountId'?: string;
56
+ /**
57
+ * Unique ID of the cardholder associated with the card.
58
+ * @type {string}
59
+ * @memberof Card
60
+ */
61
+ 'cardholderId'?: string;
62
+ /**
63
+ * Information about any parent card group associated with the card.
64
+ * @type {Array<CardGroupsInner>}
65
+ * @memberof Card
66
+ */
67
+ 'groups'?: Array<CardGroupsInner>;
68
+ /**
69
+ * The type of card application used for the transaction.
70
+ * @type {string}
71
+ * @memberof Card
72
+ */
73
+ 'applicationSelection'?: CardApplicationSelectionEnum;
74
+ }
75
+
76
+ export const CardApplicationSelectionEnum = {
77
+ Debit: 'DEBIT',
78
+ Credit: 'CREDIT'
79
+ } as const;
80
+
81
+ export type CardApplicationSelectionEnum = typeof CardApplicationSelectionEnum[keyof typeof CardApplicationSelectionEnum];
82
+
83
+ /**
84
+ * Describes how the card credentials were captured.
85
+ * @export
86
+ * @enum {string}
87
+ */
88
+
89
+ export const CardEntryMode = {
90
+ Chip: 'CHIP',
91
+ ChipContactless: 'CHIP_CONTACTLESS',
92
+ MagneticStripe: 'MAGNETIC_STRIPE',
93
+ ManualEntry: 'MANUAL_ENTRY',
94
+ WalletContactless: 'WALLET_CONTACTLESS',
95
+ Ecommerce: 'ECOMMERCE',
96
+ WalletEcommerce: 'WALLET_ECOMMERCE',
97
+ CredentialsOnFile: 'CREDENTIALS_ON_FILE',
98
+ Unknown: 'UNKNOWN'
99
+ } as const;
100
+
101
+ export type CardEntryMode = typeof CardEntryMode[keyof typeof CardEntryMode];
102
+
103
+
104
+ /**
105
+ *
106
+ * @export
107
+ * @interface CardGroupsInner
108
+ */
109
+ export interface CardGroupsInner {
110
+ /**
111
+ * Unique ID assigned to the parent card group.
112
+ * @type {string}
113
+ * @memberof CardGroupsInner
114
+ */
115
+ 'groupId': string;
116
+ }
117
+ /**
118
+ * The method used for verifying the cardholder: - PIN_VERIFIED_BY_CARD: The card\'s PIN is verified. - PIN_VERIFIED_BY_ISSUER: The card\'s PIN is verified by issuer. - WALLET: The cardholder is verified by the digital wallet. - THREE_DS: The cardholder is 3DS authenticated. - BIOMETRIC: The cardholder is verified by biometrics data. - SIGNATURE: The cardholder\'s signature verified. - NO_VERIFICATION: No verification is performed.
119
+ * @export
120
+ * @enum {string}
121
+ */
122
+
123
+ export const CardholderVerificationMethod = {
124
+ PinVerifiedByCard: 'PIN_VERIFIED_BY_CARD',
125
+ PinVerifiedByIssuer: 'PIN_VERIFIED_BY_ISSUER',
126
+ Wallet: 'WALLET',
127
+ ThreeDs: 'THREE_DS',
128
+ Biometric: 'BIOMETRIC',
129
+ Signature: 'SIGNATURE',
130
+ NoVerification: 'NO_VERIFICATION'
131
+ } as const;
132
+
133
+ export type CardholderVerificationMethod = typeof CardholderVerificationMethod[keyof typeof CardholderVerificationMethod];
134
+
135
+
136
+ /**
137
+ *
138
+ * @export
139
+ * @interface ClearingMetadata
140
+ */
141
+ export interface ClearingMetadata {
142
+ /**
143
+ * Unique system generated ID assigned to each event in the payment processing workflow. For example, an ID assigned to the initial authorisation event.
144
+ * @type {string}
145
+ * @memberof ClearingMetadata
146
+ */
147
+ 'id'?: string;
148
+ /**
149
+ * Enfuce generated unique ID assigned to each card transaction. Transaction events for the same card payment includes the same `transactionId`. For example, authorisation, incremental authorisation, and adjustment for the same transaction includes the same `transactionID`.
150
+ * @type {string}
151
+ * @memberof ClearingMetadata
152
+ */
153
+ 'transactionId'?: string;
154
+ /**
155
+ * Describes outcome of processed transaction
156
+ * @type {string}
157
+ * @memberof ClearingMetadata
158
+ */
159
+ 'postingStatus'?: ClearingMetadataPostingStatusEnum;
160
+ /**
161
+ *
162
+ * @type {MessageCategoryClearing}
163
+ * @memberof ClearingMetadata
164
+ */
165
+ 'messageCategory'?: MessageCategoryClearing;
166
+ /**
167
+ *
168
+ * @type {MessageFunctionClearing}
169
+ * @memberof ClearingMetadata
170
+ */
171
+ 'messageFunction'?: MessageFunctionClearing;
172
+ }
173
+
174
+ export const ClearingMetadataPostingStatusEnum = {
175
+ Processed: 'PROCESSED',
176
+ CardNotFound: 'CARD_NOT_FOUND',
177
+ Unsupported: 'UNSUPPORTED',
178
+ Metadata: 'METADATA'
179
+ } as const;
180
+
181
+ export type ClearingMetadataPostingStatusEnum = typeof ClearingMetadataPostingStatusEnum[keyof typeof ClearingMetadataPostingStatusEnum];
182
+
183
+ /**
184
+ * The status of the transaction. CLEARED means that the transaction has been fully cleared, PARTIALLY_CLEARED means that the transaction is partially cleared.
185
+ * @export
186
+ * @enum {string}
187
+ */
188
+
189
+ export const ClearingStatus = {
190
+ Cleared: 'CLEARED',
191
+ PartiallyCleared: 'PARTIALLY_CLEARED'
192
+ } as const;
193
+
194
+ export type ClearingStatus = typeof ClearingStatus[keyof typeof ClearingStatus];
195
+
196
+
197
+ /**
198
+ * Field that contains exchange rates for the transaction, it is null if both currencies are the same.
199
+ * @export
200
+ * @interface ExchangeRates
201
+ */
202
+ export interface ExchangeRates {
203
+ /**
204
+ * European Central Bank exchange rate.
205
+ * @type {number}
206
+ * @memberof ExchangeRates
207
+ */
208
+ 'ecbRate'?: number;
209
+ }
210
+ /**
211
+ *
212
+ * @export
213
+ * @interface Expiration
214
+ */
215
+ export interface Expiration {
216
+ /**
217
+ * Expiration year in YYYY format.
218
+ * @type {number}
219
+ * @memberof Expiration
220
+ */
221
+ 'year': number;
222
+ /**
223
+ * Expiration month in MM format.
224
+ * @type {number}
225
+ * @memberof Expiration
226
+ */
227
+ 'month': number;
228
+ }
229
+ /**
230
+ *
231
+ * @export
232
+ * @interface FileData
233
+ */
234
+ export interface FileData {
235
+ /**
236
+ *
237
+ * @type {FileDataFileHeader}
238
+ * @memberof FileData
239
+ */
240
+ 'fileHeader'?: FileDataFileHeader;
241
+ /**
242
+ * This array comprises a collection of records in the file.<br><br> Generally, the `transaction` object will be included. However, there are situations where the `masterCardMessage` object is present instead.<br><br> The `masterCardMessage` object is an unparsed ISO8583 message that has not been converted into a `transaction` object.<br><br> The `visaMessage` object represents a message in the Visa Base II format that has not been converted into a `transaction`, containing the mappings between the transaction component records (TCRs) and their data.
243
+ * @type {Array<FileDataRecordsInner>}
244
+ * @memberof FileData
245
+ */
246
+ 'records'?: Array<FileDataRecordsInner>;
247
+ }
248
+ /**
249
+ * Header information of the file.
250
+ * @export
251
+ * @interface FileDataFileHeader
252
+ */
253
+ export interface FileDataFileHeader {
254
+ /**
255
+ * This is the unique identifier for the file.
256
+ * @type {string}
257
+ * @memberof FileDataFileHeader
258
+ */
259
+ 'fileId'?: string;
260
+ /**
261
+ * Name of the file as received from the scheme.
262
+ * @type {string}
263
+ * @memberof FileDataFileHeader
264
+ */
265
+ 'fileName'?: string;
266
+ /**
267
+ * Date and time that Enfuce received the clearing file into the card system.
268
+ * @type {string}
269
+ * @memberof FileDataFileHeader
270
+ */
271
+ 'fileReceivedDateTime'?: string;
272
+ /**
273
+ * The payment scheme of the file.
274
+ * @type {string}
275
+ * @memberof FileDataFileHeader
276
+ */
277
+ 'paymentScheme'?: FileDataFileHeaderPaymentSchemeEnum;
278
+ /**
279
+ * Number of \'transactions\' objects in the file.
280
+ * @type {number}
281
+ * @memberof FileDataFileHeader
282
+ */
283
+ 'numberOfTransactions'?: number;
284
+ }
285
+
286
+ export const FileDataFileHeaderPaymentSchemeEnum = {
287
+ Mastercard: 'MASTERCARD',
288
+ Visa: 'VISA'
289
+ } as const;
290
+
291
+ export type FileDataFileHeaderPaymentSchemeEnum = typeof FileDataFileHeaderPaymentSchemeEnum[keyof typeof FileDataFileHeaderPaymentSchemeEnum];
292
+
293
+ /**
294
+ *
295
+ * @export
296
+ * @interface FileDataRecordsInner
297
+ */
298
+ export interface FileDataRecordsInner {
299
+ /**
300
+ * Unique system generated ID assigned to each event in the payment processing workflow. For example, an ID assigned to the initial authorisation event.
301
+ * @type {string}
302
+ * @memberof FileDataRecordsInner
303
+ */
304
+ 'id'?: string;
305
+ /**
306
+ * Enfuce generated unique ID assigned to each card transaction. Transaction events for the same card payment includes the same `transactionId`. For example, authorisation, incremental authorisation, and adjustment for the same transaction includes the same `transactionID`.
307
+ * @type {string}
308
+ * @memberof FileDataRecordsInner
309
+ */
310
+ 'transactionId'?: string;
311
+ /**
312
+ * Describes outcome of processed transaction
313
+ * @type {string}
314
+ * @memberof FileDataRecordsInner
315
+ */
316
+ 'postingStatus'?: FileDataRecordsInnerPostingStatusEnum;
317
+ /**
318
+ *
319
+ * @type {MessageCategoryClearing}
320
+ * @memberof FileDataRecordsInner
321
+ */
322
+ 'messageCategory'?: MessageCategoryClearing;
323
+ /**
324
+ *
325
+ * @type {MessageFunctionClearing}
326
+ * @memberof FileDataRecordsInner
327
+ */
328
+ 'messageFunction'?: MessageFunctionClearing;
329
+ /**
330
+ *
331
+ * @type {Card}
332
+ * @memberof FileDataRecordsInner
333
+ */
334
+ 'card'?: Card;
335
+ /**
336
+ *
337
+ * @type {Merchant}
338
+ * @memberof FileDataRecordsInner
339
+ */
340
+ 'merchant'?: Merchant;
341
+ /**
342
+ *
343
+ * @type {Transaction1}
344
+ * @memberof FileDataRecordsInner
345
+ */
346
+ 'transaction'?: Transaction1;
347
+ /**
348
+ *
349
+ * @type {FileDataRecordsInnerAllOfMasterCardMessage}
350
+ * @memberof FileDataRecordsInner
351
+ */
352
+ 'masterCardMessage'?: FileDataRecordsInnerAllOfMasterCardMessage;
353
+ /**
354
+ * The raw Visa message.
355
+ * @type {{ [key: string]: string; }}
356
+ * @memberof FileDataRecordsInner
357
+ */
358
+ 'visaMessage'?: { [key: string]: string; } | null;
359
+ }
360
+
361
+ export const FileDataRecordsInnerPostingStatusEnum = {
362
+ Processed: 'PROCESSED',
363
+ CardNotFound: 'CARD_NOT_FOUND',
364
+ Unsupported: 'UNSUPPORTED',
365
+ Metadata: 'METADATA'
366
+ } as const;
367
+
368
+ export type FileDataRecordsInnerPostingStatusEnum = typeof FileDataRecordsInnerPostingStatusEnum[keyof typeof FileDataRecordsInnerPostingStatusEnum];
369
+
370
+ /**
371
+ *
372
+ * @export
373
+ * @interface FileDataRecordsInnerAllOfMasterCardMessage
374
+ */
375
+ export interface FileDataRecordsInnerAllOfMasterCardMessage {
376
+ /**
377
+ * Message Type Identifier (MTI) n-4
378
+ * @type {string}
379
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
380
+ */
381
+ 'MTI'?: string;
382
+ /**
383
+ * Processing code n-6
384
+ * @type {string}
385
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
386
+ */
387
+ 'DE03'?: string;
388
+ /**
389
+ * Amount, Transaction n-12
390
+ * @type {string}
391
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
392
+ */
393
+ 'DE04'?: string;
394
+ /**
395
+ * Amount, Reconciliation n-12
396
+ * @type {string}
397
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
398
+ */
399
+ 'DE05'?: string;
400
+ /**
401
+ * Amount, Cardholder Billing n-12
402
+ * @type {string}
403
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
404
+ */
405
+ 'DE06'?: string;
406
+ /**
407
+ * Conversion Rate, Reconciliation n-8
408
+ * @type {string}
409
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
410
+ */
411
+ 'DE09'?: string;
412
+ /**
413
+ * Conversion Rate, Cardholder Billing n-8
414
+ * @type {string}
415
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
416
+ */
417
+ 'DE10'?: string;
418
+ /**
419
+ * Date and Time, Local Transaction n-12; YYMMDDhhmmss
420
+ * @type {string}
421
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
422
+ */
423
+ 'DE12'?: string;
424
+ /**
425
+ * Date, Expiration n-4; YYMM
426
+ * @type {string}
427
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
428
+ */
429
+ 'DE14'?: string;
430
+ /**
431
+ * Point of Service (POS) Entry Mode an-12
432
+ * @type {string}
433
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
434
+ */
435
+ 'DE22'?: string;
436
+ /**
437
+ * Card Sequence Number n-3
438
+ * @type {string}
439
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
440
+ */
441
+ 'DE23'?: string;
442
+ /**
443
+ * Function Code n-3
444
+ * @type {string}
445
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
446
+ */
447
+ 'DE24'?: string;
448
+ /**
449
+ * Point of Service Condition Code n-4
450
+ * @type {string}
451
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
452
+ */
453
+ 'DE25'?: string;
454
+ /**
455
+ * Point of Service PIN capture Code n-4
456
+ * @type {string}
457
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
458
+ */
459
+ 'DE26'?: string;
460
+ /**
461
+ * Amounts, Original n-24
462
+ * @type {string}
463
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
464
+ */
465
+ 'DE30'?: string;
466
+ /**
467
+ * Acquirer Reference Data n-23; LLVAR
468
+ * @type {string}
469
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
470
+ */
471
+ 'DE31'?: string;
472
+ /**
473
+ * Acquiring institution Identification Code n...11; LLVAR
474
+ * @type {string}
475
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
476
+ */
477
+ 'DE32'?: string;
478
+ /**
479
+ * Forwarding institution Identification Code n...11; LLVAR
480
+ * @type {string}
481
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
482
+ */
483
+ 'DE33'?: string;
484
+ /**
485
+ * Retrieval Reference Number ans-12
486
+ * @type {string}
487
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
488
+ */
489
+ 'DE37'?: string;
490
+ /**
491
+ * Approval Code ans-6
492
+ * @type {string}
493
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
494
+ */
495
+ 'DE38'?: string;
496
+ /**
497
+ * Service Code n-3
498
+ * @type {string}
499
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
500
+ */
501
+ 'DE40'?: string;
502
+ /**
503
+ * Card Acceptor Terminal ID ans-8
504
+ * @type {string}
505
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
506
+ */
507
+ 'DE41'?: string;
508
+ /**
509
+ * Card Acceptor ID Code ans-15
510
+ * @type {string}
511
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
512
+ */
513
+ 'DE42'?: string;
514
+ /**
515
+ * Card Acceptor Name/Location ans...99; LLVAR
516
+ * @type {string}
517
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
518
+ */
519
+ 'DE43'?: string;
520
+ /**
521
+ * Additional Data an...999; LLLVAR
522
+ * @type {string}
523
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
524
+ */
525
+ 'DE48'?: string;
526
+ /**
527
+ * Currency Code, Transaction n-3
528
+ * @type {string}
529
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
530
+ */
531
+ 'DE49'?: string;
532
+ /**
533
+ * Currency Code, Reconciliation n-3
534
+ * @type {string}
535
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
536
+ */
537
+ 'DE50'?: string;
538
+ /**
539
+ * Currency Code, Cardholder Billing n-3
540
+ * @type {string}
541
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
542
+ */
543
+ 'DE51'?: string;
544
+ /**
545
+ * Amounts, Additional ans-20; LLLVAR
546
+ * @type {string}
547
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
548
+ */
549
+ 'DE54'?: string;
550
+ /**
551
+ * Additional Data 2 ans...999; LLLVAR
552
+ * @type {string}
553
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
554
+ */
555
+ 'DE62'?: string;
556
+ /**
557
+ * Transaction Life Cycle ID ans-16; LLLVAR
558
+ * @type {string}
559
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
560
+ */
561
+ 'DE63'?: string;
562
+ /**
563
+ * Message Number n-8
564
+ * @type {string}
565
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
566
+ */
567
+ 'DE71'?: string;
568
+ /**
569
+ * Data Record ans...999; LLLVAR
570
+ * @type {string}
571
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
572
+ */
573
+ 'DE72'?: string;
574
+ /**
575
+ * Date, Action n-6; YYMMDD
576
+ * @type {string}
577
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
578
+ */
579
+ 'DE73'?: string;
580
+ /**
581
+ * Transaction Destination Institution ID Code n...11; LLVAR
582
+ * @type {string}
583
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
584
+ */
585
+ 'DE93'?: string;
586
+ /**
587
+ * Transaction Originator Institution ID Code n...11; LLVAR
588
+ * @type {string}
589
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
590
+ */
591
+ 'DE94'?: string;
592
+ /**
593
+ * Card Issuer Reference Data n-10; LLVAR
594
+ * @type {string}
595
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
596
+ */
597
+ 'DE95'?: string;
598
+ /**
599
+ * Receiving Institution ID Code n...11; LLVAR
600
+ * @type {string}
601
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
602
+ */
603
+ 'DE100'?: string;
604
+ /**
605
+ * Multi-Use Transaction Identification Data ans...999; LLVAR
606
+ * @type {string}
607
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
608
+ */
609
+ 'DE105'?: string;
610
+ /**
611
+ * Amount, Currency Conversion Assessment
612
+ * @type {string}
613
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
614
+ */
615
+ 'DE111'?: string;
616
+ /**
617
+ * Additional Data 3 ans...999; LLLVAR
618
+ * @type {string}
619
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
620
+ */
621
+ 'DE123'?: string;
622
+ /**
623
+ * Additional Data 4 ans...999; LLLVAR
624
+ * @type {string}
625
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
626
+ */
627
+ 'DE124'?: string;
628
+ /**
629
+ * Additional Data 5 ans...999; LLLVAR
630
+ * @type {string}
631
+ * @memberof FileDataRecordsInnerAllOfMasterCardMessage
632
+ */
633
+ 'DE125'?: string;
634
+ }
635
+ /**
636
+ * Interchange calculated by the scheme for the transaction.
637
+ * @export
638
+ * @interface InterchangeFee
639
+ */
640
+ export interface InterchangeFee {
641
+ /**
642
+ *
643
+ * @type {number}
644
+ * @memberof InterchangeFee
645
+ */
646
+ 'amount': number;
647
+ /**
648
+ * A valid ISO 4217 currency code
649
+ * @type {string}
650
+ * @memberof InterchangeFee
651
+ */
652
+ 'currency': string;
653
+ /**
654
+ *
655
+ * @type {InterchangeFeeDirection}
656
+ * @memberof InterchangeFee
657
+ */
658
+ 'direction': InterchangeFeeDirection;
659
+ }
660
+
661
+
662
+ /**
663
+ * Specifies if the interchange fee amount is a credit or a debit for the cardholder.
664
+ * @export
665
+ * @enum {string}
666
+ */
667
+
668
+ export const InterchangeFeeDirection = {
669
+ Credit: 'CREDIT',
670
+ Debit: 'DEBIT',
671
+ Unknown: 'UNKNOWN'
672
+ } as const;
673
+
674
+ export type InterchangeFeeDirection = typeof InterchangeFeeDirection[keyof typeof InterchangeFeeDirection];
675
+
676
+
677
+ /**
678
+ *
679
+ * @export
680
+ * @interface Merchant
681
+ */
682
+ export interface Merchant {
683
+ /**
684
+ * ID assigned code each card acceptor, i.e. a merchant or a bank.
685
+ * @type {string}
686
+ * @memberof Merchant
687
+ */
688
+ 'id'?: string;
689
+ /**
690
+ * Merchant name as received from the card scheme. For ATMs, this can be a street address or a bank branch number.
691
+ * @type {string}
692
+ * @memberof Merchant
693
+ */
694
+ 'name'?: string;
695
+ /**
696
+ * The city where the transaction/withdrawal has occurred or where the merchant is registered.
697
+ * @type {string}
698
+ * @memberof Merchant
699
+ */
700
+ 'city'?: string;
701
+ /**
702
+ * The country where the transaction/withdrawal has occurred or where the merchant is registered.
703
+ * @type {string}
704
+ * @memberof Merchant
705
+ */
706
+ 'country'?: string;
707
+ /**
708
+ * The merchant\'s postal code.
709
+ * @type {string}
710
+ * @memberof Merchant
711
+ */
712
+ 'zipCode'?: string;
713
+ /**
714
+ * Contains the merchant\'s street address.
715
+ * @type {string}
716
+ * @memberof Merchant
717
+ */
718
+ 'address'?: string;
719
+ /**
720
+ *
721
+ * @type {MerchantCategory}
722
+ * @memberof Merchant
723
+ */
724
+ 'category'?: MerchantCategory;
725
+ /**
726
+ * Uniquely ID assigned to each terminal used by the merchant.
727
+ * @type {string}
728
+ * @memberof Merchant
729
+ */
730
+ 'terminalId'?: string;
731
+ /**
732
+ * The sub-merchant ID is used when merchant ID is not adequate to identify the merchant. Used when a merchant uses a payment facilitator.
733
+ * @type {string}
734
+ * @memberof Merchant
735
+ */
736
+ 'subMerchantId'?: string;
737
+ /**
738
+ * Indicates whether the merchant is capable of accepting partial approval of an amount: - TRUE: Specifies `TRUE` if the merchant accepts partial approval. - FALSE: Specifies `FALSE` if the merchant does not accept partial approval.
739
+ * @type {boolean}
740
+ * @memberof Merchant
741
+ */
742
+ 'partialApprovalCapable'?: boolean;
743
+ /**
744
+ * Unique ID assigned to the financial institution acting as the merchant\'s acquirer.
745
+ * @type {string}
746
+ * @memberof Merchant
747
+ */
748
+ 'acquirerId'?: string;
749
+ /**
750
+ * The country of the merchant\'s acquirer — mention the ISO-3166-1 alpha-3 country code.
751
+ * @type {string}
752
+ * @memberof Merchant
753
+ */
754
+ 'acquirerCountry'?: string;
755
+ /**
756
+ * Data an acquirer supplies in an acquirer-originated message, might be required for the issuer to return to the acquirer in a subsequent message.
757
+ * @type {string}
758
+ * @memberof Merchant
759
+ */
760
+ 'acquirerReferenceData'?: string;
761
+ }
762
+ /**
763
+ *
764
+ * @export
765
+ * @interface MerchantCategory
766
+ */
767
+ export interface MerchantCategory {
768
+ /**
769
+ * Merchant category code as per the card scheme classification. Categorisation is done based on the type of business or service the merchant provides.
770
+ * @type {string}
771
+ * @memberof MerchantCategory
772
+ */
773
+ 'code'?: string;
774
+ /**
775
+ * Description of the Merchant Category Code (MCC).
776
+ * @type {string}
777
+ * @memberof MerchantCategory
778
+ */
779
+ 'description'?: string;
780
+ /**
781
+ * Merchant Category Code (MCC) group as received from the scheme.
782
+ * @type {string}
783
+ * @memberof MerchantCategory
784
+ */
785
+ 'group'?: string;
786
+ }
787
+ /**
788
+ * Metadata relevant to the clearing file copy. <Note>As per the current implementation, we are using the `FINANCIAL` message category only.</Note>
789
+ * @export
790
+ * @enum {string}
791
+ */
792
+
793
+ export const MessageCategoryClearing = {
794
+ Financial: 'FINANCIAL',
795
+ FinancialAddendum: 'FINANCIAL_ADDENDUM',
796
+ FeeCollection: 'FEE_COLLECTION',
797
+ Reconciliation: 'RECONCILIATION',
798
+ DocumentRequest: 'DOCUMENT_REQUEST',
799
+ Chargeback: 'CHARGEBACK',
800
+ ChargebackReversal: 'CHARGEBACK_REVERSAL',
801
+ Representment: 'REPRESENTMENT',
802
+ RepresentmentReversal: 'REPRESENTMENT_REVERSAL'
803
+ } as const;
804
+
805
+ export type MessageCategoryClearing = typeof MessageCategoryClearing[keyof typeof MessageCategoryClearing];
806
+
807
+
808
+ /**
809
+ * Identifies the message function of the clearing message.
810
+ * @export
811
+ * @enum {string}
812
+ */
813
+
814
+ export const MessageFunctionClearing = {
815
+ Notification: 'NOTIFICATION'
816
+ } as const;
817
+
818
+ export type MessageFunctionClearing = typeof MessageFunctionClearing[keyof typeof MessageFunctionClearing];
819
+
820
+
821
+ /**
822
+ * Amount including currency.
823
+ * @export
824
+ * @interface Money
825
+ */
826
+ export interface Money {
827
+ /**
828
+ *
829
+ * @type {number}
830
+ * @memberof Money
831
+ */
832
+ 'amount': number;
833
+ /**
834
+ * A valid ISO 4217 currency code
835
+ * @type {string}
836
+ * @memberof Money
837
+ */
838
+ 'currency': string;
839
+ }
840
+ /**
841
+ *
842
+ * @export
843
+ * @interface ProcessedTransaction
844
+ */
845
+ export interface ProcessedTransaction {
846
+ /**
847
+ * Enfuce generated code/number (6-digits)— returned to the merchant when authorisation is approved. In case of scheme advices, this is generated and transmitted by the scheme.
848
+ * @type {string}
849
+ * @memberof ProcessedTransaction
850
+ */
851
+ 'authCode'?: string;
852
+ /**
853
+ * Number of days the authorisation is valid (applicable when merchants requests for extended authorisation period, longer than the default 7 days).
854
+ * @type {number}
855
+ * @memberof ProcessedTransaction
856
+ */
857
+ 'authValidity'?: number;
858
+ /**
859
+ * Transaction amount in the currency of the ledger account (associated with the card). If any issuer transaction fee is applied (see the issuerTransactionFees field), the billingAmount also includes those fees.
860
+ * @type {Money}
861
+ * @memberof ProcessedTransaction
862
+ */
863
+ 'billingAmount'?: Money;
864
+ /**
865
+ * The transaction amount in the local currency of the acquirer or the merchant, where the transaction occurred.
866
+ * @type {Money}
867
+ * @memberof ProcessedTransaction
868
+ */
869
+ 'transactionAmount'?: Money;
870
+ /**
871
+ * The amount of funds transferred between the acquirer and the issuer, equal to the `transactionAmount`, in the settlement currency.
872
+ * @type {Money}
873
+ * @memberof ProcessedTransaction
874
+ */
875
+ 'settlementAmount'?: Money;
876
+ /**
877
+ * Fee charged (for example, by the acquirer) for transaction activity.
878
+ * @type {Money}
879
+ * @memberof ProcessedTransaction
880
+ */
881
+ 'acquirerTransactionFeeAmount'?: Money;
882
+ /**
883
+ *
884
+ * @type {Array<TransactionFee>}
885
+ * @memberof ProcessedTransaction
886
+ */
887
+ 'issuerTransactionFees'?: Array<TransactionFee>;
888
+ /**
889
+ *
890
+ * @type {Array<CardholderVerificationMethod>}
891
+ * @memberof ProcessedTransaction
892
+ */
893
+ 'cardholderVerificationMethods'?: Array<CardholderVerificationMethod>;
894
+ /**
895
+ * Merchant/acquirer generated transaction reference number.
896
+ * @type {string}
897
+ * @memberof ProcessedTransaction
898
+ */
899
+ 'retrievalReferenceNumber'?: string;
900
+ /**
901
+ *
902
+ * @type {CardEntryMode}
903
+ * @memberof ProcessedTransaction
904
+ */
905
+ 'cardEntryMode'?: CardEntryMode;
906
+ /**
907
+ * Indicates whether the cardholder is physically present during transaction.
908
+ * @type {boolean}
909
+ * @memberof ProcessedTransaction
910
+ */
911
+ 'cardholderPresent'?: boolean;
912
+ /**
913
+ * Indicates whether the card is present at the point of service.
914
+ * @type {boolean}
915
+ * @memberof ProcessedTransaction
916
+ */
917
+ 'cardPresent'?: boolean;
918
+ /**
919
+ * Indicates whether the transaction is a recurring payment or merchant initiated. This implies whether the cardholder has approved the merchant initiated transaction.
920
+ * @type {boolean}
921
+ * @memberof ProcessedTransaction
922
+ */
923
+ 'merchantInitiated'?: boolean;
924
+ /**
925
+ * Date and time in the time zone where the transaction occurred.
926
+ * @type {string}
927
+ * @memberof ProcessedTransaction
928
+ */
929
+ 'transactionDateTime'?: string;
930
+ /**
931
+ * This value is present only for recurring transaction, and it\'s value is first original authorisation request in the chain.
932
+ * @type {string}
933
+ * @memberof ProcessedTransaction
934
+ */
935
+ 'originalTransactionId'?: string;
936
+ /**
937
+ *
938
+ * @type {TransactionTypeClearing}
939
+ * @memberof ProcessedTransaction
940
+ */
941
+ 'transactionType'?: TransactionTypeClearing;
942
+ /**
943
+ * Contains previous amounts in a Financial message that has been corrected, in transaction currency.
944
+ * @type {Money}
945
+ * @memberof ProcessedTransaction
946
+ */
947
+ 'originalAmount'?: Money;
948
+ /**
949
+ * Identifies the clearing systems processing date expressed in the local time zone of the clearing system.
950
+ * @type {string}
951
+ * @memberof ProcessedTransaction
952
+ */
953
+ 'reconciliationDate'?: string;
954
+ /**
955
+ * Identifies a reconciliation period in a reconciliation date.
956
+ * @type {string}
957
+ * @memberof ProcessedTransaction
958
+ */
959
+ 'reconciliationCycle'?: string;
960
+ /**
961
+ * Time when processed by Enfuce.
962
+ * @type {string}
963
+ * @memberof ProcessedTransaction
964
+ */
965
+ 'processedDateTime'?: string;
966
+ /**
967
+ *
968
+ * @type {InterchangeFee}
969
+ * @memberof ProcessedTransaction
970
+ */
971
+ 'interchangeFee'?: InterchangeFee;
972
+ /**
973
+ *
974
+ * @type {ExchangeRates}
975
+ * @memberof ProcessedTransaction
976
+ */
977
+ 'exchangeRates'?: ExchangeRates;
978
+ }
979
+
980
+
981
+ /**
982
+ *
983
+ * @export
984
+ * @interface Transaction
985
+ */
986
+ export interface Transaction {
987
+ /**
988
+ * Enfuce generated code/number (6-digits)— returned to the merchant when authorisation is approved. In case of scheme advices, this is generated and transmitted by the scheme.
989
+ * @type {string}
990
+ * @memberof Transaction
991
+ */
992
+ 'authCode'?: string;
993
+ /**
994
+ * Number of days the authorisation is valid (applicable when merchants requests for extended authorisation period, longer than the default 7 days).
995
+ * @type {number}
996
+ * @memberof Transaction
997
+ */
998
+ 'authValidity'?: number;
999
+ /**
1000
+ * Transaction amount in the currency of the ledger account (associated with the card). If any issuer transaction fee is applied (see the issuerTransactionFees field), the billingAmount also includes those fees.
1001
+ * @type {Money}
1002
+ * @memberof Transaction
1003
+ */
1004
+ 'billingAmount'?: Money;
1005
+ /**
1006
+ * The transaction amount in the local currency of the acquirer or the merchant, where the transaction occurred.
1007
+ * @type {Money}
1008
+ * @memberof Transaction
1009
+ */
1010
+ 'transactionAmount'?: Money;
1011
+ /**
1012
+ * The amount of funds transferred between the acquirer and the issuer, equal to the `transactionAmount`, in the settlement currency.
1013
+ * @type {Money}
1014
+ * @memberof Transaction
1015
+ */
1016
+ 'settlementAmount'?: Money;
1017
+ /**
1018
+ * Fee charged (for example, by the acquirer) for transaction activity.
1019
+ * @type {Money}
1020
+ * @memberof Transaction
1021
+ */
1022
+ 'acquirerTransactionFeeAmount'?: Money;
1023
+ /**
1024
+ *
1025
+ * @type {Array<TransactionFee>}
1026
+ * @memberof Transaction
1027
+ */
1028
+ 'issuerTransactionFees'?: Array<TransactionFee>;
1029
+ /**
1030
+ *
1031
+ * @type {Array<CardholderVerificationMethod>}
1032
+ * @memberof Transaction
1033
+ */
1034
+ 'cardholderVerificationMethods'?: Array<CardholderVerificationMethod>;
1035
+ /**
1036
+ * Merchant/acquirer generated transaction reference number.
1037
+ * @type {string}
1038
+ * @memberof Transaction
1039
+ */
1040
+ 'retrievalReferenceNumber'?: string;
1041
+ /**
1042
+ *
1043
+ * @type {CardEntryMode}
1044
+ * @memberof Transaction
1045
+ */
1046
+ 'cardEntryMode'?: CardEntryMode;
1047
+ /**
1048
+ * Indicates whether the cardholder is physically present during transaction.
1049
+ * @type {boolean}
1050
+ * @memberof Transaction
1051
+ */
1052
+ 'cardholderPresent'?: boolean;
1053
+ /**
1054
+ * Indicates whether the card is present at the point of service.
1055
+ * @type {boolean}
1056
+ * @memberof Transaction
1057
+ */
1058
+ 'cardPresent'?: boolean;
1059
+ /**
1060
+ * Indicates whether the transaction is a recurring payment or merchant initiated. This implies whether the cardholder has approved the merchant initiated transaction.
1061
+ * @type {boolean}
1062
+ * @memberof Transaction
1063
+ */
1064
+ 'merchantInitiated'?: boolean;
1065
+ /**
1066
+ * Date and time in the time zone where the transaction occurred.
1067
+ * @type {string}
1068
+ * @memberof Transaction
1069
+ */
1070
+ 'transactionDateTime'?: string;
1071
+ /**
1072
+ * This value is present only for recurring transaction, and it\'s value is first original authorisation request in the chain.
1073
+ * @type {string}
1074
+ * @memberof Transaction
1075
+ */
1076
+ 'originalTransactionId'?: string;
1077
+ }
1078
+
1079
+
1080
+ /**
1081
+ *
1082
+ * @export
1083
+ * @interface Transaction1
1084
+ */
1085
+ export interface Transaction1 {
1086
+ /**
1087
+ * Enfuce generated code/number (6-digits)— returned to the merchant when authorisation is approved. In case of scheme advices, this is generated and transmitted by the scheme.
1088
+ * @type {string}
1089
+ * @memberof Transaction1
1090
+ */
1091
+ 'authCode'?: string;
1092
+ /**
1093
+ * Number of days the authorisation is valid (applicable when merchants requests for extended authorisation period, longer than the default 7 days).
1094
+ * @type {number}
1095
+ * @memberof Transaction1
1096
+ */
1097
+ 'authValidity'?: number;
1098
+ /**
1099
+ * Transaction amount in the currency of the ledger account (associated with the card). If any issuer transaction fee is applied (see the issuerTransactionFees field), the billingAmount also includes those fees.
1100
+ * @type {Money}
1101
+ * @memberof Transaction1
1102
+ */
1103
+ 'billingAmount'?: Money;
1104
+ /**
1105
+ * The transaction amount in the local currency of the acquirer or the merchant, where the transaction occurred.
1106
+ * @type {Money}
1107
+ * @memberof Transaction1
1108
+ */
1109
+ 'transactionAmount'?: Money;
1110
+ /**
1111
+ * The amount of funds transferred between the acquirer and the issuer, equal to the `transactionAmount`, in the settlement currency.
1112
+ * @type {Money}
1113
+ * @memberof Transaction1
1114
+ */
1115
+ 'settlementAmount'?: Money;
1116
+ /**
1117
+ * Fee charged (for example, by the acquirer) for transaction activity.
1118
+ * @type {Money}
1119
+ * @memberof Transaction1
1120
+ */
1121
+ 'acquirerTransactionFeeAmount'?: Money;
1122
+ /**
1123
+ *
1124
+ * @type {Array<TransactionFee>}
1125
+ * @memberof Transaction1
1126
+ */
1127
+ 'issuerTransactionFees'?: Array<TransactionFee>;
1128
+ /**
1129
+ *
1130
+ * @type {Array<CardholderVerificationMethod>}
1131
+ * @memberof Transaction1
1132
+ */
1133
+ 'cardholderVerificationMethods'?: Array<CardholderVerificationMethod>;
1134
+ /**
1135
+ * Merchant/acquirer generated transaction reference number.
1136
+ * @type {string}
1137
+ * @memberof Transaction1
1138
+ */
1139
+ 'retrievalReferenceNumber'?: string;
1140
+ /**
1141
+ *
1142
+ * @type {CardEntryMode}
1143
+ * @memberof Transaction1
1144
+ */
1145
+ 'cardEntryMode'?: CardEntryMode;
1146
+ /**
1147
+ * Indicates whether the cardholder is physically present during transaction.
1148
+ * @type {boolean}
1149
+ * @memberof Transaction1
1150
+ */
1151
+ 'cardholderPresent'?: boolean;
1152
+ /**
1153
+ * Indicates whether the card is present at the point of service.
1154
+ * @type {boolean}
1155
+ * @memberof Transaction1
1156
+ */
1157
+ 'cardPresent'?: boolean;
1158
+ /**
1159
+ * Indicates whether the transaction is a recurring payment or merchant initiated. This implies whether the cardholder has approved the merchant initiated transaction.
1160
+ * @type {boolean}
1161
+ * @memberof Transaction1
1162
+ */
1163
+ 'merchantInitiated'?: boolean;
1164
+ /**
1165
+ * Date and time in the time zone where the transaction occurred.
1166
+ * @type {string}
1167
+ * @memberof Transaction1
1168
+ */
1169
+ 'transactionDateTime'?: string;
1170
+ /**
1171
+ * This value is present only for recurring transaction, and it\'s value is first original authorisation request in the chain.
1172
+ * @type {string}
1173
+ * @memberof Transaction1
1174
+ */
1175
+ 'originalTransactionId'?: string;
1176
+ /**
1177
+ *
1178
+ * @type {TransactionTypeClearing}
1179
+ * @memberof Transaction1
1180
+ */
1181
+ 'transactionType'?: TransactionTypeClearing;
1182
+ /**
1183
+ * Contains previous amounts in a Financial message that has been corrected, in transaction currency.
1184
+ * @type {Money}
1185
+ * @memberof Transaction1
1186
+ */
1187
+ 'originalAmount'?: Money;
1188
+ /**
1189
+ * Identifies the clearing systems processing date expressed in the local time zone of the clearing system.
1190
+ * @type {string}
1191
+ * @memberof Transaction1
1192
+ */
1193
+ 'reconciliationDate'?: string;
1194
+ /**
1195
+ * Identifies a reconciliation period in a reconciliation date.
1196
+ * @type {string}
1197
+ * @memberof Transaction1
1198
+ */
1199
+ 'reconciliationCycle'?: string;
1200
+ /**
1201
+ * Time when processed by Enfuce.
1202
+ * @type {string}
1203
+ * @memberof Transaction1
1204
+ */
1205
+ 'processedDateTime'?: string;
1206
+ /**
1207
+ *
1208
+ * @type {InterchangeFee}
1209
+ * @memberof Transaction1
1210
+ */
1211
+ 'interchangeFee'?: InterchangeFee;
1212
+ /**
1213
+ *
1214
+ * @type {ExchangeRates}
1215
+ * @memberof Transaction1
1216
+ */
1217
+ 'exchangeRates'?: ExchangeRates;
1218
+ /**
1219
+ * The amount (in ch billing currency) that the authorisation should be adjusted to in case a merchant makes an adjustment.
1220
+ * @type {Money}
1221
+ * @memberof Transaction1
1222
+ */
1223
+ 'replacementAmount'?: Money;
1224
+ /**
1225
+ * The cashback amount received at clearing time.
1226
+ * @type {Money}
1227
+ * @memberof Transaction1
1228
+ */
1229
+ 'cashbackAmount'?: Money;
1230
+ /**
1231
+ *
1232
+ * @type {ClearingStatus}
1233
+ * @memberof Transaction1
1234
+ */
1235
+ 'clearingStatus'?: ClearingStatus;
1236
+ /**
1237
+ * Indicates if transaction was cleared in a single operation.
1238
+ * @type {boolean}
1239
+ * @memberof Transaction1
1240
+ */
1241
+ 'partialClearingApplied'?: boolean;
1242
+ /**
1243
+ * Time of the authorization request.
1244
+ * @type {string}
1245
+ * @memberof Transaction1
1246
+ */
1247
+ 'authorizationProcessedDateTime'?: string;
1248
+ }
1249
+
1250
+
1251
+ /**
1252
+ *
1253
+ * @export
1254
+ * @interface TransactionFee
1255
+ */
1256
+ export interface TransactionFee {
1257
+ /**
1258
+ * Type of Issuer generated transaction fee in cardholder billing currency. Transaction based fees that are additional fees charged on top of the transaction.
1259
+ * @type {string}
1260
+ * @memberof TransactionFee
1261
+ */
1262
+ 'type'?: TransactionFeeTypeEnum;
1263
+ /**
1264
+ * Transaction fee amount in cardholder billing currency.
1265
+ * @type {Money}
1266
+ * @memberof TransactionFee
1267
+ */
1268
+ 'amount'?: Money;
1269
+ }
1270
+
1271
+ export const TransactionFeeTypeEnum = {
1272
+ CashFee: 'CASH_FEE',
1273
+ AtmFee: 'ATM_FEE',
1274
+ MarkupFee: 'MARKUP_FEE'
1275
+ } as const;
1276
+
1277
+ export type TransactionFeeTypeEnum = typeof TransactionFeeTypeEnum[keyof typeof TransactionFeeTypeEnum];
1278
+
1279
+ /**
1280
+ * The transaction Type
1281
+ * @export
1282
+ * @enum {string}
1283
+ */
1284
+
1285
+ export const TransactionTypeClearing = {
1286
+ Retail: 'RETAIL',
1287
+ Atm: 'ATM',
1288
+ Unique: 'UNIQUE',
1289
+ CashDisbursement: 'CASH_DISBURSEMENT',
1290
+ Credit: 'CREDIT',
1291
+ OriginalCredit: 'ORIGINAL_CREDIT',
1292
+ BalanceInquiry: 'BALANCE_INQUIRY',
1293
+ P2PDebit: 'P2P_DEBIT',
1294
+ P2PCredit: 'P2P_CREDIT',
1295
+ PinChange: 'PIN_CHANGE',
1296
+ PinUnblock: 'PIN_UNBLOCK',
1297
+ FeeCollectionDebit: 'FEE_COLLECTION_DEBIT',
1298
+ FeeCollectionCredit: 'FEE_COLLECTION_CREDIT',
1299
+ Cashback: 'CASHBACK',
1300
+ ConvenienceCheck: 'CONVENIENCE_CHECK',
1301
+ BalanceTransfer: 'BALANCE_TRANSFER',
1302
+ Reversal: 'REVERSAL',
1303
+ Aft: 'AFT'
1304
+ } as const;
1305
+
1306
+ export type TransactionTypeClearing = typeof TransactionTypeClearing[keyof typeof TransactionTypeClearing];
1307
+
1308
+
1309
+