@emilgroup/accounting-sdk-node 1.32.1-beta.74 → 1.32.1-beta.76
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 +0 -2
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +16 -32
- package/api/booking-entries-api.ts +14 -24
- package/api/commission-account-mappings-api.ts +16 -32
- package/api/financial-accounts-api.ts +10 -20
- package/api/financial-transactions-api.ts +4 -8
- package/api/number-ranges-api.ts +8 -16
- package/api/personal-accounts-api.ts +8 -16
- package/api/product-account-mappings-api.ts +20 -265
- package/common.ts +2 -3
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +32 -56
- package/dist/api/booking-entries-api.d.ts +9 -9
- package/dist/api/booking-entries-api.js +22 -33
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +29 -47
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +18 -29
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +6 -8
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +14 -22
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +14 -22
- package/dist/api/product-account-mappings-api.d.ts +10 -131
- package/dist/api/product-account-mappings-api.js +38 -261
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/models/account-mapping-class.d.ts +0 -2
- package/dist/models/account-mapping-class.js +1 -3
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +1 -3
- package/dist/models/booking-entry-class.d.ts +2 -16
- package/dist/models/booking-entry-class.js +1 -3
- package/dist/models/create-booking-entry-request-dto.d.ts +2 -3
- package/dist/models/create-booking-entry-request-dto.js +2 -3
- package/dist/models/create-financial-account-request-dto.d.ts +0 -2
- package/dist/models/create-financial-account-request-dto.js +1 -3
- package/dist/models/financial-transaction-class.d.ts +0 -6
- package/dist/models/financial-transaction-data-dto.d.ts +0 -6
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/post-financial-event-request-dto.d.ts +2 -3
- package/dist/models/post-financial-event-request-dto.js +0 -1
- package/dist/models/product-account-mapping-detail-class.d.ts +0 -6
- package/models/account-mapping-class.ts +1 -3
- package/models/accounting-config-data-dto-default-account-mappings.ts +1 -3
- package/models/booking-entry-class.ts +3 -17
- package/models/create-booking-entry-request-dto.ts +3 -4
- package/models/create-financial-account-request-dto.ts +1 -3
- package/models/financial-transaction-class.ts +0 -6
- package/models/financial-transaction-data-dto.ts +0 -6
- package/models/index.ts +0 -2
- package/models/post-financial-event-request-dto.ts +2 -3
- package/models/product-account-mapping-detail-class.ts +0 -6
- package/package.json +2 -2
- package/dist/models/product-risk-carrier-class.d.ts +0 -42
- package/dist/models/product-risk-carrier-class.js +0 -15
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
- package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
- package/models/product-risk-carrier-class.ts +0 -48
- package/models/put-product-risk-carrier-body-dto.ts +0 -30
|
@@ -29,16 +29,12 @@ import { PremiumItemAccountMappingClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ProductAccountMappingDetailClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import { ProductRiskCarrierClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
32
|
import { ProductVersionAccountMappingDetailClass } from '../models';
|
|
35
33
|
// @ts-ignore
|
|
36
34
|
import { PutPremiumItemAccountBodyDto } from '../models';
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
import { PutProductCategoryAccountBodyDto } from '../models';
|
|
39
37
|
// @ts-ignore
|
|
40
|
-
import { PutProductRiskCarrierBodyDto } from '../models';
|
|
41
|
-
// @ts-ignore
|
|
42
38
|
import { PutProductVersionCategoryAccountBodyDto } from '../models';
|
|
43
39
|
// @ts-ignore
|
|
44
40
|
import { ResolvedAccountMappingClass } from '../models';
|
|
@@ -94,10 +90,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
94
90
|
// http bearer authentication required
|
|
95
91
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
96
92
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (authorizationValue) {
|
|
100
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
93
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
94
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
101
95
|
}
|
|
102
96
|
|
|
103
97
|
|
|
@@ -145,57 +139,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
145
139
|
// http bearer authentication required
|
|
146
140
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
147
141
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (authorizationValue) {
|
|
151
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
157
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
159
|
-
|
|
160
|
-
return {
|
|
161
|
-
url: toPathString(localVarUrlObj),
|
|
162
|
-
options: localVarRequestOptions,
|
|
163
|
-
};
|
|
164
|
-
},
|
|
165
|
-
/**
|
|
166
|
-
* 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\"
|
|
167
|
-
* @summary Delete the Product Risk Carrier
|
|
168
|
-
* @param {string} productCode
|
|
169
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
170
|
-
* @param {*} [options] Override http request option.
|
|
171
|
-
* @throws {RequiredError}
|
|
172
|
-
*/
|
|
173
|
-
deleteProductRiskCarrier: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
174
|
-
// verify required parameter 'productCode' is not null or undefined
|
|
175
|
-
assertParamExists('deleteProductRiskCarrier', 'productCode', productCode)
|
|
176
|
-
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier`
|
|
177
|
-
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
|
|
178
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
180
|
-
let baseOptions;
|
|
181
|
-
let baseAccessToken;
|
|
182
|
-
if (configuration) {
|
|
183
|
-
baseOptions = configuration.baseOptions;
|
|
184
|
-
baseAccessToken = configuration.accessToken;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
188
|
-
const localVarHeaderParameter = {} as any;
|
|
189
|
-
const localVarQueryParameter = {} as any;
|
|
190
|
-
|
|
191
|
-
// authentication bearer required
|
|
192
|
-
// http bearer authentication required
|
|
193
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
194
|
-
|
|
195
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
196
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
197
|
-
if (authorizationValue) {
|
|
198
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
142
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
143
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
199
144
|
}
|
|
200
145
|
|
|
201
146
|
|
|
@@ -247,10 +192,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
247
192
|
// http bearer authentication required
|
|
248
193
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
194
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (authorizationValue) {
|
|
253
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
254
197
|
}
|
|
255
198
|
|
|
256
199
|
|
|
@@ -294,10 +237,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
294
237
|
// http bearer authentication required
|
|
295
238
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
296
239
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
if (authorizationValue) {
|
|
300
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
240
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
241
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
301
242
|
}
|
|
302
243
|
|
|
303
244
|
|
|
@@ -345,10 +286,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
345
286
|
// http bearer authentication required
|
|
346
287
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
347
288
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
if (authorizationValue) {
|
|
351
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
289
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
290
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
352
291
|
}
|
|
353
292
|
|
|
354
293
|
|
|
@@ -423,10 +362,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
423
362
|
localVarQueryParameter['filters'] = filters;
|
|
424
363
|
}
|
|
425
364
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
if (authorizationValue) {
|
|
429
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
365
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
366
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
430
367
|
}
|
|
431
368
|
|
|
432
369
|
|
|
@@ -501,10 +438,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
501
438
|
localVarQueryParameter['filters'] = filters;
|
|
502
439
|
}
|
|
503
440
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
if (authorizationValue) {
|
|
507
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
441
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
442
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
508
443
|
}
|
|
509
444
|
|
|
510
445
|
|
|
@@ -563,10 +498,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
563
498
|
// http bearer authentication required
|
|
564
499
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
565
500
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
if (authorizationValue) {
|
|
569
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
501
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
502
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
570
503
|
}
|
|
571
504
|
|
|
572
505
|
|
|
@@ -620,10 +553,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
620
553
|
// http bearer authentication required
|
|
621
554
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
622
555
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
if (authorizationValue) {
|
|
626
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
556
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
557
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
627
558
|
}
|
|
628
559
|
|
|
629
560
|
|
|
@@ -640,59 +571,6 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
640
571
|
options: localVarRequestOptions,
|
|
641
572
|
};
|
|
642
573
|
},
|
|
643
|
-
/**
|
|
644
|
-
* 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\"
|
|
645
|
-
* @summary Update the Product Risk Carrier
|
|
646
|
-
* @param {string} productCode
|
|
647
|
-
* @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
|
|
648
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
649
|
-
* @param {*} [options] Override http request option.
|
|
650
|
-
* @throws {RequiredError}
|
|
651
|
-
*/
|
|
652
|
-
putProductRiskCarrier: async (productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
653
|
-
// verify required parameter 'productCode' is not null or undefined
|
|
654
|
-
assertParamExists('putProductRiskCarrier', 'productCode', productCode)
|
|
655
|
-
// verify required parameter 'putProductRiskCarrierBodyDto' is not null or undefined
|
|
656
|
-
assertParamExists('putProductRiskCarrier', 'putProductRiskCarrierBodyDto', putProductRiskCarrierBodyDto)
|
|
657
|
-
const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier`
|
|
658
|
-
.replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
|
|
659
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
660
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
661
|
-
let baseOptions;
|
|
662
|
-
let baseAccessToken;
|
|
663
|
-
if (configuration) {
|
|
664
|
-
baseOptions = configuration.baseOptions;
|
|
665
|
-
baseAccessToken = configuration.accessToken;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
669
|
-
const localVarHeaderParameter = {} as any;
|
|
670
|
-
const localVarQueryParameter = {} as any;
|
|
671
|
-
|
|
672
|
-
// authentication bearer required
|
|
673
|
-
// http bearer authentication required
|
|
674
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
675
|
-
|
|
676
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
677
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
678
|
-
if (authorizationValue) {
|
|
679
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
685
|
-
|
|
686
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
687
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
688
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
689
|
-
localVarRequestOptions.data = serializeDataIfNeeded(putProductRiskCarrierBodyDto, localVarRequestOptions, configuration)
|
|
690
|
-
|
|
691
|
-
return {
|
|
692
|
-
url: toPathString(localVarUrlObj),
|
|
693
|
-
options: localVarRequestOptions,
|
|
694
|
-
};
|
|
695
|
-
},
|
|
696
574
|
/**
|
|
697
575
|
* 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\"
|
|
698
576
|
* @summary Update the Product Version Category Account
|
|
@@ -734,10 +612,8 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
|
|
|
734
612
|
// http bearer authentication required
|
|
735
613
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
736
614
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
if (authorizationValue) {
|
|
740
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
615
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
616
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
741
617
|
}
|
|
742
618
|
|
|
743
619
|
|
|
@@ -792,18 +668,6 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
|
|
|
792
668
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
|
|
793
669
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
794
670
|
},
|
|
795
|
-
/**
|
|
796
|
-
* 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\"
|
|
797
|
-
* @summary Delete the Product Risk Carrier
|
|
798
|
-
* @param {string} productCode
|
|
799
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
800
|
-
* @param {*} [options] Override http request option.
|
|
801
|
-
* @throws {RequiredError}
|
|
802
|
-
*/
|
|
803
|
-
async deleteProductRiskCarrier(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
804
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductRiskCarrier(productCode, authorization, options);
|
|
805
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
806
|
-
},
|
|
807
671
|
/**
|
|
808
672
|
* 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\"
|
|
809
673
|
* @summary Delete the Product Version Category Account
|
|
@@ -909,19 +773,6 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
|
|
|
909
773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
|
|
910
774
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
911
775
|
},
|
|
912
|
-
/**
|
|
913
|
-
* 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\"
|
|
914
|
-
* @summary Update the Product Risk Carrier
|
|
915
|
-
* @param {string} productCode
|
|
916
|
-
* @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
|
|
917
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
918
|
-
* @param {*} [options] Override http request option.
|
|
919
|
-
* @throws {RequiredError}
|
|
920
|
-
*/
|
|
921
|
-
async putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRiskCarrierClass>> {
|
|
922
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options);
|
|
923
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
924
|
-
},
|
|
925
776
|
/**
|
|
926
777
|
* 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\"
|
|
927
778
|
* @summary Update the Product Version Category Account
|
|
@@ -973,17 +824,6 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
|
|
|
973
824
|
deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
974
825
|
return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
|
|
975
826
|
},
|
|
976
|
-
/**
|
|
977
|
-
* 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\"
|
|
978
|
-
* @summary Delete the Product Risk Carrier
|
|
979
|
-
* @param {string} productCode
|
|
980
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
981
|
-
* @param {*} [options] Override http request option.
|
|
982
|
-
* @throws {RequiredError}
|
|
983
|
-
*/
|
|
984
|
-
deleteProductRiskCarrier(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
985
|
-
return localVarFp.deleteProductRiskCarrier(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
986
|
-
},
|
|
987
827
|
/**
|
|
988
828
|
* 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\"
|
|
989
829
|
* @summary Delete the Product Version Category Account
|
|
@@ -1082,18 +922,6 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
|
|
|
1082
922
|
putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
|
|
1083
923
|
return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
1084
924
|
},
|
|
1085
|
-
/**
|
|
1086
|
-
* 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\"
|
|
1087
|
-
* @summary Update the Product Risk Carrier
|
|
1088
|
-
* @param {string} productCode
|
|
1089
|
-
* @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
|
|
1090
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1091
|
-
* @param {*} [options] Override http request option.
|
|
1092
|
-
* @throws {RequiredError}
|
|
1093
|
-
*/
|
|
1094
|
-
putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<ProductRiskCarrierClass> {
|
|
1095
|
-
return localVarFp.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
1096
|
-
},
|
|
1097
925
|
/**
|
|
1098
926
|
* 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\"
|
|
1099
927
|
* @summary Update the Product Version Category Account
|
|
@@ -1181,27 +1009,6 @@ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
|
|
|
1181
1009
|
readonly authorization?: string
|
|
1182
1010
|
}
|
|
1183
1011
|
|
|
1184
|
-
/**
|
|
1185
|
-
* Request parameters for deleteProductRiskCarrier operation in ProductAccountMappingsApi.
|
|
1186
|
-
* @export
|
|
1187
|
-
* @interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest
|
|
1188
|
-
*/
|
|
1189
|
-
export interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest {
|
|
1190
|
-
/**
|
|
1191
|
-
*
|
|
1192
|
-
* @type {string}
|
|
1193
|
-
* @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
|
|
1194
|
-
*/
|
|
1195
|
-
readonly productCode: string
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1199
|
-
* @type {string}
|
|
1200
|
-
* @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
|
|
1201
|
-
*/
|
|
1202
|
-
readonly authorization?: string
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
1012
|
/**
|
|
1206
1013
|
* Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
|
|
1207
1014
|
* @export
|
|
@@ -1496,34 +1303,6 @@ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
|
|
|
1496
1303
|
readonly authorization?: string
|
|
1497
1304
|
}
|
|
1498
1305
|
|
|
1499
|
-
/**
|
|
1500
|
-
* Request parameters for putProductRiskCarrier operation in ProductAccountMappingsApi.
|
|
1501
|
-
* @export
|
|
1502
|
-
* @interface ProductAccountMappingsApiPutProductRiskCarrierRequest
|
|
1503
|
-
*/
|
|
1504
|
-
export interface ProductAccountMappingsApiPutProductRiskCarrierRequest {
|
|
1505
|
-
/**
|
|
1506
|
-
*
|
|
1507
|
-
* @type {string}
|
|
1508
|
-
* @memberof ProductAccountMappingsApiPutProductRiskCarrier
|
|
1509
|
-
*/
|
|
1510
|
-
readonly productCode: string
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
*
|
|
1514
|
-
* @type {PutProductRiskCarrierBodyDto}
|
|
1515
|
-
* @memberof ProductAccountMappingsApiPutProductRiskCarrier
|
|
1516
|
-
*/
|
|
1517
|
-
readonly putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto
|
|
1518
|
-
|
|
1519
|
-
/**
|
|
1520
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1521
|
-
* @type {string}
|
|
1522
|
-
* @memberof ProductAccountMappingsApiPutProductRiskCarrier
|
|
1523
|
-
*/
|
|
1524
|
-
readonly authorization?: string
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
1306
|
/**
|
|
1528
1307
|
* Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
|
|
1529
1308
|
* @export
|
|
@@ -1597,18 +1376,6 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1597
1376
|
return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1598
1377
|
}
|
|
1599
1378
|
|
|
1600
|
-
/**
|
|
1601
|
-
* 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\"
|
|
1602
|
-
* @summary Delete the Product Risk Carrier
|
|
1603
|
-
* @param {ProductAccountMappingsApiDeleteProductRiskCarrierRequest} requestParameters Request parameters.
|
|
1604
|
-
* @param {*} [options] Override http request option.
|
|
1605
|
-
* @throws {RequiredError}
|
|
1606
|
-
* @memberof ProductAccountMappingsApi
|
|
1607
|
-
*/
|
|
1608
|
-
public deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig) {
|
|
1609
|
-
return ProductAccountMappingsApiFp(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
1379
|
/**
|
|
1613
1380
|
* 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\"
|
|
1614
1381
|
* @summary Delete the Product Version Category Account
|
|
@@ -1693,18 +1460,6 @@ export class ProductAccountMappingsApi extends BaseAPI {
|
|
|
1693
1460
|
return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1694
1461
|
}
|
|
1695
1462
|
|
|
1696
|
-
/**
|
|
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\"
|
|
1698
|
-
* @summary Update the Product Risk Carrier
|
|
1699
|
-
* @param {ProductAccountMappingsApiPutProductRiskCarrierRequest} requestParameters Request parameters.
|
|
1700
|
-
* @param {*} [options] Override http request option.
|
|
1701
|
-
* @throws {RequiredError}
|
|
1702
|
-
* @memberof ProductAccountMappingsApi
|
|
1703
|
-
*/
|
|
1704
|
-
public putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig) {
|
|
1705
|
-
return ProductAccountMappingsApiFp(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
1463
|
/**
|
|
1709
1464
|
* 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\"
|
|
1710
1465
|
* @summary Update the Product Version Category Account
|
package/common.ts
CHANGED
|
@@ -131,10 +131,9 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
135
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
134
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
135
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
137
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
136
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
|
|
@@ -384,7 +384,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
384
384
|
* @throws {RequiredError}
|
|
385
385
|
* @memberof AccountingConfigsApi
|
|
386
386
|
*/
|
|
387
|
-
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}
|
|
387
|
+
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
388
388
|
/**
|
|
389
389
|
* This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
390
390
|
* @summary Create the create and enable subledger from file
|
|
@@ -393,7 +393,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
393
393
|
* @throws {RequiredError}
|
|
394
394
|
* @memberof AccountingConfigsApi
|
|
395
395
|
*/
|
|
396
|
-
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}
|
|
396
|
+
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
397
397
|
/**
|
|
398
398
|
* This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
399
399
|
* @summary Retrieve the export accounting config
|
|
@@ -402,7 +402,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
402
402
|
* @throws {RequiredError}
|
|
403
403
|
* @memberof AccountingConfigsApi
|
|
404
404
|
*/
|
|
405
|
-
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}
|
|
405
|
+
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}>>;
|
|
406
406
|
/**
|
|
407
407
|
* This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
408
408
|
* @summary Retrieve the accounting categories
|
|
@@ -411,7 +411,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
411
411
|
* @throws {RequiredError}
|
|
412
412
|
* @memberof AccountingConfigsApi
|
|
413
413
|
*/
|
|
414
|
-
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}
|
|
414
|
+
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
|
|
415
415
|
/**
|
|
416
416
|
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
417
417
|
* @summary Retrieve the get activation snapshot
|
|
@@ -420,7 +420,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
420
420
|
* @throws {RequiredError}
|
|
421
421
|
* @memberof AccountingConfigsApi
|
|
422
422
|
*/
|
|
423
|
-
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}
|
|
423
|
+
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
|
|
424
424
|
/**
|
|
425
425
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
426
426
|
* @summary Delete the reset subledger
|
|
@@ -429,7 +429,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
429
429
|
* @throws {RequiredError}
|
|
430
430
|
* @memberof AccountingConfigsApi
|
|
431
431
|
*/
|
|
432
|
-
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}
|
|
432
|
+
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
433
433
|
/**
|
|
434
434
|
* This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
435
435
|
* @summary Create the validate accounting config
|
|
@@ -438,7 +438,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
438
438
|
* @throws {RequiredError}
|
|
439
439
|
* @memberof AccountingConfigsApi
|
|
440
440
|
*/
|
|
441
|
-
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}
|
|
441
|
+
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
442
442
|
/**
|
|
443
443
|
* This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
444
444
|
* @summary Create the validate accounting config from file
|
|
@@ -447,5 +447,5 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
447
447
|
* @throws {RequiredError}
|
|
448
448
|
* @memberof AccountingConfigsApi
|
|
449
449
|
*/
|
|
450
|
-
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}
|
|
450
|
+
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
451
451
|
}
|