@emilgroup/accounting-sdk 1.34.1-beta.9 → 1.34.1-beta.90

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