@emilgroup/commission-sdk 2.1.1-beta.0 → 2.1.1-beta.1
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@2.1.1-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@2.1.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@2.1.1-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@2.1.1-beta.1
|
|
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';
|
|
@@ -85,6 +89,53 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
85
89
|
options: localVarRequestOptions,
|
|
86
90
|
};
|
|
87
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
94
|
+
* @summary Create the commission recipient bulk
|
|
95
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
createCommissionRecipientWithProducts: async (createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'createCommissionRecipientForProductsRequestDto' is not null or undefined
|
|
102
|
+
assertParamExists('createCommissionRecipientWithProducts', 'createCommissionRecipientForProductsRequestDto', createCommissionRecipientForProductsRequestDto)
|
|
103
|
+
const localVarPath = `/commissionservice/v1/commission-recipients/bulk`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCommissionRecipientForProductsRequestDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
88
139
|
/**
|
|
89
140
|
* This will delete commission recipient.
|
|
90
141
|
* @summary Delete the commission recipient
|
|
@@ -331,6 +382,18 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
331
382
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options);
|
|
332
383
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
384
|
},
|
|
385
|
+
/**
|
|
386
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
387
|
+
* @summary Create the commission recipient bulk
|
|
388
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
389
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
async createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientForProductsResponseClass>> {
|
|
394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options);
|
|
395
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
396
|
+
},
|
|
334
397
|
/**
|
|
335
398
|
* This will delete commission recipient.
|
|
336
399
|
* @summary Delete the commission recipient
|
|
@@ -408,6 +471,17 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
408
471
|
createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass> {
|
|
409
472
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
410
473
|
},
|
|
474
|
+
/**
|
|
475
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
476
|
+
* @summary Create the commission recipient bulk
|
|
477
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
478
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientForProductsResponseClass> {
|
|
483
|
+
return localVarFp.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
411
485
|
/**
|
|
412
486
|
* This will delete commission recipient.
|
|
413
487
|
* @summary Delete the commission recipient
|
|
@@ -484,6 +558,27 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
484
558
|
readonly authorization?: string
|
|
485
559
|
}
|
|
486
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Request parameters for createCommissionRecipientWithProducts operation in CommissionRecipientsApi.
|
|
563
|
+
* @export
|
|
564
|
+
* @interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest
|
|
565
|
+
*/
|
|
566
|
+
export interface CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest {
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {CreateCommissionRecipientForProductsRequestDto}
|
|
570
|
+
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
571
|
+
*/
|
|
572
|
+
readonly createCommissionRecipientForProductsRequestDto: CreateCommissionRecipientForProductsRequestDto
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
|
+
* @type {string}
|
|
577
|
+
* @memberof CommissionRecipientsApiCreateCommissionRecipientWithProducts
|
|
578
|
+
*/
|
|
579
|
+
readonly authorization?: string
|
|
580
|
+
}
|
|
581
|
+
|
|
487
582
|
/**
|
|
488
583
|
* Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
|
|
489
584
|
* @export
|
|
@@ -643,6 +738,18 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
643
738
|
return CommissionRecipientsApiFp(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
644
739
|
}
|
|
645
740
|
|
|
741
|
+
/**
|
|
742
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
743
|
+
* @summary Create the commission recipient bulk
|
|
744
|
+
* @param {CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest} requestParameters Request parameters.
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
* @memberof CommissionRecipientsApi
|
|
748
|
+
*/
|
|
749
|
+
public createCommissionRecipientWithProducts(requestParameters: CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest, options?: AxiosRequestConfig) {
|
|
750
|
+
return CommissionRecipientsApiFp(this.configuration).createCommissionRecipientWithProducts(requestParameters.createCommissionRecipientForProductsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
751
|
+
}
|
|
752
|
+
|
|
646
753
|
/**
|
|
647
754
|
* This will delete commission recipient.
|
|
648
755
|
* @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
|
|
@@ -141,6 +141,55 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
+
/**
|
|
145
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
146
|
+
* @summary Create the commission recipient bulk
|
|
147
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'createCommissionRecipientForProductsRequestDto' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('createCommissionRecipientWithProducts', 'createCommissionRecipientForProductsRequestDto', createCommissionRecipientForProductsRequestDto);
|
|
161
|
+
localVarPath = "/commissionservice/v1/commission-recipients/bulk";
|
|
162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionRecipientForProductsRequestDto, localVarRequestOptions, configuration);
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
},
|
|
144
193
|
/**
|
|
145
194
|
* This will delete commission recipient.
|
|
146
195
|
* @summary Delete the commission recipient
|
|
@@ -399,6 +448,27 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
399
448
|
});
|
|
400
449
|
});
|
|
401
450
|
},
|
|
451
|
+
/**
|
|
452
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
453
|
+
* @summary Create the commission recipient bulk
|
|
454
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
455
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
*/
|
|
459
|
+
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
460
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
461
|
+
var localVarAxiosArgs;
|
|
462
|
+
return __generator(this, function (_a) {
|
|
463
|
+
switch (_a.label) {
|
|
464
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options)];
|
|
465
|
+
case 1:
|
|
466
|
+
localVarAxiosArgs = _a.sent();
|
|
467
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
},
|
|
402
472
|
/**
|
|
403
473
|
* This will delete commission recipient.
|
|
404
474
|
* @summary Delete the commission recipient
|
|
@@ -512,6 +582,17 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
512
582
|
createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
|
|
513
583
|
return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
514
584
|
},
|
|
585
|
+
/**
|
|
586
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
587
|
+
* @summary Create the commission recipient bulk
|
|
588
|
+
* @param {CreateCommissionRecipientForProductsRequestDto} createCommissionRecipientForProductsRequestDto
|
|
589
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
createCommissionRecipientWithProducts: function (createCommissionRecipientForProductsRequestDto, authorization, options) {
|
|
594
|
+
return localVarFp.createCommissionRecipientWithProducts(createCommissionRecipientForProductsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
595
|
+
},
|
|
515
596
|
/**
|
|
516
597
|
* This will delete commission recipient.
|
|
517
598
|
* @summary Delete the commission recipient
|
|
@@ -590,6 +671,18 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
590
671
|
var _this = this;
|
|
591
672
|
return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
592
673
|
};
|
|
674
|
+
/**
|
|
675
|
+
* This will create a list of commission recipients, one per commission agreement product code provided
|
|
676
|
+
* @summary Create the commission recipient bulk
|
|
677
|
+
* @param {CommissionRecipientsApiCreateCommissionRecipientWithProductsRequest} requestParameters Request parameters.
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
* @memberof CommissionRecipientsApi
|
|
681
|
+
*/
|
|
682
|
+
CommissionRecipientsApi.prototype.createCommissionRecipientWithProducts = function (requestParameters, options) {
|
|
683
|
+
var _this = this;
|
|
684
|
+
return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipientWithProducts(requestParameters.createCommissionRecipientForProductsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
685
|
+
};
|
|
593
686
|
/**
|
|
594
687
|
* This will delete commission recipient.
|
|
595
688
|
* @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';
|