@emilgroup/commission-sdk 1.0.0-beta.9 → 1.1.1-beta.10
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 +40 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +55 -13
- package/api/commission-agreement-rules-api.ts +800 -0
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-candidates-api.ts +693 -0
- package/api/commission-recipients-api.ts +4 -4
- package/api/commission-settlements-api.ts +800 -0
- package/api/commissions-api.ts +125 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +35 -8
- package/dist/api/commission-agreement-products-api.js +29 -11
- package/dist/api/commission-agreement-rules-api.d.ts +450 -0
- package/dist/api/commission-agreement-rules-api.js +737 -0
- package/dist/api/commission-agreements-api.d.ts +98 -23
- package/dist/api/commission-agreements-api.js +127 -22
- package/dist/api/commission-candidates-api.d.ts +393 -0
- package/dist/api/commission-candidates-api.js +644 -0
- package/dist/api/commission-recipients-api.d.ts +4 -4
- package/dist/api/commission-recipients-api.js +3 -3
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +737 -0
- package/dist/api/commissions-api.d.ts +75 -18
- package/dist/api/commissions-api.js +102 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/models/commission-agreement-class.d.ts +27 -3
- package/dist/models/commission-agreement-class.js +5 -1
- 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 +6 -7
- package/dist/models/commission-agreement-rule-class.d.ts +93 -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-candidate-class.d.ts +95 -0
- package/dist/models/commission-candidate-class.js +20 -0
- package/dist/models/commission-class.d.ts +37 -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-estimate-class.d.ts +59 -0
- package/dist/models/commission-estimate-class.js +25 -0
- package/dist/models/commission-recipient-class.d.ts +6 -6
- 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-request-dto.d.ts +14 -3
- package/dist/models/create-commission-agreement-request-dto.js +5 -1
- package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -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-candidate-request-dto.d.ts +65 -0
- package/dist/models/create-commission-candidate-request-dto.js +25 -0
- package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/create-commission-candidate-response-class.js +15 -0
- package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
- package/dist/models/create-commission-request-dto.d.ts +3 -9
- package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
- package/dist/models/create-commission-settlement-request-dto.js +35 -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/estimate-commissions-request-dto.d.ts +30 -0
- package/dist/models/estimate-commissions-request-dto.js +15 -0
- package/dist/models/estimate-commissions-response-class.d.ts +73 -0
- package/dist/models/estimate-commissions-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-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/get-commission-candidate-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 +37 -0
- package/dist/models/index.js +37 -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-candidates-response-class.d.ts +43 -0
- package/dist/models/list-commission-candidates-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/patch-commission-agreement-status-request-dto.d.ts +37 -0
- package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
- package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
- package/dist/models/patch-commission-agreement-status-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-request-dto.d.ts +3 -1
- package/dist/models/update-commission-agreement-request-dto.js +2 -0
- package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -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-candidate-request-dto.d.ts +71 -0
- package/dist/models/update-commission-candidate-request-dto.js +25 -0
- package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/update-commission-candidate-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 +27 -3
- 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 +6 -7
- package/models/commission-agreement-rule-class.ts +102 -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-candidate-class.ts +104 -0
- package/models/commission-class.ts +37 -6
- package/models/commission-conditions-dto.ts +30 -0
- package/models/commission-config-dto.ts +73 -0
- package/models/commission-estimate-class.ts +69 -0
- package/models/commission-recipient-class.ts +6 -6
- package/models/commission-settlement-class.ts +134 -0
- package/models/create-commission-agreement-request-dto.ts +14 -3
- package/models/create-commission-agreement-rule-request-dto.ts +43 -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-candidate-request-dto.ts +75 -0
- package/models/create-commission-candidate-response-class.ts +31 -0
- package/models/create-commission-recipient-request-dto.ts +2 -2
- package/models/create-commission-request-dto.ts +3 -9
- package/models/create-commission-settlement-request-dto.ts +67 -0
- package/models/create-commission-settlement-response-class.ts +31 -0
- package/models/estimate-commissions-request-dto.ts +36 -0
- package/models/estimate-commissions-response-class.ts +79 -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-rule-response-class.ts +31 -0
- package/models/get-commission-candidate-response-class.ts +31 -0
- package/models/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +37 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-candidates-response-class.ts +49 -0
- package/models/list-commission-settlements-response-class.ts +49 -0
- package/models/patch-commission-agreement-status-request-dto.ts +46 -0
- package/models/patch-commission-agreement-status-response-class.ts +31 -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-request-dto.ts +3 -1
- package/models/update-commission-agreement-rule-request-dto.ts +58 -0
- package/models/update-commission-agreement-rule-response-class.ts +31 -0
- package/models/update-commission-candidate-request-dto.ts +81 -0
- package/models/update-commission-candidate-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 +2 -1
|
@@ -29,6 +29,10 @@ import { GetCommissionAgreementResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListCommissionAgreementsResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { PatchCommissionAgreementStatusRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PatchCommissionAgreementStatusResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
32
36
|
import { UpdateCommissionAgreementRequestDto } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
38
|
import { UpdateCommissionAgreementResponseClass } from '../models';
|
|
@@ -188,11 +192,11 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
188
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
193
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
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.
|
|
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</i>
|
|
192
|
-
* @param {string} [search]
|
|
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>
|
|
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/>
|
|
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</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, updatedAt, 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>
|
|
196
200
|
* @param {*} [options] Override http request option.
|
|
197
201
|
* @throws {RequiredError}
|
|
198
202
|
*/
|
|
@@ -258,18 +262,73 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
|
|
|
258
262
|
options: localVarRequestOptions,
|
|
259
263
|
};
|
|
260
264
|
},
|
|
265
|
+
/**
|
|
266
|
+
* This will patch commission agreement status.
|
|
267
|
+
* @summary Update the commission agreement status
|
|
268
|
+
* @param {string} code Unique identifier for the object.
|
|
269
|
+
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
270
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
patchCommissionAgreementStatus: async (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
275
|
+
// verify required parameter 'code' is not null or undefined
|
|
276
|
+
assertParamExists('patchCommissionAgreementStatus', 'code', code)
|
|
277
|
+
// verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
|
|
278
|
+
assertParamExists('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto)
|
|
279
|
+
const localVarPath = `/commissionservice/v1/agreements/{code}/status`
|
|
280
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
281
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
283
|
+
let baseOptions;
|
|
284
|
+
let baseAccessToken;
|
|
285
|
+
if (configuration) {
|
|
286
|
+
baseOptions = configuration.baseOptions;
|
|
287
|
+
baseAccessToken = configuration.accessToken;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
291
|
+
const localVarHeaderParameter = {} as any;
|
|
292
|
+
const localVarQueryParameter = {} as any;
|
|
293
|
+
|
|
294
|
+
// authentication bearer required
|
|
295
|
+
// http bearer authentication required
|
|
296
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
297
|
+
|
|
298
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
|
+
|
|
306
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
309
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchCommissionAgreementStatusRequestDto, localVarRequestOptions, configuration)
|
|
310
|
+
|
|
311
|
+
return {
|
|
312
|
+
url: toPathString(localVarUrlObj),
|
|
313
|
+
options: localVarRequestOptions,
|
|
314
|
+
};
|
|
315
|
+
},
|
|
261
316
|
/**
|
|
262
317
|
* This will update commission agreement.
|
|
263
318
|
* @summary Update the commission agreement
|
|
319
|
+
* @param {string} code
|
|
264
320
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
265
321
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
266
322
|
* @param {*} [options] Override http request option.
|
|
267
323
|
* @throws {RequiredError}
|
|
268
324
|
*/
|
|
269
|
-
updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
325
|
+
updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
326
|
+
// verify required parameter 'code' is not null or undefined
|
|
327
|
+
assertParamExists('updateCommissionAgreement', 'code', code)
|
|
270
328
|
// verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
|
|
271
329
|
assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
|
|
272
|
-
const localVarPath = `/commissionservice/v1/agreements
|
|
330
|
+
const localVarPath = `/commissionservice/v1/agreements/{code}`
|
|
331
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
273
332
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
333
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
275
334
|
let baseOptions;
|
|
@@ -358,11 +417,11 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
358
417
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
418
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
360
419
|
* @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.
|
|
361
|
-
* @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>
|
|
362
|
-
* @param {string} [search]
|
|
363
|
-
* @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>
|
|
364
|
-
* @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/>
|
|
365
|
-
* @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>
|
|
420
|
+
* @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>
|
|
421
|
+
* @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>
|
|
422
|
+
* @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, updatedAt, billingFrequency</i>
|
|
423
|
+
* @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>
|
|
424
|
+
* @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>
|
|
366
425
|
* @param {*} [options] Override http request option.
|
|
367
426
|
* @throws {RequiredError}
|
|
368
427
|
*/
|
|
@@ -370,16 +429,30 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
|
|
|
370
429
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
371
430
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
372
431
|
},
|
|
432
|
+
/**
|
|
433
|
+
* This will patch commission agreement status.
|
|
434
|
+
* @summary Update the commission agreement status
|
|
435
|
+
* @param {string} code Unique identifier for the object.
|
|
436
|
+
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
async patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>> {
|
|
442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options);
|
|
443
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
444
|
+
},
|
|
373
445
|
/**
|
|
374
446
|
* This will update commission agreement.
|
|
375
447
|
* @summary Update the commission agreement
|
|
448
|
+
* @param {string} code
|
|
376
449
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
377
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
378
451
|
* @param {*} [options] Override http request option.
|
|
379
452
|
* @throws {RequiredError}
|
|
380
453
|
*/
|
|
381
|
-
async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
382
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
|
|
454
|
+
async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
|
|
455
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
|
|
383
456
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
384
457
|
},
|
|
385
458
|
}
|
|
@@ -432,27 +505,40 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
|
|
|
432
505
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
433
506
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
434
507
|
* @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.
|
|
435
|
-
* @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>
|
|
436
|
-
* @param {string} [search]
|
|
437
|
-
* @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>
|
|
438
|
-
* @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/>
|
|
439
|
-
* @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>
|
|
508
|
+
* @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>
|
|
509
|
+
* @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>
|
|
510
|
+
* @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, updatedAt, billingFrequency</i>
|
|
511
|
+
* @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>
|
|
512
|
+
* @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>
|
|
440
513
|
* @param {*} [options] Override http request option.
|
|
441
514
|
* @throws {RequiredError}
|
|
442
515
|
*/
|
|
443
516
|
listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
|
|
444
517
|
return localVarFp.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
445
518
|
},
|
|
519
|
+
/**
|
|
520
|
+
* This will patch commission agreement status.
|
|
521
|
+
* @summary Update the commission agreement status
|
|
522
|
+
* @param {string} code Unique identifier for the object.
|
|
523
|
+
* @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
|
|
524
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass> {
|
|
529
|
+
return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
530
|
+
},
|
|
446
531
|
/**
|
|
447
532
|
* This will update commission agreement.
|
|
448
533
|
* @summary Update the commission agreement
|
|
534
|
+
* @param {string} code
|
|
449
535
|
* @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
|
|
450
536
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
537
|
* @param {*} [options] Override http request option.
|
|
452
538
|
* @throws {RequiredError}
|
|
453
539
|
*/
|
|
454
|
-
updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
455
|
-
return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
540
|
+
updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
|
|
541
|
+
return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
456
542
|
},
|
|
457
543
|
};
|
|
458
544
|
};
|
|
@@ -555,47 +641,82 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
|
|
|
555
641
|
readonly pageToken?: string
|
|
556
642
|
|
|
557
643
|
/**
|
|
558
|
-
* 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>
|
|
644
|
+
* 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>
|
|
559
645
|
* @type {string}
|
|
560
646
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
561
647
|
*/
|
|
562
648
|
readonly filter?: string
|
|
563
649
|
|
|
564
650
|
/**
|
|
565
|
-
*
|
|
651
|
+
* 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>
|
|
566
652
|
* @type {string}
|
|
567
653
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
568
654
|
*/
|
|
569
655
|
readonly search?: string
|
|
570
656
|
|
|
571
657
|
/**
|
|
572
|
-
* 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>
|
|
658
|
+
* 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, updatedAt, billingFrequency</i>
|
|
573
659
|
* @type {string}
|
|
574
660
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
575
661
|
*/
|
|
576
662
|
readonly order?: string
|
|
577
663
|
|
|
578
664
|
/**
|
|
579
|
-
* 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/>
|
|
665
|
+
* 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>
|
|
580
666
|
* @type {string}
|
|
581
667
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
582
668
|
*/
|
|
583
669
|
readonly expand?: string
|
|
584
670
|
|
|
585
671
|
/**
|
|
586
|
-
* 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>
|
|
672
|
+
* 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>
|
|
587
673
|
* @type {string}
|
|
588
674
|
* @memberof CommissionAgreementsApiListCommissionAgreements
|
|
589
675
|
*/
|
|
590
676
|
readonly filters?: string
|
|
591
677
|
}
|
|
592
678
|
|
|
679
|
+
/**
|
|
680
|
+
* Request parameters for patchCommissionAgreementStatus operation in CommissionAgreementsApi.
|
|
681
|
+
* @export
|
|
682
|
+
* @interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest
|
|
683
|
+
*/
|
|
684
|
+
export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
|
|
685
|
+
/**
|
|
686
|
+
* Unique identifier for the object.
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
|
|
689
|
+
*/
|
|
690
|
+
readonly code: string
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {PatchCommissionAgreementStatusRequestDto}
|
|
695
|
+
* @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
|
|
696
|
+
*/
|
|
697
|
+
readonly patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
701
|
+
* @type {string}
|
|
702
|
+
* @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
|
|
703
|
+
*/
|
|
704
|
+
readonly authorization?: string
|
|
705
|
+
}
|
|
706
|
+
|
|
593
707
|
/**
|
|
594
708
|
* Request parameters for updateCommissionAgreement operation in CommissionAgreementsApi.
|
|
595
709
|
* @export
|
|
596
710
|
* @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
|
|
597
711
|
*/
|
|
598
712
|
export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type {string}
|
|
716
|
+
* @memberof CommissionAgreementsApiUpdateCommissionAgreement
|
|
717
|
+
*/
|
|
718
|
+
readonly code: string
|
|
719
|
+
|
|
599
720
|
/**
|
|
600
721
|
*
|
|
601
722
|
* @type {UpdateCommissionAgreementRequestDto}
|
|
@@ -666,6 +787,18 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
666
787
|
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));
|
|
667
788
|
}
|
|
668
789
|
|
|
790
|
+
/**
|
|
791
|
+
* This will patch commission agreement status.
|
|
792
|
+
* @summary Update the commission agreement status
|
|
793
|
+
* @param {CommissionAgreementsApiPatchCommissionAgreementStatusRequest} requestParameters Request parameters.
|
|
794
|
+
* @param {*} [options] Override http request option.
|
|
795
|
+
* @throws {RequiredError}
|
|
796
|
+
* @memberof CommissionAgreementsApi
|
|
797
|
+
*/
|
|
798
|
+
public patchCommissionAgreementStatus(requestParameters: CommissionAgreementsApiPatchCommissionAgreementStatusRequest, options?: AxiosRequestConfig) {
|
|
799
|
+
return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
800
|
+
}
|
|
801
|
+
|
|
669
802
|
/**
|
|
670
803
|
* This will update commission agreement.
|
|
671
804
|
* @summary Update the commission agreement
|
|
@@ -675,6 +808,6 @@ export class CommissionAgreementsApi extends BaseAPI {
|
|
|
675
808
|
* @memberof CommissionAgreementsApi
|
|
676
809
|
*/
|
|
677
810
|
public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
|
|
678
|
-
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
811
|
+
return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
679
812
|
}
|
|
680
813
|
}
|