@emilgroup/accounting-sdk 1.34.1-beta.57 → 1.34.1-beta.59

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.
Files changed (59) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +32 -16
  4. package/api/booking-entries-api.ts +20 -10
  5. package/api/commission-account-mappings-api.ts +32 -16
  6. package/api/financial-accounts-api.ts +20 -10
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +265 -20
  11. package/base.ts +174 -41
  12. package/configuration.ts +20 -0
  13. package/dist/api/accounting-configs-api.js +56 -32
  14. package/dist/api/booking-entries-api.js +29 -18
  15. package/dist/api/commission-account-mappings-api.js +47 -29
  16. package/dist/api/financial-accounts-api.js +29 -18
  17. package/dist/api/financial-transactions-api.js +8 -6
  18. package/dist/api/number-ranges-api.js +22 -14
  19. package/dist/api/personal-accounts-api.js +22 -14
  20. package/dist/api/product-account-mappings-api.d.ts +121 -0
  21. package/dist/api/product-account-mappings-api.js +261 -38
  22. package/dist/base.d.ts +24 -0
  23. package/dist/base.js +178 -59
  24. package/dist/configuration.d.ts +17 -0
  25. package/dist/configuration.js +2 -0
  26. package/dist/models/account-mapping-class.d.ts +2 -0
  27. package/dist/models/account-mapping-class.js +3 -1
  28. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
  29. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  30. package/dist/models/booking-entry-class.d.ts +1 -0
  31. package/dist/models/booking-entry-class.js +1 -0
  32. package/dist/models/create-booking-entry-request-dto.d.ts +1 -0
  33. package/dist/models/create-booking-entry-request-dto.js +1 -0
  34. package/dist/models/create-financial-account-request-dto.d.ts +2 -0
  35. package/dist/models/create-financial-account-request-dto.js +3 -1
  36. package/dist/models/financial-transaction-class.d.ts +6 -0
  37. package/dist/models/financial-transaction-data-dto.d.ts +6 -0
  38. package/dist/models/index.d.ts +2 -0
  39. package/dist/models/index.js +2 -0
  40. package/dist/models/post-financial-event-request-dto.d.ts +3 -2
  41. package/dist/models/post-financial-event-request-dto.js +1 -0
  42. package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
  43. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  44. package/dist/models/product-risk-carrier-class.js +15 -0
  45. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  46. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  47. package/models/account-mapping-class.ts +3 -1
  48. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
  49. package/models/booking-entry-class.ts +1 -0
  50. package/models/create-booking-entry-request-dto.ts +1 -0
  51. package/models/create-financial-account-request-dto.ts +3 -1
  52. package/models/financial-transaction-class.ts +6 -0
  53. package/models/financial-transaction-data-dto.ts +6 -0
  54. package/models/index.ts +2 -0
  55. package/models/post-financial-event-request-dto.ts +3 -2
  56. package/models/product-account-mapping-detail-class.ts +6 -0
  57. package/models/product-risk-carrier-class.ts +48 -0
  58. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  59. package/package.json +1 -1
@@ -29,12 +29,16 @@ 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
32
34
  import { ProductVersionAccountMappingDetailClass } from '../models';
33
35
  // @ts-ignore
34
36
  import { PutPremiumItemAccountBodyDto } from '../models';
35
37
  // @ts-ignore
36
38
  import { PutProductCategoryAccountBodyDto } from '../models';
37
39
  // @ts-ignore
40
+ import { PutProductRiskCarrierBodyDto } from '../models';
41
+ // @ts-ignore
38
42
  import { PutProductVersionCategoryAccountBodyDto } from '../models';
39
43
  // @ts-ignore
40
44
  import { ResolvedAccountMappingClass } from '../models';
@@ -86,8 +90,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
86
90
  // http bearer authentication required
87
91
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
88
92
 
89
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
90
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
93
+ // Only Authorization falls back to the configured token; an empty value is never sent.
94
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
95
+ if (authorizationValue) {
96
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
91
97
  }
92
98
 
93
99
 
@@ -135,8 +141,57 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
135
141
  // http bearer authentication required
136
142
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
137
143
 
