@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
|
@@ -35,6 +35,8 @@ import { ProductVersionAccountMappingDetailClass } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { PutPremiumItemAccountBodyDto } from '../models';
|
|
37
37
|
// @ts-ignore
|
|
38
|
+
import { PutPremiumItemCarrierBodyDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
38
40
|
import { PutProductCategoryAccountBodyDto } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
import { PutProductRiskCarrierBodyDto } from '../models';
|
|
@@ -90,8 +92,71 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
90
92
|
// http bearer authentication required
|
|
91
93
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
92
94
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
96
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
97
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
98
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
99
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
100
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
101
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
url: toPathString(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* 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\"
|
|
117
|
+
* @summary Delete the Premium Item Carrier
|
|
118
|
+
* @param {string} productCode
|
|
119
|
+
* @param {string} productVersionCode
|
|
120
|
+
* @param {string} premiumFormulaCode
|
|
121
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
deletePremiumItemCarrier: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
126
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
127
|
+
assertParamExists('deletePremiumItemCarrier', 'productCode', productCode)
|
|
128
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
129
|
+
assertParamExists('deletePremiumItemCarrier', 'productVersionCode', productVersionCode)
|
|
130
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
131
|
+
assertParamExists('deletePremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode)
|
|
132
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier`
|
|
133
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
134
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
135
|
+
.replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)));
|
|
136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
|
+
let baseOptions;
|
|
139
|
+
let baseAccessToken;
|
|
140
|
+
if (configuration) {
|
|
141
|
+
baseOptions = configuration.baseOptions;
|
|
142
|
+
baseAccessToken = configuration.accessToken;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
146
|
+
const localVarHeaderParameter = {} as any;
|
|
147
|
+
const localVarQueryParameter = {} as any;
|
|
148
|
+
|
|
149
|
+
// authentication bearer required
|
|
150
|
+
// http bearer authentication required
|
|
151
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
152
|
+
|
|
153
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
154
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
155
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
156
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
157
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
158
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
159
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
95
160
|
}
|
|
96
161
|
|
|
97
162
|
|
|
@@ -139,8 +204,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
139
204
|
// http bearer authentication required
|
|
140
205
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
141
206
|
|
|
142
|
-
|
|
143
|
-
|
|
207
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
208
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
209
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
210
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
211
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
212
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
213
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
144
214
|
}
|
|
145
215
|
|
|
146
216
|
|
|
@@ -184,8 +254,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
184
254
|
// http bearer authentication required
|
|
185
255
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
186
256
|
|
|
187
|
-
|
|
188
|
-
|
|
257
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
258
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
259
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
260
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
261
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
262
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
189
264
|
}
|
|
190
265
|
|
|
191
266
|
|
|
@@ -237,8 +312,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
237
312
|
// http bearer authentication required
|
|
238
313
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
239
314
|
|
|
240
|
-
|
|
241
|
-
|
|
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
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
318
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
319
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
320
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
321
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
242
322
|
}
|
|
243
323
|
|
|
244
324
|
|
|
@@ -282,8 +362,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
282
362
|
// http bearer authentication required
|
|
283
363
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
284
364
|
|
|
285
|
-
|
|
286
|
-
|
|
365
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
366
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
367
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
368
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
369
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
370
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
287
372
|
}
|
|
288
373
|
|
|
289
374
|
|
|
@@ -331,8 +416,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
331
416
|
// http bearer authentication required
|
|
332
417
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
333
418
|
|
|
334
|
-
|
|
335
|
-
|
|
419
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
420
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
421
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
422
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
423
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
424
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
425
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
336
426
|
}
|
|
337
427
|
|
|
338
428
|
|
|
@@ -407,8 +497,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
407
497
|
localVarQueryParameter['filters'] = filters;
|
|
408
498
|
}
|
|
409
499
|
|
|
410
|
-
|
|
411
|
-
|
|
500
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
501
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
502
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
503
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
504
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
505
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
506
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
412
507
|
}
|
|
413
508
|
|
|
414
509
|
|
|
@@ -483,8 +578,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
483
578
|
localVarQueryParameter['filters'] = filters;
|
|
484
579
|
}
|
|
485
580
|
|
|
486
|
-
|
|
487
|
-
|
|
581
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
582
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
583
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
584
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
585
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
586
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
587
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
488
588
|
}
|
|
489
589
|
|
|
490
590
|
|
|
@@ -543,8 +643,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
543
643
|
// http bearer authentication required
|
|
544
644
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
545
645
|
|
|
546
|
-
|
|
547
|
-
|
|
646
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
647
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
648
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
649
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
650
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
651
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
652
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
548
653
|
}
|
|
549
654
|
|
|
550
655
|
|
|
@@ -561,6 +666,70 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
561
666
|
options: localVarRequestOptions,
|
|
562
667
|
};
|
|
563
668
|
},
|
|
669
|
+
/**
|
|
670
|
+
* 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\"
|
|
671
|
+
* @summary Update the Premium Item Carrier
|
|
672
|
+
* @param {string} productCode
|
|
673
|
+
* @param {string} productVersionCode
|
|
674
|
+
* @param {string} premiumFormulaCode
|
|
675
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
676
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
putPremiumItemCarrier: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
681
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
682
|
+
assertParamExists('putPremiumItemCarrier', 'productCode', productCode)
|
|
683
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
684
|
+
assertParamExists('putPremiumItemCarrier', 'productVersionCode', productVersionCode)
|
|
685
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
686
|
+
assertParamExists('putPremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode)
|
|
687
|
+
// verify required parameter 'putPremiumItemCarrierBodyDto' is not null or undefined
|
|
688
|
+
assertParamExists('putPremiumItemCarrier', 'putPremiumItemCarrierBodyDto', putPremiumItemCarrierBodyDto)
|
|
689
|
+
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier`
|
|
690
|
+
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
|
|
691
|
+
.replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
|
|
692
|
+
.replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)));
|
|
693
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
694
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
695
|
+
let baseOptions;
|
|
696
|
+
let baseAccessToken;
|
|
697
|
+
if (configuration) {
|
|
698
|
+
baseOptions = configuration.baseOptions;
|
|
699
|
+
baseAccessToken = configuration.accessToken;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
703
|
+
const localVarHeaderParameter = {} as any;
|
|
704
|
+
const localVarQueryParameter = {} as any;
|
|
705
|
+
|
|
706
|
+
// authentication bearer required
|
|
707
|
+
// http bearer authentication required
|
|
708
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
709
|
+
|
|
710
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
711
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
712
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
713
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
714
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
715
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
716
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
722
|
+
|
|
723
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
726
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putPremiumItemCarrierBodyDto, localVarRequestOptions, configuration)
|
|
727
|
+
|
|
728
|
+
return {
|
|
729
|
+
url: toPathString(localVarUrlObj),
|
|
730
|
+
options: localVarRequestOptions,
|
|
731
|
+
};
|
|
732
|
+
},
|
|
564
733
|
/**
|
|
565
734
|
* 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\"
|
|
566
735
|
* @summary Update the Product Category Account
|
|
@@ -598,8 +767,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
598
767
|
// http bearer authentication required
|
|
599
768
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
600
769
|
|
|
601
|
-
|
|
602
|
-
|
|
770
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
771
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
772
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
773
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
774
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
775
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
776
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
603
777
|
}
|
|
604
778
|
|
|
605
779
|
|
|
@@ -649,8 +823,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
649
823
|
// http bearer authentication required
|
|
650
824
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
651
825
|
|
|
652
|
-
|
|
653
|
-
|
|
826
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
827
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
828
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
829
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
830
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
831
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
832
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
654
833
|
}
|
|
655
834
|
|
|
656
835
|
|
|
@@ -708,8 +887,13 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
708
887
|
// http bearer authentication required
|
|
709
888
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
710
889
|
|
|
711
|
-
|
|
712
|
-
|
|
890
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
891
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
892
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
893
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
894
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
895
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
896
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
713
897
|
}
|
|
714
898
|
|
|
715
899
|
|
|
@@ -751,6 +935,20 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
|
|
|
751
935
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options);
|
|
752
936
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
753
937
|
},
|
|
938
|
+
/**
|
|
939
|
+
* 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\"
|
|
940
|
+
* @summary Delete the Premium Item Carrier
|
|
941
|
+
* @param {string} productCode
|
|
942
|
+
* @param {string} productVersionCode
|
|
943
|
+
* @param {string} premiumFormulaCode
|
|
944
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
async deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options);
|
|
950
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
951
|
+
},
|
|
754
952
|
/**
|
|
755
953
|
* 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\"
|
|
756
954
|
* @summary Delete the Product Category Account
|
|
@@ -867,6 +1065,21 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
|
|
|
867
1065
|
const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options);
|
|
868
1066
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
869
1067
|
},
|
|
1068
|
+
/**
|
|
1069
|
+
* 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\"
|
|
1070
|
+
* @summary Update the Premium Item Carrier
|
|
1071
|
+
* @param {string} productCode
|
|
1072
|
+
* @param {string} productVersionCode
|
|
1073
|
+
* @param {string} premiumFormulaCode
|
|
1074
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
1075
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
*/
|
|
1079
|
+
async putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>> {
|
|
1080
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options);
|
|
1081
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1082
|
+
},
|
|
870
1083
|
/**
|
|
871
1084
|
* 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\"
|
|
872
1085
|
* @summary Update the Product Category Account
|
|
@@ -933,6 +1146,19 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
|
|
|
933
1146
|
deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
934
1147
|
return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then((request) => request(axios, basePath));
|
|
935
1148
|
},
|
|
1149
|
+
/**
|
|
1150
|
+
* 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\"
|
|
1151
|
+
* @summary Delete the Premium Item Carrier
|
|
1152
|
+
* @param {string} productCode
|
|
1153
|
+
* @param {string} productVersionCode
|
|
1154
|
+
* @param {string} premiumFormulaCode
|
|
1155
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
1160
|
+
return localVarFp.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options).then((request) => request(axios, basePath));
|
|
1161
|
+
},
|
|
936
1162
|
/**
|
|
937
1163
|
* 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\"
|
|
938
1164
|
* @summary Delete the Product Category Account
|
|
@@ -1041,6 +1267,20 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
|
|
|
1041
1267
|
putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
|
|
1042
1268
|
return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
1043
1269
|
},
|
|
1270
|
+
/**
|
|
1271
|
+
* 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\"
|
|
1272
|
+
* @summary Update the Premium Item Carrier
|
|
1273
|
+
* @param {string} productCode
|
|
1274
|
+
* @param {string} productVersionCode
|
|
1275
|
+
* @param {string} premiumFormulaCode
|
|
1276
|
+
* @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
|
|
1277
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1278
|
+
* @param {*} [options] Override http request option.
|
|
1279
|
+
* @throws {RequiredError}
|
|
1280
|
+
*/
|
|
1281
|
+
putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
|
|
1282
|
+
return localVarFp.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
1283
|
+
},
|
|
1044
1284
|
/**
|
|
1045
1285
|
* 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\"
|
|
1046
1286
|
* @summary Update the Product Category Account
|
|
@@ -1125,6 +1365,41 @@ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
|
|
|
1125
1365
|
readonly authorization?: string
|
|
1126
1366
|
}
|
|
1127
1367
|
|
|
1368
|
+
/**
|
|
1369
|
+
* Request parameters for deletePremiumItemCarrier operation in ProductAccountMappingsApi.
|
|
1370
|
+
* @export
|
|
1371
|
+
* @interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest
|
|
1372
|
+
*/
|
|
1373
|
+
export interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest {
|
|
1374
|
+
/**
|
|
1375
|
+
*
|
|
1376
|
+
* @type {string}
|
|
1377
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
|
|
1378
|
+
*/
|
|
1379
|
+
readonly productCode: string
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
*
|
|
1383
|
+
* @type {string}
|
|
1384
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
|
|
1385
|
+
*/
|
|
1386
|
+
readonly productVersionCode: string
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @type {string}
|
|
1391
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
|
|
1392
|
+
*/
|
|
1393
|
+
readonly premiumFormulaCode: string
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1397
|
+
* @type {string}
|
|
1398
|
+
* @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
|
|
1399
|
+
*/
|
|
1400
|
+
readonly authorization?: string
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1128
1403
|
/**
|
|
1129
1404
|
* Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
|
|
1130
1405
|
* @export
|
|
@@ -1433,6 +1708,48 @@ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
|
|
|
1433
1708
|
readonly authorization?: string
|
|
1434
1709
|
}
|
|
1435
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* Request parameters for putPremiumItemCarrier operation in ProductAccountMappingsApi.
|
|
1713
|
+
* @export
|
|
1714
|
+
* @interface ProductAccountMappingsApiPutPremiumItemCarrierRequest
|
|
1715
|
+
*/
|
|
1716
|
+
export interface ProductAccountMappingsApiPutPremiumItemCarrierRequest {
|
|
1717
|
+
/**
|
|
1718
|
+
*
|
|
1719
|
+
* @type {string}
|
|
1720
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemCarrier
|
|
1721
|
+
*/
|
|
1722
|
+
readonly productCode: string
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
*
|
|
1726
|
+
* @type {string}
|
|
1727
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemCarrier
|
|
1728
|
+
*/
|
|
1729
|
+
readonly productVersionCode: string
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
*
|
|
1733
|
+
* @type {string}
|
|
1734
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemCarrier
|
|
1735
|
+
*/
|
|
1736
|
+
readonly premiumFormulaCode: string
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
*
|
|
1740
|
+
* @type {PutPremiumItemCarrierBodyDto}
|
|
1741
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemCarrier
|
|
1742
|
+
*/
|
|
1743
|
+
readonly putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1747
|
+
* @type {string}
|
|
1748
|
+
* @memberof ProductAccountMappingsApiPutPremiumItemCarrier
|
|
1749
|
+
*/
|
|
1750
|
+
readonly authorization?: string
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1436
1753
|
/**
|
|
1437
1754
|
* Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
|
|
1438
1755
|
* @export
|
|
@@ -1554,7 +1871,19 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1554
1871
|
* @memberof ProductAccountMappingsApi
|
|
1555
1872
|
*/
|
|
1556
1873
|
public deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig) {
|
|
1557
|
-
return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1874
|
+
return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* 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\"
|
|
1879
|
+
* @summary Delete the Premium Item Carrier
|
|
1880
|
+
* @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
|
|
1881
|
+
* @param {*} [options] Override http request option.
|
|
1882
|
+
* @throws {RequiredError}
|
|
1883
|
+
* @memberof ProductAccountMappingsApi
|
|
1884
|
+
*/
|
|
1885
|
+
public deletePremiumItemCarrier(requestParameters: ProductAccountMappingsApiDeletePremiumItemCarrierRequest, options?: AxiosRequestConfig) {
|
|
1886
|
+
return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1558
1887
|
}
|
|
1559
1888
|
|
|
1560
1889
|
/**
|
|
@@ -1566,7 +1895,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1566
1895
|
* @memberof ProductAccountMappingsApi
|
|
1567
1896
|
*/
|
|
1568
1897
|
public deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1569
|
-
return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1898
|
+
return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1570
1899
|
}
|
|
1571
1900
|
|
|
1572
1901
|
/**
|
|
@@ -1578,7 +1907,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1578
1907
|
* @memberof ProductAccountMappingsApi
|
|
1579
1908
|
*/
|
|
1580
1909
|
public deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig) {
|
|
1581
|
-
return ProductAccountMappingsApiFp(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1910
|
+
return ProductAccountMappingsApiFp(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1582
1911
|
}
|
|
1583
1912
|
|
|
1584
1913
|
/**
|
|
@@ -1590,7 +1919,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1590
1919
|
* @memberof ProductAccountMappingsApi
|
|
1591
1920
|
*/
|
|
1592
1921
|
public deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1593
|
-
return ProductAccountMappingsApiFp(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1922
|
+
return ProductAccountMappingsApiFp(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1594
1923
|
}
|
|
1595
1924
|
|
|
1596
1925
|
/**
|
|
@@ -1602,7 +1931,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1602
1931
|
* @memberof ProductAccountMappingsApi
|
|
1603
1932
|
*/
|
|
1604
1933
|
public getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1605
|
-
return ProductAccountMappingsApiFp(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1934
|
+
return ProductAccountMappingsApiFp(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1606
1935
|
}
|
|
1607
1936
|
|
|
1608
1937
|
/**
|
|
@@ -1614,7 +1943,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1614
1943
|
* @memberof ProductAccountMappingsApi
|
|
1615
1944
|
*/
|
|
1616
1945
|
public getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1617
|
-
return ProductAccountMappingsApiFp(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1946
|
+
return ProductAccountMappingsApiFp(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1618
1947
|
}
|
|
1619
1948
|
|
|
1620
1949
|
/**
|
|
@@ -1626,7 +1955,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1626
1955
|
* @memberof ProductAccountMappingsApi
|
|
1627
1956
|
*/
|
|
1628
1957
|
public listProductAccountMappings(requestParameters: ProductAccountMappingsApiListProductAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1629
|
-
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));
|
|
1958
|
+
return ProductAccountMappingsApiFp(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1630
1959
|
}
|
|
1631
1960
|
|
|
1632
1961
|
/**
|
|
@@ -1638,7 +1967,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1638
1967
|
* @memberof ProductAccountMappingsApi
|
|
1639
1968
|
*/
|
|
1640
1969
|
public listProductsWithAccountMappings(requestParameters: ProductAccountMappingsApiListProductsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1641
|
-
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));
|
|
1970
|
+
return ProductAccountMappingsApiFp(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1642
1971
|
}
|
|
1643
1972
|
|
|
1644
1973
|
/**
|
|
@@ -1650,7 +1979,19 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1650
1979
|
* @memberof ProductAccountMappingsApi
|
|
1651
1980
|
*/
|
|
1652
1981
|
public putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig) {
|
|
1653
|
-
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));
|
|
1982
|
+
return ProductAccountMappingsApiFp(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* 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\"
|
|
1987
|
+
* @summary Update the Premium Item Carrier
|
|
1988
|
+
* @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
* @memberof ProductAccountMappingsApi
|
|
1992
|
+
*/
|
|
1993
|
+
public putPremiumItemCarrier(requestParameters: ProductAccountMappingsApiPutPremiumItemCarrierRequest, options?: AxiosRequestConfig) {
|
|
1994
|
+
return ProductAccountMappingsApiFp(this.configuration).putPremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.putPremiumItemCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1654
1995
|
}
|
|
1655
1996
|
|
|
1656
1997
|
/**
|
|
@@ -1662,7 +2003,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1662
2003
|
* @memberof ProductAccountMappingsApi
|
|
1663
2004
|
*/
|
|
1664
2005
|
public putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1665
|
-
return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2006
|
+
return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1666
2007
|
}
|
|
1667
2008
|
|
|
1668
2009
|
/**
|
|
@@ -1674,7 +2015,7 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1674
2015
|
* @memberof ProductAccountMappingsApi
|
|
1675
2016
|
*/
|
|
1676
2017
|
public putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig) {
|
|
1677
|
-
return ProductAccountMappingsApiFp(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2018
|
+
return ProductAccountMappingsApiFp(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1678
2019
|
}
|
|
1679
2020
|
|
|
1680
2021
|
/**
|
|
@@ -1686,6 +2027,6 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1686
2027
|
* @memberof ProductAccountMappingsApi
|
|
1687
2028
|
*/
|
|
1688
2029
|
public putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
|
|
1689
|
-
return ProductAccountMappingsApiFp(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2030
|
+
return ProductAccountMappingsApiFp(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1690
2031
|
}
|
|
1691
2032
|
}
|