@emilgroup/commission-sdk-node 1.0.0-beta.77 → 1.0.0-beta.83
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 +2 -0
- package/README.md +2 -2
- package/api/commission-recipients-api.ts +107 -0
- package/dist/api/commission-recipients-api.d.ts +57 -0
- package/dist/api/commission-recipients-api.js +93 -0
- package/dist/models/create-commission-recipient-for-products-request-dto.d.ts +36 -0
- package/dist/models/create-commission-recipient-for-products-request-dto.js +15 -0
- package/dist/models/create-commission-recipient-for-products-response-class.d.ts +25 -0
- package/dist/models/create-commission-recipient-for-products-response-class.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/create-commission-recipient-for-products-request-dto.ts +42 -0
- package/models/create-commission-recipient-for-products-response-class.ts +31 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -44,6 +44,8 @@ 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
|
|
47
49
|
models/create-commission-recipient-request-dto.ts
|
|
48
50
|
models/create-commission-recipient-response-class.ts
|
|
49
51
|
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.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@1.0.0-beta.83 --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.83
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -21,6 +21,10 @@ 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
|
|
24
28
|
import { CreateCommissionRecipientRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { CreateCommissionRecipientResponseClass } from '../models';
|
|
@@ -89,6 +93,53 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
89
93
|
options: localVarRequestOptions,
|
|
90
94
|
};
|
|
91
95
|
},
|
|
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
|
+
},
|
|
92
143
|
/**
|
|
93
144
|
* This will delete commission recipient.
|
|
94
145
|
* @summary Delete the commission recipient
|
|
@@ -335,6 +386,18 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
335
386
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options);
|
|
336
387
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
388
|
},
|
|
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
|
+
},
|
|
338
401
|
/**
|
|
339
402
|
* This will delete commission recipient.
|
|
340
403
|
* @summary Delete the commission recipient
|
|
@@ -412,6 +475,17 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
412
475
|
createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass> {
|
|
413
476
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
414
477
|
},
|
|
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
|
+
},
|
|
415
489
|
/**
|
|
416
490
|
* This will delete commission recipient.
|
|
417
491
|
* @summary Delete the commission recipient
|
|
@@ -488,6 +562,27 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
488
562
|
readonly authorization?: string
|
|
489
563
|
}
|
|
490
564
|
|
|
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
|
+
|
|
491
586
|
/**
|
|
492
587
|
* Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
|
|
493
588
|
* @export
|
|
@@ -647,6 +742,18 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
647
742
|
return CommissionRecipientsApiFp(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
648
743
|
}
|
|
649
744
|
|
|
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
|
+
|
|
650
757
|
/**
|
|
651
758
|
* This will delete commission recipient.
|
|
652
759
|
* @summary Delete the commission recipient
|
|
@@ -12,6 +12,8 @@
|
|
|
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';
|
|
15
17
|
import { CreateCommissionRecipientRequestDto } from '../models';
|
|
16
18
|
import { CreateCommissionRecipientResponseClass } from '../models';
|
|
17
19
|
import { GetCommissionRecipientResponseClass } from '../models';
|
|
@@ -32,6 +34,15 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
32
34
|
* @throws {RequiredError}
|
|
33
35
|
*/
|
|
34
36
|
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>;
|
|
35
46
|
/**
|
|
36
47
|
* This will delete commission recipient.
|
|
37
48
|
* @summary Delete the commission recipient
|
|
@@ -91,6 +102,15 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
91
102
|
* @throws {RequiredError}
|
|
92
103
|
*/
|
|
93
104
|
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>>;
|
|
94
114
|
/**
|
|
95
115
|
* This will delete commission recipient.
|
|
96
116
|
* @summary Delete the commission recipient
|
|
@@ -150,6 +170,15 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
150
170
|
* @throws {RequiredError}
|
|
151
171
|
*/
|
|
152
172
|
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>;
|
|
153
182
|
/**
|
|
154
183
|
* This will delete commission recipient.
|
|
155
184
|
* @summary Delete the commission recipient
|
|
@@ -214,6 +243,25 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
214
243
|
*/
|
|
215
244
|
readonly authorization?: string;
|
|
216
245
|
}
|
|
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
|
+
}
|
|
217
265
|
/**
|
|
218
266
|
* Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
|
|
219
267
|
* @export
|
|
@@ -354,6 +402,15 @@ export declare class CommissionRecipientsApi extends BaseAPI {
|
|
|
354
402
|
* @memberof CommissionRecipientsApi
|
|
355
403
|
*/
|
|
356
404
|
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, {}>>;
|
|
357
414
|
/**
|
|
358
415
|
* This will delete commission recipient.
|
|
359
416
|
* @summary Delete the commission recipient
|
|
@@ -145,6 +145,55 @@ 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
|
+
},
|
|
148
197
|
/**
|
|
149
198
|
* This will delete commission recipient.
|
|
150
199
|
* @summary Delete the commission recipient
|
|
@@ -403,6 +452,27 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
403
452
|
});
|
|
404
453
|
});
|
|
405
454
|
},
|
|
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
|
+
},
|
|
406
476
|
/**
|
|
407
477
|
* This will delete commission recipient.
|
|
408
478
|
* @summary Delete the commission recipient
|
|
@@ -516,6 +586,17 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
516
586
|
createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
|
|
517
587
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
518
588
|
},
|
|
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
|
+
},
|
|
519
600
|
/**
|
|
520
601
|
* This will delete commission recipient.
|
|
521
602
|
* @summary Delete the commission recipient
|
|
@@ -594,6 +675,18 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
594
675
|
var _this = this;
|
|
595
676
|
return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
677
|
};
|
|
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
|
+
};
|
|
597
690
|
/**
|
|
598
691
|
* This will delete commission recipient.
|
|
599
692
|
* @summary Delete the commission recipient
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ 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';
|
|
28
30
|
export * from './create-commission-recipient-request-dto';
|
|
29
31
|
export * from './create-commission-recipient-response-class';
|
|
30
32
|
export * from './create-commission-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -41,6 +41,8 @@ __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);
|
|
44
46
|
__exportStar(require("./create-commission-recipient-request-dto"), exports);
|
|
45
47
|
__exportStar(require("./create-commission-recipient-response-class"), exports);
|
|
46
48
|
__exportStar(require("./create-commission-request-dto"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
package/models/index.ts
CHANGED
|
@@ -25,6 +25,8 @@ 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';
|
|
28
30
|
export * from './create-commission-recipient-request-dto';
|
|
29
31
|
export * from './create-commission-recipient-response-class';
|
|
30
32
|
export * from './create-commission-request-dto';
|