@emilgroup/accounting-sdk 1.34.1-beta.3 → 1.34.1-beta.30

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