@emilgroup/accounting-sdk-node 1.32.1-beta.77 → 1.32.1-beta.78
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 +0 -50
- package/README.md +2 -2
- package/api/booking-entries-api.ts +10 -234
- package/api/financial-accounts-api.ts +24 -154
- package/api/financial-transactions-api.ts +4 -8
- package/api/number-ranges-api.ts +8 -16
- package/api/personal-accounts-api.ts +8 -16
- package/api.ts +0 -6
- package/common.ts +2 -3
- package/dist/api/booking-entries-api.d.ts +7 -121
- package/dist/api/booking-entries-api.js +14 -211
- package/dist/api/financial-accounts-api.d.ts +20 -86
- package/dist/api/financial-accounts-api.js +27 -137
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +6 -8
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +14 -22
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +14 -22
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/models/booking-entry-class.d.ts +0 -34
- package/dist/models/booking-entry-class.js +1 -10
- package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
- package/dist/models/create-booking-entry-request-dto.js +0 -9
- package/dist/models/create-financial-account-request-dto.d.ts +5 -50
- package/dist/models/create-financial-account-request-dto.js +2 -26
- package/dist/models/create-number-range-request-dto.d.ts +4 -4
- package/dist/models/create-number-range-request-dto.js +4 -4
- package/dist/models/create-personal-account-request-dto.d.ts +6 -14
- package/dist/models/create-personal-account-request-dto.js +3 -3
- package/dist/models/financial-account-class.d.ts +2 -49
- package/dist/models/financial-account-class.js +2 -6
- package/dist/models/financial-transaction-class.d.ts +0 -6
- package/dist/models/financial-transaction-data-dto.d.ts +2 -11
- package/dist/models/financial-transaction-data-dto.js +0 -1
- package/dist/models/index.d.ts +0 -47
- package/dist/models/index.js +0 -47
- package/dist/models/personal-account-class.d.ts +2 -8
- package/dist/models/personal-account-class.js +1 -1
- package/models/booking-entry-class.ts +0 -35
- package/models/create-booking-entry-request-dto.ts +2 -26
- package/models/create-financial-account-request-dto.ts +5 -49
- package/models/create-number-range-request-dto.ts +4 -4
- package/models/create-personal-account-request-dto.ts +6 -12
- package/models/financial-account-class.ts +2 -50
- package/models/financial-transaction-class.ts +0 -6
- package/models/financial-transaction-data-dto.ts +2 -9
- package/models/index.ts +0 -47
- package/models/personal-account-class.ts +2 -8
- package/package.json +2 -2
- package/api/accounting-configs-api.ts +0 -868
- package/api/commission-account-mappings-api.ts +0 -1211
- package/api/product-account-mappings-api.ts +0 -1719
- package/dist/api/accounting-configs-api.d.ts +0 -451
- package/dist/api/accounting-configs-api.js +0 -887
- package/dist/api/commission-account-mappings-api.d.ts +0 -685
- package/dist/api/commission-account-mappings-api.js +0 -1026
- package/dist/api/product-account-mappings-api.d.ts +0 -972
- package/dist/api/product-account-mappings-api.js +0 -1451
- package/dist/models/account-mapping-class.d.ts +0 -73
- package/dist/models/account-mapping-class.js +0 -40
- package/dist/models/accounting-category-class.d.ts +0 -45
- package/dist/models/accounting-category-class.js +0 -24
- package/dist/models/accounting-config-class.d.ts +0 -78
- package/dist/models/accounting-config-class.js +0 -20
- package/dist/models/accounting-config-data-class.d.ts +0 -38
- package/dist/models/accounting-config-data-class.js +0 -15
- package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
- package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
- package/dist/models/accounting-config-data-dto.d.ts +0 -38
- package/dist/models/accounting-config-data-dto.js +0 -15
- package/dist/models/accounting-configuration-class.d.ts +0 -36
- package/dist/models/accounting-configuration-class.js +0 -15
- package/dist/models/commission-account-mapping-class.d.ts +0 -49
- package/dist/models/commission-account-mapping-class.js +0 -15
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
- package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
- package/dist/models/commission-agreement-partner-class.d.ts +0 -30
- package/dist/models/commission-agreement-partner-class.js +0 -15
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
- package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
- package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
- package/dist/models/commission-type-account-mapping-class.js +0 -15
- package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
- package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-response-class.js +0 -15
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
- package/dist/models/export-accounting-config-response-class.d.ts +0 -25
- package/dist/models/export-accounting-config-response-class.js +0 -15
- package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
- package/dist/models/get-accounting-categories-response-class.js +0 -15
- package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
- package/dist/models/get-activation-snapshot-response-class.js +0 -15
- package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
- package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-product-account-mappings-response-class.js +0 -15
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
- package/dist/models/opening-balance-item-dto.d.ts +0 -41
- package/dist/models/opening-balance-item-dto.js +0 -20
- package/dist/models/post-financial-event-request-dto.d.ts +0 -45
- package/dist/models/post-financial-event-request-dto.js +0 -24
- package/dist/models/post-financial-event-response-class.d.ts +0 -25
- package/dist/models/post-financial-event-response-class.js +0 -15
- package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
- package/dist/models/premium-item-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-class.d.ts +0 -61
- package/dist/models/product-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
- package/dist/models/product-account-mapping-detail-class.js +0 -15
- package/dist/models/product-risk-carrier-class.d.ts +0 -42
- package/dist/models/product-risk-carrier-class.js +0 -15
- package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
- package/dist/models/product-version-account-mapping-detail-class.js +0 -15
- package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
- package/dist/models/product-version-with-account-mappings-class.js +0 -15
- package/dist/models/product-with-account-mappings-class.d.ts +0 -49
- package/dist/models/product-with-account-mappings-class.js +0 -15
- package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
- package/dist/models/put-premium-item-account-body-dto.js +0 -15
- package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-category-account-body-dto.js +0 -15
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
- package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
- package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-version-category-account-body-dto.js +0 -15
- package/dist/models/resolved-account-mapping-class.d.ts +0 -31
- package/dist/models/resolved-account-mapping-class.js +0 -15
- package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
- package/dist/models/resolved-commission-account-mapping-class.js +0 -21
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
- package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-type-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-body-dto.d.ts +0 -48
- package/dist/models/update-financial-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-response-class.d.ts +0 -25
- package/dist/models/update-financial-account-response-class.js +0 -15
- package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
- package/dist/models/validate-accounting-config-request-dto.js +0 -15
- package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
- package/dist/models/validate-accounting-config-response-class.js +0 -15
- package/models/account-mapping-class.ts +0 -82
- package/models/accounting-category-class.ts +0 -54
- package/models/accounting-config-class.ts +0 -87
- package/models/accounting-config-data-class.ts +0 -44
- package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
- package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
- package/models/accounting-config-data-dto.ts +0 -44
- package/models/accounting-configuration-class.ts +0 -42
- package/models/commission-account-mapping-class.ts +0 -55
- package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
- package/models/commission-agreement-partner-class.ts +0 -36
- package/models/commission-agreement-with-account-mapping-class.ts +0 -49
- package/models/commission-type-account-mapping-class.ts +0 -37
- package/models/create-and-enable-subledger-request-dto.ts +0 -31
- package/models/create-and-enable-subledger-response-class.ts +0 -31
- package/models/create-or-correct-opening-balance-dto.ts +0 -31
- package/models/create-or-correct-opening-balance-response-class.ts +0 -31
- package/models/export-accounting-config-response-class.ts +0 -31
- package/models/get-accounting-categories-response-class.ts +0 -31
- package/models/get-activation-snapshot-response-class.ts +0 -31
- package/models/list-commission-account-mappings-response-class.ts +0 -49
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
- package/models/list-commission-type-account-mappings-response-class.ts +0 -49
- package/models/list-product-account-mappings-response-class.ts +0 -49
- package/models/list-products-with-account-mappings-response-class.ts +0 -49
- package/models/opening-balance-item-dto.ts +0 -50
- package/models/post-financial-event-request-dto.ts +0 -54
- package/models/post-financial-event-response-class.ts +0 -31
- package/models/premium-item-account-mapping-class.ts +0 -43
- package/models/product-account-mapping-class.ts +0 -67
- package/models/product-account-mapping-detail-class.ts +0 -62
- package/models/product-risk-carrier-class.ts +0 -48
- package/models/product-version-account-mapping-detail-class.ts +0 -56
- package/models/product-version-with-account-mappings-class.ts +0 -48
- package/models/product-with-account-mappings-class.ts +0 -55
- package/models/put-premium-item-account-body-dto.ts +0 -30
- package/models/put-product-category-account-body-dto.ts +0 -30
- package/models/put-product-risk-carrier-body-dto.ts +0 -30
- package/models/put-product-version-category-account-body-dto.ts +0 -30
- package/models/resolved-account-mapping-class.ts +0 -37
- package/models/resolved-commission-account-mapping-class.ts +0 -46
- package/models/update-commission-agreement-account-body-dto.ts +0 -30
- package/models/update-commission-type-account-body-dto.ts +0 -30
- package/models/update-financial-account-body-dto.ts +0 -54
- package/models/update-financial-account-response-class.ts +0 -31
- package/models/validate-accounting-config-request-dto.ts +0 -31
- package/models/validate-accounting-config-response-class.ts +0 -36
|
@@ -108,7 +108,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
getFinancialTransaction: function (code, expand, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -136,9 +136,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
if (expand !== undefined) {
|
|
137
137
|
localVarQueryParameter['expand'] = expand;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
142
141
|
}
|
|
143
142
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
143
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -168,7 +167,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
168
167
|
listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
169
168
|
if (options === void 0) { options = {}; }
|
|
170
169
|
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
170
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
171
|
return __generator(this, function (_a) {
|
|
173
172
|
switch (_a.label) {
|
|
174
173
|
case 0:
|
|
@@ -209,9 +208,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
209
208
|
if (filters !== undefined) {
|
|
210
209
|
localVarQueryParameter['filters'] = filters;
|
|
211
210
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
211
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
212
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
215
213
|
}
|
|
216
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
215
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/dist/api/health-api.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
|
@@ -296,7 +296,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
296
296
|
* @throws {RequiredError}
|
|
297
297
|
* @memberof NumberRangesApi
|
|
298
298
|
*/
|
|
299
|
-
createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}
|
|
299
|
+
createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}>>;
|
|
300
300
|
/**
|
|
301
301
|
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
|
|
302
302
|
* @summary Delete the Personal Account
|
|
@@ -305,7 +305,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
305
305
|
* @throws {RequiredError}
|
|
306
306
|
* @memberof NumberRangesApi
|
|
307
307
|
*/
|
|
308
|
-
deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}
|
|
308
|
+
deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
309
309
|
/**
|
|
310
310
|
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.transactions.view\"
|
|
311
311
|
* @summary Retrieve the Financial Account
|
|
@@ -314,7 +314,7 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
314
314
|
* @throws {RequiredError}
|
|
315
315
|
* @memberof NumberRangesApi
|
|
316
316
|
*/
|
|
317
|
-
getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}
|
|
317
|
+
getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}>>;
|
|
318
318
|
/**
|
|
319
319
|
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.transactions.view\"
|
|
320
320
|
* @summary List Financial Accounts
|
|
@@ -323,5 +323,5 @@ export declare class NumberRangesApi extends BaseAPI {
|
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
* @memberof NumberRangesApi
|
|
325
325
|
*/
|
|
326
|
-
listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}
|
|
326
|
+
listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}>>;
|
|
327
327
|
}
|
|
@@ -107,7 +107,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,16 +124,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
130
128
|
case 1:
|
|
131
129
|
// authentication bearer required
|
|
132
130
|
// http bearer authentication required
|
|
133
131
|
_a.sent();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
134
|
}
|
|
138
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +156,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
deleteNumberRange: function (code, authorization, options) {
|
|
160
157
|
if (options === void 0) { options = {}; }
|
|
161
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
160
|
return __generator(this, function (_a) {
|
|
164
161
|
switch (_a.label) {
|
|
165
162
|
case 0:
|
|
@@ -177,16 +174,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
177
174
|
localVarQueryParameter = {};
|
|
178
175
|
// authentication bearer required
|
|
179
176
|
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
183
178
|
case 1:
|
|
184
179
|
// authentication bearer required
|
|
185
180
|
// http bearer authentication required
|
|
186
181
|
_a.sent();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
184
|
}
|
|
191
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -211,7 +205,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
211
205
|
getNumberRange: function (code, expand, authorization, options) {
|
|
212
206
|
if (options === void 0) { options = {}; }
|
|
213
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
209
|
return __generator(this, function (_a) {
|
|
216
210
|
switch (_a.label) {
|
|
217
211
|
case 0:
|
|
@@ -239,9 +233,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
239
233
|
if (expand !== undefined) {
|
|
240
234
|
localVarQueryParameter['expand'] = expand;
|
|
241
235
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
238
|
}
|
|
246
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -271,7 +264,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
271
264
|
listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
265
|
if (options === void 0) { options = {}; }
|
|
273
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
268
|
return __generator(this, function (_a) {
|
|
276
269
|
switch (_a.label) {
|
|
277
270
|
case 0:
|
|
@@ -312,9 +305,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
|
|
|
312
305
|
if (filters !== undefined) {
|
|
313
306
|
localVarQueryParameter['filters'] = filters;
|
|
314
307
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
310
|
}
|
|
319
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -296,7 +296,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
|
|
|
296
296
|
* @throws {RequiredError}
|
|
297
297
|
* @memberof PersonalAccountsApi
|
|
298
298
|
*/
|
|
299
|
-
createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}
|
|
299
|
+
createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}>>;
|
|
300
300
|
/**
|
|
301
301
|
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
302
302
|
* @summary Delete the Personal Account
|
|
@@ -305,7 +305,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
|
|
|
305
305
|
* @throws {RequiredError}
|
|
306
306
|
* @memberof PersonalAccountsApi
|
|
307
307
|
*/
|
|
308
|
-
deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}
|
|
308
|
+
deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
309
309
|
/**
|
|
310
310
|
* Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
311
311
|
* @summary Retrieve the Personal Account
|
|
@@ -314,7 +314,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
|
|
|
314
314
|
* @throws {RequiredError}
|
|
315
315
|
* @memberof PersonalAccountsApi
|
|
316
316
|
*/
|
|
317
|
-
getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}
|
|
317
|
+
getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}>>;
|
|
318
318
|
/**
|
|
319
319
|
* Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
320
320
|
* @summary List Personal Accounts
|
|
@@ -323,5 +323,5 @@ export declare class PersonalAccountsApi extends BaseAPI {
|
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
* @memberof PersonalAccountsApi
|
|
325
325
|
*/
|
|
326
|
-
listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}
|
|
326
|
+
listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}>>;
|
|
327
327
|
}
|
|
@@ -107,7 +107,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,16 +124,13 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
130
128
|
case 1:
|
|
131
129
|
// authentication bearer required
|
|
132
130
|
// http bearer authentication required
|
|
133
131
|
_a.sent();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
134
|
}
|
|
138
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +156,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
deletePersonalAccount: function (code, authorization, options) {
|
|
160
157
|
if (options === void 0) { options = {}; }
|
|
161
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
160
|
return __generator(this, function (_a) {
|
|
164
161
|
switch (_a.label) {
|
|
165
162
|
case 0:
|
|
@@ -177,16 +174,13 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
177
174
|
localVarQueryParameter = {};
|
|
178
175
|
// authentication bearer required
|
|
179
176
|
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
-
];
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
183
178
|
case 1:
|
|
184
179
|
// authentication bearer required
|
|
185
180
|
// http bearer authentication required
|
|
186
181
|
_a.sent();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
184
|
}
|
|
191
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -211,7 +205,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
211
205
|
getPersonalAccount: function (code, expand, authorization, options) {
|
|
212
206
|
if (options === void 0) { options = {}; }
|
|
213
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
215
209
|
return __generator(this, function (_a) {
|
|
216
210
|
switch (_a.label) {
|
|
217
211
|
case 0:
|
|
@@ -239,9 +233,8 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
239
233
|
if (expand !== undefined) {
|
|
240
234
|
localVarQueryParameter['expand'] = expand;
|
|
241
235
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
236
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
238
|
}
|
|
246
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -271,7 +264,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
271
264
|
listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
272
265
|
if (options === void 0) { options = {}; }
|
|
273
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
274
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
267
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
268
|
return __generator(this, function (_a) {
|
|
276
269
|
switch (_a.label) {
|
|
277
270
|
case 0:
|
|
@@ -312,9 +305,8 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
312
305
|
if (filters !== undefined) {
|
|
313
306
|
localVarQueryParameter['filters'] = filters;
|
|
314
307
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
318
310
|
}
|
|
319
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
320
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/dist/api.d.ts
CHANGED
|
@@ -9,12 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export * from './api/accounting-configs-api';
|
|
13
12
|
export * from './api/booking-entries-api';
|
|
14
|
-
export * from './api/commission-account-mappings-api';
|
|
15
13
|
export * from './api/financial-accounts-api';
|
|
16
14
|
export * from './api/financial-transactions-api';
|
|
17
15
|
export * from './api/health-api';
|
|
18
16
|
export * from './api/number-ranges-api';
|
|
19
17
|
export * from './api/personal-accounts-api';
|
|
20
|
-
export * from './api/product-account-mappings-api';
|
package/dist/api.js
CHANGED
|
@@ -27,12 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/accounting-configs-api"), exports);
|
|
31
30
|
__exportStar(require("./api/booking-entries-api"), exports);
|
|
32
|
-
__exportStar(require("./api/commission-account-mappings-api"), exports);
|
|
33
31
|
__exportStar(require("./api/financial-accounts-api"), exports);
|
|
34
32
|
__exportStar(require("./api/financial-transactions-api"), exports);
|
|
35
33
|
__exportStar(require("./api/health-api"), exports);
|
|
36
34
|
__exportStar(require("./api/number-ranges-api"), exports);
|
|
37
35
|
__exportStar(require("./api/personal-accounts-api"), exports);
|
|
38
|
-
__exportStar(require("./api/product-account-mappings-api"), exports);
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AccountingService
|
|
69
69
|
* The EMIL AccountingService API description
|
package/dist/common.js
CHANGED
|
@@ -234,7 +234,6 @@ exports.toPathString = toPathString;
|
|
|
234
234
|
* @export
|
|
235
235
|
*/
|
|
236
236
|
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
237
|
-
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
238
237
|
return function (axios, basePath) {
|
|
239
238
|
if (axios === void 0) { axios = globalAxios; }
|
|
240
239
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -76,30 +76,6 @@ export interface BookingEntryClass {
|
|
|
76
76
|
* @memberof BookingEntryClass
|
|
77
77
|
*/
|
|
78
78
|
'externalNumber'?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The code of the source entity this entry was posted for, such as an invoice or payment code. Absent on an entry posted by hand (sourceEntityType manual) and on a legacy entry.
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof BookingEntryClass
|
|
83
|
-
*/
|
|
84
|
-
'sourceEntityCode'?: string;
|
|
85
|
-
/**
|
|
86
|
-
* The kind of source entity this entry was posted for: manual for an entry posted by hand, which carries no sourceEntityCode. Absent only on a legacy entry.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof BookingEntryClass
|
|
89
|
-
*/
|
|
90
|
-
'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
|
|
91
|
-
/**
|
|
92
|
-
* The code of the entry this entry reverses. Absent on an entry that is not a reversal.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof BookingEntryClass
|
|
95
|
-
*/
|
|
96
|
-
'reversalOfCode'?: string;
|
|
97
|
-
/**
|
|
98
|
-
* True once the entry has been reversed in full. Its reversal names it in reversalOfCode.
|
|
99
|
-
* @type {boolean}
|
|
100
|
-
* @memberof BookingEntryClass
|
|
101
|
-
*/
|
|
102
|
-
'isReversed'?: boolean;
|
|
103
79
|
/**
|
|
104
80
|
* A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
|
|
105
81
|
* @type {Array<FinancialTransactionClass>}
|
|
@@ -145,13 +121,3 @@ export declare const BookingEntryClassCurrencyEnum: {
|
|
|
145
121
|
readonly Sek: "SEK";
|
|
146
122
|
};
|
|
147
123
|
export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
|
|
148
|
-
export declare const BookingEntryClassSourceEntityTypeEnum: {
|
|
149
|
-
readonly Invoice: "invoice";
|
|
150
|
-
readonly Payment: "payment";
|
|
151
|
-
readonly Credit: "credit";
|
|
152
|
-
readonly CreditAllocation: "credit_allocation";
|
|
153
|
-
readonly ClaimRegulation: "claim_regulation";
|
|
154
|
-
readonly Commission: "commission";
|
|
155
|
-
readonly Manual: "manual";
|
|
156
|
-
};
|
|
157
|
-
export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.BookingEntryClassCurrencyEnum = void 0;
|
|
17
17
|
exports.BookingEntryClassCurrencyEnum = {
|
|
18
18
|
Eur: 'EUR',
|
|
19
19
|
Usd: 'USD',
|
|
@@ -27,12 +27,3 @@ exports.BookingEntryClassCurrencyEnum = {
|
|
|
27
27
|
Nok: 'NOK',
|
|
28
28
|
Sek: 'SEK'
|
|
29
29
|
};
|
|
30
|
-
exports.BookingEntryClassSourceEntityTypeEnum = {
|
|
31
|
-
Invoice: 'invoice',
|
|
32
|
-
Payment: 'payment',
|
|
33
|
-
Credit: 'credit',
|
|
34
|
-
CreditAllocation: 'credit_allocation',
|
|
35
|
-
ClaimRegulation: 'claim_regulation',
|
|
36
|
-
Commission: 'commission',
|
|
37
|
-
Manual: 'manual'
|
|
38
|
-
};
|
|
@@ -40,18 +40,6 @@ export interface CreateBookingEntryRequestDto {
|
|
|
40
40
|
* @memberof CreateBookingEntryRequestDto
|
|
41
41
|
*/
|
|
42
42
|
'externalNumber'?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateBookingEntryRequestDto
|
|
47
|
-
*/
|
|
48
|
-
'sourceEntityCode'?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode. Omitted, the entry is typed manual. An entry posted by hand cannot be typed invoice.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CreateBookingEntryRequestDto
|
|
53
|
-
*/
|
|
54
|
-
'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
|
|
55
43
|
/**
|
|
56
44
|
* A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
|
|
57
45
|
* @type {string}
|
|
@@ -60,12 +48,10 @@ export interface CreateBookingEntryRequestDto {
|
|
|
60
48
|
'description': string;
|
|
61
49
|
/**
|
|
62
50
|
* Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
|
|
63
|
-
* @type {
|
|
51
|
+
* @type {object}
|
|
64
52
|
* @memberof CreateBookingEntryRequestDto
|
|
65
53
|
*/
|
|
66
|
-
'customFields'?:
|
|
67
|
-
[key: string]: object;
|
|
68
|
-
};
|
|
54
|
+
'customFields'?: object;
|
|
69
55
|
/**
|
|
70
56
|
* An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
|
|
71
57
|
* @type {Array<FinancialTransactionDataDto>}
|
|
@@ -73,12 +59,3 @@ export interface CreateBookingEntryRequestDto {
|
|
|
73
59
|
*/
|
|
74
60
|
'financialTransactions': Array<FinancialTransactionDataDto>;
|
|
75
61
|
}
|
|
76
|
-
export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
|
|
77
|
-
readonly Payment: "payment";
|
|
78
|
-
readonly Credit: "credit";
|
|
79
|
-
readonly CreditAllocation: "credit_allocation";
|
|
80
|
-
readonly ClaimRegulation: "claim_regulation";
|
|
81
|
-
readonly Commission: "commission";
|
|
82
|
-
readonly Manual: "manual";
|
|
83
|
-
};
|
|
84
|
-
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
@@ -13,12 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
|
|
17
|
-
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
|
|
18
|
-
Payment: 'payment',
|
|
19
|
-
Credit: 'credit',
|
|
20
|
-
CreditAllocation: 'credit_allocation',
|
|
21
|
-
ClaimRegulation: 'claim_regulation',
|
|
22
|
-
Commission: 'commission',
|
|
23
|
-
Manual: 'manual'
|
|
24
|
-
};
|
|
@@ -47,12 +47,10 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
47
47
|
'parentId'?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof CreateFinancialAccountRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'customFields'
|
|
54
|
-
[key: string]: object;
|
|
55
|
-
};
|
|
53
|
+
'customFields': object;
|
|
56
54
|
/**
|
|
57
55
|
* A detailed description of the financial account
|
|
58
56
|
* @type {string}
|
|
@@ -66,61 +64,18 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
66
64
|
*/
|
|
67
65
|
'clearable': boolean;
|
|
68
66
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
72
|
-
*/
|
|
73
|
-
'isControlAccount': boolean;
|
|
74
|
-
/**
|
|
75
|
-
* The functional category of the account. Empty string means unset.
|
|
67
|
+
* Not used on this release line. Declared so the DTO matches the generated proto interface. Empty string means unset.
|
|
76
68
|
* @type {string}
|
|
77
69
|
* @memberof CreateFinancialAccountRequestDto
|
|
78
70
|
*/
|
|
79
|
-
'functionalCategory'
|
|
80
|
-
/**
|
|
81
|
-
* Whether this account is the default for its functional category. Only meaningful for pool categories. Setting true on creation will clear isDefault on any other account in the same category.
|
|
82
|
-
* @type {boolean}
|
|
83
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
84
|
-
*/
|
|
85
|
-
'isDefault'?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The connected bank account this account books, given as its code. Permitted only on bank_acc accounts, and rejected if another financial account already links that bank account. Its IBAN is read from the bank account and returned as linkedBankAccountIban; it is never accepted here.
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
90
|
-
*/
|
|
91
|
-
'linkedBankAccountCode'?: string;
|
|
71
|
+
'functionalCategory'?: string;
|
|
92
72
|
}
|
|
93
73
|
export declare const CreateFinancialAccountRequestDtoTypeEnum: {
|
|
94
74
|
readonly Asset: "asset";
|
|
95
75
|
readonly Liability: "liability";
|
|
96
76
|
readonly Equity: "equity";
|
|
97
|
-
readonly
|
|
77
|
+
readonly Revenue: "revenue";
|
|
98
78
|
readonly Expense: "expense";
|
|
99
79
|
readonly OpeningBalance: "opening_balance";
|
|
100
80
|
};
|
|
101
81
|
export type CreateFinancialAccountRequestDtoTypeEnum = typeof CreateFinancialAccountRequestDtoTypeEnum[keyof typeof CreateFinancialAccountRequestDtoTypeEnum];
|
|
102
|
-
export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
|
|
103
|
-
readonly BankAcc: "bank_acc";
|
|
104
|
-
readonly TaxPendingAcc: "tax_pending_acc";
|
|
105
|
-
readonly TaxForwardedAcc: "tax_forwarded_acc";
|
|
106
|
-
readonly TaxDueAcc: "tax_due_acc";
|
|
107
|
-
readonly VatPendingAcc: "vat_pending_acc";
|
|
108
|
-
readonly VatDueAcc: "vat_due_acc";
|
|
109
|
-
readonly RevenueBufferAcc: "revenue_buffer_acc";
|
|
110
|
-
readonly RevenueFinalAcc: "revenue_final_acc";
|
|
111
|
-
readonly ClaimExpenseAcc: "claim_expense_acc";
|
|
112
|
-
readonly CustomerCreditLiabAcc: "customer_credit_liab_acc";
|
|
113
|
-
readonly WriteOffExpAcc: "write_off_exp_acc";
|
|
114
|
-
readonly RoundingDiffAcc: "rounding_diff_acc";
|
|
115
|
-
readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
|
|
116
|
-
readonly FeeRevenueAcc: "fee_revenue_acc";
|
|
117
|
-
readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
|
|
118
|
-
readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
|
|
119
|
-
readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
|
|
120
|
-
readonly BrokerCtrlAcc: "broker_ctrl_acc";
|
|
121
|
-
readonly CarrierCtrlAcc: "carrier_ctrl_acc";
|
|
122
|
-
readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
|
|
123
|
-
readonly ClaimsPayableAcc: "claims_payable_acc";
|
|
124
|
-
readonly CarrierReceivableAcc: "carrier_receivable_acc";
|
|
125
|
-
};
|
|
126
|
-
export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
|
|
@@ -13,36 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateFinancialAccountRequestDtoTypeEnum = void 0;
|
|
17
17
|
exports.CreateFinancialAccountRequestDtoTypeEnum = {
|
|
18
18
|
Asset: 'asset',
|
|
19
19
|
Liability: 'liability',
|
|
20
20
|
Equity: 'equity',
|
|
21
|
-
|
|
21
|
+
Revenue: 'revenue',
|
|
22
22
|
Expense: 'expense',
|
|
23
23
|
OpeningBalance: 'opening_balance'
|
|
24
24
|
};
|
|
25
|
-
exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
|
|
26
|
-
BankAcc: 'bank_acc',
|
|
27
|
-
TaxPendingAcc: 'tax_pending_acc',
|
|
28
|
-
TaxForwardedAcc: 'tax_forwarded_acc',
|
|
29
|
-
TaxDueAcc: 'tax_due_acc',
|
|
30
|
-
VatPendingAcc: 'vat_pending_acc',
|
|
31
|
-
VatDueAcc: 'vat_due_acc',
|
|
32
|
-
RevenueBufferAcc: 'revenue_buffer_acc',
|
|
33
|
-
RevenueFinalAcc: 'revenue_final_acc',
|
|
34
|
-
ClaimExpenseAcc: 'claim_expense_acc',
|
|
35
|
-
CustomerCreditLiabAcc: 'customer_credit_liab_acc',
|
|
36
|
-
WriteOffExpAcc: 'write_off_exp_acc',
|
|
37
|
-
RoundingDiffAcc: 'rounding_diff_acc',
|
|
38
|
-
PaymentFeesExpAcc: 'payment_fees_exp_acc',
|
|
39
|
-
FeeRevenueAcc: 'fee_revenue_acc',
|
|
40
|
-
UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
|
|
41
|
-
OpeningBalEquityAcc: 'opening_bal_equity_acc',
|
|
42
|
-
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
43
|
-
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
44
|
-
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
45
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
46
|
-
ClaimsPayableAcc: 'claims_payable_acc',
|
|
47
|
-
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
48
|
-
};
|