@emilgroup/commission-sdk 1.0.0-beta.2 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +33 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +651 -0
- package/api/commission-agreement-rules-api.ts +758 -0
- package/api/commission-agreement-versions-api.ts +67 -25
- package/api/commission-agreements-api.ts +83 -28
- package/api/commission-recipients-api.ts +693 -0
- package/api/commissions-api.ts +18 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +366 -0
- package/dist/api/commission-agreement-products-api.js +626 -0
- package/dist/api/commission-agreement-rules-api.d.ts +423 -0
- package/dist/api/commission-agreement-rules-api.js +719 -0
- package/dist/api/commission-agreement-versions-api.d.ts +47 -20
- package/dist/api/commission-agreement-versions-api.js +38 -20
- package/dist/api/commission-agreements-api.d.ts +55 -19
- package/dist/api/commission-agreements-api.js +48 -24
- package/dist/api/commission-recipients-api.d.ts +393 -0
- package/dist/api/commission-recipients-api.js +644 -0
- package/dist/api/commissions-api.d.ts +18 -18
- package/dist/api/commissions-api.js +9 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/models/commission-agreement-class.d.ts +14 -0
- package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
- package/dist/models/commission-agreement-metadata-dto.js +15 -0
- package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
- package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +78 -0
- package/dist/models/commission-agreement-product-class.js +20 -0
- package/dist/models/commission-agreement-rule-class.d.ts +80 -0
- package/dist/models/commission-agreement-rule-class.js +21 -0
- package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
- package/dist/models/commission-agreement-rule-config-dto.js +15 -0
- package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
- package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
- package/dist/models/commission-class.d.ts +5 -4
- package/dist/models/commission-conditions-dto.d.ts +24 -0
- package/dist/models/commission-conditions-dto.js +15 -0
- package/dist/models/commission-config-dto.d.ts +63 -0
- package/dist/models/commission-config-dto.js +34 -0
- package/dist/models/commission-recipient-class.d.ts +90 -0
- package/dist/models/commission-recipient-class.js +20 -0
- package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
- package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-product-response-class.js +15 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +8 -1
- package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
- package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
- package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
- package/dist/models/create-commission-recipient-request-dto.js +15 -0
- package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/create-commission-recipient-response-class.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/evaluated-commission-class.d.ts +54 -0
- package/dist/models/evaluated-commission-class.js +21 -0
- package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-product-response-class.js +15 -0
- package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/get-commission-recipient-response-class.js +15 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +30 -0
- package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-products-response-class.js +15 -0
- package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
- package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
- package/dist/models/list-commission-recipients-response-class.js +15 -0
- package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
- package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
- package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-product-response-class.js +15 -0
- package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
- package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
- package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
- package/dist/models/update-commission-recipient-request-dto.js +15 -0
- package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/update-commission-recipient-response-class.js +15 -0
- package/dist/models/update-commission-request-dto.d.ts +5 -3
- package/dist/models/update-commission-request-dto.js +4 -2
- package/models/commission-agreement-class.ts +14 -0
- package/models/commission-agreement-metadata-dto.ts +31 -0
- package/models/commission-agreement-metadata-partner-dto.ts +36 -0
- package/models/commission-agreement-product-class.ts +87 -0
- package/models/commission-agreement-rule-class.ts +89 -0
- package/models/commission-agreement-rule-config-dto.ts +31 -0
- package/models/commission-agreement-rule-evaluation-class.ts +37 -0
- package/models/commission-class.ts +5 -4
- package/models/commission-conditions-dto.ts +30 -0
- package/models/commission-config-dto.ts +73 -0
- package/models/commission-recipient-class.ts +99 -0
- package/models/create-commission-agreement-product-request-dto.ts +36 -0
- package/models/create-commission-agreement-product-response-class.ts +31 -0
- package/models/create-commission-agreement-request-dto.ts +8 -1
- package/models/create-commission-agreement-rule-request-dto.ts +37 -0
- package/models/create-commission-agreement-rule-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +1 -1
- package/models/create-commission-recipient-request-dto.ts +42 -0
- package/models/create-commission-recipient-response-class.ts +31 -0
- package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
- package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
- package/models/evaluated-commission-class.ts +63 -0
- package/models/get-commission-agreement-product-response-class.ts +31 -0
- package/models/get-commission-agreement-rule-response-class.ts +31 -0
- package/models/get-commission-recipient-response-class.ts +31 -0
- package/models/index.ts +30 -0
- package/models/list-commission-agreement-products-response-class.ts +49 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-recipients-response-class.ts +49 -0
- package/models/update-commission-agreement-product-request-dto.ts +50 -0
- package/models/update-commission-agreement-product-response-class.ts +31 -0
- package/models/update-commission-agreement-rule-request-dto.ts +52 -0
- package/models/update-commission-agreement-rule-response-class.ts +31 -0
- package/models/update-commission-recipient-request-dto.ts +48 -0
- package/models/update-commission-recipient-response-class.ts +31 -0
- package/models/update-commission-request-dto.ts +5 -3
- package/package.json +1 -1
|
@@ -182,14 +182,17 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
|
|
|
182
182
|
* Retrieves a list of commission agreement versions.
|
|
183
183
|
* @summary List commission agreement versions
|
|
184
184
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {string} [
|
|
187
|
-
* @param {string} [
|
|
188
|
-
* @param {string} [
|
|
185
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
188
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: code, createdAt, startDate, endDate</i>
|
|
190
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: agreements<i>
|
|
191
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
189
192
|
* @param {*} [options] Override http request option.
|
|
190
193
|
* @throws {RequiredError}
|
|
191
194
|
*/
|
|
192
|
-
listCommissionAgreementVersions: async (authorization?: string, filter?: string,
|
|
195
|
+
listCommissionAgreementVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
196
|
const localVarPath = `/commissionservice/v1/agreement-versions`;
|
|
194
197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -208,12 +211,20 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
|
|
|
208
211
|
// http bearer authentication required
|
|
209
212
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
210
213
|
|
|
214
|
+
if (pageSize !== undefined) {
|
|
215
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (pageToken !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
220
|
+
}
|
|
221
|
+
|
|
211
222
|
if (filter !== undefined) {
|
|
212
223
|
localVarQueryParameter['filter'] = filter;
|
|
213
224
|
}
|
|
214
225
|
|
|
215
|
-
if (
|
|
216
|
-
localVarQueryParameter['
|
|
226
|
+
if (search !== undefined) {
|
|
227
|
+
localVarQueryParameter['search'] = search;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
230
|
if (order !== undefined) {
|
|
@@ -224,6 +235,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
|
|
|
224
235
|
localVarQueryParameter['expand'] = expand;
|
|
225
236
|
}
|
|
226
237
|
|
|
238
|
+
if (filters !== undefined) {
|
|
239
|
+
localVarQueryParameter['filters'] = filters;
|
|
240
|
+
}
|
|
241
|
+
|
|
227
242
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
228
243
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
229
244
|
}
|
|
@@ -290,15 +305,18 @@ export const CommissionAgreementVersionsApiFp = function(configuration?: Configu
|
|
|
290
305
|
* Retrieves a list of commission agreement versions.
|
|
291
306
|
* @summary List commission agreement versions
|
|
292
307
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {string} [
|
|
295
|
-
* @param {string} [
|
|
296
|
-
* @param {string} [
|
|
308
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
309
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
310
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
311
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
312
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: code, createdAt, startDate, endDate</i>
|
|
313
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: agreements<i>
|
|
314
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
297
315
|
* @param {*} [options] Override http request option.
|
|
298
316
|
* @throws {RequiredError}
|
|
299
317
|
*/
|
|
300
|
-
async listCommissionAgreementVersions(authorization?: string, filter?: string,
|
|
301
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, filter,
|
|
318
|
+
async listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementVersionsResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
302
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
303
321
|
},
|
|
304
322
|
}
|
|
@@ -349,15 +367,18 @@ export const CommissionAgreementVersionsApiFactory = function (configuration?: C
|
|
|
349
367
|
* Retrieves a list of commission agreement versions.
|
|
350
368
|
* @summary List commission agreement versions
|
|
351
369
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
-
* @param {
|
|
353
|
-
* @param {string} [
|
|
354
|
-
* @param {string} [
|
|
355
|
-
* @param {string} [
|
|
370
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
371
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
372
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
373
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
374
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: code, createdAt, startDate, endDate</i>
|
|
375
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: agreements<i>
|
|
376
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
356
377
|
* @param {*} [options] Override http request option.
|
|
357
378
|
* @throws {RequiredError}
|
|
358
379
|
*/
|
|
359
|
-
listCommissionAgreementVersions(authorization?: string, filter?: string,
|
|
360
|
-
return localVarFp.listCommissionAgreementVersions(authorization, filter,
|
|
380
|
+
listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementVersionsResponseClass> {
|
|
381
|
+
return localVarFp.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
361
382
|
},
|
|
362
383
|
};
|
|
363
384
|
};
|
|
@@ -446,32 +467,53 @@ export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRe
|
|
|
446
467
|
readonly authorization?: string
|
|
447
468
|
|
|
448
469
|
/**
|
|
449
|
-
*
|
|
470
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
471
|
+
* @type {number}
|
|
472
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
473
|
+
*/
|
|
474
|
+
readonly pageSize?: number
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
480
|
+
*/
|
|
481
|
+
readonly pageToken?: string
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
450
485
|
* @type {string}
|
|
451
486
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
452
487
|
*/
|
|
453
488
|
readonly filter?: string
|
|
454
489
|
|
|
455
490
|
/**
|
|
456
|
-
*
|
|
491
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
457
492
|
* @type {string}
|
|
458
493
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
459
494
|
*/
|
|
460
|
-
readonly
|
|
495
|
+
readonly search?: string
|
|
461
496
|
|
|
462
497
|
/**
|
|
463
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
|
|
498
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: code, createdAt, startDate, endDate</i>
|
|
464
499
|
* @type {string}
|
|
465
500
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
466
501
|
*/
|
|
467
502
|
readonly order?: string
|
|
468
503
|
|
|
469
504
|
/**
|
|
470
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
505
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: agreements<i>
|
|
471
506
|
* @type {string}
|
|
472
507
|
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
473
508
|
*/
|
|
474
509
|
readonly expand?: string
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
|
|
513
|
+
* @type {string}
|
|
514
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
515
|
+
*/
|
|
516
|
+
readonly filters?: string
|
|
475
517
|
}
|
|
476
518
|
|
|
477
519
|
/**
|
|
@@ -526,6 +568,6 @@ export class CommissionAgreementVersionsApi extends BaseAPI {
|
|
|
526
568
|
* @memberof CommissionAgreementVersionsApi
|
|
527
569
|
*/
|
|
528
570
|
public listCommissionAgreementVersions(requestParameters: CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
529
|
-
return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
571
|
+
return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
530
572
|
}
|
|
531
573
|
}
|
|
@@ -186,14 +186,17 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
186
186
|
* Retrieves a list of commission agreements.
|
|
187
187
|
* @summary List commission agreements
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
-
* @param {
|
|
190
|
-
* @param {string} [
|
|
189
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
191
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
192
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
193
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
192
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
194
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions<i>
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
193
196
|
* @param {*} [options] Override http request option.
|
|
194
197
|
* @throws {RequiredError}
|
|
195
198
|
*/
|
|
196
|
-
listCommissionAgreements: async (authorization?: string, filter?: string,
|
|
199
|
+
listCommissionAgreements: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
200
|
const localVarPath = `/commissionservice/v1/agreements`;
|
|
198
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -212,12 +215,20 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
212
215
|
// http bearer authentication required
|
|
213
216
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
217
|
|
|
218
|
+
if (pageSize !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (pageToken !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
if (filter !== undefined) {
|
|
216
227
|
localVarQueryParameter['filter'] = filter;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
|
-
if (
|
|
220
|
-
localVarQueryParameter['
|
|
230
|
+
if (search !== undefined) {
|
|
231
|
+
localVarQueryParameter['search'] = search;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
if (order !== undefined) {
|
|
@@ -228,6 +239,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
228
239
|
localVarQueryParameter['expand'] = expand;
|
|
229
240
|
}
|
|
230
241
|
|
|
242
|
+
if (filters !== undefined) {
|
|
243
|
+
localVarQueryParameter['filters'] = filters;
|
|
244
|
+
}
|
|
245
|
+
|
|
231
246
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
247
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
248
|
}
|
|
@@ -246,15 +261,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
246
261
|
/**
|
|
247
262
|
* This will update commission agreement.
|
|
248
263
|
* @summary Update the commission agreement
|
|
264
|
+
* @param {string} code
|
|
249
265
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
250
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
267
|
* @param {*} [options] Override http request option.
|
|
252
268
|
* @throws {RequiredError}
|
|
253
269
|
*/
|
|
254
|
-
updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
|
+
updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
271
|
+
// verify required parameter 'code' is not null or undefined
|
|
272
|
+
assertParamExists('updateCommissionAgreement', 'code', code)
|
|
255
273
|
// verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
|
|
256
274
|
assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
|
|
257
|
-
const localVarPath = `/commissionservice/v1/agreements
|
|
275
|
+
const localVarPath = `/commissionservice/v1/agreements/{code}`
|
|
276
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
258
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
278
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
260
279
|
let baseOptions;
|
|
@@ -341,27 +360,31 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
341
360
|
* Retrieves a list of commission agreements.
|
|
342
361
|
* @summary List commission agreements
|
|
343
362
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
344
|
-
* @param {
|
|
345
|
-
* @param {string} [
|
|
363
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
365
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
366
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
346
367
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
347
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
368
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions<i>
|
|
369
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
348
370
|
* @param {*} [options] Override http request option.
|
|
349
371
|
* @throws {RequiredError}
|
|
350
372
|
*/
|
|
351
|
-
async listCommissionAgreements(authorization?: string, filter?: string,
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, filter,
|
|
373
|
+
async listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
353
375
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
376
|
},
|
|
355
377
|
/**
|
|
356
378
|
* This will update commission agreement.
|
|
357
379
|
* @summary Update the commission agreement
|
|
380
|
+
* @param {string} code
|
|
358
381
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
359
382
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
360
383
|
* @param {*} [options] Override http request option.
|
|
361
384
|
* @throws {RequiredError}
|
|
362
385
|
*/
|
|
363
|
-
async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
|
|
386
|
+
async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
|
|
365
388
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
389
|
},
|
|
367
390
|
}
|
|
@@ -412,26 +435,30 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
412
435
|
* Retrieves a list of commission agreements.
|
|
413
436
|
* @summary List commission agreements
|
|
414
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
415
|
-
* @param {
|
|
416
|
-
* @param {string} [
|
|
438
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
440
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
441
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
417
442
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
418
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
443
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions<i>
|
|
444
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
419
445
|
* @param {*} [options] Override http request option.
|
|
420
446
|
* @throws {RequiredError}
|
|
421
447
|
*/
|
|
422
|
-
listCommissionAgreements(authorization?: string, filter?: string,
|
|
423
|
-
return localVarFp.listCommissionAgreements(authorization, filter,
|
|
448
|
+
listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
|
|
449
|
+
return localVarFp.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
424
450
|
},
|
|
425
451
|
/**
|
|
426
452
|
* This will update commission agreement.
|
|
427
453
|
* @summary Update the commission agreement
|
|
454
|
+
* @param {string} code
|
|
428
455
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
429
456
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
457
|
* @param {*} [options] Override http request option.
|
|
431
458
|
* @throws {RequiredError}
|
|
432
459
|
*/
|
|
433
|
-
updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
434
|
-
return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
|
+
updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
461
|
+
return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
435
462
|
},
|
|
436
463
|
};
|
|
437
464
|
};
|
|
@@ -520,18 +547,32 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
520
547
|
readonly authorization?: string
|
|
521
548
|
|
|
522
549
|
/**
|
|
523
|
-
*
|
|
550
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
551
|
+
* @type {number}
|
|
552
|
+
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
553
|
+
*/
|
|
554
|
+
readonly pageSize?: number
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
560
|
+
*/
|
|
561
|
+
readonly pageToken?: string
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
524
565
|
* @type {string}
|
|
525
566
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
526
567
|
*/
|
|
527
568
|
readonly filter?: string
|
|
528
569
|
|
|
529
570
|
/**
|
|
530
|
-
*
|
|
571
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
531
572
|
* @type {string}
|
|
532
573
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
533
574
|
*/
|
|
534
|
-
readonly
|
|
575
|
+
readonly search?: string
|
|
535
576
|
|
|
536
577
|
/**
|
|
537
578
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
@@ -541,11 +582,18 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
541
582
|
readonly order?: string
|
|
542
583
|
|
|
543
584
|
/**
|
|
544
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
585
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: versions<i>
|
|
545
586
|
* @type {string}
|
|
546
587
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
547
588
|
*/
|
|
548
589
|
readonly expand?: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, createdAt, mainPartnerCode</i>
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
595
|
+
*/
|
|
596
|
+
readonly filters?: string
|
|
549
597
|
}
|
|
550
598
|
|
|
551
599
|
/**
|
|
@@ -554,6 +602,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
554
602
|
* @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
|
|
555
603
|
*/
|
|
556
604
|
export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof CommissionAgreementsApiUpdateCommissionAgreement
|
|
609
|
+
*/
|
|
610
|
+
readonly code: string
|
|
611
|
+
|
|
557
612
|
/**
|
|
558
613
|
*
|
|
559
614
|
* @type {UpdateCommissionAgreementRequestDto}
|
|
@@ -621,7 +676,7 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
621
676
|
* @memberof CommissionAgreementsApi
|
|
622
677
|
*/
|
|
623
678
|
public listCommissionAgreements(requestParameters: CommissionAgreementsApiListCommissionAgreementsRequest = {}, options?: AxiosRequestConfig) {
|
|
624
|
-
return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
679
|
+
return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
625
680
|
}
|
|
626
681
|
|
|
627
682
|
/**
|
|
@@ -633,6 +688,6 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
633
688
|
* @memberof CommissionAgreementsApi
|
|
634
689
|
*/
|
|
635
690
|
public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
|
|
636
|
-
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
691
|
+
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
637
692
|
}
|
|
638
693
|
}
|