@emilgroup/accounting-sdk-node 1.32.1-beta.7 → 1.32.1-beta.70

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