138
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
139
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
144
+ // Only Authorization falls back to the configured token; an empty value is never sent.
145
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
146
+ if (authorizationValue) {
147
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
148
+ }
149
+
150
+
151
+
152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
155
+
156
+ return {
157
+ url: toPathString(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ },
161
+ /**
162
+ * 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\"
163
+ * @summary Delete the Product Risk Carrier
164
+ * @param {string} productCode
165
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ deleteProductRiskCarrier: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
170
+ // verify required parameter 'productCode' is not null or undefined
171
+ assertParamExists('deleteProductRiskCarrier', 'productCode', productCode)
172
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier`
173
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
+ let baseOptions;
177
+ let baseAccessToken;
178
+ if (configuration) {
179
+ baseOptions = configuration.baseOptions;
180
+ baseAccessToken = configuration.accessToken;
181
+ }
182
+
183
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
184
+ const localVarHeaderParameter = {} as any;
185
+ const localVarQueryParameter = {} as any;
186
+
187
+ // authentication bearer required
188
+ // http bearer authentication required
189
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
190
+
191
+ // Only Authorization falls back to the configured token; an empty value is never sent.
192
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
193
+ if (authorizationValue) {
194
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
140
195
  }
141
196
 
142
197
 
@@ -188,8 +243,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
188
243
  // http bearer authentication required
189
244
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
190
245
 
191
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
192
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
+ // Only Authorization falls back to the configured token; an empty value is never sent.
247
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
248
+ if (authorizationValue) {
249
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
193
250
  }
194
251
 
195
252
 
@@ -233,8 +290,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
233
290
  // http bearer authentication required
234
291
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
235
292
 
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ // Only Authorization falls back to the configured token; an empty value is never sent.
294
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
295
+ if (authorizationValue) {
296
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
297
  }
239
298
 
240
299
 
@@ -282,8 +341,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
282
341
  // http bearer authentication required
283
342
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
284
343
 
285
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
286
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ // Only Authorization falls back to the configured token; an empty value is never sent.
345
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
346
+ if (authorizationValue) {
347
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
287
348
  }
288
349
 
289
350
 
@@ -358,8 +419,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
358
419
  localVarQueryParameter['filters'] = filters;
359
420
  }
360
421
 
361
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
362
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
422
+ // Only Authorization falls back to the configured token; an empty value is never sent.
423
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
424
+ if (authorizationValue) {
425
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
363
426
  }
364
427
 
365
428
 
@@ -434,8 +497,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
434
497
  localVarQueryParameter['filters'] = filters;
435
498
  }
436
499
 
437
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
438
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
500
+ // Only Authorization falls back to the configured token; an empty value is never sent.
501
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
502
+ if (authorizationValue) {
503
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
439
504
  }
440
505
 
441
506
 
@@ -494,8 +559,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
494
559
  // http bearer authentication required
495
560
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
496
561
 
497
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
498
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
562
+ // Only Authorization falls back to the configured token; an empty value is never sent.
563
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
564
+ if (authorizationValue) {
565
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
499
566
  }
500
567
 
501
568
 
@@ -549,8 +616,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
549
616
  // http bearer authentication required
550
617
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
551
618
 
552
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
553
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
619
+ // Only Authorization falls back to the configured token; an empty value is never sent.
620
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
621
+ if (authorizationValue) {
622
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
554
623
  }
555
624
 
556
625
 
@@ -567,6 +636,59 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
567
636
  options: localVarRequestOptions,
568
637
  };
569
638
  },
639
+ /**
640
+ * 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\"
641
+ * @summary Update the Product Risk Carrier
642
+ * @param {string} productCode
643
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
644
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ putProductRiskCarrier: async (productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
649
+ // verify required parameter 'productCode' is not null or undefined
650
+ assertParamExists('putProductRiskCarrier', 'productCode', productCode)
651
+ // verify required parameter 'putProductRiskCarrierBodyDto' is not null or undefined
652
+ assertParamExists('putProductRiskCarrier', 'putProductRiskCarrierBodyDto', putProductRiskCarrierBodyDto)
653
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier`
654
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
657
+ let baseOptions;
658
+ let baseAccessToken;
659
+ if (configuration) {
660
+ baseOptions = configuration.baseOptions;
661
+ baseAccessToken = configuration.accessToken;
662
+ }
663
+
664
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
665
+ const localVarHeaderParameter = {} as any;
666
+ const localVarQueryParameter = {} as any;
667
+
668
+ // authentication bearer required
669
+ // http bearer authentication required
670
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
671
+
672
+ // Only Authorization falls back to the configured token; an empty value is never sent.
673
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
674
+ if (authorizationValue) {
675
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
676
+ }
677
+
678
+
679
+
680
+ localVarHeaderParameter['Content-Type'] = 'application/json';
681
+
682
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
685
+ localVarRequestOptions.data = serializeDataIfNeeded(putProductRiskCarrierBodyDto, localVarRequestOptions, configuration)
686
+
687
+ return {
688
+ url: toPathString(localVarUrlObj),
689
+ options: localVarRequestOptions,
690
+ };
691
+ },
570
692
  /**
571
693
  * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
572
694
  * @summary Update the Product Version Category Account
@@ -608,8 +730,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
608
730
  // http bearer authentication required
609
731
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
610
732
 
611
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
612
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
733
+ // Only Authorization falls back to the configured token; an empty value is never sent.
734
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
735
+ if (authorizationValue) {
736
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
613
737
  }
614
738
 
615
739
 
@@ -664,6 +788,18 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
664
788
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
665
789
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
666
790
  },
791
+ /**
792
+ * 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\"
793
+ * @summary Delete the Product Risk Carrier
794
+ * @param {string} productCode
795
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ async deleteProductRiskCarrier(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductRiskCarrier(productCode, authorization, options);
801
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
802
+ },
667
803
  /**
668
804
  * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
669
805
  * @summary Delete the Product Version Category Account
@@ -769,6 +905,19 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
769
905
  const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
770
906
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
771
907
  },
908
+ /**
909
+ * 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\"
910
+ * @summary Update the Product Risk Carrier
911
+ * @param {string} productCode
912
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
913
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ async putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRiskCarrierClass>> {
918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options);
919
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
920
+ },
772
921
  /**
773
922
  * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
774
923
  * @summary Update the Product Version Category Account
@@ -820,6 +969,17 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
820
969
  deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
821
970
  return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
822
971
  },
972
+ /**
973
+ * 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\"
974
+ * @summary Delete the Product Risk Carrier
975
+ * @param {string} productCode
976
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ deleteProductRiskCarrier(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
981
+ return localVarFp.deleteProductRiskCarrier(productCode, authorization, options).then((request) => request(axios, basePath));
982
+ },
823
983
  /**
824
984
  * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
825
985
  * @summary Delete the Product Version Category Account
@@ -918,6 +1078,18 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
918
1078
  putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
919
1079
  return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
920
1080
  },
1081
+ /**
1082
+ * 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\"
1083
+ * @summary Update the Product Risk Carrier
1084
+ * @param {string} productCode
1085
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
1086
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ */
1090
+ putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<ProductRiskCarrierClass> {
1091
+ return localVarFp.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options).then((request) => request(axios, basePath));
1092
+ },
921
1093
  /**
922
1094
  * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
923
1095
  * @summary Update the Product Version Category Account
@@ -1005,6 +1177,27 @@ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
1005
1177
  readonly authorization?: string
1006
1178
  }
1007
1179
 
1180
+ /**
1181
+ * Request parameters for deleteProductRiskCarrier operation in ProductAccountMappingsApi.
1182
+ * @export
1183
+ * @interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest
1184
+ */
1185
+ export interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest {
1186
+ /**
1187
+ *
1188
+ * @type {string}
1189
+ * @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
1190
+ */
1191
+ readonly productCode: string
1192
+
1193
+ /**
1194
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1195
+ * @type {string}
1196
+ * @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
1197
+ */
1198
+ readonly authorization?: string
1199
+ }
1200
+
1008
1201
  /**
1009
1202
  * Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1010
1203
  * @export
@@ -1299,6 +1492,34 @@ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
1299
1492
  readonly authorization?: string
1300
1493
  }
1301
1494
 
1495
+ /**
1496
+ * Request parameters for putProductRiskCarrier operation in ProductAccountMappingsApi.
1497
+ * @export
1498
+ * @interface ProductAccountMappingsApiPutProductRiskCarrierRequest
1499
+ */
1500
+ export interface ProductAccountMappingsApiPutProductRiskCarrierRequest {
1501
+ /**
1502
+ *
1503
+ * @type {string}
1504
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
1505
+ */
1506
+ readonly productCode: string
1507
+
1508
+ /**
1509
+ *
1510
+ * @type {PutProductRiskCarrierBodyDto}
1511
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
1512
+ */
1513
+ readonly putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto
1514
+
1515
+ /**
1516
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1517
+ * @type {string}
1518
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
1519
+ */
1520
+ readonly authorization?: string
1521
+ }
1522
+
1302
1523
  /**
1303
1524
  * Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1304
1525
  * @export
@@ -1372,6 +1593,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1372
1593
  return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1373
1594
  }
1374
1595
 
1596
+ /**
1597
+ * 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\"
1598
+ * @summary Delete the Product Risk Carrier
1599
+ * @param {ProductAccountMappingsApiDeleteProductRiskCarrierRequest} requestParameters Request parameters.
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ * @memberof ProductAccountMappingsApi
1603
+ */
1604
+ public deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig) {
1605
+ return ProductAccountMappingsApiFp(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1606
+ }
1607
+
1375
1608
  /**
1376
1609
  * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1377
1610
  * @summary Delete the Product Version Category Account
@@ -1456,6 +1689,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1456
1689
  return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1457
1690
  }
1458
1691
 
1692
+ /**
1693
+ * 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\"
1694
+ * @summary Update the Product Risk Carrier
1695
+ * @param {ProductAccountMappingsApiPutProductRiskCarrierRequest} requestParameters Request parameters.
1696
+ * @param {*} [options] Override http request option.
1697
+ * @throws {RequiredError}
1698
+ * @memberof ProductAccountMappingsApi
1699
+ */
1700
+ public putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig) {
1701
+ return ProductAccountMappingsApiFp(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1702
+ }
1703
+
1459
1704
  /**
1460
1705
  * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1461
1706
  * @summary Update the Product Version Category Account