@emilgroup/payment-sdk 1.13.1-beta.1 → 1.13.1-beta.11

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 (34) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/bank-transaction-api.ts +131 -28
  4. package/base.ts +1 -1
  5. package/dist/api/bank-accounts-api.js +53 -20
  6. package/dist/api/bank-transaction-api.d.ts +84 -28
  7. package/dist/api/bank-transaction-api.js +164 -39
  8. package/dist/api/health-check-api.js +18 -5
  9. package/dist/api/payment-methods-api.js +32 -11
  10. package/dist/api/payment-reminders-api.js +39 -14
  11. package/dist/api/payment-setup-api.js +25 -8
  12. package/dist/api/payments-api.js +32 -11
  13. package/dist/api/refunds-api.js +32 -11
  14. package/dist/api/tenant-bank-account-api.js +46 -17
  15. package/dist/api/webhooks-api.js +18 -5
  16. package/dist/base.js +5 -5
  17. package/dist/common.d.ts +1 -1
  18. package/dist/common.js +2 -2
  19. package/dist/models/bank-transaction-class.d.ts +14 -0
  20. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  21. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  22. package/dist/models/index.d.ts +3 -0
  23. package/dist/models/index.js +3 -0
  24. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  25. package/dist/models/invoice-match-suggestion-class.js +15 -0
  26. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  27. package/dist/models/suggestion-generation-progress-class.js +22 -0
  28. package/models/bank-transaction-class.ts +14 -0
  29. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  30. package/models/index.ts +3 -0
  31. package/models/invoice-match-suggestion-class.ts +66 -0
  32. package/models/suggestion-generation-progress-class.ts +52 -0
  33. package/package.json +3 -3
  34. package/tsconfig.json +1 -0
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,10 +109,14 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
100
109
  * @param {*} [options] Override http request option.
101
110
  * @throws {RequiredError}
102
111
  */
