@emilgroup/accounting-sdk-node 1.32.1-beta.57 → 1.32.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 (53) 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/dist/api/accounting-configs-api.js +56 -32
  12. package/dist/api/booking-entries-api.js +29 -18
  13. package/dist/api/commission-account-mappings-api.js +47 -29
  14. package/dist/api/financial-accounts-api.js +29 -18
  15. package/dist/api/financial-transactions-api.js +8 -6
  16. package/dist/api/number-ranges-api.js +22 -14
  17. package/dist/api/personal-accounts-api.js +22 -14
  18. package/dist/api/product-account-mappings-api.d.ts +121 -0
  19. package/dist/api/product-account-mappings-api.js +261 -38
  20. package/dist/models/account-mapping-class.d.ts +2 -0
  21. package/dist/models/account-mapping-class.js +3 -1
  22. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
  23. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  24. package/dist/models/booking-entry-class.d.ts +1 -0
  25. package/dist/models/booking-entry-class.js +1 -0
  26. package/dist/models/create-booking-entry-request-dto.d.ts +1 -0
  27. package/dist/models/create-booking-entry-request-dto.js +1 -0
  28. package/dist/models/create-financial-account-request-dto.d.ts +2 -0
  29. package/dist/models/create-financial-account-request-dto.js +3 -1
  30. package/dist/models/financial-transaction-class.d.ts +6 -0
  31. package/dist/models/financial-transaction-data-dto.d.ts +6 -0
  32. package/dist/models/index.d.ts +2 -0
  33. package/dist/models/index.js +2 -0
  34. package/dist/models/post-financial-event-request-dto.d.ts +3 -2
  35. package/dist/models/post-financial-event-request-dto.js +1 -0
  36. package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
  37. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  38. package/dist/models/product-risk-carrier-class.js +15 -0
  39. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  40. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  41. package/models/account-mapping-class.ts +3 -1
  42. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
  43. package/models/booking-entry-class.ts +1 -0
  44. package/models/create-booking-entry-request-dto.ts +1 -0
  45. package/models/create-financial-account-request-dto.ts +3 -1
  46. package/models/financial-transaction-class.ts +6 -0
  47. package/models/financial-transaction-data-dto.ts +6 -0
  48. package/models/index.ts +2 -0
  49. package/models/post-financial-event-request-dto.ts +3 -2
  50. package/models/product-account-mapping-detail-class.ts +6 -0
  51. package/models/product-risk-carrier-class.ts +48 -0
  52. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  53. 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';
@@ -90,8 +94,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
90
94
  // http bearer authentication required
91
95
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
92
96
 
93
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
94
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
97
+ // Only Authorization falls back to the configured token; an empty value is never sent.
98
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
99
+ if (authorizationValue) {
100
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
95
101
  }
96
102
 
97
103
 
@@ -139,8 +145,57 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
139
145
  // http bearer authentication required
140
146
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
141
147
 
142
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
143
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
148
+ // Only Authorization falls back to the configured token; an empty value is never sent.
149
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
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);
144
199
  }
145
200
 
146
201
 
@@ -192,8 +247,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
192
247
  // http bearer authentication required
193
248
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
194
249
 
195
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
196
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token; an empty value is never sent.
251
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
197
254
  }
198
255
 
199
256
 
@@ -237,8 +294,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
237
294
  // http bearer authentication required
238
295
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
239
296
 
240
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
241
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
297
+ // Only Authorization falls back to the configured token; an empty value is never sent.
298
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
299
+ if (authorizationValue) {
300
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
242
301
  }
243
302
 
244
303
 
@@ -286,8 +345,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
286
345
  // http bearer authentication required
287
346
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
288
347
 
289
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
290
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
348
+ // Only Authorization falls back to the configured token; an empty value is never sent.
349
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
350
+ if (authorizationValue) {
351
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
291
352
  }
292
353
 
293
354
 
@@ -362,8 +423,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
362
423
  localVarQueryParameter['filters'] = filters;
363
424
  }
364
425
 
365
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
426
+ // Only Authorization falls back to the configured token; an empty value is never sent.
427
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
428
+ if (authorizationValue) {
429
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
367
430
  }
368
431
 
369
432
 
@@ -438,8 +501,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
438
501
  localVarQueryParameter['filters'] = filters;
439
502
  }
440
503
 
441
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
442
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
504
+ // Only Authorization falls back to the configured token; an empty value is never sent.
505
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
506
+ if (authorizationValue) {
507
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
443
508
  }
444
509
 
445
510
 
@@ -498,8 +563,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
498
563
  // http bearer authentication required
499
564
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
500
565
 
501
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
502
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
566
+ // Only Authorization falls back to the configured token; an empty value is never sent.
567
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
568
+ if (authorizationValue) {
569
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
503
570
  }
504
571
 
505
572
 
@@ -553,8 +620,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
553
620
  // http bearer authentication required
554
621
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
555
622
 
556
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
557
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
623
+ // Only Authorization falls back to the configured token; an empty value is never sent.
624
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
625
+ if (authorizationValue) {
626
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
558
627
  }
559
628
 
560
629
 
@@ -571,6 +640,59 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
571
640
  options: localVarRequestOptions,
572
641
  };
573
642
  },
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
+ },
574
696
  /**
575
697
  * 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\"
576
698
  * @summary Update the Product Version Category Account
@@ -612,8 +734,10 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
612
734
  // http bearer authentication required
613
735
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
614
736
 
615
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
616
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
737
+ // Only Authorization falls back to the configured token; an empty value is never sent.
738
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
739
+ if (authorizationValue) {
740
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
617
741
  }
618
742
 
619
743
 
@@ -668,6 +792,18 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
668
792
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
669
793
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
670
794
  },
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
+ },
671
807
  /**
672
808
  * 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\"
673
809
  * @summary Delete the Product Version Category Account
@@ -773,6 +909,19 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
773
909
  const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
774
910
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
775
911
  },
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
+ },
776
925
  /**
777
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\"
778
927
  * @summary Update the Product Version Category Account
@@ -824,6 +973,17 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
824
973
  deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
825
974
  return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
826
975
  },
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
+ },
827
987
  /**
828
988
  * 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\"
829
989
  * @summary Delete the Product Version Category Account
@@ -922,6 +1082,18 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
922
1082
  putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
923
1083
  return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
924
1084
  },
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
+ },
925
1097
  /**
926
1098
  * 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
1099
  * @summary Update the Product Version Category Account
@@ -1009,6 +1181,27 @@ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
1009
1181
  readonly authorization?: string
1010
1182
  }
1011
1183
 
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
+
1012
1205
  /**
1013
1206
  * Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1014
1207
  * @export
@@ -1303,6 +1496,34 @@ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
1303
1496
  readonly authorization?: string
1304
1497
  }
1305
1498
 
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
+
1306
1527
  /**
1307
1528
  * Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1308
1529
  * @export
@@ -1376,6 +1597,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1376
1597
  return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1377
1598
  }
1378
1599
 
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
+
1379
1612
  /**
1380
1613
  * 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\"
1381
1614
  * @summary Delete the Product Version Category Account
@@ -1460,6 +1693,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1460
1693
  return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1461
1694
  }
1462
1695
 
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
+
1463
1708
  /**
1464
1709
  * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1465
1710
  * @summary Update the Product Version Category Account