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