103
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
112
+ completePaymentSetup: function (completePaymentSetupRequestDto_1, authorization_1) {
113
+ var args_1 = [];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
116
+ }
117
+ return __awaiter(_this, __spreadArray([completePaymentSetupRequestDto_1, authorization_1], args_1, true), void 0, function (completePaymentSetupRequestDto, authorization, options) {
106
118
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
119
+ if (options === void 0) { options = {}; }
107
120
  return __generator(this, function (_a) {
108
121
  switch (_a.label) {
109
122
  case 0:
@@ -149,10 +162,14 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
149
162
  * @param {*} [options] Override http request option.
150
163
  * @throws {RequiredError}
151
164
  */
152
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
165
+ initiatePaymentSetup: function (initiatePaymentSetupRequestDto_1, authorization_1) {
166
+ var args_1 = [];
167
+ for (var _i = 2; _i < arguments.length; _i++) {
168
+ args_1[_i - 2] = arguments[_i];
169
+ }
170
+ return __awaiter(_this, __spreadArray([initiatePaymentSetupRequestDto_1, authorization_1], args_1, true), void 0, function (initiatePaymentSetupRequestDto, authorization, options) {
155
171
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
172
+ if (options === void 0) { options = {}; }
156
173
  return __generator(this, function (_a) {
157
174
  switch (_a.label) {
158
175
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ createPayment: function (idempotencyKey_1, createPaymentRequestDto_1, authorization_1) {
114
+ var args_1 = [];
115
+ for (var _i = 3; _i < arguments.length; _i++) {
116
+ args_1[_i - 3] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([idempotencyKey_1, createPaymentRequestDto_1, authorization_1], args_1, true), void 0, function (idempotencyKey, createPaymentRequestDto, authorization, options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  switch (_a.label) {
110
123
  case 0:
@@ -156,10 +169,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
156
169
  * @param {*} [options] Override http request option.
157
170
  * @throws {RequiredError}
158
171
  */
159
- getPayment: function (code, authorization, expand, options) {
160
- if (options === void 0) { options = {}; }
161
- return __awaiter(_this, void 0, void 0, function () {
172
+ getPayment: function (code_1, authorization_1, expand_1) {
173
+ var args_1 = [];
174
+ for (var _i = 3; _i < arguments.length; _i++) {
175
+ args_1[_i - 3] = arguments[_i];
176
+ }
177
+ return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
162
178
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
179
+ if (options === void 0) { options = {}; }
163
180
  return __generator(this, function (_a) {
164
181
  switch (_a.label) {
165
182
  case 0:
@@ -210,10 +227,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
210
227
  * @param {*} [options] Override http request option.
211
228
  * @throws {RequiredError}
212
229
  */
213
- listPayments: function (authorization, filter, filters, order, expand, options) {
214
- if (options === void 0) { options = {}; }
215
- return __awaiter(_this, void 0, void 0, function () {
230
+ listPayments: function (authorization_1, filter_1, filters_1, order_1, expand_1) {
231
+ var args_1 = [];
232
+ for (var _i = 5; _i < arguments.length; _i++) {
233
+ args_1[_i - 5] = arguments[_i];
234
+ }
235
+ return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, order, expand, options) {
216
236
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
237
+ if (options === void 0) { options = {}; }
217
238
  return __generator(this, function (_a) {
218
239
  switch (_a.label) {
219
240
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,10 +109,14 @@ var RefundsApiAxiosParamCreator = function (configuration) {
100
109
  * @param {*} [options] Override http request option.
101
110
  * @throws {RequiredError}
102
111
  */
103
- createRefund: function (createRefundRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
112
+ createRefund: function (createRefundRequestDto_1, authorization_1) {
113
+ var args_1 = [];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
116
+ }
117
+ return __awaiter(_this, __spreadArray([createRefundRequestDto_1, authorization_1], args_1, true), void 0, function (createRefundRequestDto, authorization, options) {
106
118
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
119
+ if (options === void 0) { options = {}; }
107
120
  return __generator(this, function (_a) {
108
121
  switch (_a.label) {
109
122
  case 0:
@@ -150,10 +163,14 @@ var RefundsApiAxiosParamCreator = function (configuration) {
150
163
  * @param {*} [options] Override http request option.
151
164
  * @throws {RequiredError}
152
165
  */
153
- getRefund: function (code, authorization, expand, options) {
154
- if (options === void 0) { options = {}; }
155
- return __awaiter(_this, void 0, void 0, function () {
166
+ getRefund: function (code_1, authorization_1, expand_1) {
167
+ var args_1 = [];
168
+ for (var _i = 3; _i < arguments.length; _i++) {
169
+ args_1[_i - 3] = arguments[_i];
170
+ }
171
+ return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
156
172
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
173
+ if (options === void 0) { options = {}; }
157
174
  return __generator(this, function (_a) {
158
175
  switch (_a.label) {
159
176
  case 0:
@@ -205,10 +222,14 @@ var RefundsApiAxiosParamCreator = function (configuration) {
205
222
  * @param {*} [options] Override http request option.
206
223
  * @throws {RequiredError}
207
224
  */
208
- listRefunds: function (authorization, filter, filters, search, order, expand, options) {
209
- if (options === void 0) { options = {}; }
210
- return __awaiter(_this, void 0, void 0, function () {
225
+ listRefunds: function (authorization_1, filter_1, filters_1, search_1, order_1, expand_1) {
226
+ var args_1 = [];
227
+ for (var _i = 6; _i < arguments.length; _i++) {
228
+ args_1[_i - 6] = arguments[_i];
229
+ }
230
+ return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, search_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, search, order, expand, options) {
211
231
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
232
+ if (options === void 0) { options = {}; }
212
233
  return __generator(this, function (_a) {
213
234
  switch (_a.label) {
214
235
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,10 +109,14 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
100
109
  * @param {*} [options] Override http request option.
101
110
  * @throws {RequiredError}
102
111
  */
103
- createTenantBankAccount: function (createTenantBankAccountRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
112
+ createTenantBankAccount: function (createTenantBankAccountRequestDto_1, authorization_1) {
113
+ var args_1 = [];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
116
+ }
117
+ return __awaiter(_this, __spreadArray([createTenantBankAccountRequestDto_1, authorization_1], args_1, true), void 0, function (createTenantBankAccountRequestDto, authorization, options) {
106
118
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
119
+ if (options === void 0) { options = {}; }
107
120
  return __generator(this, function (_a) {
108
121
  switch (_a.label) {
109
122
  case 0:
@@ -149,10 +162,14 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
149
162
  * @param {*} [options] Override http request option.
150
163
  * @throws {RequiredError}
151
164
  */
152
- deleteTenantBankAccount: function (code, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
165
+ deleteTenantBankAccount: function (code_1, authorization_1) {
166
+ var args_1 = [];
167
+ for (var _i = 2; _i < arguments.length; _i++) {
168
+ args_1[_i - 2] = arguments[_i];
169
+ }
170
+ return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
155
171
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
172
+ if (options === void 0) { options = {}; }
156
173
  return __generator(this, function (_a) {
157
174
  switch (_a.label) {
158
175
  case 0:
@@ -198,10 +215,14 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
198
215
  * @param {*} [options] Override http request option.
199
216
  * @throws {RequiredError}
200
217
  */
201
- getTenantBankAccount: function (code, authorization, expand, options) {
202
- if (options === void 0) { options = {}; }
203
- return __awaiter(_this, void 0, void 0, function () {
218
+ getTenantBankAccount: function (code_1, authorization_1, expand_1) {
219
+ var args_1 = [];
220
+ for (var _i = 3; _i < arguments.length; _i++) {
221
+ args_1[_i - 3] = arguments[_i];
222
+ }
223
+ return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
204
224
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
225
+ if (options === void 0) { options = {}; }
205
226
  return __generator(this, function (_a) {
206
227
  switch (_a.label) {
207
228
  case 0:
@@ -253,10 +274,14 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
253
274
  * @param {*} [options] Override http request option.
254
275
  * @throws {RequiredError}
255
276
  */
256
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
257
- if (options === void 0) { options = {}; }
258
- return __awaiter(_this, void 0, void 0, function () {
277
+ listTenantBankAccounts: function (authorization_1, filter_1, filters_1, search_1, order_1, expand_1) {
278
+ var args_1 = [];
279
+ for (var _i = 6; _i < arguments.length; _i++) {
280
+ args_1[_i - 6] = arguments[_i];
281
+ }
282
+ return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, search_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, search, order, expand, options) {
259
283
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
284
+ if (options === void 0) { options = {}; }
260
285
  return __generator(this, function (_a) {
261
286
  switch (_a.label) {
262
287
  case 0:
@@ -314,10 +339,14 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
314
339
  * @param {*} [options] Override http request option.
315
340
  * @throws {RequiredError}
316
341
  */
317
- updateTenantBankAccount: function (code, updateTenantBankAccountRestRequestDto, authorization, options) {
318
- if (options === void 0) { options = {}; }
319
- return __awaiter(_this, void 0, void 0, function () {
342
+ updateTenantBankAccount: function (code_1, updateTenantBankAccountRestRequestDto_1, authorization_1) {
343
+ var args_1 = [];
344
+ for (var _i = 3; _i < arguments.length; _i++) {
345
+ args_1[_i - 3] = arguments[_i];
346
+ }
347
+ return __awaiter(_this, __spreadArray([code_1, updateTenantBankAccountRestRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateTenantBankAccountRestRequestDto, authorization, options) {
320
348
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
349
+ if (options === void 0) { options = {}; }
321
350
  return __generator(this, function (_a) {
322
351
  switch (_a.label) {
323
352
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -102,10 +111,14 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
102
111
  * @param {*} [options] Override http request option.
103
112
  * @throws {RequiredError}
104
113
  */
105
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
106
- if (options === void 0) { options = {}; }
107
- return __awaiter(_this, void 0, void 0, function () {
114
+ postWebhook: function (pspType_1, tenantSlug_1, productSlug_1, body_1) {
115
+ var args_1 = [];
116
+ for (var _i = 4; _i < arguments.length; _i++) {
117
+ args_1[_i - 4] = arguments[_i];
118
+ }
119
+ return __awaiter(_this, __spreadArray([pspType_1, tenantSlug_1, productSlug_1, body_1], args_1, true), void 0, function (pspType, tenantSlug, productSlug, body, options) {
108
120
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
121
+ if (options === void 0) { options = {}; }
109
122
  return __generator(this, function (_a) {
110
123
  // verify required parameter 'pspType' is not null or undefined
111
124
  (0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
package/dist/base.js CHANGED
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -78,7 +78,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
81
+ exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
82
+ exports.resetRetry = resetRetry;
82
83
  var configuration_1 = require("./configuration");
83
84
  var common_1 = require("./common");
84
85
  // Some imports not used depending on template conditions
@@ -102,13 +103,12 @@ var Environment;
102
103
  Environment["Staging"] = "https://apiv2-staging.emil.de";
103
104
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
105
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
- })(Environment = exports.Environment || (exports.Environment = {}));
106
+ })(Environment || (exports.Environment = Environment = {}));
106
107
  var _retry_count = 0;
107
108
  var _retry = null;
108
109
  function resetRetry() {
109
110
  _retry_count = 0;
110
111
  }
111
- exports.resetRetry = resetRetry;
112
112
  var NETWORK_ERROR_MESSAGE = "Network Error";
113
113
  var TOKEN_DATA = 'APP_TOKEN';
114
114
  /**
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
66
  /**
67
67
  * Emil Payment Service
68
68
  * 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.
package/dist/common.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  });
34
34
  };
35
35
  var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
38
  function verb(n) { return function (v) { return step([n, v]); }; }
39
39
  function step(op) {
40
40
  if (f) throw new TypeError("Generator is already executing.");
@@ -9,7 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
12
13
  import { SharedTransactionClass } from './shared-transaction-class';
14
+ import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
13
15
  import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
14
16
  /**
15
17
  *
@@ -143,4 +145,16 @@ export interface BankTransactionClass {
143
145
  * @memberof BankTransactionClass
144
146
  */
145
147
  'updatedBy': string;
148
+ /**
149
+ * The match suggestions for invoices
150
+ * @type {Array<InvoiceMatchSuggestionClass>}
151
+ * @memberof BankTransactionClass
152
+ */
153
+ 'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
154
+ /**
155
+ * The progress of the suggestion generation
156
+ * @type {SuggestionGenerationProgressClass}
157
+ * @memberof BankTransactionClass
158
+ */
159
+ 'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
146
160
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GenerateInvoiceMatchSuggestionsResponseClass
17
+ */
18
+ export interface GenerateInvoiceMatchSuggestionsResponseClass {
19
+ /**
20
+ * List of invoice match suggestions
21
+ * @type {Array<InvoiceMatchSuggestionClass>}
22
+ * @memberof GenerateInvoiceMatchSuggestionsResponseClass
23
+ */
24
+ 'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
25
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,6 +25,7 @@ export * from './create-tenant-bank-account-response-class';
25
25
  export * from './deactivate-payment-reminder-request-dto';
26
26
  export * from './deactivate-payment-reminder-response-class';
27
27
  export * from './deactivated-payment-reminder-class';
28
+ export * from './generate-invoice-match-suggestions-response-class';
28
29
  export * from './get-bank-account-response-class';
29
30
  export * from './get-bank-transactions-response-class';
30
31
  export * from './get-payment-method-response-class';
@@ -43,6 +44,7 @@ export * from './initiate-stripe-payment-setup-request-dto';
43
44
  export * from './initiate-stripe-payment-setup-response-class';
44
45
  export * from './inline-response200';
45
46
  export * from './inline-response503';
47
+ export * from './invoice-match-suggestion-class';
46
48
  export * from './link-bank-transaction-request-dto-rest';
47
49
  export * from './link-bank-transactions-response-class';
48
50
  export * from './list-bank-accounts-response-class';
@@ -62,6 +64,7 @@ export * from './refund-item-class';
62
64
  export * from './sepa-direct-dto';
63
65
  export * from './set-primary-bank-account-request-dto-rest';
64
66
  export * from './shared-transaction-class';
67
+ export * from './suggestion-generation-progress-class';
65
68
  export * from './symphony-profile-limited-response-dto';
66
69
  export * from './tenant-bank-account-class';
67
70
  export * from './tenant-bank-account-class-without-expand-properties';
@@ -41,6 +41,7 @@ __exportStar(require("./create-tenant-bank-account-response-class"), exports);
41
41
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
42
42
  __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
43
43
  __exportStar(require("./deactivated-payment-reminder-class"), exports);
44
+ __exportStar(require("./generate-invoice-match-suggestions-response-class"), exports);
44
45
  __exportStar(require("./get-bank-account-response-class"), exports);
45
46
  __exportStar(require("./get-bank-transactions-response-class"), exports);
46
47
  __exportStar(require("./get-payment-method-response-class"), exports);
@@ -59,6 +60,7 @@ __exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
59
60
  __exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
60
61
  __exportStar(require("./inline-response200"), exports);
61
62
  __exportStar(require("./inline-response503"), exports);
63
+ __exportStar(require("./invoice-match-suggestion-class"), exports);
62
64
  __exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
63
65
  __exportStar(require("./link-bank-transactions-response-class"), exports);
64
66
  __exportStar(require("./list-bank-accounts-response-class"), exports);
@@ -78,6 +80,7 @@ __exportStar(require("./refund-item-class"), exports);
78
80
  __exportStar(require("./sepa-direct-dto"), exports);
79
81
  __exportStar(require("./set-primary-bank-account-request-dto-rest"), exports);
80
82
  __exportStar(require("./shared-transaction-class"), exports);
83
+ __exportStar(require("./suggestion-generation-progress-class"), exports);
81
84
  __exportStar(require("./symphony-profile-limited-response-dto"), exports);
82
85
  __exportStar(require("./tenant-bank-account-class"), exports);
83
86
  __exportStar(require("./tenant-bank-account-class-without-expand-properties"), exports);
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InvoiceMatchSuggestionClass
16
+ */
17
+ export interface InvoiceMatchSuggestionClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof InvoiceMatchSuggestionClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof InvoiceMatchSuggestionClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Invoice code of the suggested match
32
+ * @type {string}
33
+ * @memberof InvoiceMatchSuggestionClass
34
+ */
35
+ 'invoiceCode': string;
36
+ /**
37
+ * Invoice number of the suggested match
38
+ * @type {string}
39
+ * @memberof InvoiceMatchSuggestionClass
40
+ */
41
+ 'invoiceNumber': string;
42
+ /**
43
+ * Confidence score (0-100) of the suggested match
44
+ * @type {number}
45
+ * @memberof InvoiceMatchSuggestionClass
46
+ */
47
+ 'confidenceScore': number;
48
+ /**
49
+ * Criteria used for the match
50
+ * @type {object}
51
+ * @memberof InvoiceMatchSuggestionClass
52
+ */
53
+ 'matchCriteria': object;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof InvoiceMatchSuggestionClass
58
+ */
59
+ 'createdAt': string;
60
+ }