@emilgroup/accounting-sdk 1.34.1-beta.113 → 1.34.1-beta.114
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 +1 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +64 -24
- package/api/booking-entries-api.ts +40 -15
- package/api/commission-account-mappings-api.ts +64 -24
- package/api/financial-accounts-api.ts +40 -15
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +377 -36
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +120 -64
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +67 -38
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +108 -61
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +67 -38
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +168 -12
- package/dist/api/product-account-mappings-api.js +401 -94
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +3 -2
- package/dist/models/account-mapping-class.js +4 -3
- package/dist/models/accounting-category-class.d.ts +12 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +3 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +4 -3
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
- package/dist/models/create-booking-entry-request-dto.js +0 -6
- package/dist/models/create-financial-account-request-dto.d.ts +3 -2
- package/dist/models/create-financial-account-request-dto.js +4 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +12 -0
- package/dist/models/put-premium-item-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-carrier-body-dto.js +15 -0
- package/models/account-mapping-class.ts +4 -3
- package/models/accounting-category-class.ts +12 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +4 -3
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/models/create-financial-account-request-dto.ts +4 -3
- package/models/index.ts +1 -0
- package/models/premium-item-account-mapping-class.ts +12 -0
- package/models/put-premium-item-carrier-body-dto.ts +30 -0
- package/package.json +2 -2
|
@@ -106,9 +106,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
106
106
|
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
107
107
|
if (options === void 0) { options = {}; }
|
|
108
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
110
|
+
var _a;
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
switch (_b.label) {
|
|
112
113
|
case 0:
|
|
113
114
|
// verify required parameter 'productCode' is not null or undefined
|
|
114
115
|
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
|
|
@@ -133,13 +134,82 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
133
134
|
localVarQueryParameter = {};
|
|
134
135
|
// authentication bearer required
|
|
135
136
|
// http bearer authentication required
|
|
136
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
137
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
138
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
139
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
140
|
+
];
|
|
137
141
|
case 1:
|
|
138
142
|
// authentication bearer required
|
|
139
143
|
// http bearer authentication required
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
_b.sent();
|
|
145
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
146
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
147
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
148
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
149
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
150
|
+
}
|
|
151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
return [2 /*return*/, {
|
|
155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
}];
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
164
|
+
* @summary Delete the Premium Item Carrier
|
|
165
|
+
* @param {string} productCode
|
|
166
|
+
* @param {string} productVersionCode
|
|
167
|
+
* @param {string} premiumFormulaCode
|
|
168
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
|
|
173
|
+
if (options === void 0) { options = {}; }
|
|
174
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
176
|
+
var _a;
|
|
177
|
+
return __generator(this, function (_b) {
|
|
178
|
+
switch (_b.label) {
|
|
179
|
+
case 0:
|
|
180
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
181
|
+
(0, common_1.assertParamExists)('deletePremiumItemCarrier', 'productCode', productCode);
|
|
182
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('deletePremiumItemCarrier', 'productVersionCode', productVersionCode);
|
|
184
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
185
|
+
(0, common_1.assertParamExists)('deletePremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode);
|
|
186
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier"
|
|
187
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
188
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
189
|
+
.replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)));
|
|
190
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
191
|
+
if (configuration) {
|
|
192
|
+
baseOptions = configuration.baseOptions;
|
|
193
|
+
baseAccessToken = configuration.accessToken;
|
|
194
|
+
}
|
|
195
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
196
|
+
localVarHeaderParameter = {};
|
|
197
|
+
localVarQueryParameter = {};
|
|
198
|
+
// authentication bearer required
|
|
199
|
+
// http bearer authentication required
|
|
200
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
201
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
202
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
203
|
+
];
|
|
204
|
+
case 1:
|
|
205
|
+
// authentication bearer required
|
|
206
|
+
// http bearer authentication required
|
|
207
|
+
_b.sent();
|
|
208
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
209
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
210
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
211
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
143
213
|
}
|
|
144
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
215
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -164,9 +234,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
164
234
|
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
165
235
|
if (options === void 0) { options = {}; }
|
|
166
236
|
return __awaiter(_this, void 0, void 0, function () {
|
|
167
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
-
|
|
169
|
-
|
|
237
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
238
|
+
var _a;
|
|
239
|
+
return __generator(this, function (_b) {
|
|
240
|
+
switch (_b.label) {
|
|
170
241
|
case 0:
|
|
171
242
|
// verify required parameter 'productCode' is not null or undefined
|
|
172
243
|
(0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
|
|
@@ -185,13 +256,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
185
256
|
localVarQueryParameter = {};
|
|
186
257
|
// authentication bearer required
|
|
187
258
|
// http bearer authentication required
|
|
188
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
259
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
260
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
261
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
262
|
+
];
|
|
189
263
|
case 1:
|
|
190
264
|
// authentication bearer required
|
|
191
265
|
// http bearer authentication required
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
266
|
+
_b.sent();
|
|
267
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
268
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
269
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
270
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
271
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
272
|
}
|
|
196
273
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
197
274
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -215,9 +292,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
215
292
|
deleteProductRiskCarrier: function (productCode, authorization, options) {
|
|
216
293
|
if (options === void 0) { options = {}; }
|
|
217
294
|
return __awaiter(_this, void 0, void 0, function () {
|
|
218
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
219
|
-
|
|
220
|
-
|
|
295
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
296
|
+
var _a;
|
|
297
|
+
return __generator(this, function (_b) {
|
|
298
|
+
switch (_b.label) {
|
|
221
299
|
case 0:
|
|
222
300
|
// verify required parameter 'productCode' is not null or undefined
|
|
223
301
|
(0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
|
|
@@ -233,13 +311,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
233
311
|
localVarQueryParameter = {};
|
|
234
312
|
// authentication bearer required
|
|
235
313
|
// http bearer authentication required
|
|
236
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
314
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
315
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
316
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
317
|
+
];
|
|
237
318
|
case 1:
|
|
238
319
|
// authentication bearer required
|
|
239
320
|
// http bearer authentication required
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
321
|
+
_b.sent();
|
|
322
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
323
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
324
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
325
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
326
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
243
327
|
}
|
|
244
328
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
329
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -265,9 +349,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
265
349
|
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
266
350
|
if (options === void 0) { options = {}; }
|
|
267
351
|
return __awaiter(_this, void 0, void 0, function () {
|
|
268
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
269
|
-
|
|
270
|
-
|
|
352
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
353
|
+
var _a;
|
|
354
|
+
return __generator(this, function (_b) {
|
|
355
|
+
switch (_b.label) {
|
|
271
356
|
case 0:
|
|
272
357
|
// verify required parameter 'productCode' is not null or undefined
|
|
273
358
|
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -289,13 +374,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
289
374
|
localVarQueryParameter = {};
|
|
290
375
|
// authentication bearer required
|
|
291
376
|
// http bearer authentication required
|
|
292
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
377
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
378
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
379
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
380
|
+
];
|
|
293
381
|
case 1:
|
|
294
382
|
// authentication bearer required
|
|
295
383
|
// http bearer authentication required
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
384
|
+
_b.sent();
|
|
385
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
386
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
387
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
388
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
389
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
299
390
|
}
|
|
300
391
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
301
392
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -319,9 +410,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
319
410
|
getProductAccountMapping: function (productCode, authorization, options) {
|
|
320
411
|
if (options === void 0) { options = {}; }
|
|
321
412
|
return __awaiter(_this, void 0, void 0, function () {
|
|
322
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
323
|
-
|
|
324
|
-
|
|
413
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
414
|
+
var _a;
|
|
415
|
+
return __generator(this, function (_b) {
|
|
416
|
+
switch (_b.label) {
|
|
325
417
|
case 0:
|
|
326
418
|
// verify required parameter 'productCode' is not null or undefined
|
|
327
419
|
(0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
|
|
@@ -337,13 +429,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
337
429
|
localVarQueryParameter = {};
|
|
338
430
|
// authentication bearer required
|
|
339
431
|
// http bearer authentication required
|
|
340
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
432
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
433
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
434
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
435
|
+
];
|
|
341
436
|
case 1:
|
|
342
437
|
// authentication bearer required
|
|
343
438
|
// http bearer authentication required
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
439
|
+
_b.sent();
|
|
440
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
441
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
442
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
443
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
444
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
347
445
|
}
|
|
348
446
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
447
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -368,9 +466,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
368
466
|
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
369
467
|
if (options === void 0) { options = {}; }
|
|
370
468
|
return __awaiter(_this, void 0, void 0, function () {
|
|
371
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
372
|
-
|
|
373
|
-
|
|
469
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
470
|
+
var _a;
|
|
471
|
+
return __generator(this, function (_b) {
|
|
472
|
+
switch (_b.label) {
|
|
374
473
|
case 0:
|
|
375
474
|
// verify required parameter 'productCode' is not null or undefined
|
|
376
475
|
(0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
|
|
@@ -389,13 +488,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
389
488
|
localVarQueryParameter = {};
|
|
390
489
|
// authentication bearer required
|
|
391
490
|
// http bearer authentication required
|
|
392
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
491
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
492
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
493
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
494
|
+
];
|
|
393
495
|
case 1:
|
|
394
496
|
// authentication bearer required
|
|
395
497
|
// http bearer authentication required
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
498
|
+
_b.sent();
|
|
499
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
500
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
501
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
502
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
503
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
399
504
|
}
|
|
400
505
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
401
506
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -425,9 +530,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
425
530
|
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
426
531
|
if (options === void 0) { options = {}; }
|
|
427
532
|
return __awaiter(_this, void 0, void 0, function () {
|
|
428
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
429
|
-
|
|
430
|
-
|
|
533
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
534
|
+
var _a;
|
|
535
|
+
return __generator(this, function (_b) {
|
|
536
|
+
switch (_b.label) {
|
|
431
537
|
case 0:
|
|
432
538
|
localVarPath = "/accountingservice/v1/product-account-mappings";
|
|
433
539
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -444,7 +550,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
444
550
|
case 1:
|
|
445
551
|
// authentication bearer required
|
|
446
552
|
// http bearer authentication required
|
|
447
|
-
|
|
553
|
+
_b.sent();
|
|
448
554
|
if (pageSize !== undefined) {
|
|
449
555
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
450
556
|
}
|
|
@@ -466,8 +572,11 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
466
572
|
if (filters !== undefined) {
|
|
467
573
|
localVarQueryParameter['filters'] = filters;
|
|
468
574
|
}
|
|
469
|
-
|
|
470
|
-
|
|
575
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
576
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
577
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
578
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
579
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
471
580
|
}
|
|
472
581
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
473
582
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -497,9 +606,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
497
606
|
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
498
607
|
if (options === void 0) { options = {}; }
|
|
499
608
|
return __awaiter(_this, void 0, void 0, function () {
|
|
500
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
501
|
-
|
|
502
|
-
|
|
609
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
610
|
+
var _a;
|
|
611
|
+
return __generator(this, function (_b) {
|
|
612
|
+
switch (_b.label) {
|
|
503
613
|
case 0:
|
|
504
614
|
localVarPath = "/accountingservice/v1/product-account-mappings/products";
|
|
505
615
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -516,7 +626,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
516
626
|
case 1:
|
|
517
627
|
// authentication bearer required
|
|
518
628
|
// http bearer authentication required
|
|
519
|
-
|
|
629
|
+
_b.sent();
|
|
520
630
|
if (pageSize !== undefined) {
|
|
521
631
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
522
632
|
}
|
|
@@ -538,8 +648,11 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
538
648
|
if (filters !== undefined) {
|
|
539
649
|
localVarQueryParameter['filters'] = filters;
|
|
540
650
|
}
|
|
541
|
-
|
|
542
|
-
|
|
651
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
652
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
653
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
654
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
655
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
543
656
|
}
|
|
544
657
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
545
658
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -567,9 +680,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
567
680
|
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
568
681
|
if (options === void 0) { options = {}; }
|
|
569
682
|
return __awaiter(_this, void 0, void 0, function () {
|
|
570
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
571
|
-
|
|
572
|
-
|
|
683
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
684
|
+
var _a;
|
|
685
|
+
return __generator(this, function (_b) {
|
|
686
|
+
switch (_b.label) {
|
|
573
687
|
case 0:
|
|
574
688
|
// verify required parameter 'productCode' is not null or undefined
|
|
575
689
|
(0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
|
|
@@ -596,13 +710,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
596
710
|
localVarQueryParameter = {};
|
|
597
711
|
// authentication bearer required
|
|
598
712
|
// http bearer authentication required
|
|
599
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
713
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
714
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
715
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
716
|
+
];
|
|
600
717
|
case 1:
|
|
601
718
|
// authentication bearer required
|
|
602
719
|
// http bearer authentication required
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
720
|
+
_b.sent();
|
|
721
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
722
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
723
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
724
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
725
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
606
726
|
}
|
|
607
727
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
608
728
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -617,6 +737,74 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
617
737
|
});
|
|
618
738
|
});
|
|
619
739
|
},
|
|
740
|
+
/**
|
|
741
|
+
* Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
742
|
+
* @summary Update the Premium Item Carrier
|
|
743
|
+
* @param {string} productCode
|
|
744
|
+
* @param {string} productVersionCode
|
|
745
|
+
* @param {string} premiumFormulaCode
|
|
746
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
747
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
|
|
752
|
+
if (options === void 0) { options = {}; }
|
|
753
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
754
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
755
|
+
var _a;
|
|
756
|
+
return __generator(this, function (_b) {
|
|
757
|
+
switch (_b.label) {
|
|
758
|
+
case 0:
|
|
759
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
760
|
+
(0, common_1.assertParamExists)('putPremiumItemCarrier', 'productCode', productCode);
|
|
761
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
762
|
+
(0, common_1.assertParamExists)('putPremiumItemCarrier', 'productVersionCode', productVersionCode);
|
|
763
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
764
|
+
(0, common_1.assertParamExists)('putPremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode);
|
|
765
|
+
// verify required parameter 'putPremiumItemCarrierBodyDto' is not null or undefined
|
|
766
|
+
(0, common_1.assertParamExists)('putPremiumItemCarrier', 'putPremiumItemCarrierBodyDto', putPremiumItemCarrierBodyDto);
|
|
767
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier"
|
|
768
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
769
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
770
|
+
.replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)));
|
|
771
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
772
|
+
if (configuration) {
|
|
773
|
+
baseOptions = configuration.baseOptions;
|
|
774
|
+
baseAccessToken = configuration.accessToken;
|
|
775
|
+
}
|
|
776
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
777
|
+
localVarHeaderParameter = {};
|
|
778
|
+
localVarQueryParameter = {};
|
|
779
|
+
// authentication bearer required
|
|
780
|
+
// http bearer authentication required
|
|
781
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
782
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
783
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
784
|
+
];
|
|
785
|
+
case 1:
|
|
786
|
+
// authentication bearer required
|
|
787
|
+
// http bearer authentication required
|
|
788
|
+
_b.sent();
|
|
789
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
790
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
791
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
792
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
793
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
794
|
+
}
|
|
795
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
796
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
797
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
799
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putPremiumItemCarrierBodyDto, localVarRequestOptions, configuration);
|
|
800
|
+
return [2 /*return*/, {
|
|
801
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
802
|
+
options: localVarRequestOptions,
|
|
803
|
+
}];
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
},
|
|
620
808
|
/**
|
|
621
809
|
* 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\"
|
|
622
810
|
* @summary Update the Product Category Account
|
|
@@ -630,9 +818,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
630
818
|
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
631
819
|
if (options === void 0) { options = {}; }
|
|
632
820
|
return __awaiter(_this, void 0, void 0, function () {
|
|
633
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
634
|
-
|
|
635
|
-
|
|
821
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
822
|
+
var _a;
|
|
823
|
+
return __generator(this, function (_b) {
|
|
824
|
+
switch (_b.label) {
|
|
636
825
|
case 0:
|
|
637
826
|
// verify required parameter 'productCode' is not null or undefined
|
|
638
827
|
(0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
|
|
@@ -653,13 +842,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
653
842
|
localVarQueryParameter = {};
|
|
654
843
|
// authentication bearer required
|
|
655
844
|
// http bearer authentication required
|
|
656
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
845
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
846
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
847
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
848
|
+
];
|
|
657
849
|
case 1:
|
|
658
850
|
// authentication bearer required
|
|
659
851
|
// http bearer authentication required
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
852
|
+
_b.sent();
|
|
853
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
854
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
855
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
856
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
857
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
663
858
|
}
|
|
664
859
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
665
860
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -686,9 +881,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
686
881
|
putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
|
|
687
882
|
if (options === void 0) { options = {}; }
|
|
688
883
|
return __awaiter(_this, void 0, void 0, function () {
|
|
689
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
690
|
-
|
|
691
|
-
|
|
884
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
885
|
+
var _a;
|
|
886
|
+
return __generator(this, function (_b) {
|
|
887
|
+
switch (_b.label) {
|
|
692
888
|
case 0:
|
|
693
889
|
// verify required parameter 'productCode' is not null or undefined
|
|
694
890
|
(0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
|
|
@@ -706,13 +902,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
706
902
|
localVarQueryParameter = {};
|
|
707
903
|
// authentication bearer required
|
|
708
904
|
// http bearer authentication required
|
|
709
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
905
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
906
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
907
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
908
|
+
];
|
|
710
909
|
case 1:
|
|
711
910
|
// authentication bearer required
|
|
712
911
|
// http bearer authentication required
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
912
|
+
_b.sent();
|
|
913
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
914
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
915
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
916
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
917
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
716
918
|
}
|
|
717
919
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
718
920
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -741,9 +943,10 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
741
943
|
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
742
944
|
if (options === void 0) { options = {}; }
|
|
743
945
|
return __awaiter(_this, void 0, void 0, function () {
|
|
744
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
745
|
-
|
|
746
|
-
|
|
946
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
947
|
+
var _a;
|
|
948
|
+
return __generator(this, function (_b) {
|
|
949
|
+
switch (_b.label) {
|
|
747
950
|
case 0:
|
|
748
951
|
// verify required parameter 'productCode' is not null or undefined
|
|
749
952
|
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
|
|
@@ -767,13 +970,19 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
767
970
|
localVarQueryParameter = {};
|
|
768
971
|
// authentication bearer required
|
|
769
972
|
// http bearer authentication required
|
|
770
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
973
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
974
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
975
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
976
|
+
];
|
|
771
977
|
case 1:
|
|
772
978
|
// authentication bearer required
|
|
773
979
|
// http bearer authentication required
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
980
|
+
_b.sent();
|
|
981
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
982
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
983
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
984
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
985
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
777
986
|
}
|
|
778
987
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
779
988
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -822,6 +1031,29 @@ var ProductAccountMappingsApiFp = function (configuration) {
|
|
|
822
1031
|
});
|
|
823
1032
|
});
|
|
824
1033
|
},
|
|
1034
|
+
/**
|
|
1035
|
+
* Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1036
|
+
* @summary Delete the Premium Item Carrier
|
|
1037
|
+
* @param {string} productCode
|
|
1038
|
+
* @param {string} productVersionCode
|
|
1039
|
+
* @param {string} premiumFormulaCode
|
|
1040
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
|
|
1045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1046
|
+
var localVarAxiosArgs;
|
|
1047
|
+
return __generator(this, function (_a) {
|
|
1048
|
+
switch (_a.label) {
|
|
1049
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options)];
|
|
1050
|
+
case 1:
|
|
1051
|
+
localVarAxiosArgs = _a.sent();
|
|
1052
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
},
|
|
825
1057
|
/**
|
|
826
1058
|
* 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\"
|
|
827
1059
|
* @summary Delete the Product Category Account
|
|
@@ -1010,6 +1242,30 @@ var ProductAccountMappingsApiFp = function (configuration) {
|
|
|
1010
1242
|
});
|
|
1011
1243
|
});
|
|
1012
1244
|
},
|
|
1245
|
+
/**
|
|
1246
|
+
* Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1247
|
+
* @summary Update the Premium Item Carrier
|
|
1248
|
+
* @param {string} productCode
|
|
1249
|
+
* @param {string} productVersionCode
|
|
1250
|
+
* @param {string} premiumFormulaCode
|
|
1251
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
1252
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1253
|
+
* @param {*} [options] Override http request option.
|
|
1254
|
+
* @throws {RequiredError}
|
|
1255
|
+
*/
|
|
1256
|
+
putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
|
|
1257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1258
|
+
var localVarAxiosArgs;
|
|
1259
|
+
return __generator(this, function (_a) {
|
|
1260
|
+
switch (_a.label) {
|
|
1261
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options)];
|
|
1262
|
+
case 1:
|
|
1263
|
+
localVarAxiosArgs = _a.sent();
|
|
1264
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1267
|
+
});
|
|
1268
|
+
},
|
|
1013
1269
|
/**
|
|
1014
1270
|
* 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\"
|
|
1015
1271
|
* @summary Update the Product Category Account
|
|
@@ -1103,6 +1359,19 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
|
|
|
1103
1359
|
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
1104
1360
|
return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1105
1361
|
},
|
|
1362
|
+
/**
|
|
1363
|
+
* Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1364
|
+
* @summary Delete the Premium Item Carrier
|
|
1365
|
+
* @param {string} productCode
|
|
1366
|
+
* @param {string} productVersionCode
|
|
1367
|
+
* @param {string} premiumFormulaCode
|
|
1368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
*/
|
|
1372
|
+
deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
|
|
1373
|
+
return localVarFp.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1374
|
+
},
|
|
1106
1375
|
/**
|
|
1107
1376
|
* 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\"
|
|
1108
1377
|
* @summary Delete the Product Category Account
|
|
@@ -1211,6 +1480,20 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
|
|
|
1211
1480
|
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
1212
1481
|
return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1213
1482
|
},
|
|
1483
|
+
/**
|
|
1484
|
+
* Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1485
|
+
* @summary Update the Premium Item Carrier
|
|
1486
|
+
* @param {string} productCode
|
|
1487
|
+
* @param {string} productVersionCode
|
|
1488
|
+
* @param {string} premiumFormulaCode
|
|
1489
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
1490
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
|
|
1495
|
+
return localVarFp.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1496
|
+
},
|
|
1214
1497
|
/**
|
|
1215
1498
|
* 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\"
|
|
1216
1499
|
* @summary Update the Product Category Account
|
|
@@ -1274,7 +1557,19 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1274
1557
|
*/
|
|
1275
1558
|
ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
|
|
1276
1559
|
var _this = this;
|
|
1277
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1560
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1561
|
+
};
|
|
1562
|
+
/**
|
|
1563
|
+
* Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1564
|
+
* @summary Delete the Premium Item Carrier
|
|
1565
|
+
* @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
* @memberof ProductAccountMappingsApi
|
|
1569
|
+
*/
|
|
1570
|
+
ProductAccountMappingsApi.prototype.deletePremiumItemCarrier = function (requestParameters, options) {
|
|
1571
|
+
var _this = this;
|
|
1572
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1278
1573
|
};
|
|
1279
1574
|
/**
|
|
1280
1575
|
* 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\"
|
|
@@ -1286,7 +1581,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1286
1581
|
*/
|
|
1287
1582
|
ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
|
|
1288
1583
|
var _this = this;
|
|
1289
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1584
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1290
1585
|
};
|
|
1291
1586
|
/**
|
|
1292
1587
|
* Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -1298,7 +1593,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1298
1593
|
*/
|
|
1299
1594
|
ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
|
|
1300
1595
|
var _this = this;
|
|
1301
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1596
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1302
1597
|
};
|
|
1303
1598
|
/**
|
|
1304
1599
|
* 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\"
|
|
@@ -1310,7 +1605,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1310
1605
|
*/
|
|
1311
1606
|
ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1312
1607
|
var _this = this;
|
|
1313
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1608
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1314
1609
|
};
|
|
1315
1610
|
/**
|
|
1316
1611
|
* 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\"
|
|
@@ -1322,7 +1617,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1322
1617
|
*/
|
|
1323
1618
|
ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
|
|
1324
1619
|
var _this = this;
|
|
1325
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1620
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1326
1621
|
};
|
|
1327
1622
|
/**
|
|
1328
1623
|
* 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\"
|
|
@@ -1334,7 +1629,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1334
1629
|
*/
|
|
1335
1630
|
ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
|
|
1336
1631
|
var _this = this;
|
|
1337
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1632
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1338
1633
|
};
|
|
1339
1634
|
/**
|
|
1340
1635
|
* 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\"
|
|
@@ -1347,7 +1642,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1347
1642
|
ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
|
|
1348
1643
|
var _this = this;
|
|
1349
1644
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1350
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1645
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1351
1646
|
};
|
|
1352
1647
|
/**
|
|
1353
1648
|
* 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\"
|
|
@@ -1360,7 +1655,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1360
1655
|
ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
|
|
1361
1656
|
var _this = this;
|
|
1362
1657
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1363
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1658
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1364
1659
|
};
|
|
1365
1660
|
/**
|
|
1366
1661
|
* 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\"
|
|
@@ -1372,7 +1667,19 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1372
1667
|
*/
|
|
1373
1668
|
ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
|
|
1374
1669
|
var _this = this;
|
|
1375
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1670
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1671
|
+
};
|
|
1672
|
+
/**
|
|
1673
|
+
* Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1674
|
+
* @summary Update the Premium Item Carrier
|
|
1675
|
+
* @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
* @memberof ProductAccountMappingsApi
|
|
1679
|
+
*/
|
|
1680
|
+
ProductAccountMappingsApi.prototype.putPremiumItemCarrier = function (requestParameters, options) {
|
|
1681
|
+
var _this = this;
|
|
1682
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.putPremiumItemCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1376
1683
|
};
|
|
1377
1684
|
/**
|
|
1378
1685
|
* 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\"
|
|
@@ -1384,7 +1691,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1384
1691
|
*/
|
|
1385
1692
|
ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
|
|
1386
1693
|
var _this = this;
|
|
1387
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1694
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1388
1695
|
};
|
|
1389
1696
|
/**
|
|
1390
1697
|
* Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -1396,7 +1703,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1396
1703
|
*/
|
|
1397
1704
|
ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
|
|
1398
1705
|
var _this = this;
|
|
1399
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1706
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1400
1707
|
};
|
|
1401
1708
|
/**
|
|
1402
1709
|
* 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\"
|
|
@@ -1408,7 +1715,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1408
1715
|
*/
|
|
1409
1716
|
ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1410
1717
|
var _this = this;
|
|
1411
|
-
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1718
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1412
1719
|
};
|
|
1413
1720
|
return ProductAccountMappingsApi;
|
|
1414
1721
|
}(base_1.BaseAPI));
|