@emilgroup/payment-sdk-node 1.13.1-beta.2 → 1.13.1-beta.3

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.
@@ -199,54 +199,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
199
199
  });
200
200
  });
201
201
  },
202
- /**
203
- * Links a bank transaction with an invoice
204
- * @summary Link Bank Transaction
205
- * @param {string} code Code of the bank transaction to link
206
- * @param {string} [authorization] Bearer Token
207
- * @param {*} [options] Override http request option.
208
- * @throws {RequiredError}
209
- */
210
- linkBankTransaction: function (code, 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
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
220
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
221
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
222
- if (configuration) {
223
- baseOptions = configuration.baseOptions;
224
- baseAccessToken = configuration.accessToken;
225
- }
226
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
227
- localVarHeaderParameter = {};
228
- localVarQueryParameter = {};
229
- // authentication bearer required
230
- // http bearer authentication required
231
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
232
- case 1:
233
- // authentication bearer required
234
- // http bearer authentication required
235
- _a.sent();
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
- }
239
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
242
- return [2 /*return*/, {
243
- url: (0, common_1.toPathString)(localVarUrlObj),
244
- options: localVarRequestOptions,
245
- }];
246
- }
247
- });
248
- });
249
- },
250
202
  /**
251
203
  * 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.
252
204
  * @summary List bank transactions
@@ -319,54 +271,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
319
271
  });
320
272
  });
321
273
  },
322
- /**
323
- * Unlinks an already linked bank transaction
324
- * @summary Unlink Bank Transaction
325
- * @param {string} code Code of the bank transaction to unlink
326
- * @param {string} [authorization] Bearer Token
327
- * @param {*} [options] Override http request option.
328
- * @throws {RequiredError}
329
- */
330
- unlinkBankTransaction: function (code, authorization, options) {
331
- if (options === void 0) { options = {}; }
332
- return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
- return __generator(this, function (_a) {
335
- switch (_a.label) {
336
- case 0:
337
- // verify required parameter 'code' is not null or undefined
338
- (0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
339
- localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
340
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
341
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
342
- if (configuration) {
343
- baseOptions = configuration.baseOptions;
344
- baseAccessToken = configuration.accessToken;
345
- }
346
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
347
- localVarHeaderParameter = {};
348
- localVarQueryParameter = {};
349
- // authentication bearer required
350
- // http bearer authentication required
351
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
352
- case 1:
353
- // authentication bearer required
354
- // http bearer authentication required
355
- _a.sent();
356
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
358
- }
359
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
- return [2 /*return*/, {
363
- url: (0, common_1.toPathString)(localVarUrlObj),
364
- options: localVarRequestOptions,
365
- }];
366
- }
367
- });
368
- });
369
- },
370
274
  };
371
275
  };
372
276
  exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
@@ -420,27 +324,6 @@ var BankTransactionApiFp = function (configuration) {
420
324
  });
421
325
  });
422
326
  },
423
- /**
424
- * Links a bank transaction with an invoice
425
- * @summary Link Bank Transaction
426
- * @param {string} code Code of the bank transaction to link
427
- * @param {string} [authorization] Bearer Token
428
- * @param {*} [options] Override http request option.
429
- * @throws {RequiredError}
430
- */
431
- linkBankTransaction: function (code, authorization, options) {
432
- return __awaiter(this, void 0, void 0, function () {
433
- var localVarAxiosArgs;
434
- return __generator(this, function (_a) {
435
- switch (_a.label) {
436
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
437
- case 1:
438
- localVarAxiosArgs = _a.sent();
439
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
440
- }
441
- });
442
- });
443
- },
444
327
  /**
445
328
  * 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.
446
329
  * @summary List bank transactions
@@ -468,27 +351,6 @@ var BankTransactionApiFp = function (configuration) {
468
351
  });
469
352
  });
470
353
  },
471
- /**
472
- * Unlinks an already linked bank transaction
473
- * @summary Unlink Bank Transaction
474
- * @param {string} code Code of the bank transaction to unlink
475
- * @param {string} [authorization] Bearer Token
476
- * @param {*} [options] Override http request option.
477
- * @throws {RequiredError}
478
- */
479
- unlinkBankTransaction: function (code, authorization, options) {
480
- return __awaiter(this, void 0, void 0, function () {
481
- var localVarAxiosArgs;
482
- return __generator(this, function (_a) {
483
- switch (_a.label) {
484
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
485
- case 1:
486
- localVarAxiosArgs = _a.sent();
487
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
488
- }
489
- });
490
- });
491
- },
492
354
  };
493
355
  };
494
356
  exports.BankTransactionApiFp = BankTransactionApiFp;
@@ -522,17 +384,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
522
384
  importBankTransactions: function (authorization, file, options) {
523
385
  return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
524
386
  },
525
- /**
526
- * Links a bank transaction with an invoice
527
- * @summary Link Bank Transaction
528
- * @param {string} code Code of the bank transaction to link
529
- * @param {string} [authorization] Bearer Token
530
- * @param {*} [options] Override http request option.
531
- * @throws {RequiredError}
532
- */
533
- linkBankTransaction: function (code, authorization, options) {
534
- return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
535
- },
536
387
  /**
537
388
  * 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.
538
389
  * @summary List bank transactions
@@ -550,17 +401,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
550
401
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
402
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
552
403
  },
553
- /**
554
- * Unlinks an already linked bank transaction
555
- * @summary Unlink Bank Transaction
556
- * @param {string} code Code of the bank transaction to unlink
557
- * @param {string} [authorization] Bearer Token
558
- * @param {*} [options] Override http request option.
559
- * @throws {RequiredError}
560
- */
561
- unlinkBankTransaction: function (code, authorization, options) {
562
- return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
563
- },
564
404
  };
565
405
  };
566
406
  exports.BankTransactionApiFactory = BankTransactionApiFactory;
@@ -600,18 +440,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
600
440
  if (requestParameters === void 0) { requestParameters = {}; }
601
441
  return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
602
442
  };
603
- /**
604
- * Links a bank transaction with an invoice
605
- * @summary Link Bank Transaction
606
- * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
607
- * @param {*} [options] Override http request option.
608
- * @throws {RequiredError}
609
- * @memberof BankTransactionApi
610
- */
611
- BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
612
- var _this = this;
613
- return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
- };
615
443
  /**
616
444
  * 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.
617
445
  * @summary List bank transactions
@@ -625,18 +453,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
625
453
  if (requestParameters === void 0) { requestParameters = {}; }
626
454
  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); });
627
455
  };
628
- /**
629
- * Unlinks an already linked bank transaction
630
- * @summary Unlink Bank Transaction
631
- * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
632
- * @param {*} [options] Override http request option.
633
- * @throws {RequiredError}
634
- * @memberof BankTransactionApi
635
- */
636
- BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
637
- var _this = this;
638
- return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
- };
640
456
  return BankTransactionApi;
641
457
  }(base_1.BaseAPI));
642
458
  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-node",
3
- "version": "1.13.1-beta.2",
3
+ "version": "1.13.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [