@emilgroup/accounting-sdk-node 1.32.1-beta.9 → 1.32.1-beta.90

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