@emilgroup/accounting-sdk 1.34.1-beta.2 → 1.34.1-beta.21
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 +16 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +97 -7
- package/api/financial-accounts-api.ts +120 -0
- package/api/product-account-mappings-api.ts +1470 -0
- package/api.ts +2 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +94 -7
- package/dist/api/financial-accounts-api.d.ts +66 -0
- package/dist/api/financial-accounts-api.js +99 -0
- package/dist/api/product-account-mappings-api.d.ts +851 -0
- package/dist/api/product-account-mappings-api.js +1224 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/create-financial-account-request-dto.d.ts +6 -0
- package/dist/models/financial-account-class.d.ts +18 -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 +15 -0
- package/dist/models/index.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/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/update-financial-account-body-dto.d.ts +42 -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/create-financial-account-request-dto.ts +6 -0
- package/models/financial-account-class.ts +19 -1
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +15 -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/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/update-financial-account-body-dto.ts +48 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1224 @@
|
|
|
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.ProductAccountMappingsApi = exports.ProductAccountMappingsApiFactory = exports.ProductAccountMappingsApiFp = exports.ProductAccountMappingsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* ProductAccountMappingsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
97
|
+
* @summary Delete the Premium Item Account
|
|
98
|
+
* @param {string} productCode
|
|
99
|
+
* @param {string} productVersionCode
|
|
100
|
+
* @param {string} premiumFormulaCode
|
|
101
|
+
* @param {string} category
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
|
|
115
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'productVersionCode', productVersionCode);
|
|
117
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode);
|
|
119
|
+
// verify required parameter 'category' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('deletePremiumItemAccount', 'category', category);
|
|
121
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}"
|
|
122
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
123
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
124
|
+
.replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)))
|
|
125
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
126
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
|
+
if (configuration) {
|
|
128
|
+
baseOptions = configuration.baseOptions;
|
|
129
|
+
baseAccessToken = configuration.accessToken;
|
|
130
|
+
}
|
|
131
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
localVarHeaderParameter = {};
|
|
133
|
+
localVarQueryParameter = {};
|
|
134
|
+
// authentication bearer required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
137
|
+
case 1:
|
|
138
|
+
// authentication bearer required
|
|
139
|
+
// http bearer authentication required
|
|
140
|
+
_a.sent();
|
|
141
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
142
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
143
|
+
}
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
157
|
+
* @summary Delete the Product Category Account
|
|
158
|
+
* @param {string} productCode
|
|
159
|
+
* @param {string} category
|
|
160
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
165
|
+
if (options === void 0) { options = {}; }
|
|
166
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
167
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0:
|
|
171
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
172
|
+
(0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
|
|
173
|
+
// verify required parameter 'category' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('deleteProductCategoryAccount', 'category', category);
|
|
175
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}"
|
|
176
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
177
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
178
|
+
localVarUrlObj = new 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
|
+
case 1:
|
|
190
|
+
// authentication bearer required
|
|
191
|
+
// http bearer authentication required
|
|
192
|
+
_a.sent();
|
|
193
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
194
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
195
|
+
}
|
|
196
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
199
|
+
return [2 /*return*/, {
|
|
200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
201
|
+
options: localVarRequestOptions,
|
|
202
|
+
}];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
209
|
+
* @summary Delete the Product Version Category Account
|
|
210
|
+
* @param {string} productCode
|
|
211
|
+
* @param {string} productVersionCode
|
|
212
|
+
* @param {string} category
|
|
213
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
218
|
+
if (options === void 0) { options = {}; }
|
|
219
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
221
|
+
return __generator(this, function (_a) {
|
|
222
|
+
switch (_a.label) {
|
|
223
|
+
case 0:
|
|
224
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
225
|
+
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
|
|
226
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productVersionCode', productVersionCode);
|
|
228
|
+
// verify required parameter 'category' is not null or undefined
|
|
229
|
+
(0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'category', category);
|
|
230
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}"
|
|
231
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
232
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
233
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
234
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
235
|
+
if (configuration) {
|
|
236
|
+
baseOptions = configuration.baseOptions;
|
|
237
|
+
baseAccessToken = configuration.accessToken;
|
|
238
|
+
}
|
|
239
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
240
|
+
localVarHeaderParameter = {};
|
|
241
|
+
localVarQueryParameter = {};
|
|
242
|
+
// authentication bearer required
|
|
243
|
+
// http bearer authentication required
|
|
244
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
245
|
+
case 1:
|
|
246
|
+
// authentication bearer required
|
|
247
|
+
// http bearer authentication required
|
|
248
|
+
_a.sent();
|
|
249
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
250
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
251
|
+
}
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
return [2 /*return*/, {
|
|
256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
}];
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
265
|
+
* @summary Retrieve the Product Account Mapping
|
|
266
|
+
* @param {string} productCode
|
|
267
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
getProductAccountMapping: function (productCode, authorization, options) {
|
|
272
|
+
if (options === void 0) { options = {}; }
|
|
273
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
|
+
return __generator(this, function (_a) {
|
|
276
|
+
switch (_a.label) {
|
|
277
|
+
case 0:
|
|
278
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
279
|
+
(0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
|
|
280
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}"
|
|
281
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
|
|
282
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
baseAccessToken = configuration.accessToken;
|
|
286
|
+
}
|
|
287
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
288
|
+
localVarHeaderParameter = {};
|
|
289
|
+
localVarQueryParameter = {};
|
|
290
|
+
// authentication bearer required
|
|
291
|
+
// http bearer authentication required
|
|
292
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
293
|
+
case 1:
|
|
294
|
+
// authentication bearer required
|
|
295
|
+
// http bearer authentication required
|
|
296
|
+
_a.sent();
|
|
297
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
298
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
299
|
+
}
|
|
300
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
301
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
303
|
+
return [2 /*return*/, {
|
|
304
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions,
|
|
306
|
+
}];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
313
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
314
|
+
* @param {string} productCode
|
|
315
|
+
* @param {string} productVersionCode
|
|
316
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
*/
|
|
320
|
+
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
321
|
+
if (options === void 0) { options = {}; }
|
|
322
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
323
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
switch (_a.label) {
|
|
326
|
+
case 0:
|
|
327
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
328
|
+
(0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
|
|
329
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
330
|
+
(0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productVersionCode', productVersionCode);
|
|
331
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}"
|
|
332
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
333
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)));
|
|
334
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
baseAccessToken = configuration.accessToken;
|
|
338
|
+
}
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
340
|
+
localVarHeaderParameter = {};
|
|
341
|
+
localVarQueryParameter = {};
|
|
342
|
+
// authentication bearer required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
345
|
+
case 1:
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
_a.sent();
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
351
|
+
}
|
|
352
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return [2 /*return*/, {
|
|
356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
}];
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
},
|
|
363
|
+
/**
|
|
364
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
365
|
+
* @summary List Product Account Mappings
|
|
366
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
368
|
+
* @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.
|
|
369
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
370
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
371
|
+
* @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.
|
|
372
|
+
* @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.
|
|
373
|
+
* @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.
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
378
|
+
if (options === void 0) { options = {}; }
|
|
379
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
380
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
381
|
+
return __generator(this, function (_a) {
|
|
382
|
+
switch (_a.label) {
|
|
383
|
+
case 0:
|
|
384
|
+
localVarPath = "/accountingservice/v1/product-account-mappings";
|
|
385
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
baseAccessToken = configuration.accessToken;
|
|
389
|
+
}
|
|
390
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
391
|
+
localVarHeaderParameter = {};
|
|
392
|
+
localVarQueryParameter = {};
|
|
393
|
+
// authentication bearer required
|
|
394
|
+
// http bearer authentication required
|
|
395
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
396
|
+
case 1:
|
|
397
|
+
// authentication bearer required
|
|
398
|
+
// http bearer authentication required
|
|
399
|
+
_a.sent();
|
|
400
|
+
if (pageSize !== undefined) {
|
|
401
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
402
|
+
}
|
|
403
|
+
if (pageToken !== undefined) {
|
|
404
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
405
|
+
}
|
|
406
|
+
if (filter !== undefined) {
|
|
407
|
+
localVarQueryParameter['filter'] = filter;
|
|
408
|
+
}
|
|
409
|
+
if (search !== undefined) {
|
|
410
|
+
localVarQueryParameter['search'] = search;
|
|
411
|
+
}
|
|
412
|
+
if (order !== undefined) {
|
|
413
|
+
localVarQueryParameter['order'] = order;
|
|
414
|
+
}
|
|
415
|
+
if (expand !== undefined) {
|
|
416
|
+
localVarQueryParameter['expand'] = expand;
|
|
417
|
+
}
|
|
418
|
+
if (filters !== undefined) {
|
|
419
|
+
localVarQueryParameter['filters'] = filters;
|
|
420
|
+
}
|
|
421
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
422
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
423
|
+
}
|
|
424
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
425
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
427
|
+
return [2 /*return*/, {
|
|
428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
}];
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
437
|
+
* @summary List Products With Account Mappings
|
|
438
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
439
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
440
|
+
* @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.
|
|
441
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
442
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
443
|
+
* @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.
|
|
444
|
+
* @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.
|
|
445
|
+
* @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.
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
450
|
+
if (options === void 0) { options = {}; }
|
|
451
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
452
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
453
|
+
return __generator(this, function (_a) {
|
|
454
|
+
switch (_a.label) {
|
|
455
|
+
case 0:
|
|
456
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products";
|
|
457
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
+
if (configuration) {
|
|
459
|
+
baseOptions = configuration.baseOptions;
|
|
460
|
+
baseAccessToken = configuration.accessToken;
|
|
461
|
+
}
|
|
462
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
463
|
+
localVarHeaderParameter = {};
|
|
464
|
+
localVarQueryParameter = {};
|
|
465
|
+
// authentication bearer required
|
|
466
|
+
// http bearer authentication required
|
|
467
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
468
|
+
case 1:
|
|
469
|
+
// authentication bearer required
|
|
470
|
+
// http bearer authentication required
|
|
471
|
+
_a.sent();
|
|
472
|
+
if (pageSize !== undefined) {
|
|
473
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
474
|
+
}
|
|
475
|
+
if (pageToken !== undefined) {
|
|
476
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
477
|
+
}
|
|
478
|
+
if (filter !== undefined) {
|
|
479
|
+
localVarQueryParameter['filter'] = filter;
|
|
480
|
+
}
|
|
481
|
+
if (search !== undefined) {
|
|
482
|
+
localVarQueryParameter['search'] = search;
|
|
483
|
+
}
|
|
484
|
+
if (order !== undefined) {
|
|
485
|
+
localVarQueryParameter['order'] = order;
|
|
486
|
+
}
|
|
487
|
+
if (expand !== undefined) {
|
|
488
|
+
localVarQueryParameter['expand'] = expand;
|
|
489
|
+
}
|
|
490
|
+
if (filters !== undefined) {
|
|
491
|
+
localVarQueryParameter['filters'] = filters;
|
|
492
|
+
}
|
|
493
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
494
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
495
|
+
}
|
|
496
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
497
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
499
|
+
return [2 /*return*/, {
|
|
500
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
501
|
+
options: localVarRequestOptions,
|
|
502
|
+
}];
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
509
|
+
* @summary Update the Premium Item Account
|
|
510
|
+
* @param {string} productCode
|
|
511
|
+
* @param {string} productVersionCode
|
|
512
|
+
* @param {string} premiumFormulaCode
|
|
513
|
+
* @param {string} category
|
|
514
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
515
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
520
|
+
if (options === void 0) { options = {}; }
|
|
521
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
522
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
523
|
+
return __generator(this, function (_a) {
|
|
524
|
+
switch (_a.label) {
|
|
525
|
+
case 0:
|
|
526
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
527
|
+
(0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
|
|
528
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
529
|
+
(0, common_1.assertParamExists)('putPremiumItemAccount', 'productVersionCode', productVersionCode);
|
|
530
|
+
// verify required parameter 'premiumFormulaCode' is not null or undefined
|
|
531
|
+
(0, common_1.assertParamExists)('putPremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode);
|
|
532
|
+
// verify required parameter 'category' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('putPremiumItemAccount', 'category', category);
|
|
534
|
+
// verify required parameter 'putPremiumItemAccountBodyDto' is not null or undefined
|
|
535
|
+
(0, common_1.assertParamExists)('putPremiumItemAccount', 'putPremiumItemAccountBodyDto', putPremiumItemAccountBodyDto);
|
|
536
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}"
|
|
537
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
538
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
539
|
+
.replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)))
|
|
540
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
541
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
542
|
+
if (configuration) {
|
|
543
|
+
baseOptions = configuration.baseOptions;
|
|
544
|
+
baseAccessToken = configuration.accessToken;
|
|
545
|
+
}
|
|
546
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
547
|
+
localVarHeaderParameter = {};
|
|
548
|
+
localVarQueryParameter = {};
|
|
549
|
+
// authentication bearer required
|
|
550
|
+
// http bearer authentication required
|
|
551
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
552
|
+
case 1:
|
|
553
|
+
// authentication bearer required
|
|
554
|
+
// http bearer authentication required
|
|
555
|
+
_a.sent();
|
|
556
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
557
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
558
|
+
}
|
|
559
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
560
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
561
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
562
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
563
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putPremiumItemAccountBodyDto, localVarRequestOptions, configuration);
|
|
564
|
+
return [2 /*return*/, {
|
|
565
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
566
|
+
options: localVarRequestOptions,
|
|
567
|
+
}];
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
574
|
+
* @summary Update the Product Category Account
|
|
575
|
+
* @param {string} productCode
|
|
576
|
+
* @param {string} category
|
|
577
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
578
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
583
|
+
if (options === void 0) { options = {}; }
|
|
584
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
585
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
586
|
+
return __generator(this, function (_a) {
|
|
587
|
+
switch (_a.label) {
|
|
588
|
+
case 0:
|
|
589
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
590
|
+
(0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
|
|
591
|
+
// verify required parameter 'category' is not null or undefined
|
|
592
|
+
(0, common_1.assertParamExists)('putProductCategoryAccount', 'category', category);
|
|
593
|
+
// verify required parameter 'putProductCategoryAccountBodyDto' is not null or undefined
|
|
594
|
+
(0, common_1.assertParamExists)('putProductCategoryAccount', 'putProductCategoryAccountBodyDto', putProductCategoryAccountBodyDto);
|
|
595
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}"
|
|
596
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
597
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
598
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
599
|
+
if (configuration) {
|
|
600
|
+
baseOptions = configuration.baseOptions;
|
|
601
|
+
baseAccessToken = configuration.accessToken;
|
|
602
|
+
}
|
|
603
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
604
|
+
localVarHeaderParameter = {};
|
|
605
|
+
localVarQueryParameter = {};
|
|
606
|
+
// authentication bearer required
|
|
607
|
+
// http bearer authentication required
|
|
608
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
609
|
+
case 1:
|
|
610
|
+
// authentication bearer required
|
|
611
|
+
// http bearer authentication required
|
|
612
|
+
_a.sent();
|
|
613
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
614
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
615
|
+
}
|
|
616
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
617
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
618
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
619
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
620
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductCategoryAccountBodyDto, localVarRequestOptions, configuration);
|
|
621
|
+
return [2 /*return*/, {
|
|
622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
623
|
+
options: localVarRequestOptions,
|
|
624
|
+
}];
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
},
|
|
629
|
+
/**
|
|
630
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
631
|
+
* @summary Update the Product Version Category Account
|
|
632
|
+
* @param {string} productCode
|
|
633
|
+
* @param {string} productVersionCode
|
|
634
|
+
* @param {string} category
|
|
635
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
636
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
641
|
+
if (options === void 0) { options = {}; }
|
|
642
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
643
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
644
|
+
return __generator(this, function (_a) {
|
|
645
|
+
switch (_a.label) {
|
|
646
|
+
case 0:
|
|
647
|
+
// verify required parameter 'productCode' is not null or undefined
|
|
648
|
+
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
|
|
649
|
+
// verify required parameter 'productVersionCode' is not null or undefined
|
|
650
|
+
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productVersionCode', productVersionCode);
|
|
651
|
+
// verify required parameter 'category' is not null or undefined
|
|
652
|
+
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'category', category);
|
|
653
|
+
// verify required parameter 'putProductVersionCategoryAccountBodyDto' is not null or undefined
|
|
654
|
+
(0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'putProductVersionCategoryAccountBodyDto', putProductVersionCategoryAccountBodyDto);
|
|
655
|
+
localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}"
|
|
656
|
+
.replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
|
|
657
|
+
.replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
|
|
658
|
+
.replace("{".concat("category", "}"), encodeURIComponent(String(category)));
|
|
659
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
660
|
+
if (configuration) {
|
|
661
|
+
baseOptions = configuration.baseOptions;
|
|
662
|
+
baseAccessToken = configuration.accessToken;
|
|
663
|
+
}
|
|
664
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
665
|
+
localVarHeaderParameter = {};
|
|
666
|
+
localVarQueryParameter = {};
|
|
667
|
+
// authentication bearer required
|
|
668
|
+
// http bearer authentication required
|
|
669
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
670
|
+
case 1:
|
|
671
|
+
// authentication bearer required
|
|
672
|
+
// http bearer authentication required
|
|
673
|
+
_a.sent();
|
|
674
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
675
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
676
|
+
}
|
|
677
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
678
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
679
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
680
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
681
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductVersionCategoryAccountBodyDto, localVarRequestOptions, configuration);
|
|
682
|
+
return [2 /*return*/, {
|
|
683
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
684
|
+
options: localVarRequestOptions,
|
|
685
|
+
}];
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
exports.ProductAccountMappingsApiAxiosParamCreator = ProductAccountMappingsApiAxiosParamCreator;
|
|
693
|
+
/**
|
|
694
|
+
* ProductAccountMappingsApi - functional programming interface
|
|
695
|
+
* @export
|
|
696
|
+
*/
|
|
697
|
+
var ProductAccountMappingsApiFp = function (configuration) {
|
|
698
|
+
var localVarAxiosParamCreator = (0, exports.ProductAccountMappingsApiAxiosParamCreator)(configuration);
|
|
699
|
+
return {
|
|
700
|
+
/**
|
|
701
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
702
|
+
* @summary Delete the Premium Item Account
|
|
703
|
+
* @param {string} productCode
|
|
704
|
+
* @param {string} productVersionCode
|
|
705
|
+
* @param {string} premiumFormulaCode
|
|
706
|
+
* @param {string} category
|
|
707
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
712
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
713
|
+
var localVarAxiosArgs;
|
|
714
|
+
return __generator(this, function (_a) {
|
|
715
|
+
switch (_a.label) {
|
|
716
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options)];
|
|
717
|
+
case 1:
|
|
718
|
+
localVarAxiosArgs = _a.sent();
|
|
719
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
726
|
+
* @summary Delete the Product Category Account
|
|
727
|
+
* @param {string} productCode
|
|
728
|
+
* @param {string} category
|
|
729
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
735
|
+
var localVarAxiosArgs;
|
|
736
|
+
return __generator(this, function (_a) {
|
|
737
|
+
switch (_a.label) {
|
|
738
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options)];
|
|
739
|
+
case 1:
|
|
740
|
+
localVarAxiosArgs = _a.sent();
|
|
741
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
748
|
+
* @summary Delete the Product Version Category Account
|
|
749
|
+
* @param {string} productCode
|
|
750
|
+
* @param {string} productVersionCode
|
|
751
|
+
* @param {string} category
|
|
752
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
758
|
+
var localVarAxiosArgs;
|
|
759
|
+
return __generator(this, function (_a) {
|
|
760
|
+
switch (_a.label) {
|
|
761
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options)];
|
|
762
|
+
case 1:
|
|
763
|
+
localVarAxiosArgs = _a.sent();
|
|
764
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
771
|
+
* @summary Retrieve the Product Account Mapping
|
|
772
|
+
* @param {string} productCode
|
|
773
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
*/
|
|
777
|
+
getProductAccountMapping: function (productCode, authorization, options) {
|
|
778
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
779
|
+
var localVarAxiosArgs;
|
|
780
|
+
return __generator(this, function (_a) {
|
|
781
|
+
switch (_a.label) {
|
|
782
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductAccountMapping(productCode, authorization, options)];
|
|
783
|
+
case 1:
|
|
784
|
+
localVarAxiosArgs = _a.sent();
|
|
785
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
});
|
|
789
|
+
},
|
|
790
|
+
/**
|
|
791
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
792
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
793
|
+
* @param {string} productCode
|
|
794
|
+
* @param {string} productVersionCode
|
|
795
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
*/
|
|
799
|
+
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
800
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
801
|
+
var localVarAxiosArgs;
|
|
802
|
+
return __generator(this, function (_a) {
|
|
803
|
+
switch (_a.label) {
|
|
804
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options)];
|
|
805
|
+
case 1:
|
|
806
|
+
localVarAxiosArgs = _a.sent();
|
|
807
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
},
|
|
812
|
+
/**
|
|
813
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
814
|
+
* @summary List Product Account Mappings
|
|
815
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
816
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
817
|
+
* @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.
|
|
818
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
819
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
820
|
+
* @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.
|
|
821
|
+
* @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.
|
|
822
|
+
* @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.
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
827
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
828
|
+
var localVarAxiosArgs;
|
|
829
|
+
return __generator(this, function (_a) {
|
|
830
|
+
switch (_a.label) {
|
|
831
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
832
|
+
case 1:
|
|
833
|
+
localVarAxiosArgs = _a.sent();
|
|
834
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
});
|
|
838
|
+
},
|
|
839
|
+
/**
|
|
840
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
841
|
+
* @summary List Products With Account Mappings
|
|
842
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
843
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
844
|
+
* @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.
|
|
845
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
846
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
847
|
+
* @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.
|
|
848
|
+
* @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.
|
|
849
|
+
* @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.
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
854
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
855
|
+
var localVarAxiosArgs;
|
|
856
|
+
return __generator(this, function (_a) {
|
|
857
|
+
switch (_a.label) {
|
|
858
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
859
|
+
case 1:
|
|
860
|
+
localVarAxiosArgs = _a.sent();
|
|
861
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
});
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
868
|
+
* @summary Update the Premium Item Account
|
|
869
|
+
* @param {string} productCode
|
|
870
|
+
* @param {string} productVersionCode
|
|
871
|
+
* @param {string} premiumFormulaCode
|
|
872
|
+
* @param {string} category
|
|
873
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
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
|
+
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
879
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
880
|
+
var localVarAxiosArgs;
|
|
881
|
+
return __generator(this, function (_a) {
|
|
882
|
+
switch (_a.label) {
|
|
883
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options)];
|
|
884
|
+
case 1:
|
|
885
|
+
localVarAxiosArgs = _a.sent();
|
|
886
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
});
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
893
|
+
* @summary Update the Product Category Account
|
|
894
|
+
* @param {string} productCode
|
|
895
|
+
* @param {string} category
|
|
896
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
897
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
898
|
+
* @param {*} [options] Override http request option.
|
|
899
|
+
* @throws {RequiredError}
|
|
900
|
+
*/
|
|
901
|
+
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
902
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
903
|
+
var localVarAxiosArgs;
|
|
904
|
+
return __generator(this, function (_a) {
|
|
905
|
+
switch (_a.label) {
|
|
906
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options)];
|
|
907
|
+
case 1:
|
|
908
|
+
localVarAxiosArgs = _a.sent();
|
|
909
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
});
|
|
913
|
+
},
|
|
914
|
+
/**
|
|
915
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
916
|
+
* @summary Update the Product Version Category Account
|
|
917
|
+
* @param {string} productCode
|
|
918
|
+
* @param {string} productVersionCode
|
|
919
|
+
* @param {string} category
|
|
920
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
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
|
+
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
926
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
927
|
+
var localVarAxiosArgs;
|
|
928
|
+
return __generator(this, function (_a) {
|
|
929
|
+
switch (_a.label) {
|
|
930
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options)];
|
|
931
|
+
case 1:
|
|
932
|
+
localVarAxiosArgs = _a.sent();
|
|
933
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
},
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
exports.ProductAccountMappingsApiFp = ProductAccountMappingsApiFp;
|
|
941
|
+
/**
|
|
942
|
+
* ProductAccountMappingsApi - factory interface
|
|
943
|
+
* @export
|
|
944
|
+
*/
|
|
945
|
+
var ProductAccountMappingsApiFactory = function (configuration, basePath, axios) {
|
|
946
|
+
var localVarFp = (0, exports.ProductAccountMappingsApiFp)(configuration);
|
|
947
|
+
return {
|
|
948
|
+
/**
|
|
949
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
950
|
+
* @summary Delete the Premium Item Account
|
|
951
|
+
* @param {string} productCode
|
|
952
|
+
* @param {string} productVersionCode
|
|
953
|
+
* @param {string} premiumFormulaCode
|
|
954
|
+
* @param {string} category
|
|
955
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
|
|
960
|
+
return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
964
|
+
* @summary Delete the Product Category Account
|
|
965
|
+
* @param {string} productCode
|
|
966
|
+
* @param {string} category
|
|
967
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
*/
|
|
971
|
+
deleteProductCategoryAccount: function (productCode, category, authorization, options) {
|
|
972
|
+
return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
976
|
+
* @summary Delete the Product Version Category Account
|
|
977
|
+
* @param {string} productCode
|
|
978
|
+
* @param {string} productVersionCode
|
|
979
|
+
* @param {string} category
|
|
980
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
|
|
985
|
+
return localVarFp.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
989
|
+
* @summary Retrieve the Product Account Mapping
|
|
990
|
+
* @param {string} productCode
|
|
991
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
*/
|
|
995
|
+
getProductAccountMapping: function (productCode, authorization, options) {
|
|
996
|
+
return localVarFp.getProductAccountMapping(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
997
|
+
},
|
|
998
|
+
/**
|
|
999
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1000
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
1001
|
+
* @param {string} productCode
|
|
1002
|
+
* @param {string} productVersionCode
|
|
1003
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
|
|
1008
|
+
return localVarFp.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1009
|
+
},
|
|
1010
|
+
/**
|
|
1011
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1012
|
+
* @summary List Product Account Mappings
|
|
1013
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1014
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1015
|
+
* @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.
|
|
1016
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1017
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1018
|
+
* @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.
|
|
1019
|
+
* @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.
|
|
1020
|
+
* @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.
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
*/
|
|
1024
|
+
listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1025
|
+
return localVarFp.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1026
|
+
},
|
|
1027
|
+
/**
|
|
1028
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1029
|
+
* @summary List Products With Account Mappings
|
|
1030
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1031
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1032
|
+
* @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.
|
|
1033
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1034
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1035
|
+
* @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.
|
|
1036
|
+
* @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.
|
|
1037
|
+
* @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.
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
*/
|
|
1041
|
+
listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1042
|
+
return localVarFp.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1043
|
+
},
|
|
1044
|
+
/**
|
|
1045
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1046
|
+
* @summary Update the Premium Item Account
|
|
1047
|
+
* @param {string} productCode
|
|
1048
|
+
* @param {string} productVersionCode
|
|
1049
|
+
* @param {string} premiumFormulaCode
|
|
1050
|
+
* @param {string} category
|
|
1051
|
+
* @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
|
|
1052
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
|
|
1057
|
+
return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1058
|
+
},
|
|
1059
|
+
/**
|
|
1060
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1061
|
+
* @summary Update the Product Category Account
|
|
1062
|
+
* @param {string} productCode
|
|
1063
|
+
* @param {string} category
|
|
1064
|
+
* @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
|
|
1065
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
*/
|
|
1069
|
+
putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
|
|
1070
|
+
return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1074
|
+
* @summary Update the Product Version Category Account
|
|
1075
|
+
* @param {string} productCode
|
|
1076
|
+
* @param {string} productVersionCode
|
|
1077
|
+
* @param {string} category
|
|
1078
|
+
* @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
|
|
1079
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
*/
|
|
1083
|
+
putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
|
|
1084
|
+
return localVarFp.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1085
|
+
},
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
exports.ProductAccountMappingsApiFactory = ProductAccountMappingsApiFactory;
|
|
1089
|
+
/**
|
|
1090
|
+
* ProductAccountMappingsApi - object-oriented interface
|
|
1091
|
+
* @export
|
|
1092
|
+
* @class ProductAccountMappingsApi
|
|
1093
|
+
* @extends {BaseAPI}
|
|
1094
|
+
*/
|
|
1095
|
+
var ProductAccountMappingsApi = /** @class */ (function (_super) {
|
|
1096
|
+
__extends(ProductAccountMappingsApi, _super);
|
|
1097
|
+
function ProductAccountMappingsApi() {
|
|
1098
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1102
|
+
* @summary Delete the Premium Item Account
|
|
1103
|
+
* @param {ProductAccountMappingsApiDeletePremiumItemAccountRequest} requestParameters Request parameters.
|
|
1104
|
+
* @param {*} [options] Override http request option.
|
|
1105
|
+
* @throws {RequiredError}
|
|
1106
|
+
* @memberof ProductAccountMappingsApi
|
|
1107
|
+
*/
|
|
1108
|
+
ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
|
|
1109
|
+
var _this = this;
|
|
1110
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1111
|
+
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1114
|
+
* @summary Delete the Product Category Account
|
|
1115
|
+
* @param {ProductAccountMappingsApiDeleteProductCategoryAccountRequest} requestParameters Request parameters.
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
* @memberof ProductAccountMappingsApi
|
|
1119
|
+
*/
|
|
1120
|
+
ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
|
|
1121
|
+
var _this = this;
|
|
1122
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1123
|
+
};
|
|
1124
|
+
/**
|
|
1125
|
+
* Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
1126
|
+
* @summary Delete the Product Version Category Account
|
|
1127
|
+
* @param {ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest} requestParameters Request parameters.
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
* @memberof ProductAccountMappingsApi
|
|
1131
|
+
*/
|
|
1132
|
+
ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1133
|
+
var _this = this;
|
|
1134
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1138
|
+
* @summary Retrieve the Product Account Mapping
|
|
1139
|
+
* @param {ProductAccountMappingsApiGetProductAccountMappingRequest} requestParameters Request parameters.
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
* @memberof ProductAccountMappingsApi
|
|
1143
|
+
*/
|
|
1144
|
+
ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
|
|
1145
|
+
var _this = this;
|
|
1146
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1150
|
+
* @summary Retrieve the Product Version Account Mapping
|
|
1151
|
+
* @param {ProductAccountMappingsApiGetProductVersionAccountMappingRequest} requestParameters Request parameters.
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
* @memberof ProductAccountMappingsApi
|
|
1155
|
+
*/
|
|
1156
|
+
ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
|
|
1157
|
+
var _this = this;
|
|
1158
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1162
|
+
* @summary List Product Account Mappings
|
|
1163
|
+
* @param {ProductAccountMappingsApiListProductAccountMappingsRequest} requestParameters Request parameters.
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
* @memberof ProductAccountMappingsApi
|
|
1167
|
+
*/
|
|
1168
|
+
ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
|
|
1169
|
+
var _this = this;
|
|
1170
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1171
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(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); });
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
1175
|
+
* @summary List Products With Account Mappings
|
|
1176
|
+
* @param {ProductAccountMappingsApiListProductsWithAccountMappingsRequest} requestParameters Request parameters.
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
* @memberof ProductAccountMappingsApi
|
|
1180
|
+
*/
|
|
1181
|
+
ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
|
|
1182
|
+
var _this = this;
|
|
1183
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1184
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(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); });
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1188
|
+
* @summary Update the Premium Item Account
|
|
1189
|
+
* @param {ProductAccountMappingsApiPutPremiumItemAccountRequest} requestParameters Request parameters.
|
|
1190
|
+
* @param {*} [options] Override http request option.
|
|
1191
|
+
* @throws {RequiredError}
|
|
1192
|
+
* @memberof ProductAccountMappingsApi
|
|
1193
|
+
*/
|
|
1194
|
+
ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
|
|
1195
|
+
var _this = this;
|
|
1196
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1197
|
+
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1200
|
+
* @summary Update the Product Category Account
|
|
1201
|
+
* @param {ProductAccountMappingsApiPutProductCategoryAccountRequest} requestParameters Request parameters.
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
* @memberof ProductAccountMappingsApi
|
|
1205
|
+
*/
|
|
1206
|
+
ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
|
|
1207
|
+
var _this = this;
|
|
1208
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
1212
|
+
* @summary Update the Product Version Category Account
|
|
1213
|
+
* @param {ProductAccountMappingsApiPutProductVersionCategoryAccountRequest} requestParameters Request parameters.
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
* @memberof ProductAccountMappingsApi
|
|
1217
|
+
*/
|
|
1218
|
+
ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
|
|
1219
|
+
var _this = this;
|
|
1220
|
+
return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1221
|
+
};
|
|
1222
|
+
return ProductAccountMappingsApi;
|
|
1223
|
+
}(base_1.BaseAPI));
|
|
1224
|
+
exports.ProductAccountMappingsApi = ProductAccountMappingsApi;
|