@emilgroup/commission-sdk 1.0.0-beta.33 → 1.0.0-beta.34

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@1.0.0-beta.33 --save
20
+ npm install @emilgroup/commission-sdk@1.0.0-beta.34 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk@1.0.0-beta.33
24
+ yarn add @emilgroup/commission-sdk@1.0.0-beta.34
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -265,23 +265,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
265
265
  /**
266
266
  * This will patch commission agreement status.
267
267
  * @summary Update the commission agreement status
268
- * @param {string} code
269
- * @param {any} commissionAgreement Unique identifier for the object.
268
+ * @param {string} code Unique identifier for the object.
270
269
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
271
270
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
271
  * @param {*} [options] Override http request option.
273
272
  * @throws {RequiredError}
274
273
  */
275
- patchCommissionAgreementStatus: async (code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ patchCommissionAgreementStatus: async (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
275
  // verify required parameter 'code' is not null or undefined
277
276
  assertParamExists('patchCommissionAgreementStatus', 'code', code)
278
- // verify required parameter 'commissionAgreement' is not null or undefined
279
- assertParamExists('patchCommissionAgreementStatus', 'commissionAgreement', commissionAgreement)
280
277
  // verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
281
278
  assertParamExists('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto)
282
279
  const localVarPath = `/commissionservice/v1/agreements/{code}/status`
283
- .replace(`{${"code"}}`, encodeURIComponent(String(code)))
284
- .replace(`{${"commission agreement"}}`, encodeURIComponent(String(commissionAgreement)));
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
285
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
283
  let baseOptions;
@@ -436,15 +432,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
436
432
  /**
437
433
  * This will patch commission agreement status.
438
434
  * @summary Update the commission agreement status
439
- * @param {string} code
440
- * @param {any} commissionAgreement Unique identifier for the object.
435
+ * @param {string} code Unique identifier for the object.
441
436
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
442
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
438
  * @param {*} [options] Override http request option.
444
439
  * @throws {RequiredError}
445
440
  */
446
- async patchCommissionAgreementStatus(code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>> {
447
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options);
441
+ async patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>> {
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options);
448
443
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
444
  },
450
445
  /**
@@ -524,15 +519,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
524
519
  /**
525
520
  * This will patch commission agreement status.
526
521
  * @summary Update the commission agreement status
527
- * @param {string} code
528
- * @param {any} commissionAgreement Unique identifier for the object.
522
+ * @param {string} code Unique identifier for the object.
529
523
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
530
524
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
525
  * @param {*} [options] Override http request option.
532
526
  * @throws {RequiredError}
533
527
  */
534
- patchCommissionAgreementStatus(code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass> {
535
- return localVarFp.patchCommissionAgreementStatus(code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
528
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass> {
529
+ return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
536
530
  },
537
531
  /**
538
532
  * This will update commission agreement.
@@ -689,19 +683,12 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
689
683
  */
690
684
  export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
691
685
  /**
692
- *
686
+ * Unique identifier for the object.
693
687
  * @type {string}
694
688
  * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
695
689
  */
696
690
  readonly code: string
697
691
 
698
- /**
699
- * Unique identifier for the object.
700
- * @type {any}
701
- * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
702
- */
703
- readonly commissionAgreement: any
704
-
705
692
  /**
706
693
  *
707
694
  * @type {PatchCommissionAgreementStatusRequestDto}
@@ -809,7 +796,7 @@ export class CommissionAgreementsApi extends BaseAPI {
809
796
  * @memberof CommissionAgreementsApi
810
797
  */
811
798
  public patchCommissionAgreementStatus(requestParameters: CommissionAgreementsApiPatchCommissionAgreementStatusRequest, options?: AxiosRequestConfig) {
812
- return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.commissionAgreement, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
799
+ return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
813
800
  }
814
801
 
815
802
  /**
@@ -71,14 +71,13 @@ export declare const CommissionAgreementsApiAxiosParamCreator: (configuration?:
71
71
  /**
72
72
  * This will patch commission agreement status.
73
73
  * @summary Update the commission agreement status
74
- * @param {string} code
75
- * @param {any} commissionAgreement Unique identifier for the object.
74
+ * @param {string} code Unique identifier for the object.
76
75
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
77
76
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
78
77
  * @param {*} [options] Override http request option.
79
78
  * @throws {RequiredError}
80
79
  */
81
- patchCommissionAgreementStatus: (code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
80
+ patchCommissionAgreementStatus: (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
82
81
  /**
83
82
  * This will update commission agreement.
84
83
  * @summary Update the commission agreement
@@ -141,14 +140,13 @@ export declare const CommissionAgreementsApiFp: (configuration?: Configuration)
141
140
  /**
142
141
  * This will patch commission agreement status.
143
142
  * @summary Update the commission agreement status
144
- * @param {string} code
145
- * @param {any} commissionAgreement Unique identifier for the object.
143
+ * @param {string} code Unique identifier for the object.
146
144
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
147
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
148
146
  * @param {*} [options] Override http request option.
149
147
  * @throws {RequiredError}
150
148
  */
151
- patchCommissionAgreementStatus(code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>>;
149
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>>;
152
150
  /**
153
151
  * This will update commission agreement.
154
152
  * @summary Update the commission agreement
@@ -211,14 +209,13 @@ export declare const CommissionAgreementsApiFactory: (configuration?: Configurat
211
209
  /**
212
210
  * This will patch commission agreement status.
213
211
  * @summary Update the commission agreement status
214
- * @param {string} code
215
- * @param {any} commissionAgreement Unique identifier for the object.
212
+ * @param {string} code Unique identifier for the object.
216
213
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
217
214
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
218
215
  * @param {*} [options] Override http request option.
219
216
  * @throws {RequiredError}
220
217
  */
221
- patchCommissionAgreementStatus(code: string, commissionAgreement: any, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass>;
218
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass>;
222
219
  /**
223
220
  * This will update commission agreement.
224
221
  * @summary Update the commission agreement
@@ -355,17 +352,11 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
355
352
  */
356
353
  export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
357
354
  /**
358
- *
355
+ * Unique identifier for the object.
359
356
  * @type {string}
360
357
  * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
361
358
  */
362
359
  readonly code: string;
363
- /**
364
- * Unique identifier for the object.
365
- * @type {any}
366
- * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
367
- */
368
- readonly commissionAgreement: any;
369
360
  /**
370
361
  *
371
362
  * @type {PatchCommissionAgreementStatusRequestDto}
@@ -318,14 +318,13 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
318
318
  /**
319
319
  * This will patch commission agreement status.
320
320
  * @summary Update the commission agreement status
321
- * @param {string} code
322
- * @param {any} commissionAgreement Unique identifier for the object.
321
+ * @param {string} code Unique identifier for the object.
323
322
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
324
323
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
325
324
  * @param {*} [options] Override http request option.
326
325
  * @throws {RequiredError}
327
326
  */
328
- patchCommissionAgreementStatus: function (code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options) {
327
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
329
328
  if (options === void 0) { options = {}; }
330
329
  return __awaiter(_this, void 0, void 0, function () {
331
330
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -334,13 +333,10 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
334
333
  case 0:
335
334
  // verify required parameter 'code' is not null or undefined
336
335
  (0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'code', code);
337
- // verify required parameter 'commissionAgreement' is not null or undefined
338
- (0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'commissionAgreement', commissionAgreement);
339
336
  // verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
340
337
  (0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto);
341
338
  localVarPath = "/commissionservice/v1/agreements/{code}/status"
342
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
343
- .replace("{".concat("commission agreement", "}"), encodeURIComponent(String(commissionAgreement)));
339
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
344
340
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
345
341
  if (configuration) {
346
342
  baseOptions = configuration.baseOptions;
@@ -529,19 +525,18 @@ var CommissionAgreementsApiFp = function (configuration) {
529
525
  /**
530
526
  * This will patch commission agreement status.
531
527
  * @summary Update the commission agreement status
532
- * @param {string} code
533
- * @param {any} commissionAgreement Unique identifier for the object.
528
+ * @param {string} code Unique identifier for the object.
534
529
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
535
530
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
536
531
  * @param {*} [options] Override http request option.
537
532
  * @throws {RequiredError}
538
533
  */
539
- patchCommissionAgreementStatus: function (code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options) {
534
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
540
535
  return __awaiter(this, void 0, void 0, function () {
541
536
  var localVarAxiosArgs;
542
537
  return __generator(this, function (_a) {
543
538
  switch (_a.label) {
544
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCommissionAgreementStatus(code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options)];
539
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options)];
545
540
  case 1:
546
541
  localVarAxiosArgs = _a.sent();
547
542
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -635,15 +630,14 @@ var CommissionAgreementsApiFactory = function (configuration, basePath, axios) {
635
630
  /**
636
631
  * This will patch commission agreement status.
637
632
  * @summary Update the commission agreement status
638
- * @param {string} code
639
- * @param {any} commissionAgreement Unique identifier for the object.
633
+ * @param {string} code Unique identifier for the object.
640
634
  * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
641
635
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
642
636
  * @param {*} [options] Override http request option.
643
637
  * @throws {RequiredError}
644
638
  */
645
- patchCommissionAgreementStatus: function (code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options) {
646
- return localVarFp.patchCommissionAgreementStatus(code, commissionAgreement, patchCommissionAgreementStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
639
+ patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
640
+ return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
647
641
  },
648
642
  /**
649
643
  * This will update commission agreement.
@@ -730,7 +724,7 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
730
724
  */
731
725
  CommissionAgreementsApi.prototype.patchCommissionAgreementStatus = function (requestParameters, options) {
732
726
  var _this = this;
733
- return (0, exports.CommissionAgreementsApiFp)(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.commissionAgreement, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
727
+ return (0, exports.CommissionAgreementsApiFp)(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
734
728
  };
735
729
  /**
736
730
  * This will update commission agreement.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk",
3
- "version": "1.0.0-beta.33",
3
+ "version": "1.0.0-beta.34",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [