@emilgroup/accounting-sdk-node 1.32.1-beta.1 → 1.32.1-beta.100

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