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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +230 -6
  5. package/api/commission-account-mappings-api.ts +1207 -0
  6. package/api/financial-accounts-api.ts +150 -20
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +117 -3
  18. package/dist/api/booking-entries-api.js +207 -10
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +14 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +30 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +15 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +31 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -0,0 +1,1022 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.CommissionAccountMappingsApi = exports.CommissionAccountMappingsApiFactory = exports.CommissionAccountMappingsApiFp = exports.CommissionAccountMappingsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * CommissionAccountMappingsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * 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\"
97
+ * @summary Delete the Commission Agreement Account
98
+ * @param {string} commissionAgreementCode
99
+ * @param {string} commissionType
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('deleteCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
113
+ // verify required parameter 'commissionType' is not null or undefined
114
+ (0, common_1.assertParamExists)('deleteCommissionAgreementAccount', 'commissionType', commissionType);
115
+ localVarPath = "/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}/commission-type/{commissionType}"
116
+ .replace("{".concat("commissionAgreementCode", "}"), encodeURIComponent(String(commissionAgreementCode)))
117
+ .replace("{".concat("commissionType", "}"), encodeURIComponent(String(commissionType)));
118
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token; an empty value is never sent.
130
+ ];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
138
+ }
139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
+ return [2 /*return*/, {
143
+ url: (0, common_1.toPathString)(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ }];
146
+ }
147
+ });
148
+ });
149
+ },
150
+ /**
151
+ * 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\"
152
+ * @summary Delete the Commission Type Account
153
+ * @param {string} commissionType
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ deleteCommissionTypeAccount: function (commissionType, authorization, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ // verify required parameter 'commissionType' is not null or undefined
166
+ (0, common_1.assertParamExists)('deleteCommissionTypeAccount', 'commissionType', commissionType);
167
+ localVarPath = "/accountingservice/v1/commission-account-mappings/types/{commissionType}"
168
+ .replace("{".concat("commissionType", "}"), encodeURIComponent(String(commissionType)));
169
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ baseAccessToken = configuration.accessToken;
173
+ }
174
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
175
+ localVarHeaderParameter = {};
176
+ localVarQueryParameter = {};
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
189
+ }
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * 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\"
203
+ * @summary Retrieve the Commission Agreement Account Mapping
204
+ * @param {string} commissionAgreementCode
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
217
+ (0, common_1.assertParamExists)('getCommissionAgreementAccountMapping', 'commissionAgreementCode', commissionAgreementCode);
218
+ localVarPath = "/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}"
219
+ .replace("{".concat("commissionAgreementCode", "}"), encodeURIComponent(String(commissionAgreementCode)));
220
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ baseAccessToken = configuration.accessToken;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
233
+ case 1:
234
+ // authentication bearer required
235
+ // http bearer authentication required
236
+ _a.sent();
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
240
+ }
241
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
242
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
244
+ return [2 /*return*/, {
245
+ url: (0, common_1.toPathString)(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ }];
248
+ }
249
+ });
250
+ });
251
+ },
252
+ /**
253
+ * 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\"
254
+ * @summary List Commission Account Mappings
255
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
257
+ * @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.
258
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
260
+ * @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.
261
+ * @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.
262
+ * @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.
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
267
+ if (options === void 0) { options = {}; }
268
+ return __awaiter(_this, void 0, void 0, function () {
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
270
+ return __generator(this, function (_a) {
271
+ switch (_a.label) {
272
+ case 0:
273
+ localVarPath = "/accountingservice/v1/commission-account-mappings";
274
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
275
+ if (configuration) {
276
+ baseOptions = configuration.baseOptions;
277
+ baseAccessToken = configuration.accessToken;
278
+ }
279
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
280
+ localVarHeaderParameter = {};
281
+ localVarQueryParameter = {};
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
285
+ case 1:
286
+ // authentication bearer required
287
+ // http bearer authentication required
288
+ _a.sent();
289
+ if (pageSize !== undefined) {
290
+ localVarQueryParameter['pageSize'] = pageSize;
291
+ }
292
+ if (pageToken !== undefined) {
293
+ localVarQueryParameter['pageToken'] = pageToken;
294
+ }
295
+ if (filter !== undefined) {
296
+ localVarQueryParameter['filter'] = filter;
297
+ }
298
+ if (search !== undefined) {
299
+ localVarQueryParameter['search'] = search;
300
+ }
301
+ if (order !== undefined) {
302
+ localVarQueryParameter['order'] = order;
303
+ }
304
+ if (expand !== undefined) {
305
+ localVarQueryParameter['expand'] = expand;
306
+ }
307
+ if (filters !== undefined) {
308
+ localVarQueryParameter['filters'] = filters;
309
+ }
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
313
+ }
314
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
315
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
317
+ return [2 /*return*/, {
318
+ url: (0, common_1.toPathString)(localVarUrlObj),
319
+ options: localVarRequestOptions,
320
+ }];
321
+ }
322
+ });
323
+ });
324
+ },
325
+ /**
326
+ * 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\"
327
+ * @summary List Commission Agreements With Account Mappings
328
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
329
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
330
+ * @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.
331
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
332
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
333
+ * @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.
334
+ * @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.
335
+ * @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.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
340
+ if (options === void 0) { options = {}; }
341
+ return __awaiter(_this, void 0, void 0, function () {
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0:
346
+ localVarPath = "/accountingservice/v1/commission-account-mappings/agreements";
347
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ baseAccessToken = configuration.accessToken;
351
+ }
352
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
353
+ localVarHeaderParameter = {};
354
+ localVarQueryParameter = {};
355
+ // authentication bearer required
356
+ // http bearer authentication required
357
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ case 1:
359
+ // authentication bearer required
360
+ // http bearer authentication required
361
+ _a.sent();
362
+ if (pageSize !== undefined) {
363
+ localVarQueryParameter['pageSize'] = pageSize;
364
+ }
365
+ if (pageToken !== undefined) {
366
+ localVarQueryParameter['pageToken'] = pageToken;
367
+ }
368
+ if (filter !== undefined) {
369
+ localVarQueryParameter['filter'] = filter;
370
+ }
371
+ if (search !== undefined) {
372
+ localVarQueryParameter['search'] = search;
373
+ }
374
+ if (order !== undefined) {
375
+ localVarQueryParameter['order'] = order;
376
+ }
377
+ if (expand !== undefined) {
378
+ localVarQueryParameter['expand'] = expand;
379
+ }
380
+ if (filters !== undefined) {
381
+ localVarQueryParameter['filters'] = filters;
382
+ }
383
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
384
+ if (authorizationValue) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
386
+ }
387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
388
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
389
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
390
+ return [2 /*return*/, {
391
+ url: (0, common_1.toPathString)(localVarUrlObj),
392
+ options: localVarRequestOptions,
393
+ }];
394
+ }
395
+ });
396
+ });
397
+ },
398
+ /**
399
+ * 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\"
400
+ * @summary List Commission Type Standards
401
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
403
+ * @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.
404
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
405
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
406
+ * @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.
407
+ * @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.
408
+ * @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.
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
413
+ if (options === void 0) { options = {}; }
414
+ return __awaiter(_this, void 0, void 0, function () {
415
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
416
+ return __generator(this, function (_a) {
417
+ switch (_a.label) {
418
+ case 0:
419
+ localVarPath = "/accountingservice/v1/commission-account-mappings/types";
420
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ baseAccessToken = configuration.accessToken;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
431
+ case 1:
432
+ // authentication bearer required
433
+ // http bearer authentication required
434
+ _a.sent();
435
+ if (pageSize !== undefined) {
436
+ localVarQueryParameter['pageSize'] = pageSize;
437
+ }
438
+ if (pageToken !== undefined) {
439
+ localVarQueryParameter['pageToken'] = pageToken;
440
+ }
441
+ if (filter !== undefined) {
442
+ localVarQueryParameter['filter'] = filter;
443
+ }
444
+ if (search !== undefined) {
445
+ localVarQueryParameter['search'] = search;
446
+ }
447
+ if (order !== undefined) {
448
+ localVarQueryParameter['order'] = order;
449
+ }
450
+ if (expand !== undefined) {
451
+ localVarQueryParameter['expand'] = expand;
452
+ }
453
+ if (filters !== undefined) {
454
+ localVarQueryParameter['filters'] = filters;
455
+ }
456
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
457
+ if (authorizationValue) {
458
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
459
+ }
460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ return [2 /*return*/, {
464
+ url: (0, common_1.toPathString)(localVarUrlObj),
465
+ options: localVarRequestOptions,
466
+ }];
467
+ }
468
+ });
469
+ });
470
+ },
471
+ /**
472
+ * 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\"
473
+ * @summary Update the Commission Agreement Account
474
+ * @param {string} commissionAgreementCode
475
+ * @param {string} commissionType
476
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
482
+ if (options === void 0) { options = {}; }
483
+ return __awaiter(_this, void 0, void 0, function () {
484
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
485
+ return __generator(this, function (_a) {
486
+ switch (_a.label) {
487
+ case 0:
488
+ // verify required parameter 'commissionAgreementCode' is not null or undefined
489
+ (0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
490
+ // verify required parameter 'commissionType' is not null or undefined
491
+ (0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'commissionType', commissionType);
492
+ // verify required parameter 'updateCommissionAgreementAccountBodyDto' is not null or undefined
493
+ (0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'updateCommissionAgreementAccountBodyDto', updateCommissionAgreementAccountBodyDto);
494
+ localVarPath = "/accountingservice/v1/commission-account-mappings/agreements/{commissionAgreementCode}/commission-type/{commissionType}"
495
+ .replace("{".concat("commissionAgreementCode", "}"), encodeURIComponent(String(commissionAgreementCode)))
496
+ .replace("{".concat("commissionType", "}"), encodeURIComponent(String(commissionType)));
497
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
498
+ if (configuration) {
499
+ baseOptions = configuration.baseOptions;
500
+ baseAccessToken = configuration.accessToken;
501
+ }
502
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
503
+ localVarHeaderParameter = {};
504
+ localVarQueryParameter = {};
505
+ // authentication bearer required
506
+ // http bearer authentication required
507
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
508
+ // Only Authorization falls back to the configured token; an empty value is never sent.
509
+ ];
510
+ case 1:
511
+ // authentication bearer required
512
+ // http bearer authentication required
513
+ _a.sent();
514
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
515
+ if (authorizationValue) {
516
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
517
+ }
518
+ localVarHeaderParameter['Content-Type'] = 'application/json';
519
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
520
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionAgreementAccountBodyDto, localVarRequestOptions, configuration);
523
+ return [2 /*return*/, {
524
+ url: (0, common_1.toPathString)(localVarUrlObj),
525
+ options: localVarRequestOptions,
526
+ }];
527
+ }
528
+ });
529
+ });
530
+ },
531
+ /**
532
+ * 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\"
533
+ * @summary Update the Commission Type Account
534
+ * @param {string} commissionType
535
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
536
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
541
+ if (options === void 0) { options = {}; }
542
+ return __awaiter(_this, void 0, void 0, function () {
543
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
544
+ return __generator(this, function (_a) {
545
+ switch (_a.label) {
546
+ case 0:
547
+ // verify required parameter 'commissionType' is not null or undefined
548
+ (0, common_1.assertParamExists)('updateCommissionTypeAccount', 'commissionType', commissionType);
549
+ // verify required parameter 'updateCommissionTypeAccountBodyDto' is not null or undefined
550
+ (0, common_1.assertParamExists)('updateCommissionTypeAccount', 'updateCommissionTypeAccountBodyDto', updateCommissionTypeAccountBodyDto);
551
+ localVarPath = "/accountingservice/v1/commission-account-mappings/types/{commissionType}"
552
+ .replace("{".concat("commissionType", "}"), encodeURIComponent(String(commissionType)));
553
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
554
+ if (configuration) {
555
+ baseOptions = configuration.baseOptions;
556
+ baseAccessToken = configuration.accessToken;
557
+ }
558
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
559
+ localVarHeaderParameter = {};
560
+ localVarQueryParameter = {};
561
+ // authentication bearer required
562
+ // http bearer authentication required
563
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
564
+ // Only Authorization falls back to the configured token; an empty value is never sent.
565
+ ];
566
+ case 1:
567
+ // authentication bearer required
568
+ // http bearer authentication required
569
+ _a.sent();
570
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
571
+ if (authorizationValue) {
572
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
573
+ }
574
+ localVarHeaderParameter['Content-Type'] = 'application/json';
575
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
576
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
577
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
578
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionTypeAccountBodyDto, localVarRequestOptions, configuration);
579
+ return [2 /*return*/, {
580
+ url: (0, common_1.toPathString)(localVarUrlObj),
581
+ options: localVarRequestOptions,
582
+ }];
583
+ }
584
+ });
585
+ });
586
+ },
587
+ };
588
+ };
589
+ exports.CommissionAccountMappingsApiAxiosParamCreator = CommissionAccountMappingsApiAxiosParamCreator;
590
+ /**
591
+ * CommissionAccountMappingsApi - functional programming interface
592
+ * @export
593
+ */
594
+ var CommissionAccountMappingsApiFp = function (configuration) {
595
+ var localVarAxiosParamCreator = (0, exports.CommissionAccountMappingsApiAxiosParamCreator)(configuration);
596
+ return {
597
+ /**
598
+ * 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\"
599
+ * @summary Delete the Commission Agreement Account
600
+ * @param {string} commissionAgreementCode
601
+ * @param {string} commissionType
602
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
607
+ return __awaiter(this, void 0, void 0, function () {
608
+ var localVarAxiosArgs;
609
+ return __generator(this, function (_a) {
610
+ switch (_a.label) {
611
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionAgreementAccount(commissionAgreementCode, commissionType, authorization, options)];
612
+ case 1:
613
+ localVarAxiosArgs = _a.sent();
614
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
615
+ }
616
+ });
617
+ });
618
+ },
619
+ /**
620
+ * 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\"
621
+ * @summary Delete the Commission Type Account
622
+ * @param {string} commissionType
623
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ deleteCommissionTypeAccount: function (commissionType, authorization, options) {
628
+ return __awaiter(this, void 0, void 0, function () {
629
+ var localVarAxiosArgs;
630
+ return __generator(this, function (_a) {
631
+ switch (_a.label) {
632
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionTypeAccount(commissionType, authorization, options)];
633
+ case 1:
634
+ localVarAxiosArgs = _a.sent();
635
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
636
+ }
637
+ });
638
+ });
639
+ },
640
+ /**
641
+ * 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\"
642
+ * @summary Retrieve the Commission Agreement Account Mapping
643
+ * @param {string} commissionAgreementCode
644
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
649
+ return __awaiter(this, void 0, void 0, function () {
650
+ var localVarAxiosArgs;
651
+ return __generator(this, function (_a) {
652
+ switch (_a.label) {
653
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionAgreementAccountMapping(commissionAgreementCode, authorization, options)];
654
+ case 1:
655
+ localVarAxiosArgs = _a.sent();
656
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
657
+ }
658
+ });
659
+ });
660
+ },
661
+ /**
662
+ * 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\"
663
+ * @summary List Commission Account Mappings
664
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
665
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
666
+ * @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.
667
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
668
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
669
+ * @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.
670
+ * @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.
671
+ * @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.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
676
+ return __awaiter(this, void 0, void 0, function () {
677
+ var localVarAxiosArgs;
678
+ return __generator(this, function (_a) {
679
+ switch (_a.label) {
680
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
681
+ case 1:
682
+ localVarAxiosArgs = _a.sent();
683
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
684
+ }
685
+ });
686
+ });
687
+ },
688
+ /**
689
+ * 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\"
690
+ * @summary List Commission Agreements With Account Mappings
691
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
692
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
693
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
694
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
695
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
696
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
697
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
698
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
703
+ return __awaiter(this, void 0, void 0, function () {
704
+ var localVarAxiosArgs;
705
+ return __generator(this, function (_a) {
706
+ switch (_a.label) {
707
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
708
+ case 1:
709
+ localVarAxiosArgs = _a.sent();
710
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
711
+ }
712
+ });
713
+ });
714
+ },
715
+ /**
716
+ * 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\"
717
+ * @summary List Commission Type Standards
718
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
719
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
720
+ * @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.
721
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
722
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
723
+ * @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.
724
+ * @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.
725
+ * @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.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
730
+ return __awaiter(this, void 0, void 0, function () {
731
+ var localVarAxiosArgs;
732
+ return __generator(this, function (_a) {
733
+ switch (_a.label) {
734
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionTypeAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
735
+ case 1:
736
+ localVarAxiosArgs = _a.sent();
737
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
738
+ }
739
+ });
740
+ });
741
+ },
742
+ /**
743
+ * 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\"
744
+ * @summary Update the Commission Agreement Account
745
+ * @param {string} commissionAgreementCode
746
+ * @param {string} commissionType
747
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
748
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
753
+ return __awaiter(this, void 0, void 0, function () {
754
+ var localVarAxiosArgs;
755
+ return __generator(this, function (_a) {
756
+ switch (_a.label) {
757
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionAgreementAccount(commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options)];
758
+ case 1:
759
+ localVarAxiosArgs = _a.sent();
760
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
761
+ }
762
+ });
763
+ });
764
+ },
765
+ /**
766
+ * 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\"
767
+ * @summary Update the Commission Type Account
768
+ * @param {string} commissionType
769
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
770
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
775
+ return __awaiter(this, void 0, void 0, function () {
776
+ var localVarAxiosArgs;
777
+ return __generator(this, function (_a) {
778
+ switch (_a.label) {
779
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionTypeAccount(commissionType, updateCommissionTypeAccountBodyDto, authorization, options)];
780
+ case 1:
781
+ localVarAxiosArgs = _a.sent();
782
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
783
+ }
784
+ });
785
+ });
786
+ },
787
+ };
788
+ };
789
+ exports.CommissionAccountMappingsApiFp = CommissionAccountMappingsApiFp;
790
+ /**
791
+ * CommissionAccountMappingsApi - factory interface
792
+ * @export
793
+ */
794
+ var CommissionAccountMappingsApiFactory = function (configuration, basePath, axios) {
795
+ var localVarFp = (0, exports.CommissionAccountMappingsApiFp)(configuration);
796
+ return {
797
+ /**
798
+ * 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\"
799
+ * @summary Delete the Commission Agreement Account
800
+ * @param {string} commissionAgreementCode
801
+ * @param {string} commissionType
802
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
807
+ return localVarFp.deleteCommissionAgreementAccount(commissionAgreementCode, commissionType, authorization, options).then(function (request) { return request(axios, basePath); });
808
+ },
809
+ /**
810
+ * 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\"
811
+ * @summary Delete the Commission Type Account
812
+ * @param {string} commissionType
813
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ deleteCommissionTypeAccount: function (commissionType, authorization, options) {
818
+ return localVarFp.deleteCommissionTypeAccount(commissionType, authorization, options).then(function (request) { return request(axios, basePath); });
819
+ },
820
+ /**
821
+ * 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\"
822
+ * @summary Retrieve the Commission Agreement Account Mapping
823
+ * @param {string} commissionAgreementCode
824
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
829
+ return localVarFp.getCommissionAgreementAccountMapping(commissionAgreementCode, authorization, options).then(function (request) { return request(axios, basePath); });
830
+ },
831
+ /**
832
+ * 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\"
833
+ * @summary List Commission Account Mappings
834
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
835
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
836
+ * @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.
837
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
838
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
839
+ * @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.
840
+ * @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.
841
+ * @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.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
846
+ return localVarFp.listCommissionAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
847
+ },
848
+ /**
849
+ * 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\"
850
+ * @summary List Commission Agreements With Account Mappings
851
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
852
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
853
+ * @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.
854
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
855
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
856
+ * @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.
857
+ * @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.
858
+ * @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.
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
863
+ return localVarFp.listCommissionAgreementsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
864
+ },
865
+ /**
866
+ * 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\"
867
+ * @summary List Commission Type Standards
868
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
869
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
870
+ * @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.
871
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
872
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
873
+ * @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.
874
+ * @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.
875
+ * @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.
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
880
+ return localVarFp.listCommissionTypeAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
881
+ },
882
+ /**
883
+ * 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\"
884
+ * @summary Update the Commission Agreement Account
885
+ * @param {string} commissionAgreementCode
886
+ * @param {string} commissionType
887
+ * @param {UpdateCommissionAgreementAccountBodyDto} updateCommissionAgreementAccountBodyDto
888
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
893
+ return localVarFp.updateCommissionAgreementAccount(commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
894
+ },
895
+ /**
896
+ * 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\"
897
+ * @summary Update the Commission Type Account
898
+ * @param {string} commissionType
899
+ * @param {UpdateCommissionTypeAccountBodyDto} updateCommissionTypeAccountBodyDto
900
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
905
+ return localVarFp.updateCommissionTypeAccount(commissionType, updateCommissionTypeAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
906
+ },
907
+ };
908
+ };
909
+ exports.CommissionAccountMappingsApiFactory = CommissionAccountMappingsApiFactory;
910
+ /**
911
+ * CommissionAccountMappingsApi - object-oriented interface
912
+ * @export
913
+ * @class CommissionAccountMappingsApi
914
+ * @extends {BaseAPI}
915
+ */
916
+ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
917
+ __extends(CommissionAccountMappingsApi, _super);
918
+ function CommissionAccountMappingsApi() {
919
+ return _super !== null && _super.apply(this, arguments) || this;
920
+ }
921
+ /**
922
+ * 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\"
923
+ * @summary Delete the Commission Agreement Account
924
+ * @param {CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest} requestParameters Request parameters.
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ * @memberof CommissionAccountMappingsApi
928
+ */
929
+ CommissionAccountMappingsApi.prototype.deleteCommissionAgreementAccount = function (requestParameters, options) {
930
+ var _this = this;
931
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
932
+ };
933
+ /**
934
+ * 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\"
935
+ * @summary Delete the Commission Type Account
936
+ * @param {CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest} requestParameters Request parameters.
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ * @memberof CommissionAccountMappingsApi
940
+ */
941
+ CommissionAccountMappingsApi.prototype.deleteCommissionTypeAccount = function (requestParameters, options) {
942
+ var _this = this;
943
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
944
+ };
945
+ /**
946
+ * 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\"
947
+ * @summary Retrieve the Commission Agreement Account Mapping
948
+ * @param {CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest} requestParameters Request parameters.
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ * @memberof CommissionAccountMappingsApi
952
+ */
953
+ CommissionAccountMappingsApi.prototype.getCommissionAgreementAccountMapping = function (requestParameters, options) {
954
+ var _this = this;
955
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
956
+ };
957
+ /**
958
+ * 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\"
959
+ * @summary List Commission Account Mappings
960
+ * @param {CommissionAccountMappingsApiListCommissionAccountMappingsRequest} requestParameters Request parameters.
961
+ * @param {*} [options] Override http request option.
962
+ * @throws {RequiredError}
963
+ * @memberof CommissionAccountMappingsApi
964
+ */
965
+ CommissionAccountMappingsApi.prototype.listCommissionAccountMappings = function (requestParameters, options) {
966
+ var _this = this;
967
+ if (requestParameters === void 0) { requestParameters = {}; }
968
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
969
+ };
970
+ /**
971
+ * 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\"
972
+ * @summary List Commission Agreements With Account Mappings
973
+ * @param {CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest} requestParameters Request parameters.
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ * @memberof CommissionAccountMappingsApi
977
+ */
978
+ CommissionAccountMappingsApi.prototype.listCommissionAgreementsWithAccountMappings = function (requestParameters, options) {
979
+ var _this = this;
980
+ if (requestParameters === void 0) { requestParameters = {}; }
981
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
982
+ };
983
+ /**
984
+ * 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\"
985
+ * @summary List Commission Type Standards
986
+ * @param {CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest} requestParameters Request parameters.
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ * @memberof CommissionAccountMappingsApi
990
+ */
991
+ CommissionAccountMappingsApi.prototype.listCommissionTypeAccountMappings = function (requestParameters, options) {
992
+ var _this = this;
993
+ if (requestParameters === void 0) { requestParameters = {}; }
994
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
995
+ };
996
+ /**
997
+ * 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\"
998
+ * @summary Update the Commission Agreement Account
999
+ * @param {CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest} requestParameters Request parameters.
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ * @memberof CommissionAccountMappingsApi
1003
+ */
1004
+ CommissionAccountMappingsApi.prototype.updateCommissionAgreementAccount = function (requestParameters, options) {
1005
+ var _this = this;
1006
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1007
+ };
1008
+ /**
1009
+ * 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\"
1010
+ * @summary Update the Commission Type Account
1011
+ * @param {CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest} requestParameters Request parameters.
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ * @memberof CommissionAccountMappingsApi
1015
+ */
1016
+ CommissionAccountMappingsApi.prototype.updateCommissionTypeAccount = function (requestParameters, options) {
1017
+ var _this = this;
1018
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1019
+ };
1020
+ return CommissionAccountMappingsApi;
1021
+ }(base_1.BaseAPI));
1022
+ exports.CommissionAccountMappingsApi = CommissionAccountMappingsApi;