@emilgroup/commission-sdk-node
Advanced tools
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; | ||
| // @ts-ignore | ||
| import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; | ||
| // @ts-ignore | ||
| import { CreateCommissionAgreementProductRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { CreateCommissionAgreementProductResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { GetCommissionAgreementProductResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { ListCommissionAgreementProductsResponseClass } from '../models'; | ||
| // @ts-ignore | ||
| import { UpdateCommissionAgreementProductRequestDto } from '../models'; | ||
| // @ts-ignore | ||
| import { UpdateCommissionAgreementProductResponseClass } from '../models'; | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| import { URL, URLSearchParams } from 'url'; | ||
| const FormData = require('form-data'); | ||
| /** | ||
| * CommissionAgreementProductsApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export const CommissionAgreementProductsApiAxiosParamCreator = function (configuration?: Configuration) { | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct: async (createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined | ||
| assertParamExists('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto) | ||
| const localVarPath = `/commissionservice/v1/agreement-products`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('deleteCommissionAgreementProduct', 'code', code) | ||
| const localVarPath = `/commissionservice/v1/agreement-products/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('getCommissionAgreementProduct', 'code', code) | ||
| // verify required parameter 'expand' is not null or undefined | ||
| assertParamExists('getCommissionAgreementProduct', 'expand', expand) | ||
| const localVarPath = `/commissionservice/v1/agreement-products/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| const localVarPath = `/commissionservice/v1/agreement-products`; | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct: async (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
| // verify required parameter 'code' is not null or undefined | ||
| assertParamExists('updateCommissionAgreementProduct', 'code', code) | ||
| // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined | ||
| assertParamExists('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto) | ||
| const localVarPath = `/commissionservice/v1/agreement-products/{code}` | ||
| .replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
| // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
| const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
| let baseOptions; | ||
| let baseAccessToken; | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; | ||
| const localVarHeaderParameter = {} as any; | ||
| const localVarQueryParameter = {} as any; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
| let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
| localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration) | ||
| return { | ||
| url: toPathString(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }; | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * CommissionAgreementProductsApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export const CommissionAgreementProductsApiFp = function(configuration?: Configuration) { | ||
| const localVarAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator(configuration) | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementProduct(code, expand, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| async updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>> { | ||
| const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options); | ||
| return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
| }, | ||
| } | ||
| }; | ||
| /** | ||
| * CommissionAgreementProductsApi - factory interface | ||
| * @export | ||
| */ | ||
| export const CommissionAgreementProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
| const localVarFp = CommissionAgreementProductsApiFp(configuration) | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass> { | ||
| return localVarFp.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<void> { | ||
| return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass> { | ||
| return localVarFp.getCommissionAgreementProduct(code, expand, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> { | ||
| return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass> { | ||
| return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath)); | ||
| }, | ||
| }; | ||
| }; | ||
| /** | ||
| * Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest { | ||
| /** | ||
| * | ||
| * @type {CreateCommissionAgreementProductRequestDto} | ||
| * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct | ||
| */ | ||
| readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly expand: string | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly authorization?: string | ||
| /** | ||
| * 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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly filter?: string | ||
| /** | ||
| * 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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly filters?: string | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, productSlug</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly search?: string | ||
| /** | ||
| * 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, productSlug, status</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly order?: string | ||
| /** | ||
| * 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: version<i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly expand?: string | ||
| } | ||
| /** | ||
| * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly code: string | ||
| /** | ||
| * | ||
| * @type {UpdateCommissionAgreementProductRequestDto} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string | ||
| } | ||
| /** | ||
| * CommissionAgreementProductsApi - object-oriented interface | ||
| * @export | ||
| * @class CommissionAgreementProductsApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export class CommissionAgreementProductsApi extends BaseAPI { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| public createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig) { | ||
| return CommissionAgreementProductsApiFp(this.configuration).createCommissionAgreementProduct(requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| public deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig) { | ||
| return CommissionAgreementProductsApiFp(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| public getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig) { | ||
| return CommissionAgreementProductsApiFp(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) { | ||
| return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| public updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig) { | ||
| return CommissionAgreementProductsApiFp(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); | ||
| } | ||
| } |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
| import { Configuration } from '../configuration'; | ||
| import { RequestArgs, BaseAPI } from '../base'; | ||
| import { CreateCommissionAgreementProductRequestDto } from '../models'; | ||
| import { CreateCommissionAgreementProductResponseClass } from '../models'; | ||
| import { GetCommissionAgreementProductResponseClass } from '../models'; | ||
| import { ListCommissionAgreementProductsResponseClass } from '../models'; | ||
| import { UpdateCommissionAgreementProductRequestDto } from '../models'; | ||
| import { UpdateCommissionAgreementProductResponseClass } from '../models'; | ||
| /** | ||
| * CommissionAgreementProductsApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| export declare const CommissionAgreementProductsApiAxiosParamCreator: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct: (createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct: (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| }; | ||
| /** | ||
| * CommissionAgreementProductsApi - functional programming interface | ||
| * @export | ||
| */ | ||
| export declare const CommissionAgreementProductsApiFp: (configuration?: Configuration) => { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>>; | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>>; | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>; | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>>; | ||
| }; | ||
| /** | ||
| * CommissionAgreementProductsApi - factory interface | ||
| * @export | ||
| */ | ||
| export declare const CommissionAgreementProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass>; | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<void>; | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass>; | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>; | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass>; | ||
| }; | ||
| /** | ||
| * Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest { | ||
| /** | ||
| * | ||
| * @type {CreateCommissionAgreementProductRequestDto} | ||
| * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct | ||
| */ | ||
| readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest { | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly expand: string; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest { | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly authorization?: string; | ||
| /** | ||
| * 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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly filter?: string; | ||
| /** | ||
| * 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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly filters?: string; | ||
| /** | ||
| * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, productSlug</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly search?: string; | ||
| /** | ||
| * 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, productSlug, status</i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly order?: string; | ||
| /** | ||
| * 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: version<i> | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts | ||
| */ | ||
| readonly expand?: string; | ||
| } | ||
| /** | ||
| * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi. | ||
| * @export | ||
| * @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest | ||
| */ | ||
| export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest { | ||
| /** | ||
| * Unique identifier for the object. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly code: string; | ||
| /** | ||
| * | ||
| * @type {UpdateCommissionAgreementProductRequestDto} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto; | ||
| /** | ||
| * Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct | ||
| */ | ||
| readonly authorization?: string; | ||
| } | ||
| /** | ||
| * CommissionAgreementProductsApi - object-oriented interface | ||
| * @export | ||
| * @class CommissionAgreementProductsApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| export declare class CommissionAgreementProductsApi extends BaseAPI { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCommissionAgreementProductResponseClass, any, {}>>; | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>; | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommissionAgreementProductResponseClass, any, {}>>; | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| listCommissionAgreementProducts(requestParameters?: CommissionAgreementProductsApiListCommissionAgreementProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCommissionAgreementProductsResponseClass, any, {}>>; | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCommissionAgreementProductResponseClass, any, {}>>; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| var __extends = (this && this.__extends) || (function () { | ||
| var extendStatics = function (d, b) { | ||
| extendStatics = Object.setPrototypeOf || | ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
| return extendStatics(d, b); | ||
| }; | ||
| return function (d, b) { | ||
| if (typeof b !== "function" && b !== null) | ||
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
| extendStatics(d, b); | ||
| function __() { this.constructor = d; } | ||
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| }; | ||
| })(); | ||
| var __assign = (this && this.__assign) || function () { | ||
| __assign = Object.assign || function(t) { | ||
| for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
| s = arguments[i]; | ||
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
| t[p] = s[p]; | ||
| } | ||
| return t; | ||
| }; | ||
| return __assign.apply(this, arguments); | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| return new (P || (P = Promise))(function (resolve, reject) { | ||
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
| step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
| }); | ||
| }; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
| function step(op) { | ||
| if (f) throw new TypeError("Generator is already executing."); | ||
| while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
| if (y = 0, t) op = [op[0] & 2, t.value]; | ||
| switch (op[0]) { | ||
| case 0: case 1: t = op; break; | ||
| case 4: _.label++; return { value: op[1], done: false }; | ||
| case 5: _.label++; y = op[1]; op = [0]; continue; | ||
| case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
| default: | ||
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
| if (t[2]) _.ops.pop(); | ||
| _.trys.pop(); continue; | ||
| } | ||
| op = body.call(thisArg, _); | ||
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
| } | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.CommissionAgreementProductsApi = exports.CommissionAgreementProductsApiFactory = exports.CommissionAgreementProductsApiFp = exports.CommissionAgreementProductsApiAxiosParamCreator = void 0; | ||
| var axios_1 = __importDefault(require("axios")); | ||
| // Some imports not used depending on template conditions | ||
| // @ts-ignore | ||
| var common_1 = require("../common"); | ||
| // @ts-ignore | ||
| var base_1 = require("../base"); | ||
| // URLSearchParams not necessarily used | ||
| // @ts-ignore | ||
| var url_1 = require("url"); | ||
| var FormData = require('form-data'); | ||
| /** | ||
| * CommissionAgreementProductsApi - axios parameter creator | ||
| * @export | ||
| */ | ||
| var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) { | ||
| var _this = this; | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto); | ||
| localVarPath = "/commissionservice/v1/agreement-products"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct: function (code, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('deleteCommissionAgreementProduct', 'code', code); | ||
| localVarPath = "/commissionservice/v1/agreement-products/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct: function (code, expand, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('getCommissionAgreementProduct', 'code', code); | ||
| // verify required parameter 'expand' is not null or undefined | ||
| (0, common_1.assertParamExists)('getCommissionAgreementProduct', 'expand', expand); | ||
| localVarPath = "/commissionservice/v1/agreement-products/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| localVarPath = "/commissionservice/v1/agreement-products"; | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (filter !== undefined) { | ||
| localVarQueryParameter['filter'] = filter; | ||
| } | ||
| if (filters !== undefined) { | ||
| localVarQueryParameter['filters'] = filters; | ||
| } | ||
| if (search !== undefined) { | ||
| localVarQueryParameter['search'] = search; | ||
| } | ||
| if (order !== undefined) { | ||
| localVarQueryParameter['order'] = order; | ||
| } | ||
| if (expand !== undefined) { | ||
| localVarQueryParameter['expand'] = expand; | ||
| } | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: | ||
| // verify required parameter 'code' is not null or undefined | ||
| (0, common_1.assertParamExists)('updateCommissionAgreementProduct', 'code', code); | ||
| // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined | ||
| (0, common_1.assertParamExists)('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto); | ||
| localVarPath = "/commissionservice/v1/agreement-products/{code}" | ||
| .replace("{".concat("code", "}"), encodeURIComponent(String(code))); | ||
| localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
| if (configuration) { | ||
| baseOptions = configuration.baseOptions; | ||
| baseAccessToken = configuration.accessToken; | ||
| } | ||
| localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options); | ||
| localVarHeaderParameter = {}; | ||
| localVarQueryParameter = {}; | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)]; | ||
| case 1: | ||
| // authentication bearer required | ||
| // http bearer authentication required | ||
| _a.sent(); | ||
| if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { | ||
| localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); | ||
| } | ||
| localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
| (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
| headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
| localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
| localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration); | ||
| return [2 /*return*/, { | ||
| url: (0, common_1.toPathString)(localVarUrlObj), | ||
| options: localVarRequestOptions, | ||
| }]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CommissionAgreementProductsApiAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator; | ||
| /** | ||
| * CommissionAgreementProductsApi - functional programming interface | ||
| * @export | ||
| */ | ||
| var CommissionAgreementProductsApiFp = function (configuration) { | ||
| var localVarAxiosParamCreator = (0, exports.CommissionAgreementProductsApiAxiosParamCreator)(configuration); | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct: function (code, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct: function (code, expand, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionAgreementProduct(code, expand, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) { | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| var localVarAxiosArgs; | ||
| return __generator(this, function (_a) { | ||
| switch (_a.label) { | ||
| case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options)]; | ||
| case 1: | ||
| localVarAxiosArgs = _a.sent(); | ||
| return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; | ||
| } | ||
| }); | ||
| }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CommissionAgreementProductsApiFp = CommissionAgreementProductsApiFp; | ||
| /** | ||
| * CommissionAgreementProductsApi - factory interface | ||
| * @export | ||
| */ | ||
| var CommissionAgreementProductsApiFactory = function (configuration, basePath, axios) { | ||
| var localVarFp = (0, exports.CommissionAgreementProductsApiFp)(configuration); | ||
| return { | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| createCommissionAgreementProduct: function (createCommissionAgreementProductRequestDto, authorization, options) { | ||
| return localVarFp.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| deleteCommissionAgreementProduct: function (code, authorization, options) { | ||
| return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {string} code | ||
| * @param {string} expand | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| getCommissionAgreementProduct: function (code, expand, authorization, options) { | ||
| return localVarFp.getCommissionAgreementProduct(code, expand, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, commissionAgreementVersionId, productSlug, status, createdAt</i> | ||
| * @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, productSlug</i> | ||
| * @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, productSlug, status</i> | ||
| * @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: version<i> | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) { | ||
| return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {string} code Unique identifier for the object. | ||
| * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto | ||
| * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| */ | ||
| updateCommissionAgreementProduct: function (code, updateCommissionAgreementProductRequestDto, authorization, options) { | ||
| return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); }); | ||
| }, | ||
| }; | ||
| }; | ||
| exports.CommissionAgreementProductsApiFactory = CommissionAgreementProductsApiFactory; | ||
| /** | ||
| * CommissionAgreementProductsApi - object-oriented interface | ||
| * @export | ||
| * @class CommissionAgreementProductsApi | ||
| * @extends {BaseAPI} | ||
| */ | ||
| var CommissionAgreementProductsApi = /** @class */ (function (_super) { | ||
| __extends(CommissionAgreementProductsApi, _super); | ||
| function CommissionAgreementProductsApi() { | ||
| return _super !== null && _super.apply(this, arguments) || this; | ||
| } | ||
| /** | ||
| * This will create commission agreement product. | ||
| * @summary Create the commission agreement product | ||
| * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| CommissionAgreementProductsApi.prototype.createCommissionAgreementProduct = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).createCommissionAgreementProduct(requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will delete commission agreement product. | ||
| * @summary Delete the commission agreement product | ||
| * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| CommissionAgreementProductsApi.prototype.deleteCommissionAgreementProduct = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will get commission agreement product. | ||
| * @summary Retrieve the commission agreement product | ||
| * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| CommissionAgreementProductsApi.prototype.getCommissionAgreementProduct = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * Retrieves a list of commission agreement products. | ||
| * @summary List commission agreement products | ||
| * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) { | ||
| var _this = this; | ||
| if (requestParameters === void 0) { requestParameters = {}; } | ||
| return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| /** | ||
| * This will update commission agreement product. | ||
| * @summary Update the commission agreement product | ||
| * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters. | ||
| * @param {*} [options] Override http request option. | ||
| * @throws {RequiredError} | ||
| * @memberof CommissionAgreementProductsApi | ||
| */ | ||
| CommissionAgreementProductsApi.prototype.updateCommissionAgreementProduct = function (requestParameters, options) { | ||
| var _this = this; | ||
| return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); }); | ||
| }; | ||
| return CommissionAgreementProductsApi; | ||
| }(base_1.BaseAPI)); | ||
| exports.CommissionAgreementProductsApi = CommissionAgreementProductsApi; |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementVersionClass } from './commission-agreement-version-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CommissionAgreementProductClass | ||
| */ | ||
| export interface CommissionAgreementProductClass { | ||
| /** | ||
| * Unique identifier for the commission agreement product | ||
| * @type {number} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * The parent commission agreement version | ||
| * @type {CommissionAgreementVersionClass} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'version': CommissionAgreementVersionClass; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'productSlug': string; | ||
| /** | ||
| * Unique code identifier for the commission agreement product, auto-generated on creation | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Status of the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'status': CommissionAgreementProductClassStatusEnum; | ||
| /** | ||
| * Timestamp when the commission agreement product was created | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * Timestamp when the commission agreement product was last updated | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * User identifier who created the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'createdBy'?: string; | ||
| /** | ||
| * User identifier who last updated the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'updatedBy'?: string; | ||
| } | ||
| export declare const CommissionAgreementProductClassStatusEnum: { | ||
| readonly Active: "active"; | ||
| readonly Inactive: "inactive"; | ||
| }; | ||
| export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum]; |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.CommissionAgreementProductClassStatusEnum = void 0; | ||
| exports.CommissionAgreementProductClassStatusEnum = { | ||
| Active: 'active', | ||
| Inactive: 'inactive' | ||
| }; |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| export interface CreateCommissionAgreementProductRequestDto { | ||
| /** | ||
| * Code of the parent commission agreement version to create a product for | ||
| * @type {string} | ||
| * @memberof CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'commissionAgreementVersionCode': string; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'productSlug': string; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface CreateCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The created commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof CreateCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface GetCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The retrieved commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof GetCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| export interface ListCommissionAgreementProductsResponseClass { | ||
| /** | ||
| * Array of commission agreement product objects | ||
| * @type {Array<CommissionAgreementProductClass>} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'items': Array<CommissionAgreementProductClass>; | ||
| /** | ||
| * Token for retrieving the next page of results | ||
| * @type {string} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * Number of items per page | ||
| * @type {number} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * Total number of items | ||
| * @type {number} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| export interface UpdateCommissionAgreementProductRequestDto { | ||
| /** | ||
| * Code of the commission agreement product to update | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'productSlug': string; | ||
| /** | ||
| * Status of the commission agreement product | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'status': UpdateCommissionAgreementProductRequestDtoStatusEnum; | ||
| } | ||
| export declare const UpdateCommissionAgreementProductRequestDtoStatusEnum: { | ||
| readonly Active: "active"; | ||
| readonly Inactive: "inactive"; | ||
| }; | ||
| export type UpdateCommissionAgreementProductRequestDtoStatusEnum = typeof UpdateCommissionAgreementProductRequestDtoStatusEnum[keyof typeof UpdateCommissionAgreementProductRequestDtoStatusEnum]; |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.UpdateCommissionAgreementProductRequestDtoStatusEnum = void 0; | ||
| exports.UpdateCommissionAgreementProductRequestDtoStatusEnum = { | ||
| Active: 'active', | ||
| Inactive: 'inactive' | ||
| }; |
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface UpdateCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface UpdateCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The updated commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof UpdateCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } |
| "use strict"; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementVersionClass } from './commission-agreement-version-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CommissionAgreementProductClass | ||
| */ | ||
| export interface CommissionAgreementProductClass { | ||
| /** | ||
| * Unique identifier for the commission agreement product | ||
| * @type {number} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'id': number; | ||
| /** | ||
| * The parent commission agreement version | ||
| * @type {CommissionAgreementVersionClass} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'version': CommissionAgreementVersionClass; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'productSlug': string; | ||
| /** | ||
| * Unique code identifier for the commission agreement product, auto-generated on creation | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Status of the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'status': CommissionAgreementProductClassStatusEnum; | ||
| /** | ||
| * Timestamp when the commission agreement product was created | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'createdAt'?: string; | ||
| /** | ||
| * Timestamp when the commission agreement product was last updated | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'updatedAt'?: string; | ||
| /** | ||
| * User identifier who created the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'createdBy'?: string; | ||
| /** | ||
| * User identifier who last updated the commission agreement product | ||
| * @type {string} | ||
| * @memberof CommissionAgreementProductClass | ||
| */ | ||
| 'updatedBy'?: string; | ||
| } | ||
| export const CommissionAgreementProductClassStatusEnum = { | ||
| Active: 'active', | ||
| Inactive: 'inactive' | ||
| } as const; | ||
| export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum]; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| export interface CreateCommissionAgreementProductRequestDto { | ||
| /** | ||
| * Code of the parent commission agreement version to create a product for | ||
| * @type {string} | ||
| * @memberof CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'commissionAgreementVersionCode': string; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof CreateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'productSlug': string; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface CreateCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface CreateCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The created commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof CreateCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface GetCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface GetCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The retrieved commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof GetCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| export interface ListCommissionAgreementProductsResponseClass { | ||
| /** | ||
| * Array of commission agreement product objects | ||
| * @type {Array<CommissionAgreementProductClass>} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'items': Array<CommissionAgreementProductClass>; | ||
| /** | ||
| * Token for retrieving the next page of results | ||
| * @type {string} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'nextPageToken': string; | ||
| /** | ||
| * Number of items per page | ||
| * @type {number} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'itemsPerPage': number; | ||
| /** | ||
| * Total number of items | ||
| * @type {number} | ||
| * @memberof ListCommissionAgreementProductsResponseClass | ||
| */ | ||
| 'totalItems': number; | ||
| } | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| export interface UpdateCommissionAgreementProductRequestDto { | ||
| /** | ||
| * Code of the commission agreement product to update | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'code': string; | ||
| /** | ||
| * Product slug identifier | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'productSlug': string; | ||
| /** | ||
| * Status of the commission agreement product | ||
| * @type {string} | ||
| * @memberof UpdateCommissionAgreementProductRequestDto | ||
| */ | ||
| 'status': UpdateCommissionAgreementProductRequestDtoStatusEnum; | ||
| } | ||
| export const UpdateCommissionAgreementProductRequestDtoStatusEnum = { | ||
| Active: 'active', | ||
| Inactive: 'inactive' | ||
| } as const; | ||
| export type UpdateCommissionAgreementProductRequestDtoStatusEnum = typeof UpdateCommissionAgreementProductRequestDtoStatusEnum[keyof typeof UpdateCommissionAgreementProductRequestDtoStatusEnum]; | ||
| /* tslint:disable */ | ||
| /* eslint-disable */ | ||
| /** | ||
| * EMIL CommissionService | ||
| * The EMIL CommissionService API description | ||
| * | ||
| * The version of the OpenAPI document: 1.0 | ||
| * Contact: kontakt@emil.de | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
| import { CommissionAgreementProductClass } from './commission-agreement-product-class'; | ||
| /** | ||
| * | ||
| * @export | ||
| * @interface UpdateCommissionAgreementProductResponseClass | ||
| */ | ||
| export interface UpdateCommissionAgreementProductResponseClass { | ||
| /** | ||
| * The updated commission agreement product object | ||
| * @type {CommissionAgreementProductClass} | ||
| * @memberof UpdateCommissionAgreementProductResponseClass | ||
| */ | ||
| 'product'?: CommissionAgreementProductClass; | ||
| } | ||
+2
-0
@@ -27,2 +27,3 @@ /* tslint:disable */ | ||
| import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; | ||
| import { CommissionAgreementProductsApi } from './api'; | ||
| import { CommissionAgreementVersionsApi } from './api'; | ||
@@ -35,2 +36,3 @@ import { CommissionAgreementsApi } from './api'; | ||
| export * from './api/commission-agreement-products-api'; | ||
| export * from './api/commission-agreement-versions-api'; | ||
@@ -37,0 +39,0 @@ export * from './api/commission-agreements-api'; |
+1
-0
@@ -12,2 +12,3 @@ /** | ||
| */ | ||
| export * from './api/commission-agreement-products-api'; | ||
| export * from './api/commission-agreement-versions-api'; | ||
@@ -14,0 +15,0 @@ export * from './api/commission-agreements-api'; |
+1
-0
@@ -30,2 +30,3 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./api/commission-agreement-products-api"), exports); | ||
| __exportStar(require("./api/commission-agreement-versions-api"), exports); | ||
@@ -32,0 +33,0 @@ __exportStar(require("./api/commission-agreements-api"), exports); |
| export * from './commission-agreement-class'; | ||
| export * from './commission-agreement-product-class'; | ||
| export * from './commission-agreement-version-class'; | ||
@@ -6,2 +7,4 @@ export * from './commission-class'; | ||
| export * from './commission-recipient-class'; | ||
| export * from './create-commission-agreement-product-request-dto'; | ||
| export * from './create-commission-agreement-product-response-class'; | ||
| export * from './create-commission-agreement-request-dto'; | ||
@@ -16,2 +19,3 @@ export * from './create-commission-agreement-response-class'; | ||
| export * from './create-commission-response-class'; | ||
| export * from './get-commission-agreement-product-response-class'; | ||
| export * from './get-commission-agreement-response-class'; | ||
@@ -23,2 +27,3 @@ export * from './get-commission-agreement-version-response-class'; | ||
| export * from './inline-response503'; | ||
| export * from './list-commission-agreement-products-response-class'; | ||
| export * from './list-commission-agreement-versions-response-class'; | ||
@@ -28,2 +33,4 @@ export * from './list-commission-agreements-response-class'; | ||
| export * from './list-commissions-response-class'; | ||
| export * from './update-commission-agreement-product-request-dto'; | ||
| export * from './update-commission-agreement-product-response-class'; | ||
| export * from './update-commission-agreement-request-dto'; | ||
@@ -30,0 +37,0 @@ export * from './update-commission-agreement-response-class'; |
@@ -18,2 +18,3 @@ "use strict"; | ||
| __exportStar(require("./commission-agreement-class"), exports); | ||
| __exportStar(require("./commission-agreement-product-class"), exports); | ||
| __exportStar(require("./commission-agreement-version-class"), exports); | ||
@@ -23,2 +24,4 @@ __exportStar(require("./commission-class"), exports); | ||
| __exportStar(require("./commission-recipient-class"), exports); | ||
| __exportStar(require("./create-commission-agreement-product-request-dto"), exports); | ||
| __exportStar(require("./create-commission-agreement-product-response-class"), exports); | ||
| __exportStar(require("./create-commission-agreement-request-dto"), exports); | ||
@@ -33,2 +36,3 @@ __exportStar(require("./create-commission-agreement-response-class"), exports); | ||
| __exportStar(require("./create-commission-response-class"), exports); | ||
| __exportStar(require("./get-commission-agreement-product-response-class"), exports); | ||
| __exportStar(require("./get-commission-agreement-response-class"), exports); | ||
@@ -40,2 +44,3 @@ __exportStar(require("./get-commission-agreement-version-response-class"), exports); | ||
| __exportStar(require("./inline-response503"), exports); | ||
| __exportStar(require("./list-commission-agreement-products-response-class"), exports); | ||
| __exportStar(require("./list-commission-agreement-versions-response-class"), exports); | ||
@@ -45,2 +50,4 @@ __exportStar(require("./list-commission-agreements-response-class"), exports); | ||
| __exportStar(require("./list-commissions-response-class"), exports); | ||
| __exportStar(require("./update-commission-agreement-product-request-dto"), exports); | ||
| __exportStar(require("./update-commission-agreement-product-response-class"), exports); | ||
| __exportStar(require("./update-commission-agreement-request-dto"), exports); | ||
@@ -47,0 +54,0 @@ __exportStar(require("./update-commission-agreement-response-class"), exports); |
+7
-0
| export * from './commission-agreement-class'; | ||
| export * from './commission-agreement-product-class'; | ||
| export * from './commission-agreement-version-class'; | ||
@@ -6,2 +7,4 @@ export * from './commission-class'; | ||
| export * from './commission-recipient-class'; | ||
| export * from './create-commission-agreement-product-request-dto'; | ||
| export * from './create-commission-agreement-product-response-class'; | ||
| export * from './create-commission-agreement-request-dto'; | ||
@@ -16,2 +19,3 @@ export * from './create-commission-agreement-response-class'; | ||
| export * from './create-commission-response-class'; | ||
| export * from './get-commission-agreement-product-response-class'; | ||
| export * from './get-commission-agreement-response-class'; | ||
@@ -23,2 +27,3 @@ export * from './get-commission-agreement-version-response-class'; | ||
| export * from './inline-response503'; | ||
| export * from './list-commission-agreement-products-response-class'; | ||
| export * from './list-commission-agreement-versions-response-class'; | ||
@@ -28,2 +33,4 @@ export * from './list-commission-agreements-response-class'; | ||
| export * from './list-commissions-response-class'; | ||
| export * from './update-commission-agreement-product-request-dto'; | ||
| export * from './update-commission-agreement-product-response-class'; | ||
| export * from './update-commission-agreement-request-dto'; | ||
@@ -30,0 +37,0 @@ export * from './update-commission-agreement-response-class'; |
+1
-1
| { | ||
| "name": "@emilgroup/commission-sdk-node", | ||
| "version": "1.0.0-beta.4", | ||
| "version": "1.0.0-beta.5", | ||
| "description": "OpenAPI client for @emilgroup/commission-sdk-node", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator Contributors", |
+2
-2
@@ -20,7 +20,7 @@ # Emil Commission SDK for Nodejs | ||
| ``` | ||
| npm install @emilgroup/commission-sdk-node@1.0.0-beta.4 --save | ||
| npm install @emilgroup/commission-sdk-node@1.0.0-beta.5 --save | ||
| ``` | ||
| or | ||
| ``` | ||
| yarn add @emilgroup/commission-sdk-node@1.0.0-beta.4 | ||
| yarn add @emilgroup/commission-sdk-node@1.0.0-beta.5 | ||
| ``` | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
732447
21.76%154
18.46%14252
19.65%121
10%