@emilgroup/commission-sdk-node 1.0.0-beta.19 → 1.0.0-beta.20

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/commission-sdk-node@1.0.0-beta.19 --save
20
+ npm install @emilgroup/commission-sdk-node@1.0.0-beta.20 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@1.0.0-beta.19
24
+ yarn add @emilgroup/commission-sdk-node@1.0.0-beta.20
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -265,15 +265,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
265
265
  /**
266
266
  * This will update commission agreement.
267
267
  * @summary Update the commission agreement
268
+ * @param {string} code
268
269
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
269
270
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
271
  * @param {*} [options] Override http request option.
271
272
  * @throws {RequiredError}
272
273
  */
273
- updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateCommissionAgreement', 'code', code)
274
277
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
275
278
  assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
276
- const localVarPath = `/commissionservice/v1/agreements`;
279
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
277
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
283
  let baseOptions;
@@ -377,13 +381,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
377
381
  /**
378
382
  * This will update commission agreement.
379
383
  * @summary Update the commission agreement
384
+ * @param {string} code
380
385
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
381
386
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
387
  * @param {*} [options] Override http request option.
383
388
  * @throws {RequiredError}
384
389
  */
385
- async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
386
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
390
+ async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
387
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
388
393
  },
389
394
  }
@@ -450,13 +455,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
450
455
  /**
451
456
  * This will update commission agreement.
452
457
  * @summary Update the commission agreement
458
+ * @param {string} code
453
459
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
454
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
461
  * @param {*} [options] Override http request option.
456
462
  * @throws {RequiredError}
457
463
  */
458
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
459
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
464
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
465
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
460
466
  },
461
467
  };
462
468
  };
@@ -600,6 +606,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
600
606
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
601
607
  */
602
608
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
613
+ */
614
+ readonly code: string
615
+
603
616
  /**
604
617
  *
605
618
  * @type {UpdateCommissionAgreementRequestDto}
@@ -679,6 +692,6 @@ export class CommissionAgreementsApi extends BaseAPI {
679
692
  * @memberof CommissionAgreementsApi
680
693
  */
681
694
  public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
682
- return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
683
696
  }
684
697
  }
@@ -69,12 +69,13 @@ export declare const CommissionAgreementsApiAxiosParamCreator: (configuration?:
69
69
  /**
70
70
  * This will update commission agreement.
71
71
  * @summary Update the commission agreement
72
+ * @param {string} code
72
73
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
73
74
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
74
75
  * @param {*} [options] Override http request option.
75
76
  * @throws {RequiredError}
76
77
  */
77
- updateCommissionAgreement: (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
+ updateCommissionAgreement: (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
79
  };
79
80
  /**
80
81
  * CommissionAgreementsApi - functional programming interface
@@ -127,12 +128,13 @@ export declare const CommissionAgreementsApiFp: (configuration?: Configuration)
127
128
  /**
128
129
  * This will update commission agreement.
129
130
  * @summary Update the commission agreement
131
+ * @param {string} code
130
132
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
131
133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
132
134
  * @param {*} [options] Override http request option.
133
135
  * @throws {RequiredError}
134
136
  */
135
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>>;
137
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>>;
136
138
  };
137
139
  /**
138
140
  * CommissionAgreementsApi - factory interface
@@ -185,12 +187,13 @@ export declare const CommissionAgreementsApiFactory: (configuration?: Configurat
185
187
  /**
186
188
  * This will update commission agreement.
187
189
  * @summary Update the commission agreement
190
+ * @param {string} code
188
191
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
189
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
193
  * @param {*} [options] Override http request option.
191
194
  * @throws {RequiredError}
192
195
  */
193
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass>;
196
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass>;
194
197
  };
195
198
  /**
196
199
  * Request parameters for createCommissionAgreement operation in CommissionAgreementsApi.
@@ -316,6 +319,12 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
316
319
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
317
320
  */
318
321
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
322
+ /**
323
+ *
324
+ * @type {string}
325
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
326
+ */
327
+ readonly code: string;
319
328
  /**
320
329
  *
321
330
  * @type {UpdateCommissionAgreementRequestDto}
@@ -322,21 +322,25 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
322
322
  /**
323
323
  * This will update commission agreement.
324
324
  * @summary Update the commission agreement
325
+ * @param {string} code
325
326
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
326
327
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
327
328
  * @param {*} [options] Override http request option.
328
329
  * @throws {RequiredError}
329
330
  */
330
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
331
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
331
332
  if (options === void 0) { options = {}; }
332
333
  return __awaiter(_this, void 0, void 0, function () {
333
334
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
335
  return __generator(this, function (_a) {
335
336
  switch (_a.label) {
336
337
  case 0:
338
+ // verify required parameter 'code' is not null or undefined
339
+ (0, common_1.assertParamExists)('updateCommissionAgreement', 'code', code);
337
340
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
338
341
  (0, common_1.assertParamExists)('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto);
339
- localVarPath = "/commissionservice/v1/agreements";
342
+ localVarPath = "/commissionservice/v1/agreements/{code}"
343
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
340
344
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
341
345
  if (configuration) {
342
346
  baseOptions = configuration.baseOptions;
@@ -472,17 +476,18 @@ var CommissionAgreementsApiFp = function (configuration) {
472
476
  /**
473
477
  * This will update commission agreement.
474
478
  * @summary Update the commission agreement
479
+ * @param {string} code
475
480
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
476
481
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
482
  * @param {*} [options] Override http request option.
478
483
  * @throws {RequiredError}
479
484
  */
480
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
485
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
481
486
  return __awaiter(this, void 0, void 0, function () {
482
487
  var localVarAxiosArgs;
483
488
  return __generator(this, function (_a) {
484
489
  switch (_a.label) {
485
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options)];
490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options)];
486
491
  case 1:
487
492
  localVarAxiosArgs = _a.sent();
488
493
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -554,13 +559,14 @@ var CommissionAgreementsApiFactory = function (configuration, basePath, axios) {
554
559
  /**
555
560
  * This will update commission agreement.
556
561
  * @summary Update the commission agreement
562
+ * @param {string} code
557
563
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
558
564
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
559
565
  * @param {*} [options] Override http request option.
560
566
  * @throws {RequiredError}
561
567
  */
562
- updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
563
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
+ updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
569
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
564
570
  },
565
571
  };
566
572
  };
@@ -635,7 +641,7 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
635
641
  */
636
642
  CommissionAgreementsApi.prototype.updateCommissionAgreement = function (requestParameters, options) {
637
643
  var _this = this;
638
- return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
+ return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
645
  };
640
646
  return CommissionAgreementsApi;
641
647
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk-node",
3
- "version": "1.0.0-beta.19",
3
+ "version": "1.0.0-beta.20",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [