@emilgroup/payment-sdk 1.4.1-beta.2 → 1.4.1-beta.4

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.
@@ -182,7 +182,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
182
182
  if (file !== undefined) {
183
183
  localVarFormParams.append('file', file);
184
184
  }
185
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
186
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
187
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
187
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -195,54 +194,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
195
194
  });
196
195
  });
197
196
  },
198
- /**
199
- * Links a bank transaction with an invoice
200
- * @summary Link Bank Transaction
201
- * @param {string} code Code of the bank transaction to link
202
- * @param {string} [authorization] Bearer Token
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- linkBankTransaction: function (code, authorization, options) {
207
- if (options === void 0) { options = {}; }
208
- return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
- return __generator(this, function (_a) {
211
- switch (_a.label) {
212
- case 0:
213
- // verify required parameter 'code' is not null or undefined
214
- (0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
215
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
216
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
217
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
- if (configuration) {
219
- baseOptions = configuration.baseOptions;
220
- baseAccessToken = configuration.accessToken;
221
- }
222
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
223
- localVarHeaderParameter = {};
224
- localVarQueryParameter = {};
225
- // authentication bearer required
226
- // http bearer authentication required
227
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
- case 1:
229
- // authentication bearer required
230
- // http bearer authentication required
231
- _a.sent();
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
- }
235
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
- return [2 /*return*/, {
239
- url: (0, common_1.toPathString)(localVarUrlObj),
240
- options: localVarRequestOptions,
241
- }];
242
- }
243
- });
244
- });
245
- },
246
197
  /**
247
198
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
248
199
  * @summary List bank transactions
@@ -315,54 +266,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
315
266
  });
316
267
  });
317
268
  },
318
- /**
319
- * Unlinks an already linked bank transaction
320
- * @summary Unlink Bank Transaction
321
- * @param {string} code Code of the bank transaction to unlink
322
- * @param {string} [authorization] Bearer Token
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- unlinkBankTransaction: function (code, authorization, options) {
327
- if (options === void 0) { options = {}; }
328
- return __awaiter(_this, void 0, void 0, function () {
329
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
330
- return __generator(this, function (_a) {
331
- switch (_a.label) {
332
- case 0:
333
- // verify required parameter 'code' is not null or undefined
334
- (0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
335
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
336
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
337
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
338
- if (configuration) {
339
- baseOptions = configuration.baseOptions;
340
- baseAccessToken = configuration.accessToken;
341
- }
342
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
343
- localVarHeaderParameter = {};
344
- localVarQueryParameter = {};
345
- // authentication bearer required
346
- // http bearer authentication required
347
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
348
- case 1:
349
- // authentication bearer required
350
- // http bearer authentication required
351
- _a.sent();
352
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
354
- }
355
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
356
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
358
- return [2 /*return*/, {
359
- url: (0, common_1.toPathString)(localVarUrlObj),
360
- options: localVarRequestOptions,
361
- }];
362
- }
363
- });
364
- });
365
- },
366
269
  };
367
270
  };
368
271
  exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
@@ -416,27 +319,6 @@ var BankTransactionApiFp = function (configuration) {
416
319
  });
417
320
  });
418
321
  },
419
- /**
420
- * Links a bank transaction with an invoice
421
- * @summary Link Bank Transaction
422
- * @param {string} code Code of the bank transaction to link
423
- * @param {string} [authorization] Bearer Token
424
- * @param {*} [options] Override http request option.
425
- * @throws {RequiredError}
426
- */
427
- linkBankTransaction: function (code, authorization, options) {
428
- return __awaiter(this, void 0, void 0, function () {
429
- var localVarAxiosArgs;
430
- return __generator(this, function (_a) {
431
- switch (_a.label) {
432
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
433
- case 1:
434
- localVarAxiosArgs = _a.sent();
435
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
436
- }
437
- });
438
- });
439
- },
440
322
  /**
441
323
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
442
324
  * @summary List bank transactions
@@ -464,27 +346,6 @@ var BankTransactionApiFp = function (configuration) {
464
346
  });
465
347
  });
466
348
  },
467
- /**
468
- * Unlinks an already linked bank transaction
469
- * @summary Unlink Bank Transaction
470
- * @param {string} code Code of the bank transaction to unlink
471
- * @param {string} [authorization] Bearer Token
472
- * @param {*} [options] Override http request option.
473
- * @throws {RequiredError}
474
- */
475
- unlinkBankTransaction: function (code, authorization, options) {
476
- return __awaiter(this, void 0, void 0, function () {
477
- var localVarAxiosArgs;
478
- return __generator(this, function (_a) {
479
- switch (_a.label) {
480
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
481
- case 1:
482
- localVarAxiosArgs = _a.sent();
483
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
484
- }
485
- });
486
- });
487
- },
488
349
  };
