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