@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
|
@@ -16,15 +16,13 @@ import { CreateFinancialAccountRequestDto } from '../models';
|
|
|
16
16
|
import { CreateFinancialAccountResponseClass } from '../models';
|
|
17
17
|
import { GetFinancialAccountResponseClass } from '../models';
|
|
18
18
|
import { ListFinancialAccountsResponseClass } from '../models';
|
|
19
|
-
import { UpdateFinancialAccountBodyDto } from '../models';
|
|
20
|
-
import { UpdateFinancialAccountResponseClass } from '../models';
|
|
21
19
|
/**
|
|
22
20
|
* FinancialAccountsApi - axios parameter creator
|
|
23
21
|
* @export
|
|
24
22
|
*/
|
|
25
23
|
export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
24
|
/**
|
|
27
|
-
* 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.
|
|
25
|
+
* 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\"
|
|
28
26
|
* @summary Create the Financial Account
|
|
29
27
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
30
28
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -57,25 +55,15 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
|
|
|
57
55
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
56
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
57
|
* @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.
|
|
60
|
-
* @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
|
|
58
|
+
* @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>
|
|
61
59
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
62
|
-
* @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
|
|
60
|
+
* @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>
|
|
63
61
|
* @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/>
|
|
64
|
-
* @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
|
|
62
|
+
* @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>
|
|
65
63
|
* @param {*} [options] Override http request option.
|
|
66
64
|
* @throws {RequiredError}
|
|
67
65
|
*/
|
|
68
66
|
listFinancialAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
-
/**
|
|
70
|
-
* 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\"
|
|
71
|
-
* @summary Update the Financial Account
|
|
72
|
-
* @param {string} code Unique identifier for the object.
|
|
73
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
74
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
*/
|
|
78
|
-
updateFinancialAccount: (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
67
|
};
|
|
80
68
|
/**
|
|
81
69
|
* FinancialAccountsApi - functional programming interface
|
|
@@ -83,7 +71,7 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
|
|
|
83
71
|
*/
|
|
84
72
|
export declare const FinancialAccountsApiFp: (configuration?: Configuration) => {
|
|
85
73
|
/**
|
|
86
|
-
* 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.
|
|
74
|
+
* 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\"
|
|
87
75
|
* @summary Create the Financial Account
|
|
88
76
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
89
77
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -116,25 +104,15 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
|
|
|
116
104
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
105
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
106
|
* @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.
|
|
119
|
-
* @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
|
|
107
|
+
* @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>
|
|
120
108
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
121
|
-
* @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
|
|
109
|
+
* @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>
|
|
122
110
|
* @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/>
|
|
123
|
-
* @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
|
|
111
|
+
* @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>
|
|
124
112
|
* @param {*} [options] Override http request option.
|
|
125
113
|
* @throws {RequiredError}
|
|
126
114
|
*/
|
|
127
115
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialAccountsResponseClass>>;
|
|
128
|
-
/**
|
|
129
|
-
* 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\"
|
|
130
|
-
* @summary Update the Financial Account
|
|
131
|
-
* @param {string} code Unique identifier for the object.
|
|
132
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
133
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
-
* @param {*} [options] Override http request option.
|
|
135
|
-
* @throws {RequiredError}
|
|
136
|
-
*/
|
|
137
|
-
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>>;
|
|
138
116
|
};
|
|
139
117
|
/**
|
|
140
118
|
* FinancialAccountsApi - factory interface
|
|
@@ -142,7 +120,7 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
|
|
|
142
120
|
*/
|
|
143
121
|
export declare const FinancialAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
144
122
|
/**
|
|
145
|
-
* 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.
|
|
123
|
+
* 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\"
|
|
146
124
|
* @summary Create the Financial Account
|
|
147
125
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
148
126
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -175,25 +153,15 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
|
|
|
175
153
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
154
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
155
|
* @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.
|
|
178
|
-
* @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
|
|
156
|
+
* @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>
|
|
179
157
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
180
|
-
* @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
|
|
158
|
+
* @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>
|
|
181
159
|
* @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/>
|
|
182
|
-
* @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
|
|
160
|
+
* @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>
|
|
183
161
|
* @param {*} [options] Override http request option.
|
|
184
162
|
* @throws {RequiredError}
|
|
185
163
|
*/
|
|
186
164
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass>;
|
|
187
|
-
/**
|
|
188
|
-
* 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\"
|
|
189
|
-
* @summary Update the Financial Account
|
|
190
|
-
* @param {string} code Unique identifier for the object.
|
|
191
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
192
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
-
* @param {*} [options] Override http request option.
|
|
194
|
-
* @throws {RequiredError}
|
|
195
|
-
*/
|
|
196
|
-
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass>;
|
|
197
165
|
};
|
|
198
166
|
/**
|
|
199
167
|
* Request parameters for createFinancialAccount operation in FinancialAccountsApi.
|
|
@@ -283,7 +251,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
283
251
|
*/
|
|
284
252
|
readonly pageToken?: string;
|
|
285
253
|
/**
|
|
286
|
-
* 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
|
|
254
|
+
* 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>
|
|
287
255
|
* @type {string}
|
|
288
256
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
289
257
|
*/
|
|
@@ -295,7 +263,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
295
263
|
*/
|
|
296
264
|
readonly search?: string;
|
|
297
265
|
/**
|
|
298
|
-
* 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
|
|
266
|
+
* 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>
|
|
299
267
|
* @type {string}
|
|
300
268
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
301
269
|
*/
|
|
@@ -307,37 +275,12 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
307
275
|
*/
|
|
308
276
|
readonly expand?: string;
|
|
309
277
|
/**
|
|
310
|
-
* 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
|
|
278
|
+
* 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>
|
|
311
279
|
* @type {string}
|
|
312
280
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
313
281
|
*/
|
|
314
282
|
readonly filters?: string;
|
|
315
283
|
}
|
|
316
|
-
/**
|
|
317
|
-
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
318
|
-
* @export
|
|
319
|
-
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
320
|
-
*/
|
|
321
|
-
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
322
|
-
/**
|
|
323
|
-
* Unique identifier for the object.
|
|
324
|
-
* @type {string}
|
|
325
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
326
|
-
*/
|
|
327
|
-
readonly code: string;
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* @type {UpdateFinancialAccountBodyDto}
|
|
331
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
332
|
-
*/
|
|
333
|
-
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto;
|
|
334
|
-
/**
|
|
335
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
-
* @type {string}
|
|
337
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
338
|
-
*/
|
|
339
|
-
readonly authorization?: string;
|
|
340
|
-
}
|
|
341
284
|
/**
|
|
342
285
|
* FinancialAccountsApi - object-oriented interface
|
|
343
286
|
* @export
|
|
@@ -346,14 +289,14 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
|
346
289
|
*/
|
|
347
290
|
export declare class FinancialAccountsApi extends BaseAPI {
|
|
348
291
|
/**
|
|
349
|
-
* 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.
|
|
292
|
+
* 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\"
|
|
350
293
|
* @summary Create the Financial Account
|
|
351
294
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
352
295
|
* @param {*} [options] Override http request option.
|
|
353
296
|
* @throws {RequiredError}
|
|
354
297
|
* @memberof FinancialAccountsApi
|
|
355
298
|
*/
|
|
356
|
-
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}
|
|
299
|
+
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
|
|
357
300
|
/**
|
|
358
301
|
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
359
302
|
* @summary Delete the Financial Account
|
|
@@ -362,7 +305,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
362
305
|
* @throws {RequiredError}
|
|
363
306
|
* @memberof FinancialAccountsApi
|
|
364
307
|
*/
|
|
365
|
-
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}
|
|
308
|
+
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
366
309
|
/**
|
|
367
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.financial-accounts.view\"
|
|
368
311
|
* @summary Retrieve the Financial Account
|
|
@@ -371,7 +314,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
371
314
|
* @throws {RequiredError}
|
|
372
315
|
* @memberof FinancialAccountsApi
|
|
373
316
|
*/
|
|
374
|
-
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}
|
|
317
|
+
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
|
|
375
318
|
/**
|
|
376
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.financial-accounts.view\"
|
|
377
320
|
* @summary List Financial Accounts
|
|
@@ -380,14 +323,5 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
380
323
|
* @throws {RequiredError}
|
|
381
324
|
* @memberof FinancialAccountsApi
|
|
382
325
|
*/
|
|
383
|
-
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}
|
|
384
|
-
/**
|
|
385
|
-
* 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\"
|
|
386
|
-
* @summary Update the Financial Account
|
|
387
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
388
|
-
* @param {*} [options] Override http request option.
|
|
389
|
-
* @throws {RequiredError}
|
|
390
|
-
* @memberof FinancialAccountsApi
|
|
391
|
-
*/
|
|
392
|
-
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
|
|
326
|
+
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
|
|
393
327
|
}
|
|
@@ -97,7 +97,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* 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.
|
|
100
|
+
* 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\"
|
|
101
101
|
* @summary Create the Financial Account
|
|
102
102
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -107,7 +107,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createFinancialAccount: function (createFinancialAccountRequestDto, 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 FinancialAccountsApiAxiosParamCreator = 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 FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
deleteFinancialAccount: 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 FinancialAccountsApiAxiosParamCreator = 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 FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
211
205
|
getFinancialAccount: 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 FinancialAccountsApiAxiosParamCreator = 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 : {};
|
|
@@ -260,18 +253,18 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
260
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
254
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
262
255
|
* @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.
|
|
263
|
-
* @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
|
|
256
|
+
* @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>
|
|
264
257
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
265
|
-
* @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
|
|
258
|
+
* @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>
|
|
266
259
|
* @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/>
|
|
267
|
-
* @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
|
|
260
|
+
* @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>
|
|
268
261
|
* @param {*} [options] Override http request option.
|
|
269
262
|
* @throws {RequiredError}
|
|
270
263
|
*/
|
|
271
264
|
listFinancialAccounts: 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 FinancialAccountsApiAxiosParamCreator = 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 : {};
|
|
@@ -327,62 +319,6 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
327
319
|
});
|
|
328
320
|
});
|
|
329
321
|
},
|
|
330
|
-
/**
|
|
331
|
-
* 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\"
|
|
332
|
-
* @summary Update the Financial Account
|
|
333
|
-
* @param {string} code Unique identifier for the object.
|
|
334
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
335
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
-
* @param {*} [options] Override http request option.
|
|
337
|
-
* @throws {RequiredError}
|
|
338
|
-
*/
|
|
339
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
340
|
-
if (options === void 0) { options = {}; }
|
|
341
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
342
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
343
|
-
return __generator(this, function (_a) {
|
|
344
|
-
switch (_a.label) {
|
|
345
|
-
case 0:
|
|
346
|
-
// verify required parameter 'code' is not null or undefined
|
|
347
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
348
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
349
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
|
|
350
|
-
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
351
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
352
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
353
|
-
if (configuration) {
|
|
354
|
-
baseOptions = configuration.baseOptions;
|
|
355
|
-
baseAccessToken = configuration.accessToken;
|
|
356
|
-
}
|
|
357
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
358
|
-
localVarHeaderParameter = {};
|
|
359
|
-
localVarQueryParameter = {};
|
|
360
|
-
// authentication bearer required
|
|
361
|
-
// http bearer authentication required
|
|
362
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
363
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
364
|
-
];
|
|
365
|
-
case 1:
|
|
366
|
-
// authentication bearer required
|
|
367
|
-
// http bearer authentication required
|
|
368
|
-
_a.sent();
|
|
369
|
-
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
370
|
-
if (authorizationValue) {
|
|
371
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
372
|
-
}
|
|
373
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
375
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
377
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
|
|
378
|
-
return [2 /*return*/, {
|
|
379
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
380
|
-
options: localVarRequestOptions,
|
|
381
|
-
}];
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
},
|
|
386
322
|
};
|
|
387
323
|
};
|
|
388
324
|
exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
|
|
@@ -394,7 +330,7 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
394
330
|
var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
|
|
395
331
|
return {
|
|
396
332
|
/**
|
|
397
|
-
* 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.
|
|
333
|
+
* 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\"
|
|
398
334
|
* @summary Create the Financial Account
|
|
399
335
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
400
336
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -463,11 +399,11 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
463
399
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
464
400
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
465
401
|
* @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.
|
|
466
|
-
* @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
|
|
402
|
+
* @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>
|
|
467
403
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
468
|
-
* @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
|
|
404
|
+
* @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>
|
|
469
405
|
* @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/>
|
|
470
|
-
* @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
|
|
406
|
+
* @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>
|
|
471
407
|
* @param {*} [options] Override http request option.
|
|
472
408
|
* @throws {RequiredError}
|
|
473
409
|
*/
|
|
@@ -484,28 +420,6 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
484
420
|
});
|
|
485
421
|
});
|
|
486
422
|
},
|
|
487
|
-
/**
|
|
488
|
-
* 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\"
|
|
489
|
-
* @summary Update the Financial Account
|
|
490
|
-
* @param {string} code Unique identifier for the object.
|
|
491
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
492
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
493
|
-
* @param {*} [options] Override http request option.
|
|
494
|
-
* @throws {RequiredError}
|
|
495
|
-
*/
|
|
496
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
497
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
-
var localVarAxiosArgs;
|
|
499
|
-
return __generator(this, function (_a) {
|
|
500
|
-
switch (_a.label) {
|
|
501
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
|
|
502
|
-
case 1:
|
|
503
|
-
localVarAxiosArgs = _a.sent();
|
|
504
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
});
|
|
508
|
-
},
|
|
509
423
|
};
|
|
510
424
|
};
|
|
511
425
|
exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
|
|
@@ -517,7 +431,7 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
517
431
|
var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
|
|
518
432
|
return {
|
|
519
433
|
/**
|
|
520
|
-
* 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.
|
|
434
|
+
* 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\"
|
|
521
435
|
* @summary Create the Financial Account
|
|
522
436
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
523
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -556,29 +470,17 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
556
470
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
557
471
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
558
472
|
* @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.
|
|
559
|
-
* @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
|
|
473
|
+
* @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>
|
|
560
474
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
561
|
-
* @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
|
|
475
|
+
* @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>
|
|
562
476
|
* @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/>
|
|
563
|
-
* @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
|
|
477
|
+
* @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>
|
|
564
478
|
* @param {*} [options] Override http request option.
|
|
565
479
|
* @throws {RequiredError}
|
|
566
480
|
*/
|
|
567
481
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
568
482
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
569
483
|
},
|
|
570
|
-
/**
|
|
571
|
-
* 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\"
|
|
572
|
-
* @summary Update the Financial Account
|
|
573
|
-
* @param {string} code Unique identifier for the object.
|
|
574
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
575
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
580
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
581
|
-
},
|
|
582
484
|
};
|
|
583
485
|
};
|
|
584
486
|
exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
|
|
@@ -594,7 +496,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
594
496
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
595
497
|
}
|
|
596
498
|
/**
|
|
597
|
-
* 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.
|
|
499
|
+
* 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\"
|
|
598
500
|
* @summary Create the Financial Account
|
|
599
501
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
600
502
|
* @param {*} [options] Override http request option.
|
|
@@ -642,18 +544,6 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
642
544
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
643
545
|
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
546
|
};
|
|
645
|
-
/**
|
|
646
|
-
* 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\"
|
|
647
|
-
* @summary Update the Financial Account
|
|
648
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
649
|
-
* @param {*} [options] Override http request option.
|
|
650
|
-
* @throws {RequiredError}
|
|
651
|
-
* @memberof FinancialAccountsApi
|
|
652
|
-
*/
|
|
653
|
-
FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
|
|
654
|
-
var _this = this;
|
|
655
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
656
|
-
};
|
|
657
547
|
return FinancialAccountsApi;
|
|
658
548
|
}(base_1.BaseAPI));
|
|
659
549
|
exports.FinancialAccountsApi = FinancialAccountsApi;
|
|
@@ -202,7 +202,7 @@ export declare class FinancialTransactionsApi extends BaseAPI {
|
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
* @memberof FinancialTransactionsApi
|
|
204
204
|
*/
|
|
205
|
-
getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}
|
|
205
|
+
getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}>>;
|
|
206
206
|
/**
|
|
207
207
|
* This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
|
|
208
208
|
* @summary List financial transactions
|
|
@@ -211,5 +211,5 @@ export declare class FinancialTransactionsApi extends BaseAPI {
|
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
* @memberof FinancialTransactionsApi
|
|
213
213
|
*/
|
|
214
|
-
listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}
|
|
214
|
+
listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
|
|
215
215
|
}
|