@emilgroup/insurance-sdk-node 1.52.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +38 -1
- package/README.md +2 -2
- package/api/booking-funnel-versions-api.ts +4 -4
- package/api/booking-funnels-api.ts +20 -12
- package/api/commission-agreement-products-api.ts +710 -0
- package/api/commission-agreement-versions-api.ts +592 -0
- package/api/commission-agreements-api.ts +697 -0
- package/api/commission-recipients-api.ts +696 -0
- package/api/emil-functions-api.ts +8 -8
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/insured-objects-api.ts +5 -2
- package/api/lead-statuses-api.ts +4 -4
- package/api/lead-versions-api.ts +4 -4
- package/api/leads-api.ts +4 -4
- package/api/partner-links-api.ts +4 -4
- package/api/partner-roles-api.ts +4 -4
- package/api/policies-api.ts +192 -237
- package/api/products-api.ts +8 -8
- package/api/status-transition-rules-api.ts +4 -4
- package/api.ts +10 -2
- package/base.ts +15 -7
- package/dist/api/booking-funnel-versions-api.d.ts +4 -4
- package/dist/api/booking-funnel-versions-api.js +4 -4
- package/dist/api/booking-funnels-api.d.ts +20 -16
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/commission-agreement-products-api.d.ts +403 -0
- package/dist/api/commission-agreement-products-api.js +652 -0
- package/dist/api/commission-agreement-versions-api.d.ts +337 -0
- package/dist/api/commission-agreement-versions-api.js +555 -0
- package/dist/api/commission-agreements-api.d.ts +394 -0
- package/dist/api/commission-agreements-api.js +646 -0
- package/dist/api/commission-recipients-api.d.ts +394 -0
- package/dist/api/commission-recipients-api.js +646 -0
- package/dist/api/emil-functions-api.d.ts +8 -8
- package/dist/api/emil-functions-api.js +8 -8
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/insured-objects-api.js +4 -2
- package/dist/api/lead-statuses-api.d.ts +4 -4
- package/dist/api/lead-statuses-api.js +4 -4
- package/dist/api/lead-versions-api.d.ts +4 -4
- package/dist/api/lead-versions-api.js +4 -4
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +4 -4
- package/dist/api/partner-links-api.d.ts +4 -4
- package/dist/api/partner-links-api.js +3 -3
- package/dist/api/partner-roles-api.d.ts +4 -4
- package/dist/api/partner-roles-api.js +4 -4
- package/dist/api/policies-api.d.ts +150 -177
- package/dist/api/policies-api.js +143 -165
- package/dist/api/products-api.d.ts +8 -8
- package/dist/api/products-api.js +8 -8
- package/dist/api/status-transition-rules-api.d.ts +4 -4
- package/dist/api/status-transition-rules-api.js +4 -4
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/booking-funnel-class.d.ts +12 -0
- package/dist/models/commission-agreement-class.d.ts +101 -0
- package/dist/models/commission-agreement-class.js +23 -0
- package/dist/models/commission-agreement-item-class.d.ts +78 -0
- package/dist/models/commission-agreement-item-class.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +84 -0
- package/dist/models/commission-agreement-product-class.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +91 -0
- package/dist/models/commission-agreement-version-class.js +15 -0
- package/dist/models/commission-recipient-class.d.ts +90 -0
- package/dist/models/commission-recipient-class.js +15 -0
- package/dist/models/create-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/create-booking-funnel-response-class.js +15 -0
- package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
- package/dist/models/create-commission-agreement-item-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
- package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-product-response-class.js +15 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
- package/dist/models/create-commission-agreement-request-dto.js +23 -0
- package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
- package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-version-response-class.js +15 -0
- package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
- package/dist/models/create-commission-recipient-request-dto.js +15 -0
- package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/create-commission-recipient-response-class.js +15 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +6 -0
- package/dist/models/create-lead-request-dto.d.ts +4 -9
- package/dist/models/emil-function-class.d.ts +12 -0
- package/dist/models/get-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/get-booking-funnel-response-class.js +15 -0
- package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-product-response-class.js +15 -0
- package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-response-class.js +15 -0
- package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-version-response-class.js +15 -0
- package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/get-commission-recipient-response-class.js +15 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +33 -0
- package/dist/models/insured-object-class.d.ts +12 -0
- package/dist/models/insured-object-type-class.d.ts +12 -0
- package/dist/models/lead-class.d.ts +12 -0
- package/dist/models/lead-status-class.d.ts +12 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +36 -0
- package/dist/models/link-lead-partner-request-dto.js +15 -0
- package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreement-products-response-class.js +15 -0
- package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
- package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreements-response-class.js +15 -0
- package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
- package/dist/models/list-commission-recipients-response-class.js +15 -0
- package/dist/models/list-named-ranges-response-class.d.ts +3 -2
- package/dist/models/named-range-class.d.ts +12 -0
- package/dist/models/partner-link-class.d.ts +12 -0
- package/dist/models/partner-role-class.d.ts +12 -0
- package/dist/models/patch-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/patch-booking-funnel-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +12 -0
- package/dist/models/policy-object-class.d.ts +12 -0
- package/dist/models/policy-premium-class.d.ts +12 -0
- package/dist/models/policy-premium-item-class.d.ts +12 -0
- package/dist/models/policy-version-class.d.ts +12 -0
- package/dist/models/premium-formula-class.d.ts +12 -0
- package/dist/models/product-class.d.ts +12 -0
- package/dist/models/product-factor-class.d.ts +12 -0
- package/dist/models/product-factor-for-version-class.d.ts +12 -0
- package/dist/models/product-factor-value-class.d.ts +12 -0
- package/dist/models/product-field-class.d.ts +12 -0
- package/dist/models/product-field-type-class.d.ts +12 -0
- package/dist/models/product-version-class.d.ts +12 -0
- package/dist/models/shared-product-field-class.d.ts +12 -0
- package/dist/models/status-transition-rule-class.d.ts +12 -0
- package/dist/models/timeslice-class.d.ts +12 -0
- package/dist/models/update-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/update-booking-funnel-response-class.js +15 -0
- package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
- package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-product-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
- package/dist/models/update-commission-agreement-request-dto.js +23 -0
- package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-response-class.js +15 -0
- package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
- package/dist/models/update-commission-recipient-request-dto.js +15 -0
- package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/update-commission-recipient-response-class.js +15 -0
- package/models/booking-funnel-class.ts +12 -0
- package/models/commission-agreement-class.ts +110 -0
- package/models/commission-agreement-item-class.ts +84 -0
- package/models/commission-agreement-product-class.ts +90 -0
- package/models/commission-agreement-version-class.ts +97 -0
- package/models/commission-recipient-class.ts +96 -0
- package/models/create-booking-funnel-response-class.ts +31 -0
- package/models/create-commission-agreement-item-dto.ts +42 -0
- package/models/create-commission-agreement-product-request-dto.ts +48 -0
- package/models/create-commission-agreement-product-response-class.ts +31 -0
- package/models/create-commission-agreement-request-dto.ts +84 -0
- package/models/create-commission-agreement-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +55 -0
- package/models/create-commission-agreement-version-response-class.ts +31 -0
- package/models/create-commission-recipient-request-dto.ts +54 -0
- package/models/create-commission-recipient-response-class.ts +31 -0
- package/models/create-dummy-policy-request-dto.ts +6 -0
- package/models/create-lead-request-dto.ts +4 -9
- package/models/emil-function-class.ts +12 -0
- package/models/get-booking-funnel-response-class.ts +31 -0
- package/models/get-commission-agreement-product-response-class.ts +31 -0
- package/models/get-commission-agreement-response-class.ts +31 -0
- package/models/get-commission-agreement-version-response-class.ts +31 -0
- package/models/get-commission-recipient-response-class.ts +31 -0
- package/models/index.ts +33 -0
- package/models/insured-object-class.ts +12 -0
- package/models/insured-object-type-class.ts +12 -0
- package/models/lead-class.ts +12 -0
- package/models/lead-status-class.ts +12 -0
- package/models/link-lead-partner-request-dto.ts +42 -0
- package/models/list-commission-agreement-products-response-class.ts +37 -0
- package/models/list-commission-agreement-versions-response-class.ts +37 -0
- package/models/list-commission-agreements-response-class.ts +37 -0
- package/models/list-commission-recipients-response-class.ts +37 -0
- package/models/list-named-ranges-response-class.ts +3 -2
- package/models/named-range-class.ts +12 -0
- package/models/partner-link-class.ts +12 -0
- package/models/partner-role-class.ts +12 -0
- package/models/patch-booking-funnel-response-class.ts +31 -0
- package/models/policy-class.ts +12 -0
- package/models/policy-object-class.ts +12 -0
- package/models/policy-premium-class.ts +12 -0
- package/models/policy-premium-item-class.ts +12 -0
- package/models/policy-version-class.ts +12 -0
- package/models/premium-formula-class.ts +12 -0
- package/models/product-class.ts +12 -0
- package/models/product-factor-class.ts +12 -0
- package/models/product-factor-for-version-class.ts +12 -0
- package/models/product-factor-value-class.ts +12 -0
- package/models/product-field-class.ts +12 -0
- package/models/product-field-type-class.ts +12 -0
- package/models/product-version-class.ts +12 -0
- package/models/shared-product-field-class.ts +12 -0
- package/models/status-transition-rule-class.ts +12 -0
- package/models/timeslice-class.ts +12 -0
- package/models/update-booking-funnel-response-class.ts +31 -0
- package/models/update-commission-agreement-product-request-dto.ts +48 -0
- package/models/update-commission-agreement-product-response-class.ts +31 -0
- package/models/update-commission-agreement-request-dto.ts +53 -0
- package/models/update-commission-agreement-response-class.ts +31 -0
- package/models/update-commission-recipient-request-dto.ts +54 -0
- package/models/update-commission-recipient-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateCommissionAgreementProductRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateCommissionAgreementProductResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetCommissionAgreementProductResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListCommissionAgreementProductsResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateCommissionAgreementProductRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateCommissionAgreementProductResponseClass } from '../models';
|
|
37
|
+
// URLSearchParams not necessarily used
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import { URL, URLSearchParams } from 'url';
|
|
40
|
+
const FormData = require('form-data');
|
|
41
|
+
/**
|
|
42
|
+
* CommissionAgreementProductsApi - axios parameter creator
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export const CommissionAgreementProductsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
|
+
return {
|
|
47
|
+
/**
|
|
48
|
+
* This will create the commission agreement product.
|
|
49
|
+
* @summary Create the Commission agreement product
|
|
50
|
+
* @param {string} code
|
|
51
|
+
* @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
createCommissionAgreementProduct: async (code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
|
+
// verify required parameter 'code' is not null or undefined
|
|
58
|
+
assertParamExists('createCommissionAgreementProduct', 'code', code)
|
|
59
|
+
// verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined
|
|
60
|
+
assertParamExists('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto)
|
|
61
|
+
const localVarPath = `/insuranceservice/v1/commission-agreements/{code}/products`
|
|
62
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
63
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65
|
+
let baseOptions;
|
|
66
|
+
let baseAccessToken;
|
|
67
|
+
if (configuration) {
|
|
68
|
+
baseOptions = configuration.baseOptions;
|
|
69
|
+
baseAccessToken = configuration.accessToken;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
73
|
+
const localVarHeaderParameter = {} as any;
|
|
74
|
+
const localVarQueryParameter = {} as any;
|
|
75
|
+
|
|
76
|
+
// authentication bearer required
|
|
77
|
+
// http bearer authentication required
|
|
78
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
79
|
+
|
|
80
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
81
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
+
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
url: toPathString(localVarUrlObj),
|
|
95
|
+
options: localVarRequestOptions,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
|
|
100
|
+
* @summary Delete the commission agreement product
|
|
101
|
+
* @param {string} code
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
deleteCommissionAgreementProduct: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'code' is not null or undefined
|
|
108
|
+
assertParamExists('deleteCommissionAgreementProduct', 'code', code)
|
|
109
|
+
const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
|
|
110
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
let baseAccessToken;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
121
|
+
const localVarHeaderParameter = {} as any;
|
|
122
|
+
const localVarQueryParameter = {} as any;
|
|
123
|
+
|
|
124
|
+
// authentication bearer required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
127
|
+
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
|
|
145
|
+
* @summary Retrieve the commission agreement product
|
|
146
|
+
* @param {string} code
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {string} [expand] You can expand commission agreement product in this endpoint. \' + \'Allowed values: product.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
getCommissionAgreementProduct: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
+
// verify required parameter 'code' is not null or undefined
|
|
154
|
+
assertParamExists('getCommissionAgreementProduct', 'code', code)
|
|
155
|
+
const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
|
|
156
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
159
|
+
let baseOptions;
|
|
160
|
+
let baseAccessToken;
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
163
|
+
baseAccessToken = configuration.accessToken;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
167
|
+
const localVarHeaderParameter = {} as any;
|
|
168
|
+
const localVarQueryParameter = {} as any;
|
|
169
|
+
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
173
|
+
|
|
174
|
+
if (expand !== undefined) {
|
|
175
|
+
localVarQueryParameter['expand'] = expand;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
195
|
+
* @summary List commission agreement products
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {number} [pageSize] Page size.
|
|
198
|
+
* @param {string} [pageToken] Page token.
|
|
199
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
200
|
+
* @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: productId, code</i>
|
|
201
|
+
* @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: id, createdAt, updatedAt</i>
|
|
202
|
+
* @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: product<i>
|
|
203
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
listCommissionAgreementProducts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
|
+
const localVarPath = `/insuranceservice/v1/commission-agreements/products`;
|
|
209
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
211
|
+
let baseOptions;
|
|
212
|
+
let baseAccessToken;
|
|
213
|
+
if (configuration) {
|
|
214
|
+
baseOptions = configuration.baseOptions;
|
|
215
|
+
baseAccessToken = configuration.accessToken;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
219
|
+
const localVarHeaderParameter = {} as any;
|
|
220
|
+
const localVarQueryParameter = {} as any;
|
|
221
|
+
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
225
|
+
|
|
226
|
+
if (pageSize !== undefined) {
|
|
227
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (pageToken !== undefined) {
|
|
231
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (filter !== undefined) {
|
|
235
|
+
localVarQueryParameter['filter'] = filter;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (search !== undefined) {
|
|
239
|
+
localVarQueryParameter['search'] = search;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (order !== undefined) {
|
|
243
|
+
localVarQueryParameter['order'] = order;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (expand !== undefined) {
|
|
247
|
+
localVarQueryParameter['expand'] = expand;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (filters !== undefined) {
|
|
251
|
+
localVarQueryParameter['filters'] = filters;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
263
|
+
|
|
264
|
+
return {
|
|
265
|
+
url: toPathString(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
271
|
+
* @summary Update the commission agreement product
|
|
272
|
+
* @param {string} code
|
|
273
|
+
* @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
|
|
274
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
updateCommissionAgreementProduct: async (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
279
|
+
// verify required parameter 'code' is not null or undefined
|
|
280
|
+
assertParamExists('updateCommissionAgreementProduct', 'code', code)
|
|
281
|
+
// verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined
|
|
282
|
+
assertParamExists('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto)
|
|
283
|
+
const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
|
|
284
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
let baseAccessToken;
|
|
289
|
+
if (configuration) {
|
|
290
|
+
baseOptions = configuration.baseOptions;
|
|
291
|
+
baseAccessToken = configuration.accessToken;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
295
|
+
const localVarHeaderParameter = {} as any;
|
|
296
|
+
const localVarQueryParameter = {} as any;
|
|
297
|
+
|
|
298
|
+
// authentication bearer required
|
|
299
|
+
// http bearer authentication required
|
|
300
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
301
|
+
|
|
302
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
303
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
|
+
|
|
310
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
313
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
|
|
314
|
+
|
|
315
|
+
return {
|
|
316
|
+
url: toPathString(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions,
|
|
318
|
+
};
|
|
319
|
+
},
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* CommissionAgreementProductsApi - functional programming interface
|
|
325
|
+
* @export
|
|
326
|
+
*/
|
|
327
|
+
export const CommissionAgreementProductsApiFp = function(configuration?: Configuration) {
|
|
328
|
+
const localVarAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator(configuration)
|
|
329
|
+
return {
|
|
330
|
+
/**
|
|
331
|
+
* This will create the commission agreement product.
|
|
332
|
+
* @summary Create the Commission agreement product
|
|
333
|
+
* @param {string} code
|
|
334
|
+
* @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
|
|
335
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
async createCommissionAgreementProduct(code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>> {
|
|
340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementProduct(code, createCommissionAgreementProductRequestDto, authorization, options);
|
|
341
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
|
|
345
|
+
* @summary Delete the commission agreement product
|
|
346
|
+
* @param {string} code
|
|
347
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
async deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options);
|
|
353
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
|
|
357
|
+
* @summary Retrieve the commission agreement product
|
|
358
|
+
* @param {string} code
|
|
359
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
360
|
+
* @param {string} [expand] You can expand commission agreement product in this endpoint. \' + \'Allowed values: product.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
async getCommissionAgreementProduct(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>> {
|
|
365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementProduct(code, authorization, expand, options);
|
|
366
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
370
|
+
* @summary List commission agreement products
|
|
371
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
|
+
* @param {number} [pageSize] Page size.
|
|
373
|
+
* @param {string} [pageToken] Page token.
|
|
374
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
375
|
+
* @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: productId, code</i>
|
|
376
|
+
* @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: id, createdAt, updatedAt</i>
|
|
377
|
+
* @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: product<i>
|
|
378
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
async listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
|
|
383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
384
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
388
|
+
* @summary Update the commission agreement product
|
|
389
|
+
* @param {string} code
|
|
390
|
+
* @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
|
|
391
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
async updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>> {
|
|
396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options);
|
|
397
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
398
|
+
},
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* CommissionAgreementProductsApi - factory interface
|
|
404
|
+
* @export
|
|
405
|
+
*/
|
|
406
|
+
export const CommissionAgreementProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
407
|
+
const localVarFp = CommissionAgreementProductsApiFp(configuration)
|
|
408
|
+
return {
|
|
409
|
+
/**
|
|
410
|
+
* This will create the commission agreement product.
|
|
411
|
+
* @summary Create the Commission agreement product
|
|
412
|
+
* @param {string} code
|
|
413
|
+
* @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
|
|
414
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
*/
|
|
418
|
+
createCommissionAgreementProduct(code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass> {
|
|
419
|
+
return localVarFp.createCommissionAgreementProduct(code, createCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
420
|
+
},
|
|
421
|
+
/**
|
|
422
|
+
* Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
|
|
423
|
+
* @summary Delete the commission agreement product
|
|
424
|
+
* @param {string} code
|
|
425
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
430
|
+
return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then((request) => request(axios, basePath));
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
|
|
434
|
+
* @summary Retrieve the commission agreement product
|
|
435
|
+
* @param {string} code
|
|
436
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
|
+
* @param {string} [expand] You can expand commission agreement product in this endpoint. \' + \'Allowed values: product.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
getCommissionAgreementProduct(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass> {
|
|
442
|
+
return localVarFp.getCommissionAgreementProduct(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
446
|
+
* @summary List commission agreement products
|
|
447
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
448
|
+
* @param {number} [pageSize] Page size.
|
|
449
|
+
* @param {string} [pageToken] Page token.
|
|
450
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
451
|
+
* @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: productId, code</i>
|
|
452
|
+
* @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: id, createdAt, updatedAt</i>
|
|
453
|
+
* @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: product<i>
|
|
454
|
+
* @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: code, productId, commissionAgreementId</i>
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
|
|
459
|
+
return localVarFp.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
463
|
+
* @summary Update the commission agreement product
|
|
464
|
+
* @param {string} code
|
|
465
|
+
* @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
|
|
466
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass> {
|
|
471
|
+
return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi.
|
|
478
|
+
* @export
|
|
479
|
+
* @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest
|
|
480
|
+
*/
|
|
481
|
+
export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest {
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @type {string}
|
|
485
|
+
* @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
|
|
486
|
+
*/
|
|
487
|
+
readonly code: string
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @type {CreateCommissionAgreementProductRequestDto}
|
|
492
|
+
* @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
|
|
493
|
+
*/
|
|
494
|
+
readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
498
|
+
* @type {string}
|
|
499
|
+
* @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
|
|
500
|
+
*/
|
|
501
|
+
readonly authorization?: string
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi.
|
|
506
|
+
* @export
|
|
507
|
+
* @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest
|
|
508
|
+
*/
|
|
509
|
+
export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
|
|
514
|
+
*/
|
|
515
|
+
readonly code: string
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
|
|
521
|
+
*/
|
|
522
|
+
readonly authorization?: string
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi.
|
|
527
|
+
* @export
|
|
528
|
+
* @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest
|
|
529
|
+
*/
|
|
530
|
+
export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest {
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
|
|
535
|
+
*/
|
|
536
|
+
readonly code: string
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
|
|
542
|
+
*/
|
|
543
|
+
readonly authorization?: string
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* You can expand commission agreement product in this endpoint. \' + \'Allowed values: product.
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
|
|
549
|
+
*/
|
|
550
|
+
readonly expand?: string
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi.
|
|
555
|
+
* @export
|
|
556
|
+
* @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest
|
|
557
|
+
*/
|
|
558
|
+
export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest {
|
|
559
|
+
/**
|
|
560
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
563
|
+
*/
|
|
564
|
+
readonly authorization?: string
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Page size.
|
|
568
|
+
* @type {number}
|
|
569
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
570
|
+
*/
|
|
571
|
+
readonly pageSize?: number
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Page token.
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
577
|
+
*/
|
|
578
|
+
readonly pageToken?: string
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* 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: code, productId, commissionAgreementId</i>
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
584
|
+
*/
|
|
585
|
+
readonly filter?: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: productId, code</i>
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
591
|
+
*/
|
|
592
|
+
readonly search?: string
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* 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: id, createdAt, updatedAt</i>
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
598
|
+
*/
|
|
599
|
+
readonly order?: string
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* 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: product<i>
|
|
603
|
+
* @type {string}
|
|
604
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
605
|
+
*/
|
|
606
|
+
readonly expand?: string
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productId, commissionAgreementId</i>
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
|
|
612
|
+
*/
|
|
613
|
+
readonly filters?: string
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi.
|
|
618
|
+
* @export
|
|
619
|
+
* @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest
|
|
620
|
+
*/
|
|
621
|
+
export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest {
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @type {string}
|
|
625
|
+
* @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
|
|
626
|
+
*/
|
|
627
|
+
readonly code: string
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {UpdateCommissionAgreementProductRequestDto}
|
|
632
|
+
* @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
|
|
633
|
+
*/
|
|
634
|
+
readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
638
|
+
* @type {string}
|
|
639
|
+
* @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
|
|
640
|
+
*/
|
|
641
|
+
readonly authorization?: string
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* CommissionAgreementProductsApi - object-oriented interface
|
|
646
|
+
* @export
|
|
647
|
+
* @class CommissionAgreementProductsApi
|
|
648
|
+
* @extends {BaseAPI}
|
|
649
|
+
*/
|
|
650
|
+
export class CommissionAgreementProductsApi extends BaseAPI {
|
|
651
|
+
/**
|
|
652
|
+
* This will create the commission agreement product.
|
|
653
|
+
* @summary Create the Commission agreement product
|
|
654
|
+
* @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
* @memberof CommissionAgreementProductsApi
|
|
658
|
+
*/
|
|
659
|
+
public createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
|
|
660
|
+
return CommissionAgreementProductsApiFp(this.configuration).createCommissionAgreementProduct(requestParameters.code, requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
|
|
665
|
+
* @summary Delete the commission agreement product
|
|
666
|
+
* @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
* @memberof CommissionAgreementProductsApi
|
|
670
|
+
*/
|
|
671
|
+
public deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
|
|
672
|
+
return CommissionAgreementProductsApiFp(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
|
|
677
|
+
* @summary Retrieve the commission agreement product
|
|
678
|
+
* @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters.
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
* @memberof CommissionAgreementProductsApi
|
|
682
|
+
*/
|
|
683
|
+
public getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
|
|
684
|
+
return CommissionAgreementProductsApiFp(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
689
|
+
* @summary List commission agreement products
|
|
690
|
+
* @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters.
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
* @memberof CommissionAgreementProductsApi
|
|
694
|
+
*/
|
|
695
|
+
public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
|
|
696
|
+
return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
701
|
+
* @summary Update the commission agreement product
|
|
702
|
+
* @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
* @memberof CommissionAgreementProductsApi
|
|
706
|
+
*/
|
|
707
|
+
public updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
|
|
708
|
+
return CommissionAgreementProductsApiFp(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
709
|
+
}
|
|
710
|
+
}
|