@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
|
@@ -28,10 +28,6 @@ import { CreateFinancialAccountResponseClass } from '../models';
|
|
|
28
28
|
import { GetFinancialAccountResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListFinancialAccountsResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { UpdateFinancialAccountBodyDto } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { UpdateFinancialAccountResponseClass } from '../models';
|
|
35
31
|
// URLSearchParams not necessarily used
|
|
36
32
|
// @ts-ignore
|
|
37
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -43,7 +39,7 @@ const FormData = require('form-data');
|
|
|
43
39
|
export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
40
|
return {
|
|
45
41
|
/**
|
|
46
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
42
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
47
43
|
* @summary Create the Financial Account
|
|
48
44
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
49
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -71,10 +67,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
71
67
|
// http bearer authentication required
|
|
72
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
69
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (authorizationValue) {
|
|
77
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
|
|
@@ -121,10 +115,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
121
115
|
// http bearer authentication required
|
|
122
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
117
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (authorizationValue) {
|
|
127
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
120
|
}
|
|
129
121
|
|
|
130
122
|
|
|
@@ -175,10 +167,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
175
167
|
localVarQueryParameter['expand'] = expand;
|
|
176
168
|
}
|
|
177
169
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (authorizationValue) {
|
|
181
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
172
|
}
|
|
183
173
|
|
|
184
174
|
|
|
@@ -198,11 +188,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
198
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
199
189
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
200
190
|
* @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.
|
|
201
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
191
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
202
192
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
203
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
193
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
204
194
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
205
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
206
196
|
* @param {*} [options] Override http request option.
|
|
207
197
|
* @throws {RequiredError}
|
|
208
198
|
*/
|
|
@@ -253,70 +243,15 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
253
243
|
localVarQueryParameter['filters'] = filters;
|
|
254
244
|
}
|
|
255
245
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (authorizationValue) {
|
|
259
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
265
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
267
|
-
|
|
268
|
-
return {
|
|
269
|
-
url: toPathString(localVarUrlObj),
|
|
270
|
-
options: localVarRequestOptions,
|
|
271
|
-
};
|
|
272
|
-
},
|
|
273
|
-
/**
|
|
274
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
275
|
-
* @summary Update the Financial Account
|
|
276
|
-
* @param {string} code Unique identifier for the object.
|
|
277
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
278
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
-
* @param {*} [options] Override http request option.
|
|
280
|
-
* @throws {RequiredError}
|
|
281
|
-
*/
|
|
282
|
-
updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
283
|
-
// verify required parameter 'code' is not null or undefined
|
|
284
|
-
assertParamExists('updateFinancialAccount', 'code', code)
|
|
285
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
286
|
-
assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
|
|
287
|
-
const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
|
|
288
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
289
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
|
-
let baseOptions;
|
|
292
|
-
let baseAccessToken;
|
|
293
|
-
if (configuration) {
|
|
294
|
-
baseOptions = configuration.baseOptions;
|
|
295
|
-
baseAccessToken = configuration.accessToken;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
299
|
-
const localVarHeaderParameter = {} as any;
|
|
300
|
-
const localVarQueryParameter = {} as any;
|
|
301
|
-
|
|
302
|
-
// authentication bearer required
|
|
303
|
-
// http bearer authentication required
|
|
304
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
|
-
|
|
306
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
307
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
308
|
-
if (authorizationValue) {
|
|
309
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
310
248
|
}
|
|
311
249
|
|
|
312
250
|
|
|
313
251
|
|
|
314
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
315
|
-
|
|
316
252
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
317
253
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
318
254
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
319
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
|
|
320
255
|
|
|
321
256
|
return {
|
|
322
257
|
url: toPathString(localVarUrlObj),
|
|
@@ -334,7 +269,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
334
269
|
const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
|
|
335
270
|
return {
|
|
336
271
|
/**
|
|
337
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
272
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
338
273
|
* @summary Create the Financial Account
|
|
339
274
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
340
275
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -376,11 +311,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
376
311
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
377
312
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
378
313
|
* @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.
|
|
379
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
314
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
380
315
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
381
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
316
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
382
317
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
383
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
318
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
384
319
|
* @param {*} [options] Override http request option.
|
|
385
320
|
* @throws {RequiredError}
|
|
386
321
|
*/
|
|
@@ -388,19 +323,6 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
388
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
389
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
325
|
},
|
|
391
|
-
/**
|
|
392
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
393
|
-
* @summary Update the Financial Account
|
|
394
|
-
* @param {string} code Unique identifier for the object.
|
|
395
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
396
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
397
|
-
* @param {*} [options] Override http request option.
|
|
398
|
-
* @throws {RequiredError}
|
|
399
|
-
*/
|
|
400
|
-
async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
|
|
401
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
|
|
402
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
|
-
},
|
|
404
326
|
}
|
|
405
327
|
};
|
|
406
328
|
|
|
@@ -412,7 +334,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
412
334
|
const localVarFp = FinancialAccountsApiFp(configuration)
|
|
413
335
|
return {
|
|
414
336
|
/**
|
|
415
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
337
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
416
338
|
* @summary Create the Financial Account
|
|
417
339
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
418
340
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -451,29 +373,17 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
451
373
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
452
374
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
453
375
|
* @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.
|
|
454
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
376
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
455
377
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
456
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
378
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
457
379
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
458
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
380
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
459
381
|
* @param {*} [options] Override http request option.
|
|
460
382
|
* @throws {RequiredError}
|
|
461
383
|
*/
|
|
462
384
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
|
|
463
385
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
464
386
|
},
|
|
465
|
-
/**
|
|
466
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
467
|
-
* @summary Update the Financial Account
|
|
468
|
-
* @param {string} code Unique identifier for the object.
|
|
469
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
470
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
-
* @param {*} [options] Override http request option.
|
|
472
|
-
* @throws {RequiredError}
|
|
473
|
-
*/
|
|
474
|
-
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
|
|
475
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
-
},
|
|
477
387
|
};
|
|
478
388
|
};
|
|
479
389
|
|
|
@@ -575,7 +485,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
575
485
|
readonly pageToken?: string
|
|
576
486
|
|
|
577
487
|
/**
|
|
578
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
488
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
579
489
|
* @type {string}
|
|
580
490
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
581
491
|
*/
|
|
@@ -589,7 +499,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
589
499
|
readonly search?: string
|
|
590
500
|
|
|
591
501
|
/**
|
|
592
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
502
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
593
503
|
* @type {string}
|
|
594
504
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
595
505
|
*/
|
|
@@ -603,41 +513,13 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
603
513
|
readonly expand?: string
|
|
604
514
|
|
|
605
515
|
/**
|
|
606
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
516
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
607
517
|
* @type {string}
|
|
608
518
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
609
519
|
*/
|
|
610
520
|
readonly filters?: string
|
|
611
521
|
}
|
|
612
522
|
|
|
613
|
-
/**
|
|
614
|
-
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
615
|
-
* @export
|
|
616
|
-
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
617
|
-
*/
|
|
618
|
-
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
619
|
-
/**
|
|
620
|
-
* Unique identifier for the object.
|
|
621
|
-
* @type {string}
|
|
622
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
623
|
-
*/
|
|
624
|
-
readonly code: string
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @type {UpdateFinancialAccountBodyDto}
|
|
629
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
630
|
-
*/
|
|
631
|
-
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
635
|
-
* @type {string}
|
|
636
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
637
|
-
*/
|
|
638
|
-
readonly authorization?: string
|
|
639
|
-
}
|
|
640
|
-
|
|
641
523
|
/**
|
|
642
524
|
* FinancialAccountsApi - object-oriented interface
|
|
643
525
|
* @export
|
|
@@ -646,7 +528,7 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
|
646
528
|
*/
|
|
647
529
|
export class FinancialAccountsApi extends BaseAPI {
|
|
648
530
|
/**
|
|
649
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
531
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
650
532
|
* @summary Create the Financial Account
|
|
651
533
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
652
534
|
* @param {*} [options] Override http request option.
|
|
@@ -692,16 +574,4 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
692
574
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
693
575
|
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
694
576
|
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
698
|
-
* @summary Update the Financial Account
|
|
699
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
700
|
-
* @param {*} [options] Override http request option.
|
|
701
|
-
* @throws {RequiredError}
|
|
702
|
-
* @memberof FinancialAccountsApi
|
|
703
|
-
*/
|
|
704
|
-
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
705
|
-
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
706
|
-
}
|
|
707
577
|
}
|
|
@@ -71,10 +71,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
71
71
|
localVarQueryParameter['expand'] = expand;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (authorizationValue) {
|
|
77
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
|
|
@@ -149,10 +147,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
149
147
|
localVarQueryParameter['filters'] = filters;
|
|
150
148
|
}
|
|
151
149
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (authorizationValue) {
|
|
155
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
150
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
151
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
156
152
|
}
|
|
157
153
|
|
|
158
154
|
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -67,10 +67,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
@@ -117,10 +115,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
117
115
|
// http bearer authentication required
|
|
118
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (authorizationValue) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
|
|
@@ -171,10 +167,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
171
167
|
localVarQueryParameter['expand'] = expand;
|
|
172
168
|
}
|
|
173
169
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if (authorizationValue) {
|
|
177
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
178
172
|
}
|
|
179
173
|
|
|
180
174
|
|
|
@@ -249,10 +243,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
249
243
|
localVarQueryParameter['filters'] = filters;
|
|
250
244
|
}
|
|
251
245
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (authorizationValue) {
|
|
255
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
248
|
}
|
|
257
249
|
|
|
258
250
|
|
|
@@ -67,10 +67,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
@@ -117,10 +115,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
117
115
|
// http bearer authentication required
|
|
118
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (authorizationValue) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
|
|
@@ -171,10 +167,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
171
167
|
localVarQueryParameter['expand'] = expand;
|
|
172
168
|
}
|
|
173
169
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if (authorizationValue) {
|
|
177
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
178
172
|
}
|
|
179
173
|
|
|
180
174
|
|
|
@@ -249,10 +243,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
249
243
|
localVarQueryParameter['filters'] = filters;
|
|
250
244
|
}
|
|
251
245
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (authorizationValue) {
|
|
255
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
248
|
}
|
|
257
249
|
|
|
258
250
|
|
package/api.ts
CHANGED
|
@@ -24,24 +24,18 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import { AccountingConfigsApi } from './api';
|
|
28
27
|
import { BookingEntriesApi } from './api';
|
|
29
|
-
import { CommissionAccountMappingsApi } from './api';
|
|
30
28
|
import { FinancialAccountsApi } from './api';
|
|
31
29
|
import { FinancialTransactionsApi } from './api';
|
|
32
30
|
import { HealthApi } from './api';
|
|
33
31
|
import { NumberRangesApi } from './api';
|
|
34
32
|
import { PersonalAccountsApi } from './api';
|
|
35
|
-
import { ProductAccountMappingsApi } from './api';
|
|
36
33
|
|
|
37
34
|
|
|
38
|
-
export * from './api/accounting-configs-api';
|
|
39
35
|
export * from './api/booking-entries-api';
|
|
40
|
-
export * from './api/commission-account-mappings-api';
|
|
41
36
|
export * from './api/financial-accounts-api';
|
|
42
37
|
export * from './api/financial-transactions-api';
|
|
43
38
|
export * from './api/health-api';
|
|
44
39
|
export * from './api/number-ranges-api';
|
|
45
40
|
export * from './api/personal-accounts-api';
|
|
46
|
-
export * from './api/product-account-mappings-api';
|
|
47
41
|
|
package/common.ts
CHANGED
|
@@ -131,10 +131,9 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
135
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
134
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
135
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
137
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
136
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
|