@emilgroup/accounting-sdk 1.34.1-beta.113 → 1.34.1-beta.115

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.
@@ -82,6 +82,7 @@ models/product-version-account-mapping-detail-class.ts
82
82
  models/product-version-with-account-mappings-class.ts
83
83
  models/product-with-account-mappings-class.ts
84
84
  models/put-premium-item-account-body-dto.ts
85
+ models/put-premium-item-carrier-body-dto.ts
85
86
  models/put-product-category-account-body-dto.ts
86
87
  models/put-product-risk-carrier-body-dto.ts
87
88
  models/put-product-version-category-account-body-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk@1.34.1-beta.113 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.115 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.113
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.115
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -35,6 +35,8 @@ import { ProductVersionAccountMappingDetailClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { PutPremiumItemAccountBodyDto } from '../models';
37
37
  // @ts-ignore
38
+ import { PutPremiumItemCarrierBodyDto } from '../models';
39
+ // @ts-ignore
38
40
  import { PutProductCategoryAccountBodyDto } from '../models';
39
41
  // @ts-ignore
40
42
  import { PutProductRiskCarrierBodyDto } from '../models';
@@ -96,6 +98,59 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
96
98
 
97
99
 
98
100
 
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
104
+
105
+ return {
106
+ url: toPathString(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ },
110
+ /**
111
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
112
+ * @summary Delete the Premium Item Carrier
113
+ * @param {string} productCode
114
+ * @param {string} productVersionCode
115
+ * @param {string} premiumFormulaCode
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ deletePremiumItemCarrier: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
121
+ // verify required parameter 'productCode' is not null or undefined
122
+ assertParamExists('deletePremiumItemCarrier', 'productCode', productCode)
123
+ // verify required parameter 'productVersionCode' is not null or undefined
124
+ assertParamExists('deletePremiumItemCarrier', 'productVersionCode', productVersionCode)
125
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
126
+ assertParamExists('deletePremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode)
127
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier`
128
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
129
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
130
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)));
131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
133
+ let baseOptions;
134
+ let baseAccessToken;
135
+ if (configuration) {
136
+ baseOptions = configuration.baseOptions;
137
+ baseAccessToken = configuration.accessToken;
138
+ }
139
+
140
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
141
+ const localVarHeaderParameter = {} as any;
142
+ const localVarQueryParameter = {} as any;
143
+
144
+ // authentication bearer required
145
+ // http bearer authentication required
146
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
147
+
148
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
149
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
150
+ }
151
+
152
+
153
+
99
154
  setSearchParams(localVarUrlObj, localVarQueryParameter);
100
155
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
156
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -561,6 +616,65 @@ export const ProductAccountMappingsApiAxiosParamCreator = function (configuratio
561
616
  options: localVarRequestOptions,
562
617
  };
563
618
  },
619
+ /**
620
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
621
+ * @summary Update the Premium Item Carrier
622
+ * @param {string} productCode
623
+ * @param {string} productVersionCode
624
+ * @param {string} premiumFormulaCode
625
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
626
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ putPremiumItemCarrier: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
631
+ // verify required parameter 'productCode' is not null or undefined
632
+ assertParamExists('putPremiumItemCarrier', 'productCode', productCode)
633
+ // verify required parameter 'productVersionCode' is not null or undefined
634
+ assertParamExists('putPremiumItemCarrier', 'productVersionCode', productVersionCode)
635
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
636
+ assertParamExists('putPremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode)
637
+ // verify required parameter 'putPremiumItemCarrierBodyDto' is not null or undefined
638
+ assertParamExists('putPremiumItemCarrier', 'putPremiumItemCarrierBodyDto', putPremiumItemCarrierBodyDto)
639
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier`
640
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
641
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
642
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)));
643
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
644
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
645
+ let baseOptions;
646
+ let baseAccessToken;
647
+ if (configuration) {
648
+ baseOptions = configuration.baseOptions;
649
+ baseAccessToken = configuration.accessToken;
650
+ }
651
+
652
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
653
+ const localVarHeaderParameter = {} as any;
654
+ const localVarQueryParameter = {} as any;
655
+
656
+ // authentication bearer required
657
+ // http bearer authentication required
658
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
659
+
660
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
661
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
662
+ }
663
+
664
+
665
+
666
+ localVarHeaderParameter['Content-Type'] = 'application/json';
667
+
668
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
670
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
671
+ localVarRequestOptions.data = serializeDataIfNeeded(putPremiumItemCarrierBodyDto, localVarRequestOptions, configuration)
672
+
673
+ return {
674
+ url: toPathString(localVarUrlObj),
675
+ options: localVarRequestOptions,
676
+ };
677
+ },
564
678
  /**
565
679
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
566
680
  * @summary Update the Product Category Account
@@ -751,6 +865,20 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
751
865
  const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options);
752
866
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
753
867
  },
868
+ /**
869
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
870
+ * @summary Delete the Premium Item Carrier
871
+ * @param {string} productCode
872
+ * @param {string} productVersionCode
873
+ * @param {string} premiumFormulaCode
874
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ async deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options);
880
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
881
+ },
754
882
  /**
755
883
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
756
884
  * @summary Delete the Product Category Account
@@ -867,6 +995,21 @@ export const ProductAccountMappingsApiFp = function(configuration?: Configuratio
867
995
  const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options);
868
996
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
869
997
  },
998
+ /**
999
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1000
+ * @summary Update the Premium Item Carrier
1001
+ * @param {string} productCode
1002
+ * @param {string} productVersionCode
1003
+ * @param {string} premiumFormulaCode
1004
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
1005
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ async putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>> {
1010
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options);
1011
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1012
+ },
870
1013
  /**
871
1014
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
872
1015
  * @summary Update the Product Category Account
@@ -933,6 +1076,19 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
933
1076
  deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
934
1077
  return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then((request) => request(axios, basePath));
935
1078
  },
1079
+ /**
1080
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1081
+ * @summary Delete the Premium Item Carrier
1082
+ * @param {string} productCode
1083
+ * @param {string} productVersionCode
1084
+ * @param {string} premiumFormulaCode
1085
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1086
+ * @param {*} [options] Override http request option.
1087
+ * @throws {RequiredError}
1088
+ */
1089
+ deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: any): AxiosPromise<void> {
1090
+ return localVarFp.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options).then((request) => request(axios, basePath));
1091
+ },
936
1092
  /**
937
1093
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
938
1094
  * @summary Delete the Product Category Account
@@ -1041,6 +1197,20 @@ export const ProductAccountMappingsApiFactory = function (configuration?: Config
1041
1197
  putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
1042
1198
  return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
1043
1199
  },
1200
+ /**
1201
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1202
+ * @summary Update the Premium Item Carrier
1203
+ * @param {string} productCode
1204
+ * @param {string} productVersionCode
1205
+ * @param {string} premiumFormulaCode
1206
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
1207
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
1212
+ return localVarFp.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options).then((request) => request(axios, basePath));
1213
+ },
1044
1214
  /**
1045
1215
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1046
1216
  * @summary Update the Product Category Account
@@ -1125,6 +1295,41 @@ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
1125
1295
  readonly authorization?: string
1126
1296
  }
1127
1297
 
1298
+ /**
1299
+ * Request parameters for deletePremiumItemCarrier operation in ProductAccountMappingsApi.
1300
+ * @export
1301
+ * @interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest
1302
+ */
1303
+ export interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest {
1304
+ /**
1305
+ *
1306
+ * @type {string}
1307
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
1308
+ */
1309
+ readonly productCode: string
1310
+
1311
+ /**
1312
+ *
1313
+ * @type {string}
1314
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
1315
+ */
1316
+ readonly productVersionCode: string
1317
+
1318
+ /**
1319
+ *
1320
+ * @type {string}
1321
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
1322
+ */
1323
+ readonly premiumFormulaCode: string
1324
+
1325
+ /**
1326
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1327
+ * @type {string}
1328
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
1329
+ */
1330
+ readonly authorization?: string
1331
+ }
1332
+
1128
1333
  /**
1129
1334
  * Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
1130
1335
  * @export
@@ -1433,6 +1638,48 @@ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
1433
1638
  readonly authorization?: string
1434
1639
  }
1435
1640
 
1641
+ /**
1642
+ * Request parameters for putPremiumItemCarrier operation in ProductAccountMappingsApi.
1643
+ * @export
1644
+ * @interface ProductAccountMappingsApiPutPremiumItemCarrierRequest
1645
+ */
1646
+ export interface ProductAccountMappingsApiPutPremiumItemCarrierRequest {
1647
+ /**
1648
+ *
1649
+ * @type {string}
1650
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
1651
+ */
1652
+ readonly productCode: string
1653
+
1654
+ /**
1655
+ *
1656
+ * @type {string}
1657
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
1658
+ */
1659
+ readonly productVersionCode: string
1660
+
1661
+ /**
1662
+ *
1663
+ * @type {string}
1664
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
1665
+ */
1666
+ readonly premiumFormulaCode: string
1667
+
1668
+ /**
1669
+ *
1670
+ * @type {PutPremiumItemCarrierBodyDto}
1671
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
1672
+ */
1673
+ readonly putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto
1674
+
1675
+ /**
1676
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1677
+ * @type {string}
1678
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
1679
+ */
1680
+ readonly authorization?: string
1681
+ }
1682
+
1436
1683
  /**
1437
1684
  * Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
1438
1685
  * @export
@@ -1557,6 +1804,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1557
1804
  return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1558
1805
  }
1559
1806
 
1807
+ /**
1808
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1809
+ * @summary Delete the Premium Item Carrier
1810
+ * @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ * @memberof ProductAccountMappingsApi
1814
+ */
1815
+ public deletePremiumItemCarrier(requestParameters: ProductAccountMappingsApiDeletePremiumItemCarrierRequest, options?: AxiosRequestConfig) {
1816
+ return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1817
+ }
1818
+
1560
1819
  /**
1561
1820
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1562
1821
  * @summary Delete the Product Category Account
@@ -1653,6 +1912,18 @@ export class ProductAccountMappingsApi extends BaseAPI {
1653
1912
  return ProductAccountMappingsApiFp(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1654
1913
  }
1655
1914
 
1915
+ /**
1916
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1917
+ * @summary Update the Premium Item Carrier
1918
+ * @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
1919
+ * @param {*} [options] Override http request option.
1920
+ * @throws {RequiredError}
1921
+ * @memberof ProductAccountMappingsApi
1922
+ */
1923
+ public putPremiumItemCarrier(requestParameters: ProductAccountMappingsApiPutPremiumItemCarrierRequest, options?: AxiosRequestConfig) {
1924
+ return ProductAccountMappingsApiFp(this.configuration).putPremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.putPremiumItemCarrierBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1925
+ }
1926
+
1656
1927
  /**
1657
1928
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1658
1929
  * @summary Update the Product Category Account
@@ -19,6 +19,7 @@ import { ProductAccountMappingDetailClass } from '../models';
19
19
  import { ProductRiskCarrierClass } from '../models';
20
20
  import { ProductVersionAccountMappingDetailClass } from '../models';
21
21
  import { PutPremiumItemAccountBodyDto } from '../models';
22
+ import { PutPremiumItemCarrierBodyDto } from '../models';
22
23
  import { PutProductCategoryAccountBodyDto } from '../models';
23
24
  import { PutProductRiskCarrierBodyDto } from '../models';
24
25
  import { PutProductVersionCategoryAccountBodyDto } from '../models';
@@ -40,6 +41,17 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
40
41
  * @throws {RequiredError}
41
42
  */
