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

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