@emilgroup/commission-sdk-node 1.0.0-beta.84 → 2.1.0
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/.openapi-generator/FILES +0 -2
- package/README.md +2 -2
- package/api/commission-recipients-api.ts +0 -107
- package/dist/api/commission-recipients-api.d.ts +0 -57
- package/dist/api/commission-recipients-api.js +0 -93
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/models/index.ts +0 -2
- package/package.json +1 -1
- package/dist/models/create-commission-recipient-for-products-request-dto.d.ts +0 -36
- package/dist/models/create-commission-recipient-for-products-request-dto.js +0 -15
- package/dist/models/create-commission-recipient-for-products-response-class.d.ts +0 -25
- package/dist/models/create-commission-recipient-for-products-response-class.js +0 -15
- package/models/create-commission-recipient-for-products-request-dto.ts +0 -42
- package/models/create-commission-recipient-for-products-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -44,8 +44,6 @@ models/create-commission-agreement-version-response-class.ts
|
|
|
44
44
|
models/create-commission-candidate-request-dto.ts
|
|
45
45
|
models/create-commission-candidate-response-class.ts
|
|
46
46
|
models/create-commission-item-request-dto.ts
|
|
47
|
-
models/create-commission-recipient-for-products-request-dto.ts
|
|
48
|
-
models/create-commission-recipient-for-products-response-class.ts
|
|
49
47
|
models/create-commission-recipient-request-dto.ts
|
|
50
48
|
models/create-commission-recipient-response-class.ts
|
|
51
49
|
models/create-commission-request-dto.ts
|
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
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@2.1.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@1.0
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@2.1.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreateCommissionRecipientForProductsRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateCommissionRecipientForProductsResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
24
|
import { CreateCommissionRecipientRequestDto } from '../models';
|
|
29
25
|
// @ts-ignore
|
|
30
26
|
import { CreateCommissionRecipientResponseClass } from '../models';
|
|
@@ -93,53 +89,6 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
93
89
|
options: localVarRequestOptions,
|
|
94
90
|
};
|
|
95
91
|
},
|
|
96
|
-
/**
|
|
97
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
98
|
-
* @summary Create the commission recipient bulk
|
|
99
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
100
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
createCommissionRecipientWithProducts: async (createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
-
// verify required parameter 'createCommissionRecipientForProductsRequestDto' is not null or undefined
|
|
106
|
-
assertParamExists('createCommissionRecipientWithProducts', 'createCommissionRecipientForProductsRequestDto', createCommissionRecipientForProductsRequestDto)
|
|
107
|
-
const localVarPath = `/commissionservice/v1/commission-recipients/bulk`;
|
|
108
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
-
let baseOptions;
|
|
111
|
-
let baseAccessToken;
|
|
112
|
-
if (configuration) {
|
|
113
|
-
baseOptions = configuration.baseOptions;
|
|
114
|
-
baseAccessToken = configuration.accessToken;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
118
|
-
const localVarHeaderParameter = {} as any;
|
|
119
|
-
const localVarQueryParameter = {} as any;
|
|
120
|
-
|
|
121
|
-
// authentication bearer required
|
|
122
|
-
// http bearer authentication required
|
|
123
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
-
|
|
125
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
-
|
|
133
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCommissionRecipientForProductsRequestDto, localVarRequestOptions, configuration)
|
|
137
|
-
|
|
138
|
-
return {
|
|
139
|
-
url: toPathString(localVarUrlObj),
|
|
140
|
-
options: localVarRequestOptions,
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
92
|
/**
|
|
144
93
|
* This will delete commission recipient.
|
|
145
94
|
* @summary Delete the commission recipient
|
|
@@ -386,18 +335,6 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
386
335
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options);
|
|
387
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
337
|
},
|
|
389
|
-
/**
|
|
390
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
391
|
-
* @summary Create the commission recipient bulk
|
|
392
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
393
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
394
|
-
* @param {*} [options] Override http request option.
|
|
395
|
-
* @throws {RequiredError}
|
|
396
|
-
*/
|
|
397
|
-
async createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientForProductsResponseClass>> {
|
|
398
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options);
|
|
399
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
400
|
-
},
|
|
401
338
|
/**
|
|
402
339
|
* This will delete commission recipient.
|
|
403
340
|
* @summary Delete the commission recipient
|
|
@@ -475,17 +412,6 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
475
412
|
createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass> {
|
|
476
413
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
477
414
|
},
|
|
478
|
-
/**
|
|
479
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
480
|
-
* @summary Create the commission recipient bulk
|
|
481
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
482
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
483
|
-
* @param {*} [options] Override http request option.
|
|
484
|
-
* @throws {RequiredError}
|
|
485
|
-
*/
|
|
486
|
-
createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientForProductsResponseClass> {
|
|
487
|
-
return localVarFp.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
488
|
-
},
|
|
489
415
|
/**
|
|
490
416
|
* This will delete commission recipient.
|
|
491
417
|
* @summary Delete the commission recipient
|
|
@@ -562,27 +488,6 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
562
488
|
readonly authorization?: string
|
|
563
489
|
}
|
|
564
490
|
|
|
565
|
-
/**
|
|
566
|
-
* Request parameters for createCommissionRecipientWithProducts operation in CommissionRecipientsApi.
|
|
567
|
-
* @export
|
|
568
|
-
* @interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest
|
|
569
|
-
*/
|
|
570
|
-
export interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest {
|
|
571
|
-
/**
|
|
572
|
-
*
|
|
573
|
-
* @type {CreateCommissionRecipientForProductsRequestDto}
|
|
574
|
-
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
575
|
-
*/
|
|
576
|
-
readonly createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
580
|
-
* @type {string}
|
|
581
|
-
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
582
|
-
*/
|
|
583
|
-
readonly authorization?: string
|
|
584
|
-
}
|
|
585
|
-
|
|
586
491
|
/**
|
|
587
492
|
* Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
|
|
588
493
|
* @export
|
|
@@ -742,18 +647,6 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
742
647
|
return CommissionRecipientsApiFp(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
743
648
|
}
|
|
744
649
|
|
|
745
|
-
/**
|
|
746
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
747
|
-
* @summary Create the commission recipient bulk
|
|
748
|
-
* @param {CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest} requestParameters Request parameters.
|
|
749
|
-
* @param {*} [options] Override http request option.
|
|
750
|
-
* @throws {RequiredError}
|
|
751
|
-
* @memberof CommissionRecipientsApi
|
|
752
|
-
*/
|
|
753
|
-
public createCommissionRecipientWithProducts(requestParameters: CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest, options?: AxiosRequestConfig) {
|
|
754
|
-
return CommissionRecipientsApiFp(this.configuration).createCommissionRecipientWithProducts(requestParameters.createCommissionRecipientForProductsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
755
|
-
}
|
|
756
|
-
|
|
757
650
|
/**
|
|
758
651
|
* This will delete commission recipient.
|
|
759
652
|
* @summary Delete the commission recipient
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreateCommissionRecipientForProductsRequestDto } from '../models';
|
|
16
|
-
import { CreateCommissionRecipientForProductsResponseClass } from '../models';
|
|
17
15
|
import { CreateCommissionRecipientRequestDto } from '../models';
|
|
18
16
|
import { CreateCommissionRecipientResponseClass } from '../models';
|
|
19
17
|
import { GetCommissionRecipientResponseClass } from '../models';
|
|
@@ -34,15 +32,6 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
34
32
|
* @throws {RequiredError}
|
|
35
33
|
*/
|
|
36
34
|
createCommissionRecipient: (createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
-
/**
|
|
38
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
39
|
-
* @summary Create the commission recipient bulk
|
|
40
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
41
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
createCommissionRecipientWithProducts: (createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
35
|
/**
|
|
47
36
|
* This will delete commission recipient.
|
|
48
37
|
* @summary Delete the commission recipient
|
|
@@ -102,15 +91,6 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
102
91
|
* @throws {RequiredError}
|
|
103
92
|
*/
|
|
104
93
|
createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientResponseClass>>;
|
|
105
|
-
/**
|
|
106
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
107
|
-
* @summary Create the commission recipient bulk
|
|
108
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
109
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
110
|
-
* @param {*} [options] Override http request option.
|
|
111
|
-
* @throws {RequiredError}
|
|
112
|
-
*/
|
|
113
|
-
createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientForProductsResponseClass>>;
|
|
114
94
|
/**
|
|
115
95
|
* This will delete commission recipient.
|
|
116
96
|
* @summary Delete the commission recipient
|
|
@@ -170,15 +150,6 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
170
150
|
* @throws {RequiredError}
|
|
171
151
|
*/
|
|
172
152
|
createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass>;
|
|
173
|
-
/**
|
|
174
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
175
|
-
* @summary Create the commission recipient bulk
|
|
176
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
177
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
178
|
-
* @param {*} [options] Override http request option.
|
|
179
|
-
* @throws {RequiredError}
|
|
180
|
-
*/
|
|
181
|
-
createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientForProductsResponseClass>;
|
|
182
153
|
/**
|
|
183
154
|
* This will delete commission recipient.
|
|
184
155
|
* @summary Delete the commission recipient
|
|
@@ -243,25 +214,6 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
243
214
|
*/
|
|
244
215
|
readonly authorization?: string;
|
|
245
216
|
}
|
|
246
|
-
/**
|
|
247
|
-
* Request parameters for createCommissionRecipientWithProducts operation in CommissionRecipientsApi.
|
|
248
|
-
* @export
|
|
249
|
-
* @interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest
|
|
250
|
-
*/
|
|
251
|
-
export interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest {
|
|
252
|
-
/**
|
|
253
|
-
*
|
|
254
|
-
* @type {CreateCommissionRecipientForProductsRequestDto}
|
|
255
|
-
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
256
|
-
*/
|
|
257
|
-
readonly createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto;
|
|
258
|
-
/**
|
|
259
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
|
-
* @type {string}
|
|
261
|
-
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
262
|
-
*/
|
|
263
|
-
readonly authorization?: string;
|
|
264
|
-
}
|
|
265
217
|
/**
|
|
266
218
|
* Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
|
|
267
219
|
* @export
|
|
@@ -402,15 +354,6 @@ export declare class CommissionRecipientsApi extends BaseAPI {
|
|
|
402
354
|
* @memberof CommissionRecipientsApi
|
|
403
355
|
*/
|
|
404
356
|
createCommissionRecipient(requestParameters: CommissionRecipientsApiCreateCommissionRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCommissionRecipientResponseClass, any, {}>>;
|
|
405
|
-
/**
|
|
406
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
407
|
-
* @summary Create the commission recipient bulk
|
|
408
|
-
* @param {CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest} requestParameters Request parameters.
|
|
409
|
-
* @param {*} [options] Override http request option.
|
|
410
|
-
* @throws {RequiredError}
|
|
411
|
-
* @memberof CommissionRecipientsApi
|
|
412
|
-
*/
|
|
413
|
-
createCommissionRecipientWithProducts(requestParameters: CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCommissionRecipientForProductsResponseClass, any, {}>>;
|
|
414
357
|
/**
|
|
415
358
|
* This will delete commission recipient.
|
|
416
359
|
* @summary Delete the commission recipient
|
|
@@ -145,55 +145,6 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
-
/**
|
|
149
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
150
|
-
* @summary Create the commission recipient bulk
|
|
151
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
152
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
// verify required parameter 'createCommissionRecipientForProductsRequestDto' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('createCommissionRecipientWithProducts', 'createCommissionRecipientForProductsRequestDto', createCommissionRecipientForProductsRequestDto);
|
|
165
|
-
localVarPath = "/commissionservice/v1/commission-recipients/bulk";
|
|
166
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
-
if (configuration) {
|
|
168
|
-
baseOptions = configuration.baseOptions;
|
|
169
|
-
baseAccessToken = configuration.accessToken;
|
|
170
|
-
}
|
|
171
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
172
|
-
localVarHeaderParameter = {};
|
|
173
|
-
localVarQueryParameter = {};
|
|
174
|
-
// authentication bearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
-
case 1:
|
|
178
|
-
// authentication bearer required
|
|
179
|
-
// http bearer authentication required
|
|
180
|
-
_a.sent();
|
|
181
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
-
}
|
|
184
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionRecipientForProductsRequestDto, localVarRequestOptions, configuration);
|
|
189
|
-
return [2 /*return*/, {
|
|
190
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
-
options: localVarRequestOptions,
|
|
192
|
-
}];
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
},
|
|
197
148
|
/**
|
|
198
149
|
* This will delete commission recipient.
|
|
199
150
|
* @summary Delete the commission recipient
|
|
@@ -452,27 +403,6 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
452
403
|
});
|
|
453
404
|
});
|
|
454
405
|
},
|
|
455
|
-
/**
|
|
456
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
457
|
-
* @summary Create the commission recipient bulk
|
|
458
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
459
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
460
|
-
* @param {*} [options] Override http request option.
|
|
461
|
-
* @throws {RequiredError}
|
|
462
|
-
*/
|
|
463
|
-
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
464
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
-
var localVarAxiosArgs;
|
|
466
|
-
return __generator(this, function (_a) {
|
|
467
|
-
switch (_a.label) {
|
|
468
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options)];
|
|
469
|
-
case 1:
|
|
470
|
-
localVarAxiosArgs = _a.sent();
|
|
471
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
});
|
|
475
|
-
},
|
|
476
406
|
/**
|
|
477
407
|
* This will delete commission recipient.
|
|
478
408
|
* @summary Delete the commission recipient
|
|
@@ -586,17 +516,6 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
586
516
|
createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
|
|
587
517
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
588
518
|
},
|
|
589
|
-
/**
|
|
590
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
591
|
-
* @summary Create the commission recipient bulk
|
|
592
|
-
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
593
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
594
|
-
* @param {*} [options] Override http request option.
|
|
595
|
-
* @throws {RequiredError}
|
|
596
|
-
*/
|
|
597
|
-
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
598
|
-
return localVarFp.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
599
|
-
},
|
|
600
519
|
/**
|
|
601
520
|
* This will delete commission recipient.
|
|
602
521
|
* @summary Delete the commission recipient
|
|
@@ -675,18 +594,6 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
675
594
|
var _this = this;
|
|
676
595
|
return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
596
|
};
|
|
678
|
-
/**
|
|
679
|
-
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
680
|
-
* @summary Create the commission recipient bulk
|
|
681
|
-
* @param {CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest} requestParameters Request parameters.
|
|
682
|
-
* @param {*} [options] Override http request option.
|
|
683
|
-
* @throws {RequiredError}
|
|
684
|
-
* @memberof CommissionRecipientsApi
|
|
685
|
-
*/
|
|
686
|
-
CommissionRecipientsApi.prototype.createCommissionRecipientWithProducts = function (requestParameters, options) {
|
|
687
|
-
var _this = this;
|
|
688
|
-
return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipientWithProducts(requestParameters.createCommissionRecipientForProductsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
|
-
};
|
|
690
597
|
/**
|
|
691
598
|
* This will delete commission recipient.
|
|
692
599
|
* @summary Delete the commission recipient
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,8 +25,6 @@ export * from './create-commission-agreement-version-response-class';
|
|
|
25
25
|
export * from './create-commission-candidate-request-dto';
|
|
26
26
|
export * from './create-commission-candidate-response-class';
|
|
27
27
|
export * from './create-commission-item-request-dto';
|
|
28
|
-
export * from './create-commission-recipient-for-products-request-dto';
|
|
29
|
-
export * from './create-commission-recipient-for-products-response-class';
|
|
30
28
|
export * from './create-commission-recipient-request-dto';
|
|
31
29
|
export * from './create-commission-recipient-response-class';
|
|
32
30
|
export * from './create-commission-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -41,8 +41,6 @@ __exportStar(require("./create-commission-agreement-version-response-class"), ex
|
|
|
41
41
|
__exportStar(require("./create-commission-candidate-request-dto"), exports);
|
|
42
42
|
__exportStar(require("./create-commission-candidate-response-class"), exports);
|
|
43
43
|
__exportStar(require("./create-commission-item-request-dto"), exports);
|
|
44
|
-
__exportStar(require("./create-commission-recipient-for-products-request-dto"), exports);
|
|
45
|
-
__exportStar(require("./create-commission-recipient-for-products-response-class"), exports);
|
|
46
44
|
__exportStar(require("./create-commission-recipient-request-dto"), exports);
|
|
47
45
|
__exportStar(require("./create-commission-recipient-response-class"), exports);
|
|
48
46
|
__exportStar(require("./create-commission-request-dto"), exports);
|
package/models/index.ts
CHANGED
|
@@ -25,8 +25,6 @@ export * from './create-commission-agreement-version-response-class';
|
|
|
25
25
|
export * from './create-commission-candidate-request-dto';
|
|
26
26
|
export * from './create-commission-candidate-response-class';
|
|
27
27
|
export * from './create-commission-item-request-dto';
|
|
28
|
-
export * from './create-commission-recipient-for-products-request-dto';
|
|
29
|
-
export * from './create-commission-recipient-for-products-response-class';
|
|
30
28
|
export * from './create-commission-recipient-request-dto';
|
|
31
29
|
export * from './create-commission-recipient-response-class';
|
|
32
30
|
export * from './create-commission-request-dto';
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL CommissionService
|
|
3
|
-
* The EMIL CommissionService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateCommissionRecipientForProductsRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateCommissionRecipientForProductsRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* List of commission agreement product codes to create a recipient for
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'commissionAgreementProductCodes': Array<string>;
|
|
24
|
-
/**
|
|
25
|
-
* Human-readable display name for the commission recipient
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'displayName': string;
|
|
30
|
-
/**
|
|
31
|
-
* The unique code or identifier of the partner associated with this commission recipient
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
34
|
-
*/
|
|
35
|
-
'partnerCode': string;
|
|
36
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL CommissionService
|
|
6
|
-
* The EMIL CommissionService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL CommissionService
|
|
3
|
-
* The EMIL CommissionService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { CommissionRecipientClass } from './commission-recipient-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateCommissionRecipientForProductsResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateCommissionRecipientForProductsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* List of commission recipients created, one per commission agreement product code provided
|
|
21
|
-
* @type {Array<CommissionRecipientClass>}
|
|
22
|
-
* @memberof CreateCommissionRecipientForProductsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'recipients': Array<CommissionRecipientClass>;
|
|
25
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL CommissionService
|
|
6
|
-
* The EMIL CommissionService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL CommissionService
|
|
5
|
-
* The EMIL CommissionService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface CreateCommissionRecipientForProductsRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface CreateCommissionRecipientForProductsRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* List of commission agreement product codes to create a recipient for
|
|
25
|
-
* @type {Array<string>}
|
|
26
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'commissionAgreementProductCodes': Array<string>;
|
|
29
|
-
/**
|
|
30
|
-
* Human-readable display name for the commission recipient
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'displayName': string;
|
|
35
|
-
/**
|
|
36
|
-
* The unique code or identifier of the partner associated with this commission recipient
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof CreateCommissionRecipientForProductsRequestDto
|
|
39
|
-
*/
|
|
40
|
-
'partnerCode': string;
|
|
41
|
-
}
|
|
42
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL CommissionService
|
|
5
|
-
* The EMIL CommissionService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { CommissionRecipientClass } from './commission-recipient-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreateCommissionRecipientForProductsResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateCommissionRecipientForProductsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* List of commission recipients created, one per commission agreement product code provided
|
|
26
|
-
* @type {Array<CommissionRecipientClass>}
|
|
27
|
-
* @memberof CreateCommissionRecipientForProductsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'recipients': Array<CommissionRecipientClass>;
|
|
30
|
-
}
|
|
31
|
-
|