42
43
  deletePremiumItemAccount: (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
45
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
46
+ * @summary Delete the Premium Item Carrier
47
+ * @param {string} productCode
48
+ * @param {string} productVersionCode
49
+ * @param {string} premiumFormulaCode
50
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ deletePremiumItemCarrier: (productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
55
  /**
44
56
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
45
57
  * @summary Delete the Product Category Account
@@ -132,6 +144,18 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
132
144
  * @throws {RequiredError}
133
145
  */
134
146
  putPremiumItemAccount: (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
147
+ /**
148
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
149
+ * @summary Update the Premium Item Carrier
150
+ * @param {string} productCode
151
+ * @param {string} productVersionCode
152
+ * @param {string} premiumFormulaCode
153
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ putPremiumItemCarrier: (productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
135
159
  /**
136
160
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
137
161
  * @summary Update the Product Category Account
@@ -183,6 +207,17 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
183
207
  * @throws {RequiredError}
184
208
  */
185
209
  deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
210
+ /**
211
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
212
+ * @summary Delete the Premium Item Carrier
213
+ * @param {string} productCode
214
+ * @param {string} productVersionCode
215
+ * @param {string} premiumFormulaCode
216
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
186
221
  /**
187
222
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
188
223
  * @summary Delete the Product Category Account
@@ -275,6 +310,18 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
275
310
  * @throws {RequiredError}
276
311
  */
277
312
  putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>>;
313
+ /**
314
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
315
+ * @summary Update the Premium Item Carrier
316
+ * @param {string} productCode
317
+ * @param {string} productVersionCode
318
+ * @param {string} premiumFormulaCode
319
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>>;
278
325
  /**
279
326
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
280
327
  * @summary Update the Product Category Account
@@ -326,6 +373,17 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
326
373
  * @throws {RequiredError}
327
374
  */
328
375
  deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void>;
376
+ /**
377
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
378
+ * @summary Delete the Premium Item Carrier
379
+ * @param {string} productCode
380
+ * @param {string} productVersionCode
381
+ * @param {string} premiumFormulaCode
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: any): AxiosPromise<void>;
329
387
  /**
330
388
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
331
389
  * @summary Delete the Product Category Account
@@ -418,6 +476,18 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
418
476
  * @throws {RequiredError}
419
477
  */
420
478
  putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass>;
479
+ /**
480
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
481
+ * @summary Update the Premium Item Carrier
482
+ * @param {string} productCode
483
+ * @param {string} productVersionCode
484
+ * @param {string} premiumFormulaCode
485
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
486
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass>;
421
491
  /**
422
492
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
423
493
  * @summary Update the Product Category Account
@@ -489,6 +559,37 @@ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
489
559
  */
490
560
  readonly authorization?: string;
491
561
  }
562
+ /**
563
+ * Request parameters for deletePremiumItemCarrier operation in ProductAccountMappingsApi.
564
+ * @export
565
+ * @interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest
566
+ */
567
+ export interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest {
568
+ /**
569
+ *
570
+ * @type {string}
571
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
572
+ */
573
+ readonly productCode: string;
574
+ /**
575
+ *
576
+ * @type {string}
577
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
578
+ */
579
+ readonly productVersionCode: string;
580
+ /**
581
+ *
582
+ * @type {string}
583
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
584
+ */
585
+ readonly premiumFormulaCode: string;
586
+ /**
587
+ * Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @type {string}
589
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
590
+ */
591
+ readonly authorization?: string;
592
+ }
492
593
  /**
493
594
  * Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
494
595
  * @export
@@ -761,6 +862,43 @@ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
761
862
  */
762
863
  readonly authorization?: string;
763
864
  }
865
+ /**
866
+ * Request parameters for putPremiumItemCarrier operation in ProductAccountMappingsApi.
867
+ * @export
868
+ * @interface ProductAccountMappingsApiPutPremiumItemCarrierRequest
869
+ */
870
+ export interface ProductAccountMappingsApiPutPremiumItemCarrierRequest {
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
875
+ */
876
+ readonly productCode: string;
877
+ /**
878
+ *
879
+ * @type {string}
880
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
881
+ */
882
+ readonly productVersionCode: string;
883
+ /**
884
+ *
885
+ * @type {string}
886
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
887
+ */
888
+ readonly premiumFormulaCode: string;
889
+ /**
890
+ *
891
+ * @type {PutPremiumItemCarrierBodyDto}
892
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
893
+ */
894
+ readonly putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto;
895
+ /**
896
+ * Bearer Token: provided by the login endpoint under the name accessToken.
897
+ * @type {string}
898
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
899
+ */
900
+ readonly authorization?: string;
901
+ }
764
902
  /**
765
903
  * Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
766
904
  * @export
@@ -870,6 +1008,15 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
870
1008
  * @memberof ProductAccountMappingsApi
871
1009
  */
872
1010
  deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1011
+ /**
1012
+ * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1013
+ * @summary Delete the Premium Item Carrier
1014
+ * @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ * @memberof ProductAccountMappingsApi
1018
+ */
1019
+ deletePremiumItemCarrier(requestParameters: ProductAccountMappingsApiDeletePremiumItemCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
873
1020
  /**
874
1021
  * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
875
1022
  * @summary Delete the Product Category Account
@@ -942,6 +1089,15 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
942
1089
  * @memberof ProductAccountMappingsApi
943
1090
  */
944
1091
  putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PremiumItemAccountMappingClass, any, {}>>;
1092
+ /**
1093
+ * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1094
+ * @summary Update the Premium Item Carrier
1095
+ * @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ * @memberof ProductAccountMappingsApi
1099
+ */
1100
+ putPremiumItemCarrier(requestParameters: ProductAccountMappingsApiPutPremiumItemCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PremiumItemAccountMappingClass, any, {}>>;
945
1101
  /**
946
1102
  * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
947
1103
  * @summary Update the Product Category Account