@emilgroup/accounting-sdk 1.34.1-beta.6 → 1.34.1-beta.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +230 -6
  5. package/api/commission-account-mappings-api.ts +1207 -0
  6. package/api/financial-accounts-api.ts +150 -20
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +117 -3
  18. package/dist/api/booking-entries-api.js +207 -10
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +14 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +30 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +15 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +31 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -0,0 +1,1207 @@
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 { CommissionAgreementAccountMappingDetailClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListCommissionAccountMappingsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { ListCommissionAgreementsWithAccountMappingsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCommissionTypeAccountMappingsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ResolvedCommissionAccountMappingClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionAgreementAccountBodyDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateCommissionTypeAccountBodyDto } from '../models';
37
+ /**
38
+ * CommissionAccountMappingsApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const CommissionAccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ * Permanently deletes the Commission Agreement Account. Supply the unique code that was returned when you created the Commission Agreement Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
45
+ * @summary Delete the Commission Agreement Account
46
+ * @param {string} commissionAgreementCode
47
+ * @param {string} commissionType
48
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ deleteCommissionAgreementAccount: async (commissionAgreementCode: string, commissionType: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
54
+ assertParamExists('deleteCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode)
55
+ // verify required parameter 'commissionType' is not null or undefined
56
+ assertParamExists('deleteCommissionAgreementAccount', 'commissionType', commissionType)
57
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}/commission-type/{commissionType}`
58
+ .replace(`{${"commissionAgreementCode"}}`, encodeURIComponent(String(commissionAgreementCode)))
59
+ .replace(`{${"commissionType"}}`, encodeURIComponent(String(commissionType)));
60
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62
+ let baseOptions;
63
+ let baseAccessToken;
64
+ if (configuration) {
65
+ baseOptions = configuration.baseOptions;
66
+ baseAccessToken = configuration.accessToken;
67
+ }
68
+
69
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
70
+ const localVarHeaderParameter = {} as any;
71
+ const localVarQueryParameter = {} as any;
72
+
73
+ // authentication bearer required
74
+ // http bearer authentication required
75
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
76
+
77
+ // Only Authorization falls back to the configured token; an empty value is never sent.
78
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
79
+ if (authorizationValue) {
80
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
81
+ }
82
+
83
+
84
+
85
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
94
+ /**
95
+ * Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
96
+ * @summary Delete the Commission Type Account
97
+ * @param {string} commissionType
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ deleteCommissionTypeAccount: async (commissionType: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'commissionType' is not null or undefined
104
+ assertParamExists('deleteCommissionTypeAccount', 'commissionType', commissionType)
105
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/types/{commissionType}`
106
+ .replace(`{${"commissionType"}}`, encodeURIComponent(String(commissionType)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ let baseAccessToken;
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+
116
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
117
+ const localVarHeaderParameter = {} as any;
118
+ const localVarQueryParameter = {} as any;
119
+
120
+ // authentication bearer required
121
+ // http bearer authentication required
122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
+
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
126
+ if (authorizationValue) {
127
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ }
129
+
130
+
131
+
132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ * Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
143
+ * @summary Retrieve the Commission Agreement Account Mapping
144
+ * @param {string} commissionAgreementCode
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ getCommissionAgreementAccountMapping: async (commissionAgreementCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
151
+ assertParamExists('getCommissionAgreementAccountMapping', 'commissionAgreementCode', commissionAgreementCode)
152
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}`
153
+ .replace(`{${"commissionAgreementCode"}}`, encodeURIComponent(String(commissionAgreementCode)));
154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ let baseAccessToken;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ baseAccessToken = configuration.accessToken;
161
+ }
162
+
163
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
164
+ const localVarHeaderParameter = {} as any;
165
+ const localVarQueryParameter = {} as any;
166
+
167
+ // authentication bearer required
168
+ // http bearer authentication required
169
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
+
171
+ // Only Authorization falls back to the configured token; an empty value is never sent.
172
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
173
+ if (authorizationValue) {
174
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
175
+ }
176
+
177
+
178
+
179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
182
+
183
+ return {
184
+ url: toPathString(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ },
188
+ /**
189
+ * Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
190
+ * @summary List Commission Account Mappings
191
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
193
+ * @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.
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
195
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
196
+ * @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.
197
+ * @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.
198
+ * @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.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ listCommissionAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ const localVarPath = `/accountingservice/v1/commission-account-mappings`;
204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
206
+ let baseOptions;
207
+ let baseAccessToken;
208
+ if (configuration) {
209
+ baseOptions = configuration.baseOptions;
210
+ baseAccessToken = configuration.accessToken;
211
+ }
212
+
213
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
214
+ const localVarHeaderParameter = {} as any;
215
+ const localVarQueryParameter = {} as any;
216
+
217
+ // authentication bearer required
218
+ // http bearer authentication required
219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
220
+
221
+ if (pageSize !== undefined) {
222
+ localVarQueryParameter['pageSize'] = pageSize;
223
+ }
224
+
225
+ if (pageToken !== undefined) {
226
+ localVarQueryParameter['pageToken'] = pageToken;
227
+ }
228
+
229
+ if (filter !== undefined) {
230
+ localVarQueryParameter['filter'] = filter;
231
+ }
232
+
233
+ if (search !== undefined) {
234
+ localVarQueryParameter['search'] = search;
235
+ }
236
+
237
+ if (order !== undefined) {
238
+ localVarQueryParameter['order'] = order;
239
+ }
240
+
241
+ if (expand !== undefined) {
242
+ localVarQueryParameter['expand'] = expand;
243
+ }
244
+
245
+ if (filters !== undefined) {
246
+ localVarQueryParameter['filters'] = filters;
247
+ }
248
+
249
+ // Only Authorization falls back to the configured token; an empty value is never sent.
250
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
251
+ if (authorizationValue) {
252
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
253
+ }
254
+
255
+
256
+
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
+
261
+ return {
262
+ url: toPathString(localVarUrlObj),
263
+ options: localVarRequestOptions,
264
+ };
265
+ },
266
+ /**
267
+ * Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
268
+ * @summary List Commission Agreements With Account Mappings
269
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
271
+ * @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.
272
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
273
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
274
+ * @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.
275
+ * @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.
276
+ * @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.
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ listCommissionAgreementsWithAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
281
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/agreements`;
282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
284
+ let baseOptions;
285
+ let baseAccessToken;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ baseAccessToken = configuration.accessToken;
289
+ }
290
+
291
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
292
+ const localVarHeaderParameter = {} as any;
293
+ const localVarQueryParameter = {} as any;
294
+
295
+ // authentication bearer required
296
+ // http bearer authentication required
297
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
298
+
299
+ if (pageSize !== undefined) {
300
+ localVarQueryParameter['pageSize'] = pageSize;
301
+ }
302
+
303
+ if (pageToken !== undefined) {
304
+ localVarQueryParameter['pageToken'] = pageToken;
305
+ }
306
+
307
+ if (filter !== undefined) {
308
+ localVarQueryParameter['filter'] = filter;
309
+ }
310
+
311
+ if (search !== undefined) {
312
+ localVarQueryParameter['search'] = search;
313
+ }
314
+
315
+ if (order !== undefined) {
316
+ localVarQueryParameter['order'] = order;
317
+ }
318
+
319
+ if (expand !== undefined) {
320
+ localVarQueryParameter['expand'] = expand;
321
+ }
322
+
323
+ if (filters !== undefined) {
324
+ localVarQueryParameter['filters'] = filters;
325
+ }
326
+
327
+ // Only Authorization falls back to the configured token; an empty value is never sent.
328
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
329
+ if (authorizationValue) {
330
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
+ }
332
+
333
+
334
+
335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
338
+
339
+ return {
340
+ url: toPathString(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ };
343
+ },
344
+ /**
345
+ * Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
346
+ * @summary List Commission Type Standards
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
349
+ * @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.
350
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
351
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
352
+ * @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.
353
+ * @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.
354
+ * @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.
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ listCommissionTypeAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
359
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/types`;
360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
362
+ let baseOptions;
363
+ let baseAccessToken;
364
+ if (configuration) {
365
+ baseOptions = configuration.baseOptions;
366
+ baseAccessToken = configuration.accessToken;
367
+ }
368
+
369
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
370
+ const localVarHeaderParameter = {} as any;
371
+ const localVarQueryParameter = {} as any;
372
+
373
+ // authentication bearer required
374
+ // http bearer authentication required
375
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
376
+
377
+ if (pageSize !== undefined) {
378
+ localVarQueryParameter['pageSize'] = pageSize;
379
+ }
380
+
381
+ if (pageToken !== undefined) {
382
+ localVarQueryParameter['pageToken'] = pageToken;
383
+ }
384
+
385
+ if (filter !== undefined) {
386
+ localVarQueryParameter['filter'] = filter;
387
+ }
388
+
389
+ if (search !== undefined) {
390
+ localVarQueryParameter['search'] = search;
391
+ }
392
+
393
+ if (order !== undefined) {
394
+ localVarQueryParameter['order'] = order;
395
+ }
396
+
397
+ if (expand !== undefined) {
398
+ localVarQueryParameter['expand'] = expand;
399
+ }
400
+
401
+ if (filters !== undefined) {
402
+ localVarQueryParameter['filters'] = filters;
403
+ }
404
+
405
+ // Only Authorization falls back to the configured token; an empty value is never sent.
406
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
407
+ if (authorizationValue) {
408
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
409
+ }
410
+
411
+
412
+
413
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
414
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
415
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
416
+
417
+ return {
418
+ url: toPathString(localVarUrlObj),
419
+ options: localVarRequestOptions,
420
+ };
421
+ },
422
+ /**
423
+ * Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
424
+ * @summary Update the Commission Agreement Account
425
+ * @param {string} commissionAgreementCode
426
+ * @param {string} commissionType
427
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
428
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ updateCommissionAgreementAccount: async (commissionAgreementCode: string, commissionType: string, updateCommissionAgreementAccountBodyDto: UpdateCommissionAgreementAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
433
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
434
+ assertParamExists('updateCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode)
435
+ // verify required parameter 'commissionType' is not null or undefined
436
+ assertParamExists('updateCommissionAgreementAccount', 'commissionType', commissionType)
437
+ // verify required parameter 'updateCommissionAgreementAccountBodyDto' is not null or undefined
438
+ assertParamExists('updateCommissionAgreementAccount', 'updateCommissionAgreementAccountBodyDto', updateCommissionAgreementAccountBodyDto)
439
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}/commission-type/{commissionType}`
440
+ .replace(`{${"commissionAgreementCode"}}`, encodeURIComponent(String(commissionAgreementCode)))
441
+ .replace(`{${"commissionType"}}`, encodeURIComponent(String(commissionType)));
442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ let baseAccessToken;
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ baseAccessToken = configuration.accessToken;
449
+ }
450
+
451
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
452
+ const localVarHeaderParameter = {} as any;
453
+ const localVarQueryParameter = {} as any;
454
+
455
+ // authentication bearer required
456
+ // http bearer authentication required
457
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
458
+
459
+ // Only Authorization falls back to the configured token; an empty value is never sent.
460
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
461
+ if (authorizationValue) {
462
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
463
+ }
464
+
465
+
466
+
467
+ localVarHeaderParameter['Content-Type'] = 'application/json';
468
+
469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
472
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementAccountBodyDto, localVarRequestOptions, configuration)
473
+
474
+ return {
475
+ url: toPathString(localVarUrlObj),
476
+ options: localVarRequestOptions,
477
+ };
478
+ },
479
+ /**
480
+ * Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
481
+ * @summary Update the Commission Type Account
482
+ * @param {string} commissionType
483
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
484
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @param {*} [options] Override http request option.
486
+ * @throws {RequiredError}
487
+ */
488
+ updateCommissionTypeAccount: async (commissionType: string, updateCommissionTypeAccountBodyDto: UpdateCommissionTypeAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
489
+ // verify required parameter 'commissionType' is not null or undefined
490
+ assertParamExists('updateCommissionTypeAccount', 'commissionType', commissionType)
491
+ // verify required parameter 'updateCommissionTypeAccountBodyDto' is not null or undefined
492
+ assertParamExists('updateCommissionTypeAccount', 'updateCommissionTypeAccountBodyDto', updateCommissionTypeAccountBodyDto)
493
+ const localVarPath = `/accountingservice/v1/commission-account-mappings/types/{commissionType}`
494
+ .replace(`{${"commissionType"}}`, encodeURIComponent(String(commissionType)));
495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
497
+ let baseOptions;
498
+ let baseAccessToken;
499
+ if (configuration) {
500
+ baseOptions = configuration.baseOptions;
501
+ baseAccessToken = configuration.accessToken;
502
+ }
503
+
504
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
505
+ const localVarHeaderParameter = {} as any;
506
+ const localVarQueryParameter = {} as any;
507
+
508
+ // authentication bearer required
509
+ // http bearer authentication required
510
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
511
+
512
+ // Only Authorization falls back to the configured token; an empty value is never sent.
513
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
514
+ if (authorizationValue) {
515
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
516
+ }
517
+
518
+
519
+
520
+ localVarHeaderParameter['Content-Type'] = 'application/json';
521
+
522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
525
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionTypeAccountBodyDto, localVarRequestOptions, configuration)
526
+
527
+ return {
528
+ url: toPathString(localVarUrlObj),
529
+ options: localVarRequestOptions,
530
+ };
531
+ },
532
+ }
533
+ };
534
+
535
+ /**
536
+ * CommissionAccountMappingsApi - functional programming interface
537
+ * @export
538
+ */
539
+ export const CommissionAccountMappingsApiFp = function(configuration?: Configuration) {
540
+ const localVarAxiosParamCreator = CommissionAccountMappingsApiAxiosParamCreator(configuration)
541
+ return {
542
+ /**
543
+ * Permanently deletes the Commission Agreement Account. Supply the unique code that was returned when you created the Commission Agreement Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
544
+ * @summary Delete the Commission Agreement Account
545
+ * @param {string} commissionAgreementCode
546
+ * @param {string} commissionType
547
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ async deleteCommissionAgreementAccount(commissionAgreementCode: string, commissionType: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementAccount(commissionAgreementCode, commissionType, authorization, options);
553
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
554
+ },
555
+ /**
556
+ * Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
557
+ * @summary Delete the Commission Type Account
558
+ * @param {string} commissionType
559
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ async deleteCommissionTypeAccount(commissionType: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionTypeAccount(commissionType, authorization, options);
565
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566
+ },
567
+ /**
568
+ * Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
569
+ * @summary Retrieve the Commission Agreement Account Mapping
570
+ * @param {string} commissionAgreementCode
571
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ async getCommissionAgreementAccountMapping(commissionAgreementCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommissionAgreementAccountMappingDetailClass>> {
576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementAccountMapping(commissionAgreementCode, authorization, options);
577
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
578
+ },
579
+ /**
580
+ * Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
581
+ * @summary List Commission Account Mappings
582
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
583
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
584
+ * @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.
585
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
586
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
587
+ * @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.
588
+ * @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.
589
+ * @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.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ async listCommissionAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAccountMappingsResponseClass>> {
594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
595
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
596
+ },
597
+ /**
598
+ * Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
599
+ * @summary List Commission Agreements With Account Mappings
600
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
601
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
602
+ * @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.
603
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
604
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
605
+ * @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.
606
+ * @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.
607
+ * @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.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ async listCommissionAgreementsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsWithAccountMappingsResponseClass>> {
612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
613
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
614
+ },
615
+ /**
616
+ * Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
617
+ * @summary List Commission Type Standards
618
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
619
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
620
+ * @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.
621
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
622
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
623
+ * @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.
624
+ * @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.
625
+ * @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.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ async listCommissionTypeAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionTypeAccountMappingsResponseClass>> {
630
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionTypeAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
631
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
632
+ },
633
+ /**
634
+ * Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
635
+ * @summary Update the Commission Agreement Account
636
+ * @param {string} commissionAgreementCode
637
+ * @param {string} commissionType
638
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
639
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
640
+ * @param {*} [options] Override http request option.
641
+ * @throws {RequiredError}
642
+ */
643
+ async updateCommissionAgreementAccount(commissionAgreementCode: string, commissionType: string, updateCommissionAgreementAccountBodyDto: UpdateCommissionAgreementAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedCommissionAccountMappingClass>> {
644
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementAccount(commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options);
645
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
646
+ },
647
+ /**
648
+ * Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
649
+ * @summary Update the Commission Type Account
650
+ * @param {string} commissionType
651
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
652
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ async updateCommissionTypeAccount(commissionType: string, updateCommissionTypeAccountBodyDto: UpdateCommissionTypeAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedCommissionAccountMappingClass>> {
657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionTypeAccount(commissionType, updateCommissionTypeAccountBodyDto, authorization, options);
658
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
659
+ },
660
+ }
661
+ };
662
+
663
+ /**
664
+ * CommissionAccountMappingsApi - factory interface
665
+ * @export
666
+ */
667
+ export const CommissionAccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
668
+ const localVarFp = CommissionAccountMappingsApiFp(configuration)
669
+ return {
670
+ /**
671
+ * Permanently deletes the Commission Agreement Account. Supply the unique code that was returned when you created the Commission Agreement Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
672
+ * @summary Delete the Commission Agreement Account
673
+ * @param {string} commissionAgreementCode
674
+ * @param {string} commissionType
675
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ deleteCommissionAgreementAccount(commissionAgreementCode: string, commissionType: string, authorization?: string, options?: any): AxiosPromise<void> {
680
+ return localVarFp.deleteCommissionAgreementAccount(commissionAgreementCode, commissionType, authorization, options).then((request) => request(axios, basePath));
681
+ },
682
+ /**
683
+ * Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
684
+ * @summary Delete the Commission Type Account
685
+ * @param {string} commissionType
686
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ deleteCommissionTypeAccount(commissionType: string, authorization?: string, options?: any): AxiosPromise<void> {
691
+ return localVarFp.deleteCommissionTypeAccount(commissionType, authorization, options).then((request) => request(axios, basePath));
692
+ },
693
+ /**
694
+ * Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
695
+ * @summary Retrieve the Commission Agreement Account Mapping
696
+ * @param {string} commissionAgreementCode
697
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ getCommissionAgreementAccountMapping(commissionAgreementCode: string, authorization?: string, options?: any): AxiosPromise<CommissionAgreementAccountMappingDetailClass> {
702
+ return localVarFp.getCommissionAgreementAccountMapping(commissionAgreementCode, authorization, options).then((request) => request(axios, basePath));
703
+ },
704
+ /**
705
+ * Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
706
+ * @summary List Commission Account Mappings
707
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
708
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
709
+ * @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.
710
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
711
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
712
+ * @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.
713
+ * @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.
714
+ * @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.
715
+ * @param {*} [options] Override http request option.
716
+ * @throws {RequiredError}
717
+ */
718
+ listCommissionAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAccountMappingsResponseClass> {
719
+ return localVarFp.listCommissionAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
720
+ },
721
+ /**
722
+ * Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
723
+ * @summary List Commission Agreements With Account Mappings
724
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
725
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
726
+ * @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.
727
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
728
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
729
+ * @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.
730
+ * @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.
731
+ * @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.
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ listCommissionAgreementsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsWithAccountMappingsResponseClass> {
736
+ return localVarFp.listCommissionAgreementsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
737
+ },
738
+ /**
739
+ * Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
740
+ * @summary List Commission Type Standards
741
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
742
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
743
+ * @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.
744
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
745
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
746
+ * @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.
747
+ * @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.
748
+ * @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.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ listCommissionTypeAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionTypeAccountMappingsResponseClass> {
753
+ return localVarFp.listCommissionTypeAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
754
+ },
755
+ /**
756
+ * Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
757
+ * @summary Update the Commission Agreement Account
758
+ * @param {string} commissionAgreementCode
759
+ * @param {string} commissionType
760
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
761
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ updateCommissionAgreementAccount(commissionAgreementCode: string, commissionType: string, updateCommissionAgreementAccountBodyDto: UpdateCommissionAgreementAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedCommissionAccountMappingClass> {
766
+ return localVarFp.updateCommissionAgreementAccount(commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
767
+ },
768
+ /**
769
+ * Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
770
+ * @summary Update the Commission Type Account
771
+ * @param {string} commissionType
772
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
773
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ updateCommissionTypeAccount(commissionType: string, updateCommissionTypeAccountBodyDto: UpdateCommissionTypeAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedCommissionAccountMappingClass> {
778
+ return localVarFp.updateCommissionTypeAccount(commissionType, updateCommissionTypeAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
779
+ },
780
+ };
781
+ };
782
+
783
+ /**
784
+ * Request parameters for deleteCommissionAgreementAccount operation in CommissionAccountMappingsApi.
785
+ * @export
786
+ * @interface CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest
787
+ */
788
+ export interface CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest {
789
+ /**
790
+ *
791
+ * @type {string}
792
+ * @memberof CommissionAccountMappingsApiDeleteCommissionAgreementAccount
793
+ */
794
+ readonly commissionAgreementCode: string
795
+
796
+ /**
797
+ *
798
+ * @type {string}
799
+ * @memberof CommissionAccountMappingsApiDeleteCommissionAgreementAccount
800
+ */
801
+ readonly commissionType: string
802
+
803
+ /**
804
+ * Bearer Token: provided by the login endpoint under the name accessToken.
805
+ * @type {string}
806
+ * @memberof CommissionAccountMappingsApiDeleteCommissionAgreementAccount
807
+ */
808
+ readonly authorization?: string
809
+ }
810
+
811
+ /**
812
+ * Request parameters for deleteCommissionTypeAccount operation in CommissionAccountMappingsApi.
813
+ * @export
814
+ * @interface CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest
815
+ */
816
+ export interface CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest {
817
+ /**
818
+ *
819
+ * @type {string}
820
+ * @memberof CommissionAccountMappingsApiDeleteCommissionTypeAccount
821
+ */
822
+ readonly commissionType: string
823
+
824
+ /**
825
+ * Bearer Token: provided by the login endpoint under the name accessToken.
826
+ * @type {string}
827
+ * @memberof CommissionAccountMappingsApiDeleteCommissionTypeAccount
828
+ */
829
+ readonly authorization?: string
830
+ }
831
+
832
+ /**
833
+ * Request parameters for getCommissionAgreementAccountMapping operation in CommissionAccountMappingsApi.
834
+ * @export
835
+ * @interface CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest
836
+ */
837
+ export interface CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest {
838
+ /**
839
+ *
840
+ * @type {string}
841
+ * @memberof CommissionAccountMappingsApiGetCommissionAgreementAccountMapping
842
+ */
843
+ readonly commissionAgreementCode: string
844
+
845
+ /**
846
+ * Bearer Token: provided by the login endpoint under the name accessToken.
847
+ * @type {string}
848
+ * @memberof CommissionAccountMappingsApiGetCommissionAgreementAccountMapping
849
+ */
850
+ readonly authorization?: string
851
+ }
852
+
853
+ /**
854
+ * Request parameters for listCommissionAccountMappings operation in CommissionAccountMappingsApi.
855
+ * @export
856
+ * @interface CommissionAccountMappingsApiListCommissionAccountMappingsRequest
857
+ */
858
+ export interface CommissionAccountMappingsApiListCommissionAccountMappingsRequest {
859
+ /**
860
+ * Bearer Token: provided by the login endpoint under the name accessToken.
861
+ * @type {string}
862
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
863
+ */
864
+ readonly authorization?: string
865
+
866
+ /**
867
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
868
+ * @type {number}
869
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
870
+ */
871
+ readonly pageSize?: number
872
+
873
+ /**
874
+ * 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.
875
+ * @type {string}
876
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
877
+ */
878
+ readonly pageToken?: string
879
+
880
+ /**
881
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
882
+ * @type {string}
883
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
884
+ */
885
+ readonly filter?: string
886
+
887
+ /**
888
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
889
+ * @type {string}
890
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
891
+ */
892
+ readonly search?: string
893
+
894
+ /**
895
+ * 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.
896
+ * @type {string}
897
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
898
+ */
899
+ readonly order?: string
900
+
901
+ /**
902
+ * 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.
903
+ * @type {string}
904
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
905
+ */
906
+ readonly expand?: string
907
+
908
+ /**
909
+ * 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.
910
+ * @type {string}
911
+ * @memberof CommissionAccountMappingsApiListCommissionAccountMappings
912
+ */
913
+ readonly filters?: string
914
+ }
915
+
916
+ /**
917
+ * Request parameters for listCommissionAgreementsWithAccountMappings operation in CommissionAccountMappingsApi.
918
+ * @export
919
+ * @interface CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest
920
+ */
921
+ export interface CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest {
922
+ /**
923
+ * Bearer Token: provided by the login endpoint under the name accessToken.
924
+ * @type {string}
925
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
926
+ */
927
+ readonly authorization?: string
928
+
929
+ /**
930
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
931
+ * @type {number}
932
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
933
+ */
934
+ readonly pageSize?: number
935
+
936
+ /**
937
+ * 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.
938
+ * @type {string}
939
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
940
+ */
941
+ readonly pageToken?: string
942
+
943
+ /**
944
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
945
+ * @type {string}
946
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
947
+ */
948
+ readonly filter?: string
949
+
950
+ /**
951
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
952
+ * @type {string}
953
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
954
+ */
955
+ readonly search?: string
956
+
957
+ /**
958
+ * 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.
959
+ * @type {string}
960
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
961
+ */
962
+ readonly order?: string
963
+
964
+ /**
965
+ * 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.
966
+ * @type {string}
967
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
968
+ */
969
+ readonly expand?: string
970
+
971
+ /**
972
+ * 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.
973
+ * @type {string}
974
+ * @memberof CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappings
975
+ */
976
+ readonly filters?: string
977
+ }
978
+
979
+ /**
980
+ * Request parameters for listCommissionTypeAccountMappings operation in CommissionAccountMappingsApi.
981
+ * @export
982
+ * @interface CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest
983
+ */
984
+ export interface CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest {
985
+ /**
986
+ * Bearer Token: provided by the login endpoint under the name accessToken.
987
+ * @type {string}
988
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
989
+ */
990
+ readonly authorization?: string
991
+
992
+ /**
993
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
994
+ * @type {number}
995
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
996
+ */
997
+ readonly pageSize?: number
998
+
999
+ /**
1000
+ * 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.
1001
+ * @type {string}
1002
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1003
+ */
1004
+ readonly pageToken?: string
1005
+
1006
+ /**
1007
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1008
+ * @type {string}
1009
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1010
+ */
1011
+ readonly filter?: string
1012
+
1013
+ /**
1014
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1015
+ * @type {string}
1016
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1017
+ */
1018
+ readonly search?: string
1019
+
1020
+ /**
1021
+ * 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.
1022
+ * @type {string}
1023
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1024
+ */
1025
+ readonly order?: string
1026
+
1027
+ /**
1028
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1029
+ * @type {string}
1030
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1031
+ */
1032
+ readonly expand?: string
1033
+
1034
+ /**
1035
+ * 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.
1036
+ * @type {string}
1037
+ * @memberof CommissionAccountMappingsApiListCommissionTypeAccountMappings
1038
+ */
1039
+ readonly filters?: string
1040
+ }
1041
+
1042
+ /**
1043
+ * Request parameters for updateCommissionAgreementAccount operation in CommissionAccountMappingsApi.
1044
+ * @export
1045
+ * @interface CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest
1046
+ */
1047
+ export interface CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest {
1048
+ /**
1049
+ *
1050
+ * @type {string}
1051
+ * @memberof CommissionAccountMappingsApiUpdateCommissionAgreementAccount
1052
+ */
1053
+ readonly commissionAgreementCode: string
1054
+
1055
+ /**
1056
+ *
1057
+ * @type {string}
1058
+ * @memberof CommissionAccountMappingsApiUpdateCommissionAgreementAccount
1059
+ */
1060
+ readonly commissionType: string
1061
+
1062
+ /**
1063
+ *
1064
+ * @type {UpdateCommissionAgreementAccountBodyDto}
1065
+ * @memberof CommissionAccountMappingsApiUpdateCommissionAgreementAccount
1066
+ */
1067
+ readonly updateCommissionAgreementAccountBodyDto: UpdateCommissionAgreementAccountBodyDto
1068
+
1069
+ /**
1070
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1071
+ * @type {string}
1072
+ * @memberof CommissionAccountMappingsApiUpdateCommissionAgreementAccount
1073
+ */
1074
+ readonly authorization?: string
1075
+ }
1076
+
1077
+ /**
1078
+ * Request parameters for updateCommissionTypeAccount operation in CommissionAccountMappingsApi.
1079
+ * @export
1080
+ * @interface CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest
1081
+ */
1082
+ export interface CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest {
1083
+ /**
1084
+ *
1085
+ * @type {string}
1086
+ * @memberof CommissionAccountMappingsApiUpdateCommissionTypeAccount
1087
+ */
1088
+ readonly commissionType: string
1089
+
1090
+ /**
1091
+ *
1092
+ * @type {UpdateCommissionTypeAccountBodyDto}
1093
+ * @memberof CommissionAccountMappingsApiUpdateCommissionTypeAccount
1094
+ */
1095
+ readonly updateCommissionTypeAccountBodyDto: UpdateCommissionTypeAccountBodyDto
1096
+
1097
+ /**
1098
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1099
+ * @type {string}
1100
+ * @memberof CommissionAccountMappingsApiUpdateCommissionTypeAccount
1101
+ */
1102
+ readonly authorization?: string
1103
+ }
1104
+
1105
+ /**
1106
+ * CommissionAccountMappingsApi - object-oriented interface
1107
+ * @export
1108
+ * @class CommissionAccountMappingsApi
1109
+ * @extends {BaseAPI}
1110
+ */
1111
+ export class CommissionAccountMappingsApi extends BaseAPI {
1112
+ /**
1113
+ * Permanently deletes the Commission Agreement Account. Supply the unique code that was returned when you created the Commission Agreement Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1114
+ * @summary Delete the Commission Agreement Account
1115
+ * @param {CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest} requestParameters Request parameters.
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ * @memberof CommissionAccountMappingsApi
1119
+ */
1120
+ public deleteCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
1121
+ return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1122
+ }
1123
+
1124
+ /**
1125
+ * Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1126
+ * @summary Delete the Commission Type Account
1127
+ * @param {CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest} requestParameters Request parameters.
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ * @memberof CommissionAccountMappingsApi
1131
+ */
1132
+ public deleteCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
1133
+ return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1134
+ }
1135
+
1136
+ /**
1137
+ * Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1138
+ * @summary Retrieve the Commission Agreement Account Mapping
1139
+ * @param {CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest} requestParameters Request parameters.
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ * @memberof CommissionAccountMappingsApi
1143
+ */
1144
+ public getCommissionAgreementAccountMapping(requestParameters: CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest, options?: AxiosRequestConfig) {
1145
+ return CommissionAccountMappingsApiFp(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1146
+ }
1147
+
1148
+ /**
1149
+ * Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
1150
+ * @summary List Commission Account Mappings
1151
+ * @param {CommissionAccountMappingsApiListCommissionAccountMappingsRequest} requestParameters Request parameters.
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ * @memberof CommissionAccountMappingsApi
1155
+ */
1156
+ public listCommissionAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1157
+ return CommissionAccountMappingsApiFp(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1158
+ }
1159
+
1160
+ /**
1161
+ * Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
1162
+ * @summary List Commission Agreements With Account Mappings
1163
+ * @param {CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest} requestParameters Request parameters.
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ * @memberof CommissionAccountMappingsApi
1167
+ */
1168
+ public listCommissionAgreementsWithAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1169
+ return CommissionAccountMappingsApiFp(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1170
+ }
1171
+
1172
+ /**
1173
+ * Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
1174
+ * @summary List Commission Type Standards
1175
+ * @param {CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest} requestParameters Request parameters.
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ * @memberof CommissionAccountMappingsApi
1179
+ */
1180
+ public listCommissionTypeAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1181
+ return CommissionAccountMappingsApiFp(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1182
+ }
1183
+
1184
+ /**
1185
+ * Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1186
+ * @summary Update the Commission Agreement Account
1187
+ * @param {CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest} requestParameters Request parameters.
1188
+ * @param {*} [options] Override http request option.
1189
+ * @throws {RequiredError}
1190
+ * @memberof CommissionAccountMappingsApi
1191
+ */
1192
+ public updateCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
1193
+ return CommissionAccountMappingsApiFp(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1194
+ }
1195
+
1196
+ /**
1197
+ * Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1198
+ * @summary Update the Commission Type Account
1199
+ * @param {CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest} requestParameters Request parameters.
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ * @memberof CommissionAccountMappingsApi
1203
+ */
1204
+ public updateCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
1205
+ return CommissionAccountMappingsApiFp(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1206
+ }
1207
+ }