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

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