@emilgroup/accounting-sdk-node 1.32.1-beta.8 → 1.32.1-beta.81

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