@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,876 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Enfuce Authorisation Request API
5
+ * Authorisation Request API gives the issuer/ledger the flexibility to create sophisticated rules for approving and declining transactions in real time.
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
+ *
28
+ * @export
29
+ * @interface Account
30
+ */
31
+ export interface Account {
32
+ /**
33
+ * Available amount before this transaction has been processed.
34
+ * @type {Money}
35
+ * @memberof Account
36
+ */
37
+ 'availableAmount': Money;
38
+ }
39
+ /**
40
+ *
41
+ * @export
42
+ * @interface ApprovedTransaction
43
+ */
44
+ export interface ApprovedTransaction {
45
+ /**
46
+ * 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.
47
+ * @type {string}
48
+ * @memberof ApprovedTransaction
49
+ */
50
+ 'authCode'?: string;
51
+ /**
52
+ * Number of days the authorisation is valid (applicable when merchants requests for extended authorisation period, longer than the default 7 days).
53
+ * @type {number}
54
+ * @memberof ApprovedTransaction
55
+ */
56
+ 'authValidity'?: number;
57
+ /**
58
+ * 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.
59
+ * @type {Money}
60
+ * @memberof ApprovedTransaction
61
+ */
62
+ 'billingAmount'?: Money;
63
+ /**
64
+ * The transaction amount in the local currency of the acquirer or the merchant, where the transaction occurred.
65
+ * @type {Money}
66
+ * @memberof ApprovedTransaction
67
+ */
68
+ 'transactionAmount'?: Money;
69
+ /**
70
+ * The amount of funds transferred between the acquirer and the issuer, equal to the `transactionAmount`, in the settlement currency.
71
+ * @type {Money}
72
+ * @memberof ApprovedTransaction
73
+ */
74
+ 'settlementAmount'?: Money;
75
+ /**
76
+ * Fee charged (for example, by the acquirer) for transaction activity.
77
+ * @type {Money}
78
+ * @memberof ApprovedTransaction
79
+ */
80
+ 'acquirerTransactionFeeAmount'?: Money;
81
+ /**
82
+ *
83
+ * @type {Array<TransactionFee>}
84
+ * @memberof ApprovedTransaction
85
+ */
86
+ 'issuerTransactionFees'?: Array<TransactionFee>;
87
+ /**
88
+ *
89
+ * @type {Array<CardholderVerificationMethod>}
90
+ * @memberof ApprovedTransaction
91
+ */
92
+ 'cardholderVerificationMethods'?: Array<CardholderVerificationMethod>;
93
+ /**
94
+ * Merchant/acquirer generated transaction reference number.
95
+ * @type {string}
96
+ * @memberof ApprovedTransaction
97
+ */
98
+ 'retrievalReferenceNumber'?: string;
99
+ /**
100
+ *
101
+ * @type {CardEntryMode}
102
+ * @memberof ApprovedTransaction
103
+ */
104
+ 'cardEntryMode'?: CardEntryMode;
105
+ /**
106
+ * Indicates whether the cardholder is physically present during transaction.
107
+ * @type {boolean}
108
+ * @memberof ApprovedTransaction
109
+ */
110
+ 'cardholderPresent'?: boolean;
111
+ /**
112
+ * Indicates whether the card is present at the point of service.
113
+ * @type {boolean}
114
+ * @memberof ApprovedTransaction
115
+ */
116
+ 'cardPresent'?: boolean;
117
+ /**
118
+ * Indicates whether the transaction is a recurring payment or merchant initiated. This implies whether the cardholder has approved the merchant initiated transaction.
119
+ * @type {boolean}
120
+ * @memberof ApprovedTransaction
121
+ */
122
+ 'merchantInitiated'?: boolean;
123
+ /**
124
+ * Date and time in the time zone where the transaction occurred.
125
+ * @type {string}
126
+ * @memberof ApprovedTransaction
127
+ */
128
+ 'transactionDateTime'?: string;
129
+ /**
130
+ * This value is present only for recurring transaction, and it\'s value is first original authorisation request in the chain.
131
+ * @type {string}
132
+ * @memberof ApprovedTransaction
133
+ */
134
+ 'originalTransactionId'?: string;
135
+ /**
136
+ *
137
+ * @type {TransactionType}
138
+ * @memberof ApprovedTransaction
139
+ */
140
+ 'transactionType'?: TransactionType;
141
+ /**
142
+ * Amount approved at the current payment processing stage; the amount might be further reduced in the subsequent stages, when the Ledger performs additional validations. If any issuer transaction fee is applied (see the issuerTransactionFees field), the approvedAmount also includes those fees.
143
+ * @type {Money}
144
+ * @memberof ApprovedTransaction
145
+ */
146
+ 'approvedAmount'?: Money;
147
+ /**
148
+ * Time when processed by Enfuce.
149
+ * @type {string}
150
+ * @memberof ApprovedTransaction
151
+ */
152
+ 'processedDateTime'?: string;
153
+ }
154
+
155
+
156
+ /**
157
+ *
158
+ * @export
159
+ * @interface AuthRequestBody
160
+ */
161
+ export interface AuthRequestBody {
162
+ /**
163
+ * Unique system generated ID assigned to each event in the payment processing workflow. For example, an ID assigned to the initial authorisation event.
164
+ * @type {string}
165
+ * @memberof AuthRequestBody
166
+ */
167
+ 'id'?: string;
168
+ /**
169
+ * 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`.
170
+ * @type {string}
171
+ * @memberof AuthRequestBody
172
+ */
173
+ 'transactionId'?: string;
174
+ /**
175
+ *
176
+ * @type {MessageCategoryAuthorization}
177
+ * @memberof AuthRequestBody
178
+ */
179
+ 'messageCategory'?: MessageCategoryAuthorization;
180
+ /**
181
+ *
182
+ * @type {MessageFunctionAuthorization}
183
+ * @memberof AuthRequestBody
184
+ */
185
+ 'messageFunction'?: MessageFunctionAuthorization;
186
+ /**
187
+ *
188
+ * @type {Token}
189
+ * @memberof AuthRequestBody
190
+ */
191
+ 'token'?: Token;
192
+ /**
193
+ *
194
+ * @type {Card}
195
+ * @memberof AuthRequestBody
196
+ */
197
+ 'card': Card;
198
+ /**
199
+ *
200
+ * @type {Merchant}
201
+ * @memberof AuthRequestBody
202
+ */
203
+ 'merchant': Merchant;
204
+ /**
205
+ *
206
+ * @type {ApprovedTransaction}
207
+ * @memberof AuthRequestBody
208
+ */
209
+ 'transaction': ApprovedTransaction;
210
+ }
211
+
212
+
213
+ /**
214
+ *
215
+ * @export
216
+ * @interface AuthResponseBody
217
+ */
218
+ export interface AuthResponseBody {
219
+ /**
220
+ *
221
+ * @type {AuthResponseCode}
222
+ * @memberof AuthResponseBody
223
+ */
224
+ 'authResponseCode': AuthResponseCode;
225
+ /**
226
+ *
227
+ * @type {Account}
228
+ * @memberof AuthResponseBody
229
+ */
230
+ 'account'?: Account;
231
+ /**
232
+ * Return when there is a partial approval. When the balance is less than the transaction amount, return the available amount that you authorise. Return this attribute only when in the request `merchant.partialApprovalCapable` is true (i.e. the merchant approves that a smaller amount than the full transaction amount is authorised), and `authResponseCode` should be `PARTIALLY_APPROVED`.
233
+ * @type {Money}
234
+ * @memberof AuthResponseBody
235
+ */
236
+ 'partialApprovalAmount'?: Money;
237
+ }
238
+
239
+
240
+ /**
241
+ * Indicates whether the authorisation request is approved or declined. Possible enums: * `APPROVED` - Approved * `PARTIALLY_APPROVED` - Approved for partial amount * `DO_NOT_HONOR` - Do not honor (**Note**: Card schemes recommend to use this only when other options do not apply) * `NOT_SUFFICIENT_FUNDS` - Inadequate funds * `NOT_PERMITTED` - Transaction not permitted to cardholder * `EXCEEDS_AMOUNT_LIMIT` - Exceeds approval amount limit * `RESTRICTED_CARD` - Restricted card (card invalid in region or country) * `EXCEEDS_WITHDRAWAL_FREQUENCY_LIMIT` - Exceeds withdrawal frequency limit * `SYSTEM_ERROR` - System malfunction
242
+ * @export
243
+ * @enum {string}
244
+ */
245
+
246
+ export const AuthResponseCode = {
247
+ Approved: 'APPROVED',
248
+ PartiallyApproved: 'PARTIALLY_APPROVED',
249
+ DoNotHonor: 'DO_NOT_HONOR',
250
+ NotSufficientFunds: 'NOT_SUFFICIENT_FUNDS',
251
+ NotPermitted: 'NOT_PERMITTED',
252
+ ExceedsAmountLimit: 'EXCEEDS_AMOUNT_LIMIT',
253
+ RestrictedCard: 'RESTRICTED_CARD',
254
+ ExceedsWithdrawalFrequencyLimit: 'EXCEEDS_WITHDRAWAL_FREQUENCY_LIMIT',
255
+ SystemError: 'SYSTEM_ERROR'
256
+ } as const;
257
+
258
+ export type AuthResponseCode = typeof AuthResponseCode[keyof typeof AuthResponseCode];
259
+
260
+
261
+ /**
262
+ *
263
+ * @export
264
+ * @interface AuthorizationMetadata
265
+ */
266
+ export interface AuthorizationMetadata {
267
+ /**
268
+ * Unique system generated ID assigned to each event in the payment processing workflow. For example, an ID assigned to the initial authorisation event.
269
+ * @type {string}
270
+ * @memberof AuthorizationMetadata
271
+ */
272
+ 'id'?: string;
273
+ /**
274
+ * 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`.
275
+ * @type {string}
276
+ * @memberof AuthorizationMetadata
277
+ */
278
+ 'transactionId'?: string;
279
+ /**
280
+ *
281
+ * @type {MessageCategoryAuthorization}
282
+ * @memberof AuthorizationMetadata
283
+ */
284
+ 'messageCategory'?: MessageCategoryAuthorization;
285
+ /**
286
+ *
287
+ * @type {MessageFunctionAuthorization}
288
+ * @memberof AuthorizationMetadata
289
+ */
290
+ 'messageFunction'?: MessageFunctionAuthorization;
291
+ }
292
+
293
+
294
+ /**
295
+ * Information about the card used for the payment.
296
+ * @export
297
+ * @interface Card
298
+ */
299
+ export interface Card {
300
+ /**
301
+ * Enfuce generated unique ID assigned to each card used — enables you to identify the card that you must authorise.
302
+ * @type {string}
303
+ * @memberof Card
304
+ */
305
+ 'id'?: string;
306
+ /**
307
+ * Card expiration date as received in the scheme message.
308
+ * @type {Expiration}
309
+ * @memberof Card
310
+ */
311
+ 'expirationDate'?: Expiration;
312
+ /**
313
+ * Card sequence number as received in the scheme message.
314
+ * @type {number}
315
+ * @memberof Card
316
+ */
317
+ 'sequenceNumber'?: number;
318
+ /**
319
+ * Ledger provided account ID associated with the card.
320
+ * @type {string}
321
+ * @memberof Card
322
+ */
323
+ 'accountId'?: string;
324
+ /**
325
+ * Unique ID of the cardholder associated with the card.
326
+ * @type {string}
327
+ * @memberof Card
328
+ */
329
+ 'cardholderId'?: string;
330
+ /**
331
+ * Information about any parent card group associated with the card.
332
+ * @type {Array<CardGroupsInner>}
333
+ * @memberof Card
334
+ */
335
+ 'groups'?: Array<CardGroupsInner>;
336
+ /**
337
+ * The type of card application used for the transaction.
338
+ * @type {string}
339
+ * @memberof Card
340
+ */
341
+ 'applicationSelection'?: CardApplicationSelectionEnum;
342
+ }
343
+
344
+ export const CardApplicationSelectionEnum = {
345
+ Debit: 'DEBIT',
346
+ Credit: 'CREDIT'
347
+ } as const;
348
+
349
+ export type CardApplicationSelectionEnum = typeof CardApplicationSelectionEnum[keyof typeof CardApplicationSelectionEnum];
350
+
351
+ /**
352
+ * Describes how the card credentials were captured.
353
+ * @export
354
+ * @enum {string}
355
+ */
356
+
357
+ export const CardEntryMode = {
358
+ Chip: 'CHIP',
359
+ ChipContactless: 'CHIP_CONTACTLESS',
360
+ MagneticStripe: 'MAGNETIC_STRIPE',
361
+ ManualEntry: 'MANUAL_ENTRY',
362
+ WalletContactless: 'WALLET_CONTACTLESS',
363
+ Ecommerce: 'ECOMMERCE',
364
+ WalletEcommerce: 'WALLET_ECOMMERCE',
365
+ CredentialsOnFile: 'CREDENTIALS_ON_FILE',
366
+ Unknown: 'UNKNOWN'
367
+ } as const;
368
+
369
+ export type CardEntryMode = typeof CardEntryMode[keyof typeof CardEntryMode];
370
+
371
+
372
+ /**
373
+ *
374
+ * @export
375
+ * @interface CardGroupsInner
376
+ */
377
+ export interface CardGroupsInner {
378
+ /**
379
+ * Unique ID assigned to the parent card group.
380
+ * @type {string}
381
+ * @memberof CardGroupsInner
382
+ */
383
+ 'groupId': string;
384
+ }
385
+ /**
386
+ * 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.
387
+ * @export
388
+ * @enum {string}
389
+ */
390
+
391
+ export const CardholderVerificationMethod = {
392
+ PinVerifiedByCard: 'PIN_VERIFIED_BY_CARD',
393
+ PinVerifiedByIssuer: 'PIN_VERIFIED_BY_ISSUER',
394
+ Wallet: 'WALLET',
395
+ ThreeDs: 'THREE_DS',
396
+ Biometric: 'BIOMETRIC',
397
+ Signature: 'SIGNATURE',
398
+ NoVerification: 'NO_VERIFICATION'
399
+ } as const;
400
+
401
+ export type CardholderVerificationMethod = typeof CardholderVerificationMethod[keyof typeof CardholderVerificationMethod];
402
+
403
+
404
+ /**
405
+ *
406
+ * @export
407
+ * @interface Expiration
408
+ */
409
+ export interface Expiration {
410
+ /**
411
+ * Expiration year in YYYY format.
412
+ * @type {number}
413
+ * @memberof Expiration
414
+ */
415
+ 'year': number;
416
+ /**
417
+ * Expiration month in MM format.
418
+ * @type {number}
419
+ * @memberof Expiration
420
+ */
421
+ 'month': number;
422
+ }
423
+ /**
424
+ *
425
+ * @export
426
+ * @interface Merchant
427
+ */
428
+ export interface Merchant {
429
+ /**
430
+ * ID assigned code each card acceptor, i.e. a merchant or a bank.
431
+ * @type {string}
432
+ * @memberof Merchant
433
+ */
434
+ 'id'?: string;
435
+ /**
436
+ * Merchant name as received from the card scheme. For ATMs, this can be a street address or a bank branch number.
437
+ * @type {string}
438
+ * @memberof Merchant
439
+ */
440
+ 'name'?: string;
441
+ /**
442
+ * The city where the transaction/withdrawal has occurred or where the merchant is registered.
443
+ * @type {string}
444
+ * @memberof Merchant
445
+ */
446
+ 'city'?: string;
447
+ /**
448
+ * The country where the transaction/withdrawal has occurred or where the merchant is registered.
449
+ * @type {string}
450
+ * @memberof Merchant
451
+ */
452
+ 'country'?: string;
453
+ /**
454
+ * The merchant\'s postal code.
455
+ * @type {string}
456
+ * @memberof Merchant
457
+ */
458
+ 'zipCode'?: string;
459
+ /**
460
+ * Contains the merchant\'s street address.
461
+ * @type {string}
462
+ * @memberof Merchant
463
+ */
464
+ 'address'?: string;
465
+ /**
466
+ *
467
+ * @type {MerchantCategory}
468
+ * @memberof Merchant
469
+ */
470
+ 'category'?: MerchantCategory;
471
+ /**
472
+ * Uniquely ID assigned to each terminal used by the merchant.
473
+ * @type {string}
474
+ * @memberof Merchant
475
+ */
476
+ 'terminalId'?: string;
477
+ /**
478
+ * The sub-merchant ID is used when merchant ID is not adequate to identify the merchant. Used when a merchant uses a payment facilitator.
479
+ * @type {string}
480
+ * @memberof Merchant
481
+ */
482
+ 'subMerchantId'?: string;
483
+ /**
484
+ * 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.
485
+ * @type {boolean}
486
+ * @memberof Merchant
487
+ */
488
+ 'partialApprovalCapable'?: boolean;
489
+ /**
490
+ * Unique ID assigned to the financial institution acting as the merchant\'s acquirer.
491
+ * @type {string}
492
+ * @memberof Merchant
493
+ */
494
+ 'acquirerId'?: string;
495
+ /**
496
+ * The country of the merchant\'s acquirer — mention the ISO-3166-1 alpha-3 country code.
497
+ * @type {string}
498
+ * @memberof Merchant
499
+ */
500
+ 'acquirerCountry'?: string;
501
+ /**
502
+ * Data an acquirer supplies in an acquirer-originated message, might be required for the issuer to return to the acquirer in a subsequent message.
503
+ * @type {string}
504
+ * @memberof Merchant
505
+ */
506
+ 'acquirerReferenceData'?: string;
507
+ }
508
+ /**
509
+ *
510
+ * @export
511
+ * @interface MerchantCategory
512
+ */
513
+ export interface MerchantCategory {
514
+ /**
515
+ * Merchant category code as per the card scheme classification. Categorisation is done based on the type of business or service the merchant provides.
516
+ * @type {string}
517
+ * @memberof MerchantCategory
518
+ */
519
+ 'code'?: string;
520
+ /**
521
+ * Description of the Merchant Category Code (MCC).
522
+ * @type {string}
523
+ * @memberof MerchantCategory
524
+ */
525
+ 'description'?: string;
526
+ /**
527
+ * Merchant Category Code (MCC) group as received from the scheme.
528
+ * @type {string}
529
+ * @memberof MerchantCategory
530
+ */
531
+ 'group'?: string;
532
+ }
533
+ /**
534
+ * Message category sent in the authorisation control webhook. Possible enums: - INITIAL_AUTHORIZATION: Initial authorisation of the card payment. - INCREMENTAL_AUTHORIZATION: Additional authorisation for a previously authorised transaction. - BALANCE_INQUIRY: Enquiring about the current balance of the funding account from the external application. - PIN_MANAGEMENT: Request to change the card PIN.
535
+ * @export
536
+ * @enum {string}
537
+ */
538
+
539
+ export const MessageCategoryAuthorization = {
540
+ InitialAuthorization: 'INITIAL_AUTHORIZATION',
541
+ IncrementalAuthorization: 'INCREMENTAL_AUTHORIZATION',
542
+ BalanceInquiry: 'BALANCE_INQUIRY',
543
+ PinManagement: 'PIN_MANAGEMENT'
544
+ } as const;
545
+
546
+ export type MessageCategoryAuthorization = typeof MessageCategoryAuthorization[keyof typeof MessageCategoryAuthorization];
547
+
548
+
549
+ /**
550
+ * Identifies the message function of the authorisation request.
551
+ * @export
552
+ * @enum {string}
553
+ */
554
+
555
+ export const MessageFunctionAuthorization = {
556
+ Request: 'REQUEST'
557
+ } as const;
558
+
559
+ export type MessageFunctionAuthorization = typeof MessageFunctionAuthorization[keyof typeof MessageFunctionAuthorization];
560
+
561
+
562
+ /**
563
+ * Amount including currency.
564
+ * @export
565
+ * @interface Money
566
+ */
567
+ export interface Money {
568
+ /**
569
+ *
570
+ * @type {number}
571
+ * @memberof Money
572
+ */
573
+ 'amount': number;
574
+ /**
575
+ * A valid ISO 4217 currency code
576
+ * @type {string}
577
+ * @memberof Money
578
+ */
579
+ 'currency': string;
580
+ }
581
+ /**
582
+ * Information about the token associated with the card.
583
+ * @export
584
+ * @interface Token
585
+ */
586
+ export interface Token {
587
+ /**
588
+ *
589
+ * @type {string}
590
+ * @memberof Token
591
+ */
592
+ 'id'?: string;
593
+ /**
594
+ * Identifies the specific digital wallet.
595
+ * @type {string}
596
+ * @memberof Token
597
+ */
598
+ 'walletIdentifier'?: TokenWalletIdentifierEnum;
599
+ }
600
+
601
+ export const TokenWalletIdentifierEnum = {
602
+ Masterpass: 'MASTERPASS',
603
+ ApplePay: 'APPLE_PAY',
604
+ GooglePay: 'GOOGLE_PAY',
605
+ SamsungPay: 'SAMSUNG_PAY',
606
+ RemoteCommercePrograms: 'REMOTE_COMMERCE_PROGRAMS'
607
+ } as const;
608
+
609
+ export type TokenWalletIdentifierEnum = typeof TokenWalletIdentifierEnum[keyof typeof TokenWalletIdentifierEnum];
610
+
611
+ /**
612
+ *
613
+ * @export
614
+ * @interface Transaction
615
+ */
616
+ export interface Transaction {
617
+ /**
618
+ * 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.
619
+ * @type {string}
620
+ * @memberof Transaction
621
+ */
622
+ 'authCode'?: string;
623
+ /**
624
+ * Number of days the authorisation is valid (applicable when merchants requests for extended authorisation period, longer than the default 7 days).
625
+ * @type {number}
626
+ * @memberof Transaction
627
+ */
628
+ 'authValidity'?: number;
629
+ /**
630
+ * 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.
631
+ * @type {Money}
632
+ * @memberof Transaction
633
+ */
634
+ 'billingAmount'?: Money;
635
+ /**
636
+ * The transaction amount in the local currency of the acquirer or the merchant, where the transaction occurred.
637
+ * @type {Money}
638
+ * @memberof Transaction
639
+ */
640
+ 'transactionAmount'?: Money;
641
+ /**
642
+ * The amount of funds transferred between the acquirer and the issuer, equal to the `transactionAmount`, in the settlement currency.
643
+ * @type {Money}
644
+ * @memberof Transaction
645
+ */
646
+ 'settlementAmount'?: Money;
647
+ /**
648
+ * Fee charged (for example, by the acquirer) for transaction activity.
649
+ * @type {Money}
650
+ * @memberof Transaction
651
+ */
652
+ 'acquirerTransactionFeeAmount'?: Money;
653
+ /**
654
+ *
655
+ * @type {Array<TransactionFee>}
656
+ * @memberof Transaction
657
+ */
658
+ 'issuerTransactionFees'?: Array<TransactionFee>;
659
+ /**
660
+ *
661
+ * @type {Array<CardholderVerificationMethod>}
662
+ * @memberof Transaction
663
+ */
664
+ 'cardholderVerificationMethods'?: Array<CardholderVerificationMethod>;
665
+ /**
666
+ * Merchant/acquirer generated transaction reference number.
667
+ * @type {string}
668
+ * @memberof Transaction
669
+ */
670
+ 'retrievalReferenceNumber'?: string;
671
+ /**
672
+ *
673
+ * @type {CardEntryMode}
674
+ * @memberof Transaction
675
+ */
676
+ 'cardEntryMode'?: CardEntryMode;
677
+ /**
678
+ * Indicates whether the cardholder is physically present during transaction.
679
+ * @type {boolean}
680
+ * @memberof Transaction
681
+ */
682
+ 'cardholderPresent'?: boolean;
683
+ /**
684
+ * Indicates whether the card is present at the point of service.
685
+ * @type {boolean}
686
+ * @memberof Transaction
687
+ */
688
+ 'cardPresent'?: boolean;
689
+ /**
690
+ * Indicates whether the transaction is a recurring payment or merchant initiated. This implies whether the cardholder has approved the merchant initiated transaction.
691
+ * @type {boolean}
692
+ * @memberof Transaction
693
+ */
694
+ 'merchantInitiated'?: boolean;
695
+ /**
696
+ * Date and time in the time zone where the transaction occurred.
697
+ * @type {string}
698
+ * @memberof Transaction
699
+ */
700
+ 'transactionDateTime'?: string;
701
+ /**
702
+ * This value is present only for recurring transaction, and it\'s value is first original authorisation request in the chain.
703
+ * @type {string}
704
+ * @memberof Transaction
705
+ */
706
+ 'originalTransactionId'?: string;
707
+ }
708
+
709
+
710
+ /**
711
+ *
712
+ * @export
713
+ * @interface TransactionFee
714
+ */
715
+ export interface TransactionFee {
716
+ /**
717
+ * Type of Issuer generated transaction fee in cardholder billing currency. Transaction based fees that are additional fees charged on top of the transaction.
718
+ * @type {string}
719
+ * @memberof TransactionFee
720
+ */
721
+ 'type'?: TransactionFeeTypeEnum;
722
+ /**
723
+ * Transaction fee amount in cardholder billing currency.
724
+ * @type {Money}
725
+ * @memberof TransactionFee
726
+ */
727
+ 'amount'?: Money;
728
+ }
729
+
730
+ export const TransactionFeeTypeEnum = {
731
+ CashFee: 'CASH_FEE',
732
+ AtmFee: 'ATM_FEE',
733
+ MarkupFee: 'MARKUP_FEE'
734
+ } as const;
735
+
736
+ export type TransactionFeeTypeEnum = typeof TransactionFeeTypeEnum[keyof typeof TransactionFeeTypeEnum];
737
+
738
+ /**
739
+ * The transaction Type
740
+ * @export
741
+ * @enum {string}
742
+ */
743
+
744
+ export const TransactionType = {
745
+ Retail: 'RETAIL',
746
+ Atm: 'ATM',
747
+ Unique: 'UNIQUE',
748
+ CashDisbursement: 'CASH_DISBURSEMENT',
749
+ Credit: 'CREDIT',
750
+ OriginalCredit: 'ORIGINAL_CREDIT',
751
+ BalanceInquiry: 'BALANCE_INQUIRY',
752
+ P2PDebit: 'P2P_DEBIT',
753
+ P2PCredit: 'P2P_CREDIT',
754
+ PinChange: 'PIN_CHANGE',
755
+ PinUnblock: 'PIN_UNBLOCK',
756
+ Cashback: 'CASHBACK',
757
+ ConvenienceCheck: 'CONVENIENCE_CHECK',
758
+ BalanceTransfer: 'BALANCE_TRANSFER',
759
+ Reversal: 'REVERSAL',
760
+ Aft: 'AFT'
761
+ } as const;
762
+
763
+ export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
764
+
765
+
766
+
767
+ /**
768
+ * AuthorisationRequestAPIApi - axios parameter creator
769
+ * @export
770
+ */
771
+ export const AuthorisationRequestAPIApiAxiosParamCreator = function (configuration?: Configuration) {
772
+ return {
773
+ /**
774
+ * Enfuce sends an authorisation request to the issuer/ledger, when it expects an authorisation decision from the recipient.
775
+ * @summary Authorisation Request API
776
+ * @param {AuthRequestBody} authRequestBody
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ authPost: async (authRequestBody: AuthRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
781
+ // verify required parameter 'authRequestBody' is not null or undefined
782
+ assertParamExists('authPost', 'authRequestBody', authRequestBody)
783
+ const localVarPath = `/auth`;
784
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
785
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
786
+ let baseOptions;
787
+ if (configuration) {
788
+ baseOptions = configuration.baseOptions;
789
+ }
790
+
791
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
792
+ const localVarHeaderParameter = {} as any;
793
+ const localVarQueryParameter = {} as any;
794
+
795
+
796
+
797
+ localVarHeaderParameter['Content-Type'] = 'application/json';
798
+
799
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
801
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
802
+ localVarRequestOptions.data = serializeDataIfNeeded(authRequestBody, localVarRequestOptions, configuration)
803
+
804
+ return {
805
+ url: toPathString(localVarUrlObj),
806
+ options: localVarRequestOptions,
807
+ };
808
+ },
809
+ }
810
+ };
811
+
812
+ /**
813
+ * AuthorisationRequestAPIApi - functional programming interface
814
+ * @export
815
+ */
816
+ export const AuthorisationRequestAPIApiFp = function(configuration?: Configuration) {
817
+ const localVarAxiosParamCreator = AuthorisationRequestAPIApiAxiosParamCreator(configuration)
818
+ return {
819
+ /**
820
+ * Enfuce sends an authorisation request to the issuer/ledger, when it expects an authorisation decision from the recipient.
821
+ * @summary Authorisation Request API
822
+ * @param {AuthRequestBody} authRequestBody
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ */
826
+ async authPost(authRequestBody: AuthRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthResponseBody>> {
827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authPost(authRequestBody, options);
828
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
829
+ const localVarOperationServerBasePath = operationServerMap['AuthorisationRequestAPIApi.authPost']?.[localVarOperationServerIndex]?.url;
830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
831
+ },
832
+ }
833
+ };
834
+
835
+ /**
836
+ * AuthorisationRequestAPIApi - factory interface
837
+ * @export
838
+ */
839
+ export const AuthorisationRequestAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
840
+ const localVarFp = AuthorisationRequestAPIApiFp(configuration)
841
+ return {
842
+ /**
843
+ * Enfuce sends an authorisation request to the issuer/ledger, when it expects an authorisation decision from the recipient.
844
+ * @summary Authorisation Request API
845
+ * @param {AuthRequestBody} authRequestBody
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ authPost(authRequestBody: AuthRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<AuthResponseBody> {
850
+ return localVarFp.authPost(authRequestBody, options).then((request) => request(axios, basePath));
851
+ },
852
+ };
853
+ };
854
+
855
+ /**
856
+ * AuthorisationRequestAPIApi - object-oriented interface
857
+ * @export
858
+ * @class AuthorisationRequestAPIApi
859
+ * @extends {BaseAPI}
860
+ */
861
+ export class AuthorisationRequestAPIApi extends BaseAPI {
862
+ /**
863
+ * Enfuce sends an authorisation request to the issuer/ledger, when it expects an authorisation decision from the recipient.
864
+ * @summary Authorisation Request API
865
+ * @param {AuthRequestBody} authRequestBody
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ * @memberof AuthorisationRequestAPIApi
869
+ */
870
+ public authPost(authRequestBody: AuthRequestBody, options?: RawAxiosRequestConfig) {
871
+ return AuthorisationRequestAPIApiFp(this.configuration).authPost(authRequestBody, options).then((request) => request(this.axios, this.basePath));
872
+ }
873
+ }
874
+
875
+
876
+