@emilgroup/commission-sdk 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@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@1.0.0-beta.20 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@1.0.0-beta.20
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -261,15 +261,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
261
261
|
/**
|
|
262
262
|
* This will update commission agreement.
|
|
263
263
|
* @summary Update the commission agreement
|
|
264
|
+
* @param {string} code
|
|
264
265
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
265
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
266
267
|
* @param {*} [options] Override http request option.
|
|
267
268
|
* @throws {RequiredError}
|
|
268
269
|
*/
|
|
269
|
-
updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
|
+
updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
271
|
+
// verify required parameter 'code' is not null or undefined
|
|
272
|
+
assertParamExists('updateCommissionAgreement', 'code', code)
|
|
270
273
|
// verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
|
|
271
274
|
assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
|
|
272
|
-
const localVarPath = `/commissionservice/v1/agreements
|
|
275
|
+
const localVarPath = `/commissionservice/v1/agreements/{code}`
|
|
276
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
273
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
278
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
275
279
|
let baseOptions;
|
|
@@ -373,13 +377,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
373
377
|
/**
|
|
374
378
|
* This will update commission agreement.
|
|
375
379
|
* @summary Update the commission agreement
|
|
380
|
+
* @param {string} code
|
|
376
381
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
377
382
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
378
383
|
* @param {*} [options] Override http request option.
|
|
379
384
|
* @throws {RequiredError}
|
|
380
385
|
*/
|
|
381
|
-
async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
382
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
|
|
386
|
+
async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
|
|
383
388
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
384
389
|
},
|
|
385
390
|
}
|
|
@@ -446,13 +451,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
446
451
|
/**
|
|
447
452
|
* This will update commission agreement.
|
|
448
453
|
* @summary Update the commission agreement
|
|
454
|
+
* @param {string} code
|
|
449
455
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
450
456
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
457
|
* @param {*} [options] Override http request option.
|
|
452
458
|
* @throws {RequiredError}
|
|
453
459
|
*/
|
|
454
|
-
updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
455
|
-
return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
|
+
updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
461
|
+
return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
456
462
|
},
|
|
457
463
|
};
|
|
458
464
|
};
|
|
@@ -596,6 +602,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
596
602
|
* @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
|
|
597
603
|
*/
|
|
598
604
|
export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof CommissionAgreementsApiUpdateCommissionAgreement
|
|
609
|
+
*/
|
|
610
|
+
readonly code: string
|
|
611
|
+
|
|
599
612
|
/**
|
|
600
613
|
*
|
|
601
614
|
* @type {UpdateCommissionAgreementRequestDto}
|
|
@@ -675,6 +688,6 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
675
688
|
* @memberof CommissionAgreementsApi
|
|
676
689
|
*/
|
|
677
690
|
public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
|
|
678
|
-
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
691
|
+
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
679
692
|
}
|
|
680
693
|
}
|
|
@@ -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}
|
|
@@ -318,21 +318,25 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
|
|
|
318
318
|
/**
|
|
319
319
|
* This will update commission agreement.
|
|
320
320
|
* @summary Update the commission agreement
|
|
321
|
+
* @param {string} code
|
|
321
322
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
322
323
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
324
|
* @param {*} [options] Override http request option.
|
|
324
325
|
* @throws {RequiredError}
|
|
325
326
|
*/
|
|
326
|
-
updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
|
|
327
|
+
updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
|
|
327
328
|
if (options === void 0) { options = {}; }
|
|
328
329
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
330
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
330
331
|
return __generator(this, function (_a) {
|
|
331
332
|
switch (_a.label) {
|
|
332
333
|
case 0:
|
|
334
|
+
// verify required parameter 'code' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updateCommissionAgreement', 'code', code);
|
|
333
336
|
// verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
|
|
334
337
|
(0, common_1.assertParamExists)('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto);
|
|
335
|
-
localVarPath = "/commissionservice/v1/agreements"
|
|
338
|
+
localVarPath = "/commissionservice/v1/agreements/{code}"
|
|
339
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
340
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
341
|
if (configuration) {
|
|
338
342
|
baseOptions = configuration.baseOptions;
|
|
@@ -468,17 +472,18 @@ var CommissionAgreementsApiFp = function (configuration) {
|
|
|
468
472
|
/**
|
|
469
473
|
* This will update commission agreement.
|
|
470
474
|
* @summary Update the commission agreement
|
|
475
|
+
* @param {string} code
|
|
471
476
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
472
477
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
473
478
|
* @param {*} [options] Override http request option.
|
|
474
479
|
* @throws {RequiredError}
|
|
475
480
|
*/
|
|
476
|
-
updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
|
|
481
|
+
updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
|
|
477
482
|
return __awaiter(this, void 0, void 0, function () {
|
|
478
483
|
var localVarAxiosArgs;
|
|
479
484
|
return __generator(this, function (_a) {
|
|
480
485
|
switch (_a.label) {
|
|
481
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options)];
|
|
486
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options)];
|
|
482
487
|
case 1:
|
|
483
488
|
localVarAxiosArgs = _a.sent();
|
|
484
489
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -550,13 +555,14 @@ var CommissionAgreementsApiFactory = function (configuration, basePath, axios) {
|
|
|
550
555
|
/**
|
|
551
556
|
* This will update commission agreement.
|
|
552
557
|
* @summary Update the commission agreement
|
|
558
|
+
* @param {string} code
|
|
553
559
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
554
560
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
555
561
|
* @param {*} [options] Override http request option.
|
|
556
562
|
* @throws {RequiredError}
|
|
557
563
|
*/
|
|
558
|
-
updateCommissionAgreement: function (updateCommissionAgreementRequestDto, authorization, options) {
|
|
559
|
-
return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
564
|
+
updateCommissionAgreement: function (code, updateCommissionAgreementRequestDto, authorization, options) {
|
|
565
|
+
return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
560
566
|
},
|
|
561
567
|
};
|
|
562
568
|
};
|
|
@@ -631,7 +637,7 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
|
|
|
631
637
|
*/
|
|
632
638
|
CommissionAgreementsApi.prototype.updateCommissionAgreement = function (requestParameters, options) {
|
|
633
639
|
var _this = this;
|
|
634
|
-
return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
|
+
return (0, exports.CommissionAgreementsApiFp)(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
635
641
|
};
|
|
636
642
|
return CommissionAgreementsApi;
|
|
637
643
|
}(base_1.BaseAPI));
|