@emilgroup/payment-sdk-node 1.8.2 → 1.12.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 (91) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +4 -4
  4. package/api/bank-transaction-api.ts +569 -0
  5. package/api/payment-methods-api.ts +4 -4
  6. package/api/payment-reminders-api.ts +12 -10
  7. package/api/payments-api.ts +4 -4
  8. package/api/refunds-api.ts +464 -0
  9. package/api/tenant-bank-account-api.ts +655 -0
  10. package/api.ts +6 -2
  11. package/dist/api/bank-accounts-api.d.ts +4 -4
  12. package/dist/api/bank-accounts-api.js +3 -3
  13. package/dist/api/bank-transaction-api.d.ts +318 -0
  14. package/dist/api/bank-transaction-api.js +543 -0
  15. package/dist/api/payment-methods-api.d.ts +4 -4
  16. package/dist/api/payment-methods-api.js +3 -3
  17. package/dist/api/payment-reminders-api.d.ts +12 -11
  18. package/dist/api/payment-reminders-api.js +7 -7
  19. package/dist/api/payments-api.d.ts +4 -4
  20. package/dist/api/payments-api.js +3 -3
  21. package/dist/api/refunds-api.d.ts +260 -0
  22. package/dist/api/refunds-api.js +445 -0
  23. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  24. package/dist/api/tenant-bank-account-api.js +620 -0
  25. package/dist/api.d.ts +3 -1
  26. package/dist/api.js +3 -1
  27. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  28. package/dist/models/create-payment-reminder-request-dto.d.ts +2 -0
  29. package/dist/models/create-payment-reminder-request-dto.js +3 -1
  30. package/dist/models/create-payment-request-dto.d.ts +3 -3
  31. package/dist/models/create-refund-request-dto.d.ts +24 -0
  32. package/dist/models/create-refund-request-dto.js +15 -0
  33. package/dist/models/create-refund-response-class.d.ts +25 -0
  34. package/dist/models/create-refund-response-class.js +15 -0
  35. package/dist/models/create-tenant-bank-account-request-dto.d.ts +42 -0
  36. package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
  37. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  38. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  39. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  40. package/dist/models/get-bank-transactions-response-class.js +15 -0
  41. package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
  42. package/dist/models/get-refund-response-class.js +15 -0
  43. package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
  44. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  45. package/dist/models/index.d.ts +14 -1
  46. package/dist/models/index.js +14 -1
  47. package/dist/models/inline-response200.d.ts +6 -6
  48. package/dist/models/inline-response503.d.ts +6 -6
  49. package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
  50. package/dist/models/link-bank-transaction-request-dto.js +15 -0
  51. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  52. package/dist/models/list-bank-transactions-response-class.js +15 -0
  53. package/dist/models/list-refunds-response-class.d.ts +31 -0
  54. package/dist/models/list-refunds-response-class.js +15 -0
  55. package/dist/models/payment-class.d.ts +1 -1
  56. package/dist/models/payment-method-class.d.ts +8 -2
  57. package/dist/models/payment-reminder-class.d.ts +4 -0
  58. package/dist/models/payment-reminder-class.js +6 -2
  59. package/dist/models/refund-class.d.ts +104 -0
  60. package/dist/models/refund-class.js +28 -0
  61. package/dist/models/tenant-bank-account-response-class.d.ts +66 -0
  62. package/dist/models/tenant-bank-account-response-class.js +15 -0
  63. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
  64. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  65. package/models/bank-transaction-response-class.ts +128 -0
  66. package/models/create-payment-reminder-request-dto.ts +3 -1
  67. package/models/create-payment-request-dto.ts +3 -3
  68. package/models/create-refund-request-dto.ts +30 -0
  69. package/models/create-refund-response-class.ts +31 -0
  70. package/models/create-tenant-bank-account-request-dto.ts +48 -0
  71. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  72. package/models/get-bank-transactions-response-class.ts +31 -0
  73. package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
  74. package/models/get-tenant-bank-account-response-class.ts +31 -0
  75. package/models/index.ts +14 -1
  76. package/models/inline-response200.ts +6 -6
  77. package/models/inline-response503.ts +6 -6
  78. package/models/link-bank-transaction-request-dto.ts +36 -0
  79. package/models/list-bank-transactions-response-class.ts +37 -0
  80. package/models/list-refunds-response-class.ts +37 -0
  81. package/models/payment-class.ts +1 -1
  82. package/models/payment-method-class.ts +8 -2
  83. package/models/payment-reminder-class.ts +6 -2
  84. package/models/refund-class.ts +114 -0
  85. package/models/tenant-bank-account-response-class.ts +72 -0
  86. package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
  87. package/package.json +1 -1
  88. package/api/payment-service-providers-api.ts +0 -165
  89. package/dist/api/payment-service-providers-api.d.ts +0 -93
  90. package/dist/api/payment-service-providers-api.js +0 -224
  91. /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
