@emilgroup/commission-sdk-node 1.0.0-beta.3 → 1.0.0-beta.31
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 +43 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +655 -0
- package/api/commission-agreement-rules-api.ts +762 -0
- package/api/commission-agreements-api.ts +40 -27
- package/api/commission-recipients-api.ts +697 -0
- package/api/commission-settlements-api.ts +804 -0
- package/api/commissions-api.ts +18 -18
- package/api.ts +8 -0
- package/dist/api/commission-agreement-products-api.d.ts +366 -0
- package/dist/api/commission-agreement-products-api.js +630 -0
- package/dist/api/commission-agreement-rules-api.d.ts +423 -0
- package/dist/api/commission-agreement-rules-api.js +723 -0
- package/dist/api/commission-agreements-api.d.ts +32 -23
- package/dist/api/commission-agreements-api.js +28 -22
- package/dist/api/commission-recipients-api.d.ts +393 -0
- package/dist/api/commission-recipients-api.js +648 -0
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +741 -0
- package/dist/api/commissions-api.d.ts +18 -18
- package/dist/api/commissions-api.js +9 -9
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/models/commission-agreement-class.d.ts +20 -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 +77 -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-agreement-version-class.d.ts +7 -0
- package/dist/models/commission-class.d.ts +31 -6
- 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/commission-settlement-class.d.ts +124 -0
- package/dist/models/commission-settlement-class.js +35 -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/create-commission-request-dto.d.ts +3 -9
- package/dist/models/create-commission-settlement-request-dto.d.ts +37 -0
- package/dist/models/create-commission-settlement-request-dto.js +22 -0
- package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/create-commission-settlement-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/get-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/get-commission-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +39 -0
- package/dist/models/index.js +39 -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/list-commission-settlements-response-class.d.ts +43 -0
- package/dist/models/list-commission-settlements-response-class.js +15 -0
- package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
- package/dist/models/publish-commission-settlements-request-dto.js +15 -0
- package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
- package/dist/models/publish-commission-settlements-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/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
- package/dist/models/update-commission-settlement-request-dto.js +22 -0
- package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/update-commission-settlement-response-class.js +15 -0
- package/models/commission-agreement-class.ts +20 -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 +86 -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-agreement-version-class.ts +7 -0
- package/models/commission-class.ts +31 -6
- 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/commission-settlement-class.ts +134 -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/create-commission-request-dto.ts +3 -9
- package/models/create-commission-settlement-request-dto.ts +46 -0
- package/models/create-commission-settlement-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/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +39 -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/list-commission-settlements-response-class.ts +49 -0
- package/models/publish-commission-settlements-request-dto.ts +30 -0
- package/models/publish-commission-settlements-response-class.ts +31 -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/models/update-commission-settlement-request-dto.ts +52 -0
- package/models/update-commission-settlement-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -192,11 +192,11 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
194
194
|
* @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.
|
|
195
|
-
* @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</i>
|
|
196
|
-
* @param {string} [search]
|
|
197
|
-
* @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>
|
|
198
|
-
* @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/>
|
|
199
|
-
* @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</i>
|
|
195
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
196
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
|
|
197
|
+
* @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: commissionAgreementNumber, status, createdAt, billingFrequency</i>
|
|
198
|
+
* @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, products<i>
|
|
199
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
200
200
|
* @param {*} [options] Override http request option.
|
|
201
201
|
* @throws {RequiredError}
|
|
202
202
|
*/
|
|
@@ -265,15 +265,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
265
265
|
/**
|
|
266
266
|
* This will update commission agreement.
|
|
267
267
|
* @summary Update the commission agreement
|
|
268
|
+
* @param {string} code
|
|
268
269
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
269
270
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
270
271
|
* @param {*} [options] Override http request option.
|
|
271
272
|
* @throws {RequiredError}
|
|
272
273
|
*/
|
|
273
|
-
updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
274
|
+
updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
275
|
+
// verify required parameter 'code' is not null or undefined
|
|
276
|
+
assertParamExists('updateCommissionAgreement', 'code', code)
|
|
274
277
|
// verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
|
|
275
278
|
assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
|
|
276
|
-
const localVarPath = `/commissionservice/v1/agreements
|
|
279
|
+
const localVarPath = `/commissionservice/v1/agreements/{code}`
|
|
280
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
277
281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
279
283
|
let baseOptions;
|
|
@@ -362,11 +366,11 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
362
366
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
367
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
368
|
* @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</i>
|
|
366
|
-
* @param {string} [search]
|
|
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>
|
|
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/>
|
|
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</i>
|
|
369
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
370
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
|
|
371
|
+
* @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: commissionAgreementNumber, status, createdAt, billingFrequency</i>
|
|
372
|
+
* @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, products<i>
|
|
373
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
370
374
|
* @param {*} [options] Override http request option.
|
|
371
375
|
* @throws {RequiredError}
|
|
372
376
|
*/
|
|
@@ -377,13 +381,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
377
381
|
/**
|
|
378
382
|
* This will update commission agreement.
|
|
379
383
|
* @summary Update the commission agreement
|
|
384
|
+
* @param {string} code
|
|
380
385
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
381
386
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
382
387
|
* @param {*} [options] Override http request option.
|
|
383
388
|
* @throws {RequiredError}
|
|
384
389
|
*/
|
|
385
|
-
async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
386
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
|
|
390
|
+
async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
|
|
387
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
393
|
},
|
|
389
394
|
}
|
|
@@ -436,11 +441,11 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
436
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
442
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
438
443
|
* @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.
|
|
439
|
-
* @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</i>
|
|
440
|
-
* @param {string} [search]
|
|
441
|
-
* @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>
|
|
442
|
-
* @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} [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</i>
|
|
444
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
445
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
|
|
446
|
+
* @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: commissionAgreementNumber, status, createdAt, billingFrequency</i>
|
|
447
|
+
* @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, products<i>
|
|
448
|
+
* @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, partnerCode, productSlug, endDate</i>
|
|
444
449
|
* @param {*} [options] Override http request option.
|
|
445
450
|
* @throws {RequiredError}
|
|
446
451
|
*/
|
|
@@ -450,13 +455,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
450
455
|
/**
|
|
451
456
|
* This will update commission agreement.
|
|
452
457
|
* @summary Update the commission agreement
|
|
458
|
+
* @param {string} code
|
|
453
459
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
454
460
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
455
461
|
* @param {*} [options] Override http request option.
|
|
456
462
|
* @throws {RequiredError}
|
|
457
463
|
*/
|
|
458
|
-
updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
459
|
-
return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
464
|
+
updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
465
|
+
return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
466
|
},
|
|
461
467
|
};
|
|
462
468
|
};
|
|
@@ -559,35 +565,35 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
559
565
|
readonly pageToken?: string
|
|
560
566
|
|
|
561
567
|
/**
|
|
562
|
-
* 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</i>
|
|
568
|
+
* 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, partnerCode, productSlug, endDate</i>
|
|
563
569
|
* @type {string}
|
|
564
570
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
565
571
|
*/
|
|
566
572
|
readonly filter?: string
|
|
567
573
|
|
|
568
574
|
/**
|
|
569
|
-
*
|
|
575
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
|
|
570
576
|
* @type {string}
|
|
571
577
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
572
578
|
*/
|
|
573
579
|
readonly search?: string
|
|
574
580
|
|
|
575
581
|
/**
|
|
576
|
-
* 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>
|
|
582
|
+
* 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: commissionAgreementNumber, status, createdAt, billingFrequency</i>
|
|
577
583
|
* @type {string}
|
|
578
584
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
579
585
|
*/
|
|
580
586
|
readonly order?: string
|
|
581
587
|
|
|
582
588
|
/**
|
|
583
|
-
* 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/>
|
|
589
|
+
* 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, products<i>
|
|
584
590
|
* @type {string}
|
|
585
591
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
586
592
|
*/
|
|
587
593
|
readonly expand?: string
|
|
588
594
|
|
|
589
595
|
/**
|
|
590
|
-
* 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</i>
|
|
596
|
+
* 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, partnerCode, productSlug, endDate</i>
|
|
591
597
|
* @type {string}
|
|
592
598
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
593
599
|
*/
|
|
@@ -600,6 +606,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
600
606
|
* @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
|
|
601
607
|
*/
|
|
602
608
|
export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {string}
|
|
612
|
+
* @memberof CommissionAgreementsApiUpdateCommissionAgreement
|
|
613
|
+
*/
|
|
614
|
+
readonly code: string
|
|
615
|
+
|
|
603
616
|
/**
|
|
604
617
|
*
|
|
605
618
|
* @type {UpdateCommissionAgreementRequestDto}
|
|
@@ -679,6 +692,6 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
679
692
|
* @memberof CommissionAgreementsApi
|
|
680
693
|
*/
|
|
681
694
|
public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
|
|
682
|
-
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
695
|
+
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
683
696
|
}
|
|
684
697
|
}
|