489
350
  };
490
351
  exports.BankTransactionApiFp = BankTransactionApiFp;
@@ -518,17 +379,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
518
379
  importBankTransactions: function (authorization, file, options) {
519
380
  return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
520
381
  },
521
- /**
522
- * Links a bank transaction with an invoice
523
- * @summary Link Bank Transaction
524
- * @param {string} code Code of the bank transaction to link
525
- * @param {string} [authorization] Bearer Token
526
- * @param {*} [options] Override http request option.
527
- * @throws {RequiredError}
528
- */
529
- linkBankTransaction: function (code, authorization, options) {
530
- return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
531
- },
532
382
  /**
533
383
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
534
384
  * @summary List bank transactions
@@ -546,17 +396,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
546
396
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
547
397
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
548
398
  },
549
- /**
550
- * Unlinks an already linked bank transaction
551
- * @summary Unlink Bank Transaction
552
- * @param {string} code Code of the bank transaction to unlink
553
- * @param {string} [authorization] Bearer Token
554
- * @param {*} [options] Override http request option.
555
- * @throws {RequiredError}
556
- */
557
- unlinkBankTransaction: function (code, authorization, options) {
558
- return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
559
- },
560
399
  };
561
400
  };
562
401
  exports.BankTransactionApiFactory = BankTransactionApiFactory;
@@ -596,18 +435,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
596
435
  if (requestParameters === void 0) { requestParameters = {}; }
597
436
  return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
437
  };
599
- /**
600
- * Links a bank transaction with an invoice
601
- * @summary Link Bank Transaction
602
- * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
603
- * @param {*} [options] Override http request option.
604
- * @throws {RequiredError}
605
- * @memberof BankTransactionApi
606
- */
607
- BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
608
- var _this = this;
609
- return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
610
- };
611
438
  /**
612
439
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
613
440
  * @summary List bank transactions
@@ -621,18 +448,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
621
448
  if (requestParameters === void 0) { requestParameters = {}; }
622
449
  return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
450
  };
624
- /**
625
- * Unlinks an already linked bank transaction
626
- * @summary Unlink Bank Transaction
627
- * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
628
- * @param {*} [options] Override http request option.
629
- * @throws {RequiredError}
630
- * @memberof BankTransactionApi
631
- */
632
- BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
633
- var _this = this;
634
- return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
- };
636
451
  return BankTransactionApi;
637
452
  }(base_1.BaseAPI));
638
453
  exports.BankTransactionApi = BankTransactionApi;
package/dist/api.d.ts CHANGED
@@ -16,6 +16,5 @@ export * from './api/payment-methods-api';
16
16
  export * from './api/payment-reminders-api';
17
17
  export * from './api/payment-setup-api';
18
18
  export * from './api/payments-api';
19
- export * from './api/refunds-api';
20
19
  export * from './api/tenant-bank-account-api';
21
20
  export * from './api/webhooks-api';
package/dist/api.js CHANGED
@@ -34,6 +34,5 @@ __exportStar(require("./api/payment-methods-api"), exports);
34
34
  __exportStar(require("./api/payment-reminders-api"), exports);
35
35
  __exportStar(require("./api/payment-setup-api"), exports);
36
36
  __exportStar(require("./api/payments-api"), exports);
37
- __exportStar(require("./api/refunds-api"), exports);
38
37
  __exportStar(require("./api/tenant-bank-account-api"), exports);
39
38
  __exportStar(require("./api/webhooks-api"), exports);
