@emilgroup/accounting-sdk 1.34.1-beta.2 → 1.34.1-beta.21
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 +16 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +97 -7
- package/api/financial-accounts-api.ts +120 -0
- package/api/product-account-mappings-api.ts +1470 -0
- package/api.ts +2 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +94 -7
- package/dist/api/financial-accounts-api.d.ts +66 -0
- package/dist/api/financial-accounts-api.js +99 -0
- package/dist/api/product-account-mappings-api.d.ts +851 -0
- package/dist/api/product-account-mappings-api.js +1224 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/create-financial-account-request-dto.d.ts +6 -0
- package/dist/models/financial-account-class.d.ts +18 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +42 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/accounting-config-class.ts +14 -0
- package/models/create-financial-account-request-dto.ts +6 -0
- package/models/financial-account-class.ts +19 -1
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +15 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +56 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/update-financial-account-body-dto.ts +48 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1470 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService 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 { ListProductAccountMappingsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ListProductsWithAccountMappingsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { PremiumItemAccountMappingClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ProductAccountMappingDetailClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ProductVersionAccountMappingDetailClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PutPremiumItemAccountBodyDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { PutProductCategoryAccountBodyDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { PutProductVersionCategoryAccountBodyDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { ResolvedAccountMappingClass } from '../models';
|
|
41
|
+
/**
|
|
42
|
+
* ProductAccountMappingsApi - axios parameter creator
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export const ProductAccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
|
+
return {
|
|
47
|
+
/**
|
|
48
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
49
|
+
* @summary Delete the Premium Item Account
|
|
50
|
+
* @param {string} productCode
|
|
51
|
+
* @param {string} productVersionCode
|
|
52
|
+
* @param {string} premiumFormulaCode
|
|
53
|
+
* @param {string} category
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
deletePremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
60
|
+
assertParamExists('deletePremiumItemAccount', 'productCode', productCode)
|
|
61
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
62
|
+
assertParamExists('deletePremiumItemAccount', 'productVersionCode', productVersionCode)
|
|
63
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
64
|
+
assertParamExists('deletePremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
|
|
65
|
+
// verify required parameter 'category' is not null or undefined
|
|
66
|
+
assertParamExists('deletePremiumItemAccount', 'category', category)
|
|
67
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
|
|
68
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
69
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
70
|
+
.replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
|
|
71
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
72
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
74
|
+
let baseOptions;
|
|
75
|
+
let baseAccessToken;
|
|
76
|
+
if (configuration) {
|
|
77
|
+
baseOptions = configuration.baseOptions;
|
|
78
|
+
baseAccessToken = configuration.accessToken;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
82
|
+
const localVarHeaderParameter = {} as any;
|
|
83
|
+
const localVarQueryParameter = {} as any;
|
|
84
|
+
|
|
85
|
+
// authentication bearer required
|
|
86
|
+
// http bearer authentication required
|
|
87
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
88
|
+
|
|
89
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
90
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
url: toPathString(localVarUrlObj),
|
|
101
|
+
options: localVarRequestOptions,
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
106
|
+
* @summary Delete the Product Category Account
|
|
107
|
+
* @param {string} productCode
|
|
108
|
+
* @param {string} category
|
|
109
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
deleteProductCategoryAccount: async (productCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
114
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
115
|
+
assertParamExists('deleteProductCategoryAccount', 'productCode', productCode)
|
|
116
|
+
// verify required parameter 'category' is not null or undefined
|
|
117
|
+
assertParamExists('deleteProductCategoryAccount', 'category', category)
|
|
118
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
|
|
119
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
120
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123
|
+
let baseOptions;
|
|
124
|
+
let baseAccessToken;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
baseAccessToken = configuration.accessToken;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
131
|
+
const localVarHeaderParameter = {} as any;
|
|
132
|
+
const localVarQueryParameter = {} as any;
|
|
133
|
+
|
|
134
|
+
// authentication bearer required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
|
+
|
|
138
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
139
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
155
|
+
* @summary Delete the Product Version Category Account
|
|
156
|
+
* @param {string} productCode
|
|
157
|
+
* @param {string} productVersionCode
|
|
158
|
+
* @param {string} category
|
|
159
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
deleteProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
164
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
165
|
+
assertParamExists('deleteProductVersionCategoryAccount', 'productCode', productCode)
|
|
166
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
167
|
+
assertParamExists('deleteProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
|
|
168
|
+
// verify required parameter 'category' is not null or undefined
|
|
169
|
+
assertParamExists('deleteProductVersionCategoryAccount', 'category', category)
|
|
170
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
|
|
171
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
172
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
173
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
174
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
|
+
let baseOptions;
|
|
177
|
+
let baseAccessToken;
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
baseAccessToken = configuration.accessToken;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
184
|
+
const localVarHeaderParameter = {} as any;
|
|
185
|
+
const localVarQueryParameter = {} as any;
|
|
186
|
+
|
|
187
|
+
// authentication bearer required
|
|
188
|
+
// http bearer authentication required
|
|
189
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
190
|
+
|
|
191
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
208
|
+
* @summary Retrieve the Product Account Mapping
|
|
209
|
+
* @param {string} productCode
|
|
210
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
getProductAccountMapping: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
215
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
216
|
+
assertParamExists('getProductAccountMapping', 'productCode', productCode)
|
|
217
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}`
|
|
218
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
|
|
219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
221
|
+
let baseOptions;
|
|
222
|
+
let baseAccessToken;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
baseAccessToken = configuration.accessToken;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
229
|
+
const localVarHeaderParameter = {} as any;
|
|
230
|
+
const localVarQueryParameter = {} as any;
|
|
231
|
+
|
|
232
|
+
// authentication bearer required
|
|
233
|
+
// http bearer authentication required
|
|
234
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
235
|
+
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
245
|
+
|
|
246
|
+
return {
|
|
247
|
+
url: toPathString(localVarUrlObj),
|
|
248
|
+
options: localVarRequestOptions,
|
|
249
|
+
};
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
253
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
254
|
+
* @param {string} productCode
|
|
255
|
+
* @param {string} productVersionCode
|
|
256
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
getProductVersionAccountMapping: async (productCode: string, productVersionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
262
|
+
assertParamExists('getProductVersionAccountMapping', 'productCode', productCode)
|
|
263
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
264
|
+
assertParamExists('getProductVersionAccountMapping', 'productVersionCode', productVersionCode)
|
|
265
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}`
|
|
266
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
267
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)));
|
|
268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
270
|
+
let baseOptions;
|
|
271
|
+
let baseAccessToken;
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
baseAccessToken = configuration.accessToken;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
278
|
+
const localVarHeaderParameter = {} as any;
|
|
279
|
+
const localVarQueryParameter = {} as any;
|
|
280
|
+
|
|
281
|
+
// authentication bearer required
|
|
282
|
+
// http bearer authentication required
|
|
283
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
284
|
+
|
|
285
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
286
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
url: toPathString(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
302
|
+
* @summary List Product Account Mappings
|
|
303
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
304
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
305
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
306
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
307
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
308
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
309
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
310
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
listProductAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
315
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings`;
|
|
316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
318
|
+
let baseOptions;
|
|
319
|
+
let baseAccessToken;
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
baseAccessToken = configuration.accessToken;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
326
|
+
const localVarHeaderParameter = {} as any;
|
|
327
|
+
const localVarQueryParameter = {} as any;
|
|
328
|
+
|
|
329
|
+
// authentication bearer required
|
|
330
|
+
// http bearer authentication required
|
|
331
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
332
|
+
|
|
333
|
+
if (pageSize !== undefined) {
|
|
334
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (pageToken !== undefined) {
|
|
338
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (filter !== undefined) {
|
|
342
|
+
localVarQueryParameter['filter'] = filter;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (search !== undefined) {
|
|
346
|
+
localVarQueryParameter['search'] = search;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (order !== undefined) {
|
|
350
|
+
localVarQueryParameter['order'] = order;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (expand !== undefined) {
|
|
354
|
+
localVarQueryParameter['expand'] = expand;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (filters !== undefined) {
|
|
358
|
+
localVarQueryParameter['filters'] = filters;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
362
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
369
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
370
|
+
|
|
371
|
+
return {
|
|
372
|
+
url: toPathString(localVarUrlObj),
|
|
373
|
+
options: localVarRequestOptions,
|
|
374
|
+
};
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
378
|
+
* @summary List Products With Account Mappings
|
|
379
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
380
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
381
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
382
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
383
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
384
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
385
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
386
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
listProductsWithAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
391
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products`;
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
let baseAccessToken;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
baseAccessToken = configuration.accessToken;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
402
|
+
const localVarHeaderParameter = {} as any;
|
|
403
|
+
const localVarQueryParameter = {} as any;
|
|
404
|
+
|
|
405
|
+
// authentication bearer required
|
|
406
|
+
// http bearer authentication required
|
|
407
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
408
|
+
|
|
409
|
+
if (pageSize !== undefined) {
|
|
410
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (pageToken !== undefined) {
|
|
414
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (filter !== undefined) {
|
|
418
|
+
localVarQueryParameter['filter'] = filter;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (search !== undefined) {
|
|
422
|
+
localVarQueryParameter['search'] = search;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (order !== undefined) {
|
|
426
|
+
localVarQueryParameter['order'] = order;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (expand !== undefined) {
|
|
430
|
+
localVarQueryParameter['expand'] = expand;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (filters !== undefined) {
|
|
434
|
+
localVarQueryParameter['filters'] = filters;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
438
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
445
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
446
|
+
|
|
447
|
+
return {
|
|
448
|
+
url: toPathString(localVarUrlObj),
|
|
449
|
+
options: localVarRequestOptions,
|
|
450
|
+
};
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
454
|
+
* @summary Update the Premium Item Account
|
|
455
|
+
* @param {string} productCode
|
|
456
|
+
* @param {string} productVersionCode
|
|
457
|
+
* @param {string} premiumFormulaCode
|
|
458
|
+
* @param {string} category
|
|
459
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
460
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
putPremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
465
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
466
|
+
assertParamExists('putPremiumItemAccount', 'productCode', productCode)
|
|
467
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
468
|
+
assertParamExists('putPremiumItemAccount', 'productVersionCode', productVersionCode)
|
|
469
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
470
|
+
assertParamExists('putPremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
|
|
471
|
+
// verify required parameter 'category' is not null or undefined
|
|
472
|
+
assertParamExists('putPremiumItemAccount', 'category', category)
|
|
473
|
+
// verify required parameter 'putPremiumItemAccountBodyDto' is not null or undefined
|
|
474
|
+
assertParamExists('putPremiumItemAccount', 'putPremiumItemAccountBodyDto', putPremiumItemAccountBodyDto)
|
|
475
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
|
|
476
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
477
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
478
|
+
.replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
|
|
479
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
let baseAccessToken;
|
|
484
|
+
if (configuration) {
|
|
485
|
+
baseOptions = configuration.baseOptions;
|
|
486
|
+
baseAccessToken = configuration.accessToken;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
490
|
+
const localVarHeaderParameter = {} as any;
|
|
491
|
+
const localVarQueryParameter = {} as any;
|
|
492
|
+
|
|
493
|
+
// authentication bearer required
|
|
494
|
+
// http bearer authentication required
|
|
495
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
496
|
+
|
|
497
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
498
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
504
|
+
|
|
505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
508
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putPremiumItemAccountBodyDto, localVarRequestOptions, configuration)
|
|
509
|
+
|
|
510
|
+
return {
|
|
511
|
+
url: toPathString(localVarUrlObj),
|
|
512
|
+
options: localVarRequestOptions,
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
/**
|
|
516
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
517
|
+
* @summary Update the Product Category Account
|
|
518
|
+
* @param {string} productCode
|
|
519
|
+
* @param {string} category
|
|
520
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
521
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
putProductCategoryAccount: async (productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
526
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
527
|
+
assertParamExists('putProductCategoryAccount', 'productCode', productCode)
|
|
528
|
+
// verify required parameter 'category' is not null or undefined
|
|
529
|
+
assertParamExists('putProductCategoryAccount', 'category', category)
|
|
530
|
+
// verify required parameter 'putProductCategoryAccountBodyDto' is not null or undefined
|
|
531
|
+
assertParamExists('putProductCategoryAccount', 'putProductCategoryAccountBodyDto', putProductCategoryAccountBodyDto)
|
|
532
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
|
|
533
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
534
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
535
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
536
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
537
|
+
let baseOptions;
|
|
538
|
+
let baseAccessToken;
|
|
539
|
+
if (configuration) {
|
|
540
|
+
baseOptions = configuration.baseOptions;
|
|
541
|
+
baseAccessToken = configuration.accessToken;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
545
|
+
const localVarHeaderParameter = {} as any;
|
|
546
|
+
const localVarQueryParameter = {} as any;
|
|
547
|
+
|
|
548
|
+
// authentication bearer required
|
|
549
|
+
// http bearer authentication required
|
|
550
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
551
|
+
|
|
552
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
553
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
559
|
+
|
|
560
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
561
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
562
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
563
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putProductCategoryAccountBodyDto, localVarRequestOptions, configuration)
|
|
564
|
+
|
|
565
|
+
return {
|
|
566
|
+
url: toPathString(localVarUrlObj),
|
|
567
|
+
options: localVarRequestOptions,
|
|
568
|
+
};
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
572
|
+
* @summary Update the Product Version Category Account
|
|
573
|
+
* @param {string} productCode
|
|
574
|
+
* @param {string} productVersionCode
|
|
575
|
+
* @param {string} category
|
|
576
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
577
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
putProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
582
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
583
|
+
assertParamExists('putProductVersionCategoryAccount', 'productCode', productCode)
|
|
584
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
585
|
+
assertParamExists('putProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
|
|
586
|
+
// verify required parameter 'category' is not null or undefined
|
|
587
|
+
assertParamExists('putProductVersionCategoryAccount', 'category', category)
|
|
588
|
+
// verify required parameter 'putProductVersionCategoryAccountBodyDto' is not null or undefined
|
|
589
|
+
assertParamExists('putProductVersionCategoryAccount', 'putProductVersionCategoryAccountBodyDto', putProductVersionCategoryAccountBodyDto)
|
|
590
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
|
|
591
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
592
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
593
|
+
.replace(`{${"category"}}`, encodeURIComponent(String(category)));
|
|
594
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
595
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
596
|
+
let baseOptions;
|
|
597
|
+
let baseAccessToken;
|
|
598
|
+
if (configuration) {
|
|
599
|
+
baseOptions = configuration.baseOptions;
|
|
600
|
+
baseAccessToken = configuration.accessToken;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
604
|
+
const localVarHeaderParameter = {} as any;
|
|
605
|
+
const localVarQueryParameter = {} as any;
|
|
606
|
+
|
|
607
|
+
// authentication bearer required
|
|
608
|
+
// http bearer authentication required
|
|
609
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
610
|
+
|
|
611
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
612
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
618
|
+
|
|
619
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
620
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
621
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
622
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putProductVersionCategoryAccountBodyDto, localVarRequestOptions, configuration)
|
|
623
|
+
|
|
624
|
+
return {
|
|
625
|
+
url: toPathString(localVarUrlObj),
|
|
626
|
+
options: localVarRequestOptions,
|
|
627
|
+
};
|
|
628
|
+
},
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* ProductAccountMappingsApi - functional programming interface
|
|
634
|
+
* @export
|
|
635
|
+
*/
|
|
636
|
+
export const ProductAccountMappingsApiFp = function(configuration?: Configuration) {
|
|
637
|
+
const localVarAxiosParamCreator = ProductAccountMappingsApiAxiosParamCreator(configuration)
|
|
638
|
+
return {
|
|
639
|
+
/**
|
|
640
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
641
|
+
* @summary Delete the Premium Item Account
|
|
642
|
+
* @param {string} productCode
|
|
643
|
+
* @param {string} productVersionCode
|
|
644
|
+
* @param {string} premiumFormulaCode
|
|
645
|
+
* @param {string} category
|
|
646
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
async deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
651
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options);
|
|
652
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
653
|
+
},
|
|
654
|
+
/**
|
|
655
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
656
|
+
* @summary Delete the Product Category Account
|
|
657
|
+
* @param {string} productCode
|
|
658
|
+
* @param {string} category
|
|
659
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
async deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
|
|
665
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
669
|
+
* @summary Delete the Product Version Category Account
|
|
670
|
+
* @param {string} productCode
|
|
671
|
+
* @param {string} productVersionCode
|
|
672
|
+
* @param {string} category
|
|
673
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
async deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options);
|
|
679
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
683
|
+
* @summary Retrieve the Product Account Mapping
|
|
684
|
+
* @param {string} productCode
|
|
685
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
async getProductAccountMapping(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductAccountMappingDetailClass>> {
|
|
690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductAccountMapping(productCode, authorization, options);
|
|
691
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
692
|
+
},
|
|
693
|
+
/**
|
|
694
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
695
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
696
|
+
* @param {string} productCode
|
|
697
|
+
* @param {string} productVersionCode
|
|
698
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
async getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductVersionAccountMappingDetailClass>> {
|
|
703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options);
|
|
704
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
705
|
+
},
|
|
706
|
+
/**
|
|
707
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
708
|
+
* @summary List Product Account Mappings
|
|
709
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
710
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
711
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
712
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
713
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
714
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
715
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
716
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
async listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductAccountMappingsResponseClass>> {
|
|
721
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
722
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
726
|
+
* @summary List Products With Account Mappings
|
|
727
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
728
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
729
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
730
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
731
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
732
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
733
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
734
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
async listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsWithAccountMappingsResponseClass>> {
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
740
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
741
|
+
},
|
|
742
|
+
/**
|
|
743
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
744
|
+
* @summary Update the Premium Item Account
|
|
745
|
+
* @param {string} productCode
|
|
746
|
+
* @param {string} productVersionCode
|
|
747
|
+
* @param {string} premiumFormulaCode
|
|
748
|
+
* @param {string} category
|
|
749
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
750
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
async putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>> {
|
|
755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options);
|
|
756
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
760
|
+
* @summary Update the Product Category Account
|
|
761
|
+
* @param {string} productCode
|
|
762
|
+
* @param {string} category
|
|
763
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
764
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
async putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
|
|
769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
|
|
770
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
774
|
+
* @summary Update the Product Version Category Account
|
|
775
|
+
* @param {string} productCode
|
|
776
|
+
* @param {string} productVersionCode
|
|
777
|
+
* @param {string} category
|
|
778
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
779
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
async putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
|
|
784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options);
|
|
785
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
786
|
+
},
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* ProductAccountMappingsApi - factory interface
|
|
792
|
+
* @export
|
|
793
|
+
*/
|
|
794
|
+
export const ProductAccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
795
|
+
const localVarFp = ProductAccountMappingsApiFp(configuration)
|
|
796
|
+
return {
|
|
797
|
+
/**
|
|
798
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
799
|
+
* @summary Delete the Premium Item Account
|
|
800
|
+
* @param {string} productCode
|
|
801
|
+
* @param {string} productVersionCode
|
|
802
|
+
* @param {string} premiumFormulaCode
|
|
803
|
+
* @param {string} category
|
|
804
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
809
|
+
return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then((request) => request(axios, basePath));
|
|
810
|
+
},
|
|
811
|
+
/**
|
|
812
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
813
|
+
* @summary Delete the Product Category Account
|
|
814
|
+
* @param {string} productCode
|
|
815
|
+
* @param {string} category
|
|
816
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
821
|
+
return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
|
|
822
|
+
},
|
|
823
|
+
/**
|
|
824
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
825
|
+
* @summary Delete the Product Version Category Account
|
|
826
|
+
* @param {string} productCode
|
|
827
|
+
* @param {string} productVersionCode
|
|
828
|
+
* @param {string} category
|
|
829
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
834
|
+
return localVarFp.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options).then((request) => request(axios, basePath));
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
838
|
+
* @summary Retrieve the Product Account Mapping
|
|
839
|
+
* @param {string} productCode
|
|
840
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
getProductAccountMapping(productCode: string, authorization?: string, options?: any): AxiosPromise<ProductAccountMappingDetailClass> {
|
|
845
|
+
return localVarFp.getProductAccountMapping(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
849
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
850
|
+
* @param {string} productCode
|
|
851
|
+
* @param {string} productVersionCode
|
|
852
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: any): AxiosPromise<ProductVersionAccountMappingDetailClass> {
|
|
857
|
+
return localVarFp.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options).then((request) => request(axios, basePath));
|
|
858
|
+
},
|
|
859
|
+
/**
|
|
860
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
861
|
+
* @summary List Product Account Mappings
|
|
862
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
863
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
864
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
865
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
866
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
867
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
868
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
869
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductAccountMappingsResponseClass> {
|
|
874
|
+
return localVarFp.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
875
|
+
},
|
|
876
|
+
/**
|
|
877
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
878
|
+
* @summary List Products With Account Mappings
|
|
879
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
880
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
881
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
882
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
883
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
884
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
885
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
886
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductsWithAccountMappingsResponseClass> {
|
|
891
|
+
return localVarFp.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
892
|
+
},
|
|
893
|
+
/**
|
|
894
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
895
|
+
* @summary Update the Premium Item Account
|
|
896
|
+
* @param {string} productCode
|
|
897
|
+
* @param {string} productVersionCode
|
|
898
|
+
* @param {string} premiumFormulaCode
|
|
899
|
+
* @param {string} category
|
|
900
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
901
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
|
|
906
|
+
return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
908
|
+
/**
|
|
909
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
910
|
+
* @summary Update the Product Category Account
|
|
911
|
+
* @param {string} productCode
|
|
912
|
+
* @param {string} category
|
|
913
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
914
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
|
|
919
|
+
return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
923
|
+
* @summary Update the Product Version Category Account
|
|
924
|
+
* @param {string} productCode
|
|
925
|
+
* @param {string} productVersionCode
|
|
926
|
+
* @param {string} category
|
|
927
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
928
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
|
|
933
|
+
return localVarFp.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
934
|
+
},
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Request parameters for deletePremiumItemAccount operation in ProductAccountMappingsApi.
|
|
940
|
+
* @export
|
|
941
|
+
* @interface ProductAccountMappingsApiDeletePremiumItemAccountRequest
|
|
942
|
+
*/
|
|
943
|
+
export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @type {string}
|
|
947
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemAccount
|
|
948
|
+
*/
|
|
949
|
+
readonly productCode: string
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
*
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemAccount
|
|
955
|
+
*/
|
|
956
|
+
readonly productVersionCode: string
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @type {string}
|
|
961
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemAccount
|
|
962
|
+
*/
|
|
963
|
+
readonly premiumFormulaCode: string
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @type {string}
|
|
968
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemAccount
|
|
969
|
+
*/
|
|
970
|
+
readonly category: string
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemAccount
|
|
976
|
+
*/
|
|
977
|
+
readonly authorization?: string
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
|
|
982
|
+
* @export
|
|
983
|
+
* @interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest
|
|
984
|
+
*/
|
|
985
|
+
export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @type {string}
|
|
989
|
+
* @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
|
|
990
|
+
*/
|
|
991
|
+
readonly productCode: string
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @type {string}
|
|
996
|
+
* @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
|
|
997
|
+
*/
|
|
998
|
+
readonly category: string
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1002
|
+
* @type {string}
|
|
1003
|
+
* @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
|
|
1004
|
+
*/
|
|
1005
|
+
readonly authorization?: string
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
|
|
1010
|
+
* @export
|
|
1011
|
+
* @interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest
|
|
1012
|
+
*/
|
|
1013
|
+
export interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest {
|
|
1014
|
+
/**
|
|
1015
|
+
*
|
|
1016
|
+
* @type {string}
|
|
1017
|
+
* @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
|
|
1018
|
+
*/
|
|
1019
|
+
readonly productCode: string
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
|
|
1025
|
+
*/
|
|
1026
|
+
readonly productVersionCode: string
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @type {string}
|
|
1031
|
+
* @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
|
|
1032
|
+
*/
|
|
1033
|
+
readonly category: string
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1037
|
+
* @type {string}
|
|
1038
|
+
* @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
|
|
1039
|
+
*/
|
|
1040
|
+
readonly authorization?: string
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Request parameters for getProductAccountMapping operation in ProductAccountMappingsApi.
|
|
1045
|
+
* @export
|
|
1046
|
+
* @interface ProductAccountMappingsApiGetProductAccountMappingRequest
|
|
1047
|
+
*/
|
|
1048
|
+
export interface ProductAccountMappingsApiGetProductAccountMappingRequest {
|
|
1049
|
+
/**
|
|
1050
|
+
*
|
|
1051
|
+
* @type {string}
|
|
1052
|
+
* @memberof ProductAccountMappingsApiGetProductAccountMapping
|
|
1053
|
+
*/
|
|
1054
|
+
readonly productCode: string
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1058
|
+
* @type {string}
|
|
1059
|
+
* @memberof ProductAccountMappingsApiGetProductAccountMapping
|
|
1060
|
+
*/
|
|
1061
|
+
readonly authorization?: string
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Request parameters for getProductVersionAccountMapping operation in ProductAccountMappingsApi.
|
|
1066
|
+
* @export
|
|
1067
|
+
* @interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest
|
|
1068
|
+
*/
|
|
1069
|
+
export interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest {
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @type {string}
|
|
1073
|
+
* @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
|
|
1074
|
+
*/
|
|
1075
|
+
readonly productCode: string
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @type {string}
|
|
1080
|
+
* @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
|
|
1081
|
+
*/
|
|
1082
|
+
readonly productVersionCode: string
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
|
|
1088
|
+
*/
|
|
1089
|
+
readonly authorization?: string
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Request parameters for listProductAccountMappings operation in ProductAccountMappingsApi.
|
|
1094
|
+
* @export
|
|
1095
|
+
* @interface ProductAccountMappingsApiListProductAccountMappingsRequest
|
|
1096
|
+
*/
|
|
1097
|
+
export interface ProductAccountMappingsApiListProductAccountMappingsRequest {
|
|
1098
|
+
/**
|
|
1099
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1100
|
+
* @type {string}
|
|
1101
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1102
|
+
*/
|
|
1103
|
+
readonly authorization?: string
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1107
|
+
* @type {number}
|
|
1108
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1109
|
+
*/
|
|
1110
|
+
readonly pageSize?: number
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1114
|
+
* @type {string}
|
|
1115
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1116
|
+
*/
|
|
1117
|
+
readonly pageToken?: string
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1121
|
+
* @type {string}
|
|
1122
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1123
|
+
*/
|
|
1124
|
+
readonly filter?: string
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1130
|
+
*/
|
|
1131
|
+
readonly search?: string
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
1135
|
+
* @type {string}
|
|
1136
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1137
|
+
*/
|
|
1138
|
+
readonly order?: string
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
1142
|
+
* @type {string}
|
|
1143
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1144
|
+
*/
|
|
1145
|
+
readonly expand?: string
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
1149
|
+
* @type {string}
|
|
1150
|
+
* @memberof ProductAccountMappingsApiListProductAccountMappings
|
|
1151
|
+
*/
|
|
1152
|
+
readonly filters?: string
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Request parameters for listProductsWithAccountMappings operation in ProductAccountMappingsApi.
|
|
1157
|
+
* @export
|
|
1158
|
+
* @interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest
|
|
1159
|
+
*/
|
|
1160
|
+
export interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest {
|
|
1161
|
+
/**
|
|
1162
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1163
|
+
* @type {string}
|
|
1164
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1165
|
+
*/
|
|
1166
|
+
readonly authorization?: string
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1170
|
+
* @type {number}
|
|
1171
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1172
|
+
*/
|
|
1173
|
+
readonly pageSize?: number
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1177
|
+
* @type {string}
|
|
1178
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1179
|
+
*/
|
|
1180
|
+
readonly pageToken?: string
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1184
|
+
* @type {string}
|
|
1185
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1186
|
+
*/
|
|
1187
|
+
readonly filter?: string
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
1191
|
+
* @type {string}
|
|
1192
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1193
|
+
*/
|
|
1194
|
+
readonly search?: string
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
1198
|
+
* @type {string}
|
|
1199
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1200
|
+
*/
|
|
1201
|
+
readonly order?: string
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
1205
|
+
* @type {string}
|
|
1206
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1207
|
+
*/
|
|
1208
|
+
readonly expand?: string
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof ProductAccountMappingsApiListProductsWithAccountMappings
|
|
1214
|
+
*/
|
|
1215
|
+
readonly filters?: string
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Request parameters for putPremiumItemAccount operation in ProductAccountMappingsApi.
|
|
1220
|
+
* @export
|
|
1221
|
+
* @interface ProductAccountMappingsApiPutPremiumItemAccountRequest
|
|
1222
|
+
*/
|
|
1223
|
+
export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
* @type {string}
|
|
1227
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1228
|
+
*/
|
|
1229
|
+
readonly productCode: string
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
*
|
|
1233
|
+
* @type {string}
|
|
1234
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1235
|
+
*/
|
|
1236
|
+
readonly productVersionCode: string
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @type {string}
|
|
1241
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1242
|
+
*/
|
|
1243
|
+
readonly premiumFormulaCode: string
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @type {string}
|
|
1248
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1249
|
+
*/
|
|
1250
|
+
readonly category: string
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
*
|
|
1254
|
+
* @type {PutPremiumItemAccountBodyDto}
|
|
1255
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1256
|
+
*/
|
|
1257
|
+
readonly putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1261
|
+
* @type {string}
|
|
1262
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemAccount
|
|
1263
|
+
*/
|
|
1264
|
+
readonly authorization?: string
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
|
|
1269
|
+
* @export
|
|
1270
|
+
* @interface ProductAccountMappingsApiPutProductCategoryAccountRequest
|
|
1271
|
+
*/
|
|
1272
|
+
export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
|
|
1273
|
+
/**
|
|
1274
|
+
*
|
|
1275
|
+
* @type {string}
|
|
1276
|
+
* @memberof ProductAccountMappingsApiPutProductCategoryAccount
|
|
1277
|
+
*/
|
|
1278
|
+
readonly productCode: string
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof ProductAccountMappingsApiPutProductCategoryAccount
|
|
1284
|
+
*/
|
|
1285
|
+
readonly category: string
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @type {PutProductCategoryAccountBodyDto}
|
|
1290
|
+
* @memberof ProductAccountMappingsApiPutProductCategoryAccount
|
|
1291
|
+
*/
|
|
1292
|
+
readonly putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1296
|
+
* @type {string}
|
|
1297
|
+
* @memberof ProductAccountMappingsApiPutProductCategoryAccount
|
|
1298
|
+
*/
|
|
1299
|
+
readonly authorization?: string
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
|
|
1304
|
+
* @export
|
|
1305
|
+
* @interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest
|
|
1306
|
+
*/
|
|
1307
|
+
export interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest {
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
|
|
1312
|
+
*/
|
|
1313
|
+
readonly productCode: string
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
*
|
|
1317
|
+
* @type {string}
|
|
1318
|
+
* @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
|
|
1319
|
+
*/
|
|
1320
|
+
readonly productVersionCode: string
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
|
|
1326
|
+
*/
|
|
1327
|
+
readonly category: string
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @type {PutProductVersionCategoryAccountBodyDto}
|
|
1332
|
+
* @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
|
|
1333
|
+
*/
|
|
1334
|
+
readonly putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1338
|
+
* @type {string}
|
|
1339
|
+
* @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
|
|
1340
|
+
*/
|
|
1341
|
+
readonly authorization?: string
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* ProductAccountMappingsApi - object-oriented interface
|
|
1346
|
+
* @export
|
|
1347
|
+
* @class ProductAccountMappingsApi
|
|
1348
|
+
* @extends {BaseAPI}
|
|
1349
|
+
*/
|
|
1350
|
+
export class ProductAccountMappingsApi extends BaseAPI {
|
|
1351
|
+
/**
|
|
1352
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1353
|
+
* @summary Delete the Premium Item Account
|
|
1354
|
+
* @param {ProductAccountMappingsApiDeletePremiumItemAccountRequest} requestParameters Request parameters.
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
* @memberof ProductAccountMappingsApi
|
|
1358
|
+
*/
|
|
1359
|
+
public deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig) {
|
|
1360
|
+
return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1365
|
+
* @summary Delete the Product Category Account
|
|
1366
|
+
* @param {ProductAccountMappingsApiDeleteProductCategoryAccountRequest} requestParameters Request parameters.
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
* @memberof ProductAccountMappingsApi
|
|
1370
|
+
*/
|
|
1371
|
+
public deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1372
|
+
return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1377
|
+
* @summary Delete the Product Version Category Account
|
|
1378
|
+
* @param {ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest} requestParameters Request parameters.
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
* @memberof ProductAccountMappingsApi
|
|
1382
|
+
*/
|
|
1383
|
+
public deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1384
|
+
return ProductAccountMappingsApiFp(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1389
|
+
* @summary Retrieve the Product Account Mapping
|
|
1390
|
+
* @param {ProductAccountMappingsApiGetProductAccountMappingRequest} requestParameters Request parameters.
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
* @memberof ProductAccountMappingsApi
|
|
1394
|
+
*/
|
|
1395
|
+
public getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1396
|
+
return ProductAccountMappingsApiFp(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1401
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
1402
|
+
* @param {ProductAccountMappingsApiGetProductVersionAccountMappingRequest} requestParameters Request parameters.
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
* @memberof ProductAccountMappingsApi
|
|
1406
|
+
*/
|
|
1407
|
+
public getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1408
|
+
return ProductAccountMappingsApiFp(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1413
|
+
* @summary List Product Account Mappings
|
|
1414
|
+
* @param {ProductAccountMappingsApiListProductAccountMappingsRequest} requestParameters Request parameters.
|
|
1415
|
+
* @param {*} [options] Override http request option.
|
|
1416
|
+
* @throws {RequiredError}
|
|
1417
|
+
* @memberof ProductAccountMappingsApi
|
|
1418
|
+
*/
|
|
1419
|
+
public listProductAccountMappings(requestParameters: ProductAccountMappingsApiListProductAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1420
|
+
return ProductAccountMappingsApiFp(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1425
|
+
* @summary List Products With Account Mappings
|
|
1426
|
+
* @param {ProductAccountMappingsApiListProductsWithAccountMappingsRequest} requestParameters Request parameters.
|
|
1427
|
+
* @param {*} [options] Override http request option.
|
|
1428
|
+
* @throws {RequiredError}
|
|
1429
|
+
* @memberof ProductAccountMappingsApi
|
|
1430
|
+
*/
|
|
1431
|
+
public listProductsWithAccountMappings(requestParameters: ProductAccountMappingsApiListProductsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1432
|
+
return ProductAccountMappingsApiFp(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1437
|
+
* @summary Update the Premium Item Account
|
|
1438
|
+
* @param {ProductAccountMappingsApiPutPremiumItemAccountRequest} requestParameters Request parameters.
|
|
1439
|
+
* @param {*} [options] Override http request option.
|
|
1440
|
+
* @throws {RequiredError}
|
|
1441
|
+
* @memberof ProductAccountMappingsApi
|
|
1442
|
+
*/
|
|
1443
|
+
public putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig) {
|
|
1444
|
+
return ProductAccountMappingsApiFp(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1449
|
+
* @summary Update the Product Category Account
|
|
1450
|
+
* @param {ProductAccountMappingsApiPutProductCategoryAccountRequest} requestParameters Request parameters.
|
|
1451
|
+
* @param {*} [options] Override http request option.
|
|
1452
|
+
* @throws {RequiredError}
|
|
1453
|
+
* @memberof ProductAccountMappingsApi
|
|
1454
|
+
*/
|
|
1455
|
+
public putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1456
|
+
return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1461
|
+
* @summary Update the Product Version Category Account
|
|
1462
|
+
* @param {ProductAccountMappingsApiPutProductVersionCategoryAccountRequest} requestParameters Request parameters.
|
|
1463
|
+
* @param {*} [options] Override http request option.
|
|
1464
|
+
* @throws {RequiredError}
|
|
1465
|
+
* @memberof ProductAccountMappingsApi
|
|
1466
|
+
*/
|
|
1467
|
+
public putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1468
|
+
return ProductAccountMappingsApiFp(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1469
|
+
}
|
|
1470
|
+
}
|