@@ -0,0 +1,543 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.BankTransactionApi = exports.BankTransactionApiFactory = exports.BankTransactionApiFp = exports.BankTransactionApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * BankTransactionApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var BankTransactionApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {string} code
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {string} [expand] Expand the response with additional entities
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getBankTransaction: function (code, authorization, expand, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('getBankTransaction', 'code', code);
116
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (expand !== undefined) {
134
+ localVarQueryParameter['expand'] = expand;
135
+ }
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
+ return [2 /*return*/, {
143
+ url: (0, common_1.toPathString)(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ }];
146
+ }
147
+ });
148
+ });
149
+ },
150
+ /**
151
+ * Import bank transactions from a swift MT940 file
152
+ * @summary Create the Bank Transactions
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {any} [file]
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ importBankTransactions: function (authorization, file, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/import";
166
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ if (file !== undefined) {
186
+ localVarFormParams.append('file', file);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = localVarFormParams;
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * Links a bank transaction with an invoice
203
+ * @summary Link Bank Transaction
204
+ * @param {string} code Code of the bank transcation to link
205
+ * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
206
+ * @param {string} [authorization] Bearer Token
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ linkBankTransaction: function (code, linkBankTransactionRequestDto, authorization, options) {
211
+ if (options === void 0) { options = {}; }
212
+ return __awaiter(_this, void 0, void 0, function () {
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ // verify required parameter 'code' is not null or undefined
218
+ (0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
219
+ // verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
220
+ (0, common_1.assertParamExists)('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto);
221
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
222
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
223
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ baseAccessToken = configuration.accessToken;
227
+ }
228
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
229
+ localVarHeaderParameter = {};
230
+ localVarQueryParameter = {};
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
+ case 1:
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ _a.sent();
238
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
239
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ }
241
+ localVarHeaderParameter['Content-Type'] = 'application/json';
242
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionRequestDto, localVarRequestOptions, configuration);
246
+ return [2 /*return*/, {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ }];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ /**
255
+ *
256
+ * @param {string} [authorization] Bearer Token
257
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
258
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
259
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
260
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
261
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
262
+ * @param {string} [expand] Expand the response with additional entities
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
267
+ if (options === void 0) { options = {}; }
268
+ return __awaiter(_this, void 0, void 0, function () {
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ return __generator(this, function (_a) {
271
+ switch (_a.label) {
272
+ case 0:
273
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions";
274
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
275
+ if (configuration) {
276
+ baseOptions = configuration.baseOptions;
277
+ baseAccessToken = configuration.accessToken;
278
+ }
279
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
280
+ localVarHeaderParameter = {};
281
+ localVarQueryParameter = {};
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
285
+ case 1:
286
+ // authentication bearer required
287
+ // http bearer authentication required
288
+ _a.sent();
289
+ if (pageSize !== undefined) {
290
+ localVarQueryParameter['pageSize'] = pageSize;
291
+ }
292
+ if (pageToken !== undefined) {
293
+ localVarQueryParameter['pageToken'] = pageToken;
294
+ }
295
+ if (filter !== undefined) {
296
+ localVarQueryParameter['filter'] = filter;
297
+ }
298
+ if (search !== undefined) {
299
+ localVarQueryParameter['search'] = search;
300
+ }
301
+ if (order !== undefined) {
302
+ localVarQueryParameter['order'] = order;
303
+ }
304
+ if (expand !== undefined) {
305
+ localVarQueryParameter['expand'] = expand;
306
+ }
307
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
308
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ }
310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
311
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
313
+ return [2 /*return*/, {
314
+ url: (0, common_1.toPathString)(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ }];
317
+ }
318
+ });
319
+ });
320
+ },
321
+ };
322
+ };
323
+ exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
324
+ /**
325
+ * BankTransactionApi - functional programming interface
326
+ * @export
327
+ */
328
+ var BankTransactionApiFp = function (configuration) {
329
+ var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
330
+ return {
331
+ /**
332
+ *
333
+ * @param {string} code
334
+ * @param {string} [authorization] Bearer Token
335
+ * @param {string} [expand] Expand the response with additional entities
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ getBankTransaction: function (code, authorization, expand, options) {
340
+ return __awaiter(this, void 0, void 0, function () {
341
+ var localVarAxiosArgs;
342
+ return __generator(this, function (_a) {
343
+ switch (_a.label) {
344
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options)];
345
+ case 1:
346
+ localVarAxiosArgs = _a.sent();
347
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
348
+ }
349
+ });
350
+ });
351
+ },
352
+ /**
353
+ * Import bank transactions from a swift MT940 file
354
+ * @summary Create the Bank Transactions
355
+ * @param {string} [authorization] Bearer Token
356
+ * @param {any} [file]
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ importBankTransactions: function (authorization, file, options) {
361
+ return __awaiter(this, void 0, void 0, function () {
362
+ var localVarAxiosArgs;
363
+ return __generator(this, function (_a) {
364
+ switch (_a.label) {
365
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importBankTransactions(authorization, file, options)];
366
+ case 1:
367
+ localVarAxiosArgs = _a.sent();
368
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
369
+ }
370
+ });
371
+ });
372
+ },
373
+ /**
374
+ * Links a bank transaction with an invoice
375
+ * @summary Link Bank Transaction
376
+ * @param {string} code Code of the bank transcation to link
377
+ * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
378
+ * @param {string} [authorization] Bearer Token
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ linkBankTransaction: function (code, linkBankTransactionRequestDto, authorization, options) {
383
+ return __awaiter(this, void 0, void 0, function () {
384
+ var localVarAxiosArgs;
385
+ return __generator(this, function (_a) {
386
+ switch (_a.label) {
387
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options)];
388
+ case 1:
389
+ localVarAxiosArgs = _a.sent();
390
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
391
+ }
392
+ });
393
+ });
394
+ },
395
+ /**
396
+ *
397
+ * @param {string} [authorization] Bearer Token
398
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
399
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
400
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
401
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
402
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
403
+ * @param {string} [expand] Expand the response with additional entities
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
408
+ return __awaiter(this, void 0, void 0, function () {
409
+ var localVarAxiosArgs;
410
+ return __generator(this, function (_a) {
411
+ switch (_a.label) {
412
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options)];
413
+ case 1:
414
+ localVarAxiosArgs = _a.sent();
415
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
416
+ }
417
+ });
418
+ });
419
+ },
420
+ };
421
+ };
422
+ exports.BankTransactionApiFp = BankTransactionApiFp;
423
+ /**
424
+ * BankTransactionApi - factory interface
425
+ * @export
426
+ */
427
+ var BankTransactionApiFactory = function (configuration, basePath, axios) {
428
+ var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
429
+ return {
430
+ /**
431
+ *
432
+ * @param {string} code
433
+ * @param {string} [authorization] Bearer Token
434
+ * @param {string} [expand] Expand the response with additional entities
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ getBankTransaction: function (code, authorization, expand, options) {
439
+ return localVarFp.getBankTransaction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
440
+ },
441
+ /**
442
+ * Import bank transactions from a swift MT940 file
443
+ * @summary Create the Bank Transactions
444
+ * @param {string} [authorization] Bearer Token
445
+ * @param {any} [file]
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ importBankTransactions: function (authorization, file, options) {
450
+ return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
451
+ },
452
+ /**
453
+ * Links a bank transaction with an invoice
454
+ * @summary Link Bank Transaction
455
+ * @param {string} code Code of the bank transcation to link
456
+ * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
457
+ * @param {string} [authorization] Bearer Token
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ linkBankTransaction: function (code, linkBankTransactionRequestDto, authorization, options) {
462
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
463
+ },
464
+ /**
465
+ *
466
+ * @param {string} [authorization] Bearer Token
467
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
468
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
469
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
470
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
471
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
472
+ * @param {string} [expand] Expand the response with additional entities
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
477
+ return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
478
+ },
479
+ };
480
+ };
481
+ exports.BankTransactionApiFactory = BankTransactionApiFactory;
482
+ /**
483
+ * BankTransactionApi - object-oriented interface
484
+ * @export
485
+ * @class BankTransactionApi
486
+ * @extends {BaseAPI}
487
+ */
488
+ var BankTransactionApi = /** @class */ (function (_super) {
489
+ __extends(BankTransactionApi, _super);
490
+ function BankTransactionApi() {
491
+ return _super !== null && _super.apply(this, arguments) || this;
492
+ }
493
+ /**
494
+ *
495
+ * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ * @memberof BankTransactionApi
499
+ */
500
+ BankTransactionApi.prototype.getBankTransaction = function (requestParameters, options) {
501
+ var _this = this;
502
+ return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
503
+ };
504
+ /**
505
+ * Import bank transactions from a swift MT940 file
506
+ * @summary Create the Bank Transactions
507
+ * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ * @memberof BankTransactionApi
511
+ */
512
+ BankTransactionApi.prototype.importBankTransactions = function (requestParameters, options) {
513
+ var _this = this;
514
+ if (requestParameters === void 0) { requestParameters = {}; }
515
+ return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
516
+ };
517
+ /**
518
+ * Links a bank transaction with an invoice
519
+ * @summary Link Bank Transaction
520
+ * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ * @memberof BankTransactionApi
524
+ */
525
+ BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
526
+ var _this = this;
527
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
+ };
529
+ /**
530
+ *
531
+ * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof BankTransactionApi
535
+ */
536
+ BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
537
+ var _this = this;
538
+ if (requestParameters === void 0) { requestParameters = {}; }
539
+ return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
540
+ };
541
+ return BankTransactionApi;
542
+ }(base_1.BaseAPI));
543
+ exports.BankTransactionApi = BankTransactionApi;
@@ -54,7 +54,7 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
54
54
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
55
55
  * @summary List payment methods
56
56
  * @param {string} [authorization] Bearer Token
57
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
57
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
58
58
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
59
59
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
60
60
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -103,7 +103,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
103
103
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
104
104
  * @summary List payment methods
105
105
  * @param {string} [authorization] Bearer Token
106
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
106
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
107
107
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
108
108
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
109
109
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -152,7 +152,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
152
152
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
153
153
  * @summary List payment methods
154
154
  * @param {string} [authorization] Bearer Token
155
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
155
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
156
156
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
157
157
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
158
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -245,7 +245,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
245
245
  */
246
246
  readonly authorization?: string;
247
247
  /**
248
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
248
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
249
  * @type {any}
250
250
  * @memberof PaymentMethodsApiListPaymentMethods
251
251
  */
@@ -257,7 +257,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
257
257
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
258
258
  * @summary List payment methods
259
259
  * @param {string} [authorization] Bearer Token
260
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
260
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
261
261
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
262
262
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
263
263
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -400,7 +400,7 @@ var PaymentMethodsApiFp = function (configuration) {
400
400
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
401
401
  * @summary List payment methods
402
402
  * @param {string} [authorization] Bearer Token
403
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
403
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
404
404
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
405
405
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
406
406
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -471,7 +471,7 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
471
471
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
472
472
  * @summary List payment methods
473
473
  * @param {string} [authorization] Bearer Token
474
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
474
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
475
475
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
476
476
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
477
477
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.