@emilgroup/accounting-sdk 1.34.1-beta.4 → 1.34.1-beta.41

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