@emilgroup/accounting-sdk-node 1.32.1-beta.1 → 1.32.1-beta.100

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