@emilgroup/commission-sdk-node 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-node@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@1.0.0-beta.34 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@1.0.0-beta.34
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -269,23 +269,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
269
269
|
/**
|
|
270
270
|
* This will patch commission agreement status.
|
|
271
271
|
* @summary Update the commission agreement status
|
|
272
|
-
* @param {string} code
|
|
273
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
272
|
+
* @param {string} code Unique identifier for the object.
|
|
274
273
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
275
274
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
276
275
|
* @param {*} [options] Override http request option.
|
|
277
276
|
* @throws {RequiredError}
|
|
278
277
|
*/
|
|
279
|
-
patchCommissionAgreementStatus: async (code: string,
|
|
278
|
+
patchCommissionAgreementStatus: async (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
280
279
|
// verify required parameter 'code' is not null or undefined
|
|
281
280
|
assertParamExists('patchCommissionAgreementStatus', 'code', code)
|
|
282
|
-
// verify required parameter 'commissionAgreement' is not null or undefined
|
|
283
|
-
assertParamExists('patchCommissionAgreementStatus', 'commissionAgreement', commissionAgreement)
|
|
284
281
|
// verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
|
|
285
282
|
assertParamExists('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto)
|
|
286
283
|
const localVarPath = `/commissionservice/v1/agreements/{code}/status`
|
|
287
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
288
|
-
.replace(`{${"commission agreement"}}`, encodeURIComponent(String(commissionAgreement)));
|
|
284
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
289
285
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
286
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
287
|
let baseOptions;
|
|
@@ -440,15 +436,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
440
436
|
/**
|
|
441
437
|
* This will patch commission agreement status.
|
|
442
438
|
* @summary Update the commission agreement status
|
|
443
|
-
* @param {string} code
|
|
444
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
439
|
+
* @param {string} code Unique identifier for the object.
|
|
445
440
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
446
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
442
|
* @param {*} [options] Override http request option.
|
|
448
443
|
* @throws {RequiredError}
|
|
449
444
|
*/
|
|
450
|
-
async patchCommissionAgreementStatus(code: string,
|
|
451
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code,
|
|
445
|
+
async patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>> {
|
|
446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options);
|
|
452
447
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
453
448
|
},
|
|
454
449
|
/**
|
|
@@ -528,15 +523,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
528
523
|
/**
|
|
529
524
|
* This will patch commission agreement status.
|
|
530
525
|
* @summary Update the commission agreement status
|
|
531
|
-
* @param {string} code
|
|
532
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
526
|
+
* @param {string} code Unique identifier for the object.
|
|
533
527
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
534
528
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
535
529
|
* @param {*} [options] Override http request option.
|
|
536
530
|
* @throws {RequiredError}
|
|
537
531
|
*/
|
|
538
|
-
patchCommissionAgreementStatus(code: string,
|
|
539
|
-
return localVarFp.patchCommissionAgreementStatus(code,
|
|
532
|
+
patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass> {
|
|
533
|
+
return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
540
534
|
},
|
|
541
535
|
/**
|
|
542
536
|
* This will update commission agreement.
|
|
@@ -693,19 +687,12 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
693
687
|
*/
|
|
694
688
|
export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
|
|
695
689
|
/**
|
|
696
|
-
*
|
|
690
|
+
* Unique identifier for the object.
|
|
697
691
|
* @type {string}
|
|
698
692
|
* @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
|
|
699
693
|
*/
|
|
700
694
|
readonly code: string
|
|
701
695
|
|
|
702
|
-
/**
|
|
703
|
-
* Unique identifier for the object.
|
|
704
|
-
* @type {any}
|
|
705
|
-
* @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
|
|
706
|
-
*/
|
|
707
|
-
readonly commissionAgreement: any
|
|
708
|
-
|
|
709
696
|
/**
|
|
710
697
|
*
|
|
711
698
|
* @type {PatchCommissionAgreementStatusRequestDto}
|
|
@@ -813,7 +800,7 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
813
800
|
* @memberof CommissionAgreementsApi
|
|
814
801
|
*/
|
|
815
802
|
public patchCommissionAgreementStatus(requestParameters: CommissionAgreementsApiPatchCommissionAgreementStatusRequest, options?: AxiosRequestConfig) {
|
|
816
|
-
return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.
|
|
803
|
+
return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
817
804
|
}
|
|
818
805
|
|
|
819
806
|
/**
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
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}
|
|
@@ -322,14 +322,13 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
|
|
|
322
322
|
/**
|
|
323
323
|
* This will patch commission agreement status.
|
|
324
324
|
* @summary Update the commission agreement status
|
|
325
|
-
* @param {string} code
|
|
326
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
325
|
+
* @param {string} code Unique identifier for the object.
|
|
327
326
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
328
327
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
329
328
|
* @param {*} [options] Override http request option.
|
|
330
329
|
* @throws {RequiredError}
|
|
331
330
|
*/
|
|
332
|
-
patchCommissionAgreementStatus: function (code,
|
|
331
|
+
patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
|
|
333
332
|
if (options === void 0) { options = {}; }
|
|
334
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
335
334
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -338,13 +337,10 @@ var CommissionAgreementsApiAxiosParamCreator = function (configuration) {
|
|
|
338
337
|
case 0:
|
|
339
338
|
// verify required parameter 'code' is not null or undefined
|
|
340
339
|
(0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'code', code);
|
|
341
|
-
// verify required parameter 'commissionAgreement' is not null or undefined
|
|
342
|
-
(0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'commissionAgreement', commissionAgreement);
|
|
343
340
|
// verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
|
|
344
341
|
(0, common_1.assertParamExists)('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto);
|
|
345
342
|
localVarPath = "/commissionservice/v1/agreements/{code}/status"
|
|
346
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
347
|
-
.replace("{".concat("commission agreement", "}"), encodeURIComponent(String(commissionAgreement)));
|
|
343
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
348
344
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
349
345
|
if (configuration) {
|
|
350
346
|
baseOptions = configuration.baseOptions;
|
|
@@ -533,19 +529,18 @@ var CommissionAgreementsApiFp = function (configuration) {
|
|
|
533
529
|
/**
|
|
534
530
|
* This will patch commission agreement status.
|
|
535
531
|
* @summary Update the commission agreement status
|
|
536
|
-
* @param {string} code
|
|
537
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
532
|
+
* @param {string} code Unique identifier for the object.
|
|
538
533
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
539
534
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
535
|
* @param {*} [options] Override http request option.
|
|
541
536
|
* @throws {RequiredError}
|
|
542
537
|
*/
|
|
543
|
-
patchCommissionAgreementStatus: function (code,
|
|
538
|
+
patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
|
|
544
539
|
return __awaiter(this, void 0, void 0, function () {
|
|
545
540
|
var localVarAxiosArgs;
|
|
546
541
|
return __generator(this, function (_a) {
|
|
547
542
|
switch (_a.label) {
|
|
548
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCommissionAgreementStatus(code,
|
|
543
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options)];
|
|
549
544
|
case 1:
|
|
550
545
|
localVarAxiosArgs = _a.sent();
|
|
551
546
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -639,15 +634,14 @@ var CommissionAgreementsApiFactory = function (configuration, basePath, axios) {
|
|
|
639
634
|
/**
|
|
640
635
|
* This will patch commission agreement status.
|
|
641
636
|
* @summary Update the commission agreement status
|
|
642
|
-
* @param {string} code
|
|
643
|
-
* @param {any} commissionAgreement Unique identifier for the object.
|
|
637
|
+
* @param {string} code Unique identifier for the object.
|
|
644
638
|
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
645
639
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
646
640
|
* @param {*} [options] Override http request option.
|
|
647
641
|
* @throws {RequiredError}
|
|
648
642
|
*/
|
|
649
|
-
patchCommissionAgreementStatus: function (code,
|
|
650
|
-
return localVarFp.patchCommissionAgreementStatus(code,
|
|
643
|
+
patchCommissionAgreementStatus: function (code, patchCommissionAgreementStatusRequestDto, authorization, options) {
|
|
644
|
+
return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
651
645
|
},
|
|
652
646
|
/**
|
|
653
647
|
* This will update commission agreement.
|
|
@@ -734,7 +728,7 @@ var CommissionAgreementsApi = /** @class */ (function (_super) {
|
|
|
734
728
|
*/
|
|
735
729
|
CommissionAgreementsApi.prototype.patchCommissionAgreementStatus = function (requestParameters, options) {
|
|
736
730
|
var _this = this;
|
|
737
|
-
return (0, exports.CommissionAgreementsApiFp)(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.
|
|
731
|
+
return (0, exports.CommissionAgreementsApiFp)(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
738
732
|
};
|
|
739
733
|
/**
|
|
740
734
|
* This will update commission agreement.
|