@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.1-beta.71

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 (168) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +234 -10
  5. package/api/commission-account-mappings-api.ts +1207 -0
  6. package/api/financial-accounts-api.ts +150 -20
  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 +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +121 -7
  18. package/dist/api/booking-entries-api.js +211 -14
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +8 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +24 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +9 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +25 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -0,0 +1,1715 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { ListProductAccountMappingsResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListProductsWithAccountMappingsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { PremiumItemAccountMappingClass } from '../models';
29
+ // @ts-ignore
30
+ import { ProductAccountMappingDetailClass } from '../models';
31
+ // @ts-ignore
32
+ import { ProductRiskCarrierClass } from '../models';
33
+ // @ts-ignore
34
+ import { ProductVersionAccountMappingDetailClass } from '../models';
35
+ // @ts-ignore
36
+ import { PutPremiumItemAccountBodyDto } from '../models';
37
+ // @ts-ignore
38
+ import { PutProductCategoryAccountBodyDto } from '../models';
39
+ // @ts-ignore
40
+ import { PutProductRiskCarrierBodyDto } from '../models';
41
+ // @ts-ignore
42
+ import { PutProductVersionCategoryAccountBodyDto } from '../models';
43
+ // @ts-ignore
44
+ import { ResolvedAccountMappingClass } from '../models';
45
+ /**
46
+ * ProductAccountMappingsApi - axios parameter creator
47
+ * @export
48
+ */
49
+ export const ProductAccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
50
+ return {
51
+ /**
52
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
53
+ * @summary Delete the Premium Item Account
54
+ * @param {string} productCode
55
+ * @param {string} productVersionCode
56
+ * @param {string} premiumFormulaCode
57
+ * @param {string} category
58
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ deletePremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
63
+ // verify required parameter 'productCode' is not null or undefined
64
+ assertParamExists('deletePremiumItemAccount', 'productCode', productCode)
65
+ // verify required parameter 'productVersionCode' is not null or undefined
66
+ assertParamExists('deletePremiumItemAccount', 'productVersionCode', productVersionCode)
67
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
68
+ assertParamExists('deletePremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
69
+ // verify required parameter 'category' is not null or undefined
70
+ assertParamExists('deletePremiumItemAccount', 'category', category)
71
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
72
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
73
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
74
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
75
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ let baseAccessToken;
80
+ if (configuration) {
81
+ baseOptions = configuration.baseOptions;
82
+ baseAccessToken = configuration.accessToken;
83
+ }
84
+
85
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
86
+ const localVarHeaderParameter = {} as any;
87
+ const localVarQueryParameter = {} as any;
88
+
89
+ // authentication bearer required
90
+ // http bearer authentication required
91
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
92
+
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);
97
+ }
98
+
99
+
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 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\"
112
+ * @summary Delete the Product Category Account
113
+ * @param {string} productCode
114
+ * @param {string} category
115
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ deleteProductCategoryAccount: async (productCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
120
+ // verify required parameter 'productCode' is not null or undefined
121
+ assertParamExists('deleteProductCategoryAccount', 'productCode', productCode)
122
+ // verify required parameter 'category' is not null or undefined
123
+ assertParamExists('deleteProductCategoryAccount', 'category', category)
124
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
125
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
126
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
127
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
128
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
129
+ let baseOptions;
130
+ let baseAccessToken;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ baseAccessToken = configuration.accessToken;
134
+ }
135
+
136
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
137
+ const localVarHeaderParameter = {} as any;
138
+ const localVarQueryParameter = {} as any;
139
+
140
+ // authentication bearer required
141
+ // http bearer authentication required
142
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
143
+
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);
195
+ }
196
+
197
+
198
+
199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
202
+
203
+ return {
204
+ url: toPathString(localVarUrlObj),
205
+ options: localVarRequestOptions,
206
+ };
207
+ },
208
+ /**
209
+ * 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\"
210
+ * @summary Delete the Product Version Category Account
211
+ * @param {string} productCode
212
+ * @param {string} productVersionCode
213
+ * @param {string} category
214
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ deleteProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
219
+ // verify required parameter 'productCode' is not null or undefined
220
+ assertParamExists('deleteProductVersionCategoryAccount', 'productCode', productCode)
221
+ // verify required parameter 'productVersionCode' is not null or undefined
222
+ assertParamExists('deleteProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
223
+ // verify required parameter 'category' is not null or undefined
224
+ assertParamExists('deleteProductVersionCategoryAccount', 'category', category)
225
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
226
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
227
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
228
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
230
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
231
+ let baseOptions;
232
+ let baseAccessToken;
233
+ if (configuration) {
234
+ baseOptions = configuration.baseOptions;
235
+ baseAccessToken = configuration.accessToken;
236
+ }
237
+
238
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
239
+ const localVarHeaderParameter = {} as any;
240
+ const localVarQueryParameter = {} as any;
241
+
242
+ // authentication bearer required
243
+ // http bearer authentication required
244
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
245
+
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);
250
+ }
251
+
252
+
253
+
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
+
258
+ return {
259
+ url: toPathString(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ };
262
+ },
263
+ /**
264
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
265
+ * @summary Retrieve the Product Account Mapping
266
+ * @param {string} productCode
267
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getProductAccountMapping: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ // verify required parameter 'productCode' is not null or undefined
273
+ assertParamExists('getProductAccountMapping', 'productCode', productCode)
274
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}`
275
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
278
+ let baseOptions;
279
+ let baseAccessToken;
280
+ if (configuration) {
281
+ baseOptions = configuration.baseOptions;
282
+ baseAccessToken = configuration.accessToken;
283
+ }
284
+
285
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
286
+ const localVarHeaderParameter = {} as any;
287
+ const localVarQueryParameter = {} as any;
288
+
289
+ // authentication bearer required
290
+ // http bearer authentication required
291
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
+
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);
297
+ }
298
+
299
+
300
+
301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
304
+
305
+ return {
306
+ url: toPathString(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ };
309
+ },
310
+ /**
311
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
312
+ * @summary Retrieve the Product Version Account Mapping
313
+ * @param {string} productCode
314
+ * @param {string} productVersionCode
315
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ getProductVersionAccountMapping: async (productCode: string, productVersionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
320
+ // verify required parameter 'productCode' is not null or undefined
321
+ assertParamExists('getProductVersionAccountMapping', 'productCode', productCode)
322
+ // verify required parameter 'productVersionCode' is not null or undefined
323
+ assertParamExists('getProductVersionAccountMapping', 'productVersionCode', productVersionCode)
324
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}`
325
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
326
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)));
327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
329
+ let baseOptions;
330
+ let baseAccessToken;
331
+ if (configuration) {
332
+ baseOptions = configuration.baseOptions;
333
+ baseAccessToken = configuration.accessToken;
334
+ }
335
+
336
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
337
+ const localVarHeaderParameter = {} as any;
338
+ const localVarQueryParameter = {} as any;
339
+
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
343
+
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);
348
+ }
349
+
350
+
351
+
352
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
353
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
354
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
355
+
356
+ return {
357
+ url: toPathString(localVarUrlObj),
358
+ options: localVarRequestOptions,
359
+ };
360
+ },
361
+ /**
362
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
363
+ * @summary List Product Account Mappings
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
367
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
368
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
370
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
371
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ listProductAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
376
+ const localVarPath = `/accountingservice/v1/product-account-mappings`;
377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
379
+ let baseOptions;
380
+ let baseAccessToken;
381
+ if (configuration) {
382
+ baseOptions = configuration.baseOptions;
383
+ baseAccessToken = configuration.accessToken;
384
+ }
385
+
386
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
387
+ const localVarHeaderParameter = {} as any;
388
+ const localVarQueryParameter = {} as any;
389
+
390
+ // authentication bearer required
391
+ // http bearer authentication required
392
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
393
+
394
+ if (pageSize !== undefined) {
395
+ localVarQueryParameter['pageSize'] = pageSize;
396
+ }
397
+
398
+ if (pageToken !== undefined) {
399
+ localVarQueryParameter['pageToken'] = pageToken;
400
+ }
401
+
402
+ if (filter !== undefined) {
403
+ localVarQueryParameter['filter'] = filter;
404
+ }
405
+
406
+ if (search !== undefined) {
407
+ localVarQueryParameter['search'] = search;
408
+ }
409
+
410
+ if (order !== undefined) {
411
+ localVarQueryParameter['order'] = order;
412
+ }
413
+
414
+ if (expand !== undefined) {
415
+ localVarQueryParameter['expand'] = expand;
416
+ }
417
+
418
+ if (filters !== undefined) {
419
+ localVarQueryParameter['filters'] = filters;
420
+ }
421
+
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);
426
+ }
427
+
428
+
429
+
430
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
433
+
434
+ return {
435
+ url: toPathString(localVarUrlObj),
436
+ options: localVarRequestOptions,
437
+ };
438
+ },
439
+ /**
440
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
441
+ * @summary List Products With Account Mappings
442
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
444
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
445
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
446
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
447
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
448
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
449
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ listProductsWithAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
454
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products`;
455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
456
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
457
+ let baseOptions;
458
+ let baseAccessToken;
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ baseAccessToken = configuration.accessToken;
462
+ }
463
+
464
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
465
+ const localVarHeaderParameter = {} as any;
466
+ const localVarQueryParameter = {} as any;
467
+
468
+ // authentication bearer required
469
+ // http bearer authentication required
470
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
471
+
472
+ if (pageSize !== undefined) {
473
+ localVarQueryParameter['pageSize'] = pageSize;
474
+ }
475
+
476
+ if (pageToken !== undefined) {
477
+ localVarQueryParameter['pageToken'] = pageToken;
478
+ }
479
+
480
+ if (filter !== undefined) {
481
+ localVarQueryParameter['filter'] = filter;
482
+ }
483
+
484
+ if (search !== undefined) {
485
+ localVarQueryParameter['search'] = search;
486
+ }
487
+
488
+ if (order !== undefined) {
489
+ localVarQueryParameter['order'] = order;
490
+ }
491
+
492
+ if (expand !== undefined) {
493
+ localVarQueryParameter['expand'] = expand;
494
+ }
495
+
496
+ if (filters !== undefined) {
497
+ localVarQueryParameter['filters'] = filters;
498
+ }
499
+
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);
504
+ }
505
+
506
+
507
+
508
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
509
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
510
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
511
+
512
+ return {
513
+ url: toPathString(localVarUrlObj),
514
+ options: localVarRequestOptions,
515
+ };
516
+ },
517
+ /**
518
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
519
+ * @summary Update the Premium Item Account
520
+ * @param {string} productCode
521
+ * @param {string} productVersionCode
522
+ * @param {string} premiumFormulaCode
523
+ * @param {string} category
524
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
525
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ putPremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
530
+ // verify required parameter 'productCode' is not null or undefined
531
+ assertParamExists('putPremiumItemAccount', 'productCode', productCode)
532
+ // verify required parameter 'productVersionCode' is not null or undefined
533
+ assertParamExists('putPremiumItemAccount', 'productVersionCode', productVersionCode)
534
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
535
+ assertParamExists('putPremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
536
+ // verify required parameter 'category' is not null or undefined
537
+ assertParamExists('putPremiumItemAccount', 'category', category)
538
+ // verify required parameter 'putPremiumItemAccountBodyDto' is not null or undefined
539
+ assertParamExists('putPremiumItemAccount', 'putPremiumItemAccountBodyDto', putPremiumItemAccountBodyDto)
540
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
541
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
542
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
543
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
544
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
547
+ let baseOptions;
548
+ let baseAccessToken;
549
+ if (configuration) {
550
+ baseOptions = configuration.baseOptions;
551
+ baseAccessToken = configuration.accessToken;
552
+ }
553
+
554
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
555
+ const localVarHeaderParameter = {} as any;
556
+ const localVarQueryParameter = {} as any;
557
+
558
+ // authentication bearer required
559
+ // http bearer authentication required
560
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
561
+
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);
566
+ }
567
+
568
+
569
+
570
+ localVarHeaderParameter['Content-Type'] = 'application/json';
571
+
572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
575
+ localVarRequestOptions.data = serializeDataIfNeeded(putPremiumItemAccountBodyDto, localVarRequestOptions, configuration)
576
+
577
+ return {
578
+ url: toPathString(localVarUrlObj),
579
+ options: localVarRequestOptions,
580
+ };
581
+ },
582
+ /**
583
+ * 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\"
584
+ * @summary Update the Product Category Account
585
+ * @param {string} productCode
586
+ * @param {string} category
587
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
588
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ putProductCategoryAccount: async (productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
593
+ // verify required parameter 'productCode' is not null or undefined
594
+ assertParamExists('putProductCategoryAccount', 'productCode', productCode)
595
+ // verify required parameter 'category' is not null or undefined
596
+ assertParamExists('putProductCategoryAccount', 'category', category)
597
+ // verify required parameter 'putProductCategoryAccountBodyDto' is not null or undefined
598
+ assertParamExists('putProductCategoryAccount', 'putProductCategoryAccountBodyDto', putProductCategoryAccountBodyDto)
599
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
600
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
601
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
604
+ let baseOptions;
605
+ let baseAccessToken;
606
+ if (configuration) {
607
+ baseOptions = configuration.baseOptions;
608
+ baseAccessToken = configuration.accessToken;
609
+ }
610
+
611
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
612
+ const localVarHeaderParameter = {} as any;
613
+ const localVarQueryParameter = {} as any;
614
+
615
+ // authentication bearer required
616
+ // http bearer authentication required
617
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
618
+
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);
623
+ }
624
+
625
+
626
+
627
+ localVarHeaderParameter['Content-Type'] = 'application/json';
628
+
629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
631
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
632
+ localVarRequestOptions.data = serializeDataIfNeeded(putProductCategoryAccountBodyDto, localVarRequestOptions, configuration)
633
+
634
+ return {
635
+ url: toPathString(localVarUrlObj),
636
+ options: localVarRequestOptions,
637
+ };
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
+ },
692
+ /**
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\"
694
+ * @summary Update the Product Version Category Account
695
+ * @param {string} productCode
696
+ * @param {string} productVersionCode
697
+ * @param {string} category
698
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
699
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
700
+ * @param {*} [options] Override http request option.
701
+ * @throws {RequiredError}
702
+ */
703
+ putProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
704
+ // verify required parameter 'productCode' is not null or undefined
705
+ assertParamExists('putProductVersionCategoryAccount', 'productCode', productCode)
706
+ // verify required parameter 'productVersionCode' is not null or undefined
707
+ assertParamExists('putProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
708
+ // verify required parameter 'category' is not null or undefined
709
+ assertParamExists('putProductVersionCategoryAccount', 'category', category)
710
+ // verify required parameter 'putProductVersionCategoryAccountBodyDto' is not null or undefined
711
+ assertParamExists('putProductVersionCategoryAccount', 'putProductVersionCategoryAccountBodyDto', putProductVersionCategoryAccountBodyDto)
712
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
713
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
714
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
715
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
718
+ let baseOptions;
719
+ let baseAccessToken;
720
+ if (configuration) {
721
+ baseOptions = configuration.baseOptions;
722
+ baseAccessToken = configuration.accessToken;
723
+ }
724
+
725
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
726
+ const localVarHeaderParameter = {} as any;
727
+ const localVarQueryParameter = {} as any;
728
+
729
+ // authentication bearer required
730
+ // http bearer authentication required
731
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
732
+
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);
737
+ }
738
+
739
+
740
+
741
+ localVarHeaderParameter['Content-Type'] = 'application/json';
742
+
743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
745
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
746
+ localVarRequestOptions.data = serializeDataIfNeeded(putProductVersionCategoryAccountBodyDto, localVarRequestOptions, configuration)
747
+
748
+ return {
749
+ url: toPathString(localVarUrlObj),
750
+ options: localVarRequestOptions,
751
+ };
752
+ },
753
+ }
754
+ };
755
+
756
+ /**
757
+ * ProductAccountMappingsApi - functional programming interface
758
+ * @export
759
+ */
760
+ export const ProductAccountMappingsApiFp = function(configuration?: Configuration) {
761
+ const localVarAxiosParamCreator = ProductAccountMappingsApiAxiosParamCreator(configuration)
762
+ return {
763
+ /**
764
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
765
+ * @summary Delete the Premium Item Account
766
+ * @param {string} productCode
767
+ * @param {string} productVersionCode
768
+ * @param {string} premiumFormulaCode
769
+ * @param {string} category
770
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ async deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options);
776
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
777
+ },
778
+ /**
779
+ * 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\"
780
+ * @summary Delete the Product Category Account
781
+ * @param {string} productCode
782
+ * @param {string} category
783
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ async deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
789
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
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
+ },
803
+ /**
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\"
805
+ * @summary Delete the Product Version Category Account
806
+ * @param {string} productCode
807
+ * @param {string} productVersionCode
808
+ * @param {string} category
809
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ async deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
814
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options);
815
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
816
+ },
817
+ /**
818
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
819
+ * @summary Retrieve the Product Account Mapping
820
+ * @param {string} productCode
821
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ async getProductAccountMapping(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductAccountMappingDetailClass>> {
826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductAccountMapping(productCode, authorization, options);
827
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
828
+ },
829
+ /**
830
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
831
+ * @summary Retrieve the Product Version Account Mapping
832
+ * @param {string} productCode
833
+ * @param {string} productVersionCode
834
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ */
838
+ async getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductVersionAccountMappingDetailClass>> {
839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options);
840
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
841
+ },
842
+ /**
843
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
844
+ * @summary List Product Account Mappings
845
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
846
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
847
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
848
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
849
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
850
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
851
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
852
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ */
856
+ async listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductAccountMappingsResponseClass>> {
857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
858
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
859
+ },
860
+ /**
861
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
862
+ * @summary List Products With Account Mappings
863
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
864
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
865
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
866
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
867
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
868
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
869
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
870
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ async listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsWithAccountMappingsResponseClass>> {
875
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
876
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
877
+ },
878
+ /**
879
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
880
+ * @summary Update the Premium Item Account
881
+ * @param {string} productCode
882
+ * @param {string} productVersionCode
883
+ * @param {string} premiumFormulaCode
884
+ * @param {string} category
885
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
886
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ async putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>> {
891
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options);
892
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
893
+ },
894
+ /**
895
+ * 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\"
896
+ * @summary Update the Product Category Account
897
+ * @param {string} productCode
898
+ * @param {string} category
899
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
900
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ async putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
905
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
906
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
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
+ },
921
+ /**
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\"
923
+ * @summary Update the Product Version Category Account
924
+ * @param {string} productCode
925
+ * @param {string} productVersionCode
926
+ * @param {string} category
927
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
928
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ async putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options);
934
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
935
+ },
936
+ }
937
+ };
938
+
939
+ /**
940
+ * ProductAccountMappingsApi - factory interface
941
+ * @export
942
+ */
943
+ export const ProductAccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
944
+ const localVarFp = ProductAccountMappingsApiFp(configuration)
945
+ return {
946
+ /**
947
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
948
+ * @summary Delete the Premium Item Account
949
+ * @param {string} productCode
950
+ * @param {string} productVersionCode
951
+ * @param {string} premiumFormulaCode
952
+ * @param {string} category
953
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ */
957
+ deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
958
+ return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then((request) => request(axios, basePath));
959
+ },
960
+ /**
961
+ * 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\"
962
+ * @summary Delete the Product Category Account
963
+ * @param {string} productCode
964
+ * @param {string} category
965
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
970
+ return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
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
+ },
983
+ /**
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\"
985
+ * @summary Delete the Product Version Category Account
986
+ * @param {string} productCode
987
+ * @param {string} productVersionCode
988
+ * @param {string} category
989
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
994
+ return localVarFp.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options).then((request) => request(axios, basePath));
995
+ },
996
+ /**
997
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
998
+ * @summary Retrieve the Product Account Mapping
999
+ * @param {string} productCode
1000
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ getProductAccountMapping(productCode: string, authorization?: string, options?: any): AxiosPromise<ProductAccountMappingDetailClass> {
1005
+ return localVarFp.getProductAccountMapping(productCode, authorization, options).then((request) => request(axios, basePath));
1006
+ },
1007
+ /**
1008
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1009
+ * @summary Retrieve the Product Version Account Mapping
1010
+ * @param {string} productCode
1011
+ * @param {string} productVersionCode
1012
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: any): AxiosPromise<ProductVersionAccountMappingDetailClass> {
1017
+ return localVarFp.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options).then((request) => request(axios, basePath));
1018
+ },
1019
+ /**
1020
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
1021
+ * @summary List Product Account Mappings
1022
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1023
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1024
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1025
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1026
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1027
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1028
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1029
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductAccountMappingsResponseClass> {
1034
+ return localVarFp.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1035
+ },
1036
+ /**
1037
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
1038
+ * @summary List Products With Account Mappings
1039
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1040
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1041
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1042
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1043
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1044
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1045
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1046
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ */
1050
+ listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductsWithAccountMappingsResponseClass> {
1051
+ return localVarFp.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1052
+ },
1053
+ /**
1054
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1055
+ * @summary Update the Premium Item Account
1056
+ * @param {string} productCode
1057
+ * @param {string} productVersionCode
1058
+ * @param {string} premiumFormulaCode
1059
+ * @param {string} category
1060
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
1061
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
1066
+ return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
1067
+ },
1068
+ /**
1069
+ * 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\"
1070
+ * @summary Update the Product Category Account
1071
+ * @param {string} productCode
1072
+ * @param {string} category
1073
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
1074
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ */
1078
+ putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
1079
+ return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
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
+ },
1093
+ /**
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\"
1095
+ * @summary Update the Product Version Category Account
1096
+ * @param {string} productCode
1097
+ * @param {string} productVersionCode
1098
+ * @param {string} category
1099
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
1100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
1105
+ return localVarFp.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
1106
+ },
1107
+ };
1108
+ };
1109
+
1110
+ /**
1111
+ * Request parameters for deletePremiumItemAccount operation in ProductAccountMappingsApi.
1112
+ * @export
1113
+ * @interface ProductAccountMappingsApiDeletePremiumItemAccountRequest
1114
+ */
1115
+ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
1116
+ /**
1117
+ *
1118
+ * @type {string}
1119
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
1120
+ */
1121
+ readonly productCode: string
1122
+
1123
+ /**
1124
+ *
1125
+ * @type {string}
1126
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
1127
+ */
1128
+ readonly productVersionCode: string
1129
+
1130
+ /**
1131
+ *
1132
+ * @type {string}
1133
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
1134
+ */
1135
+ readonly premiumFormulaCode: string
1136
+
1137
+ /**
1138
+ *
1139
+ * @type {string}
1140
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
1141
+ */
1142
+ readonly category: string
1143
+
1144
+ /**
1145
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1146
+ * @type {string}
1147
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
1148
+ */
1149
+ readonly authorization?: string
1150
+ }
1151
+
1152
+ /**
1153
+ * Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
1154
+ * @export
1155
+ * @interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest
1156
+ */
1157
+ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
1158
+ /**
1159
+ *
1160
+ * @type {string}
1161
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
1162
+ */
1163
+ readonly productCode: string
1164
+
1165
+ /**
1166
+ *
1167
+ * @type {string}
1168
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
1169
+ */
1170
+ readonly category: string
1171
+
1172
+ /**
1173
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1174
+ * @type {string}
1175
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
1176
+ */
1177
+ readonly authorization?: string
1178
+ }
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
+
1201
+ /**
1202
+ * Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1203
+ * @export
1204
+ * @interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest
1205
+ */
1206
+ export interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest {
1207
+ /**
1208
+ *
1209
+ * @type {string}
1210
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1211
+ */
1212
+ readonly productCode: string
1213
+
1214
+ /**
1215
+ *
1216
+ * @type {string}
1217
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1218
+ */
1219
+ readonly productVersionCode: string
1220
+
1221
+ /**
1222
+ *
1223
+ * @type {string}
1224
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1225
+ */
1226
+ readonly category: string
1227
+
1228
+ /**
1229
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1230
+ * @type {string}
1231
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1232
+ */
1233
+ readonly authorization?: string
1234
+ }
1235
+
1236
+ /**
1237
+ * Request parameters for getProductAccountMapping operation in ProductAccountMappingsApi.
1238
+ * @export
1239
+ * @interface ProductAccountMappingsApiGetProductAccountMappingRequest
1240
+ */
1241
+ export interface ProductAccountMappingsApiGetProductAccountMappingRequest {
1242
+ /**
1243
+ *
1244
+ * @type {string}
1245
+ * @memberof ProductAccountMappingsApiGetProductAccountMapping
1246
+ */
1247
+ readonly productCode: string
1248
+
1249
+ /**
1250
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1251
+ * @type {string}
1252
+ * @memberof ProductAccountMappingsApiGetProductAccountMapping
1253
+ */
1254
+ readonly authorization?: string
1255
+ }
1256
+
1257
+ /**
1258
+ * Request parameters for getProductVersionAccountMapping operation in ProductAccountMappingsApi.
1259
+ * @export
1260
+ * @interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest
1261
+ */
1262
+ export interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest {
1263
+ /**
1264
+ *
1265
+ * @type {string}
1266
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1267
+ */
1268
+ readonly productCode: string
1269
+
1270
+ /**
1271
+ *
1272
+ * @type {string}
1273
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1274
+ */
1275
+ readonly productVersionCode: string
1276
+
1277
+ /**
1278
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1279
+ * @type {string}
1280
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1281
+ */
1282
+ readonly authorization?: string
1283
+ }
1284
+
1285
+ /**
1286
+ * Request parameters for listProductAccountMappings operation in ProductAccountMappingsApi.
1287
+ * @export
1288
+ * @interface ProductAccountMappingsApiListProductAccountMappingsRequest
1289
+ */
1290
+ export interface ProductAccountMappingsApiListProductAccountMappingsRequest {
1291
+ /**
1292
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1293
+ * @type {string}
1294
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1295
+ */
1296
+ readonly authorization?: string
1297
+
1298
+ /**
1299
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1300
+ * @type {number}
1301
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1302
+ */
1303
+ readonly pageSize?: number
1304
+
1305
+ /**
1306
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1307
+ * @type {string}
1308
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1309
+ */
1310
+ readonly pageToken?: string
1311
+
1312
+ /**
1313
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1314
+ * @type {string}
1315
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1316
+ */
1317
+ readonly filter?: string
1318
+
1319
+ /**
1320
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1321
+ * @type {string}
1322
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1323
+ */
1324
+ readonly search?: string
1325
+
1326
+ /**
1327
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1328
+ * @type {string}
1329
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1330
+ */
1331
+ readonly order?: string
1332
+
1333
+ /**
1334
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1335
+ * @type {string}
1336
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1337
+ */
1338
+ readonly expand?: string
1339
+
1340
+ /**
1341
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1342
+ * @type {string}
1343
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1344
+ */
1345
+ readonly filters?: string
1346
+ }
1347
+
1348
+ /**
1349
+ * Request parameters for listProductsWithAccountMappings operation in ProductAccountMappingsApi.
1350
+ * @export
1351
+ * @interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest
1352
+ */
1353
+ export interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest {
1354
+ /**
1355
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1356
+ * @type {string}
1357
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1358
+ */
1359
+ readonly authorization?: string
1360
+
1361
+ /**
1362
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1363
+ * @type {number}
1364
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1365
+ */
1366
+ readonly pageSize?: number
1367
+
1368
+ /**
1369
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1370
+ * @type {string}
1371
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1372
+ */
1373
+ readonly pageToken?: string
1374
+
1375
+ /**
1376
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1377
+ * @type {string}
1378
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1379
+ */
1380
+ readonly filter?: string
1381
+
1382
+ /**
1383
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1384
+ * @type {string}
1385
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1386
+ */
1387
+ readonly search?: string
1388
+
1389
+ /**
1390
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1391
+ * @type {string}
1392
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1393
+ */
1394
+ readonly order?: string
1395
+
1396
+ /**
1397
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1398
+ * @type {string}
1399
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1400
+ */
1401
+ readonly expand?: string
1402
+
1403
+ /**
1404
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1405
+ * @type {string}
1406
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1407
+ */
1408
+ readonly filters?: string
1409
+ }
1410
+
1411
+ /**
1412
+ * Request parameters for putPremiumItemAccount operation in ProductAccountMappingsApi.
1413
+ * @export
1414
+ * @interface ProductAccountMappingsApiPutPremiumItemAccountRequest
1415
+ */
1416
+ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
1417
+ /**
1418
+ *
1419
+ * @type {string}
1420
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1421
+ */
1422
+ readonly productCode: string
1423
+
1424
+ /**
1425
+ *
1426
+ * @type {string}
1427
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1428
+ */
1429
+ readonly productVersionCode: string
1430
+
1431
+ /**
1432
+ *
1433
+ * @type {string}
1434
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1435
+ */
1436
+ readonly premiumFormulaCode: string
1437
+
1438
+ /**
1439
+ *
1440
+ * @type {string}
1441
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1442
+ */
1443
+ readonly category: string
1444
+
1445
+ /**
1446
+ *
1447
+ * @type {PutPremiumItemAccountBodyDto}
1448
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1449
+ */
1450
+ readonly putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto
1451
+
1452
+ /**
1453
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1454
+ * @type {string}
1455
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1456
+ */
1457
+ readonly authorization?: string
1458
+ }
1459
+
1460
+ /**
1461
+ * Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
1462
+ * @export
1463
+ * @interface ProductAccountMappingsApiPutProductCategoryAccountRequest
1464
+ */
1465
+ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
1466
+ /**
1467
+ *
1468
+ * @type {string}
1469
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1470
+ */
1471
+ readonly productCode: string
1472
+
1473
+ /**
1474
+ *
1475
+ * @type {string}
1476
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1477
+ */
1478
+ readonly category: string
1479
+
1480
+ /**
1481
+ *
1482
+ * @type {PutProductCategoryAccountBodyDto}
1483
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1484
+ */
1485
+ readonly putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto
1486
+
1487
+ /**
1488
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1489
+ * @type {string}
1490
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1491
+ */
1492
+ readonly authorization?: string
1493
+ }
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
+
1523
+ /**
1524
+ * Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1525
+ * @export
1526
+ * @interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest
1527
+ */
1528
+ export interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest {
1529
+ /**
1530
+ *
1531
+ * @type {string}
1532
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1533
+ */
1534
+ readonly productCode: string
1535
+
1536
+ /**
1537
+ *
1538
+ * @type {string}
1539
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1540
+ */
1541
+ readonly productVersionCode: string
1542
+
1543
+ /**
1544
+ *
1545
+ * @type {string}
1546
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1547
+ */
1548
+ readonly category: string
1549
+
1550
+ /**
1551
+ *
1552
+ * @type {PutProductVersionCategoryAccountBodyDto}
1553
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1554
+ */
1555
+ readonly putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto
1556
+
1557
+ /**
1558
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1559
+ * @type {string}
1560
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1561
+ */
1562
+ readonly authorization?: string
1563
+ }
1564
+
1565
+ /**
1566
+ * ProductAccountMappingsApi - object-oriented interface
1567
+ * @export
1568
+ * @class ProductAccountMappingsApi
1569
+ * @extends {BaseAPI}
1570
+ */
1571
+ export class ProductAccountMappingsApi extends BaseAPI {
1572
+ /**
1573
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1574
+ * @summary Delete the Premium Item Account
1575
+ * @param {ProductAccountMappingsApiDeletePremiumItemAccountRequest} requestParameters Request parameters.
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ * @memberof ProductAccountMappingsApi
1579
+ */
1580
+ public deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig) {
1581
+ return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1582
+ }
1583
+
1584
+ /**
1585
+ * 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\"
1586
+ * @summary Delete the Product Category Account
1587
+ * @param {ProductAccountMappingsApiDeleteProductCategoryAccountRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof ProductAccountMappingsApi
1591
+ */
1592
+ public deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig) {
1593
+ return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1594
+ }
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
+
1608
+ /**
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\"
1610
+ * @summary Delete the Product Version Category Account
1611
+ * @param {ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest} requestParameters Request parameters.
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ * @memberof ProductAccountMappingsApi
1615
+ */
1616
+ public deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
1617
+ return ProductAccountMappingsApiFp(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1618
+ }
1619
+
1620
+ /**
1621
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1622
+ * @summary Retrieve the Product Account Mapping
1623
+ * @param {ProductAccountMappingsApiGetProductAccountMappingRequest} requestParameters Request parameters.
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ * @memberof ProductAccountMappingsApi
1627
+ */
1628
+ public getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig) {
1629
+ return ProductAccountMappingsApiFp(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1630
+ }
1631
+
1632
+ /**
1633
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1634
+ * @summary Retrieve the Product Version Account Mapping
1635
+ * @param {ProductAccountMappingsApiGetProductVersionAccountMappingRequest} requestParameters Request parameters.
1636
+ * @param {*} [options] Override http request option.
1637
+ * @throws {RequiredError}
1638
+ * @memberof ProductAccountMappingsApi
1639
+ */
1640
+ public getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig) {
1641
+ return ProductAccountMappingsApiFp(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1642
+ }
1643
+
1644
+ /**
1645
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
1646
+ * @summary List Product Account Mappings
1647
+ * @param {ProductAccountMappingsApiListProductAccountMappingsRequest} requestParameters Request parameters.
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ * @memberof ProductAccountMappingsApi
1651
+ */
1652
+ public listProductAccountMappings(requestParameters: ProductAccountMappingsApiListProductAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1653
+ return ProductAccountMappingsApiFp(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1654
+ }
1655
+
1656
+ /**
1657
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
1658
+ * @summary List Products With Account Mappings
1659
+ * @param {ProductAccountMappingsApiListProductsWithAccountMappingsRequest} requestParameters Request parameters.
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ * @memberof ProductAccountMappingsApi
1663
+ */
1664
+ public listProductsWithAccountMappings(requestParameters: ProductAccountMappingsApiListProductsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1665
+ return ProductAccountMappingsApiFp(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1666
+ }
1667
+
1668
+ /**
1669
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1670
+ * @summary Update the Premium Item Account
1671
+ * @param {ProductAccountMappingsApiPutPremiumItemAccountRequest} requestParameters Request parameters.
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ * @memberof ProductAccountMappingsApi
1675
+ */
1676
+ public putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig) {
1677
+ 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));
1678
+ }
1679
+
1680
+ /**
1681
+ * 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\"
1682
+ * @summary Update the Product Category Account
1683
+ * @param {ProductAccountMappingsApiPutProductCategoryAccountRequest} requestParameters Request parameters.
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ * @memberof ProductAccountMappingsApi
1687
+ */
1688
+ public putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig) {
1689
+ return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1690
+ }
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
+
1704
+ /**
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\"
1706
+ * @summary Update the Product Version Category Account
1707
+ * @param {ProductAccountMappingsApiPutProductVersionCategoryAccountRequest} requestParameters Request parameters.
1708
+ * @param {*} [options] Override http request option.
1709
+ * @throws {RequiredError}
1710
+ * @memberof ProductAccountMappingsApi
1711
+ */
1712
+ public putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
1713
+ return ProductAccountMappingsApiFp(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1714
+ }
1715
+ }