@@ -95,6 +95,12 @@ export interface BankTransactionResponseClass {
95
95
  * @memberof BankTransactionResponseClass
96
96
  */
97
97
  'linkedInvoiceCode'?: string;
98
+ /**
99
+ * The identifying invoice number that this bank transaction is linked to
100
+ * @type {string}
101
+ * @memberof BankTransactionResponseClass
102
+ */
103
+ 'linkedInvoiceNumber'?: string;
98
104
  /**
99
105
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
100
106
  * @type {boolean}
@@ -1,19 +1,14 @@
1
1
  export * from './bank-transaction-response-class';
2
2
  export * from './create-payment-reminder-request-dto';
3
3
  export * from './create-payment-request-dto';
4
- export * from './create-refund-request-dto';
5
- export * from './create-refund-response-class';
6
4
  export * from './create-tenant-bank-account-request-dto';
7
5
  export * from './deactivate-payment-reminder-request-dto';
8
6
  export * from './get-bank-transactions-response-class';
9
- export * from './get-refund-response-class';
10
7
  export * from './get-request-dto';
11
8
  export * from './get-tenant-bank-account-response-class';
12
9
  export * from './inline-response200';
13
10
  export * from './inline-response503';
14
11
  export * from './list-bank-transactions-response-class';
15
- export * from './list-refunds-response-class';
16
- export * from './refund-class';
17
12
  export * from './tenant-bank-account-response-class';
18
13
  export * from './transaction-class';
19
14
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -17,19 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bank-transaction-response-class"), exports);
18
18
  __exportStar(require("./create-payment-reminder-request-dto"), exports);
19
19
  __exportStar(require("./create-payment-request-dto"), exports);
20
- __exportStar(require("./create-refund-request-dto"), exports);
21
- __exportStar(require("./create-refund-response-class"), exports);
22
20
  __exportStar(require("./create-tenant-bank-account-request-dto"), exports);
23
21
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
24
22
  __exportStar(require("./get-bank-transactions-response-class"), exports);
25
- __exportStar(require("./get-refund-response-class"), exports);
26
23
  __exportStar(require("./get-request-dto"), exports);
27
24
  __exportStar(require("./get-tenant-bank-account-response-class"), exports);
28
25
  __exportStar(require("./inline-response200"), exports);
29
26
  __exportStar(require("./inline-response503"), exports);
30
27
  __exportStar(require("./list-bank-transactions-response-class"), exports);
31
- __exportStar(require("./list-refunds-response-class"), exports);
32
- __exportStar(require("./refund-class"), exports);
33
28
  __exportStar(require("./tenant-bank-account-response-class"), exports);
34
29
  __exportStar(require("./transaction-class"), exports);
35
30
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
@@ -100,6 +100,12 @@ export interface BankTransactionResponseClass {
100
100
  * @memberof BankTransactionResponseClass
101
101
  */
102
102
  'linkedInvoiceCode'?: string;
103
+ /**
104
+ * The identifying invoice number that this bank transaction is linked to
105
+ * @type {string}
106
+ * @memberof BankTransactionResponseClass
107
+ */
108
+ 'linkedInvoiceNumber'?: string;
103
109
  /**
104
110
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
105
111
  * @type {boolean}
package/models/index.ts CHANGED
@@ -1,19 +1,14 @@
1
1
  export * from './bank-transaction-response-class';
2
2
  export * from './create-payment-reminder-request-dto';
3
3
  export * from './create-payment-request-dto';
4
- export * from './create-refund-request-dto';
5
- export * from './create-refund-response-class';
6
4
  export * from './create-tenant-bank-account-request-dto';
7
5
  export * from './deactivate-payment-reminder-request-dto';
8
6
  export * from './get-bank-transactions-response-class';
9
- export * from './get-refund-response-class';
10
7
  export * from './get-request-dto';
11
8
  export * from './get-tenant-bank-account-response-class';
12
9
  export * from './inline-response200';
13
10
  export * from './inline-response503';
14
11
  export * from './list-bank-transactions-response-class';
15
- export * from './list-refunds-response-class';
16
- export * from './refund-class';
17
12
  export * from './tenant-bank-account-response-class';
18
13
  export * from './transaction-class';
19
14
  export * from './update-tenant-bank-account-rest-request-dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.4.1-beta.2",
3
+ "version": "1.4.1-beta.4",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [