@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.
Files changed (204) hide show
  1. package/.openapi-generator/FILES +0 -50
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +10 -234
  4. package/api/financial-accounts-api.ts +24 -154
  5. package/api/financial-transactions-api.ts +4 -8
  6. package/api/number-ranges-api.ts +8 -16
  7. package/api/personal-accounts-api.ts +8 -16
  8. package/api.ts +0 -6
  9. package/common.ts +2 -3
  10. package/dist/api/booking-entries-api.d.ts +7 -121
  11. package/dist/api/booking-entries-api.js +14 -211
  12. package/dist/api/financial-accounts-api.d.ts +20 -86
  13. package/dist/api/financial-accounts-api.js +27 -137
  14. package/dist/api/financial-transactions-api.d.ts +2 -2
  15. package/dist/api/financial-transactions-api.js +6 -8
  16. package/dist/api/health-api.d.ts +1 -1
  17. package/dist/api/number-ranges-api.d.ts +4 -4
  18. package/dist/api/number-ranges-api.js +14 -22
  19. package/dist/api/personal-accounts-api.d.ts +4 -4
  20. package/dist/api/personal-accounts-api.js +14 -22
  21. package/dist/api.d.ts +0 -3
  22. package/dist/api.js +0 -3
  23. package/dist/common.d.ts +1 -1
  24. package/dist/common.js +0 -1
  25. package/dist/models/booking-entry-class.d.ts +0 -34
  26. package/dist/models/booking-entry-class.js +1 -10
  27. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  28. package/dist/models/create-booking-entry-request-dto.js +0 -9
  29. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  30. package/dist/models/create-financial-account-request-dto.js +2 -26
  31. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  32. package/dist/models/create-number-range-request-dto.js +4 -4
  33. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  34. package/dist/models/create-personal-account-request-dto.js +3 -3
  35. package/dist/models/financial-account-class.d.ts +2 -49
  36. package/dist/models/financial-account-class.js +2 -6
  37. package/dist/models/financial-transaction-class.d.ts +0 -6
  38. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  39. package/dist/models/financial-transaction-data-dto.js +0 -1
  40. package/dist/models/index.d.ts +0 -47
  41. package/dist/models/index.js +0 -47
  42. package/dist/models/personal-account-class.d.ts +2 -8
  43. package/dist/models/personal-account-class.js +1 -1
  44. package/models/booking-entry-class.ts +0 -35
  45. package/models/create-booking-entry-request-dto.ts +2 -26
  46. package/models/create-financial-account-request-dto.ts +5 -49
  47. package/models/create-number-range-request-dto.ts +4 -4
  48. package/models/create-personal-account-request-dto.ts +6 -12
  49. package/models/financial-account-class.ts +2 -50
  50. package/models/financial-transaction-class.ts +0 -6
  51. package/models/financial-transaction-data-dto.ts +2 -9
  52. package/models/index.ts +0 -47
  53. package/models/personal-account-class.ts +2 -8
  54. package/package.json +2 -2
  55. package/api/accounting-configs-api.ts +0 -868
  56. package/api/commission-account-mappings-api.ts +0 -1211
  57. package/api/product-account-mappings-api.ts +0 -1719
  58. package/dist/api/accounting-configs-api.d.ts +0 -451
  59. package/dist/api/accounting-configs-api.js +0 -887
  60. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  61. package/dist/api/commission-account-mappings-api.js +0 -1026
  62. package/dist/api/product-account-mappings-api.d.ts +0 -972
  63. package/dist/api/product-account-mappings-api.js +0 -1451
  64. package/dist/models/account-mapping-class.d.ts +0 -73
  65. package/dist/models/account-mapping-class.js +0 -40
  66. package/dist/models/accounting-category-class.d.ts +0 -45
  67. package/dist/models/accounting-category-class.js +0 -24
  68. package/dist/models/accounting-config-class.d.ts +0 -78
  69. package/dist/models/accounting-config-class.js +0 -20
  70. package/dist/models/accounting-config-data-class.d.ts +0 -38
  71. package/dist/models/accounting-config-data-class.js +0 -15
  72. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  73. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  74. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  75. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  76. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  77. package/dist/models/accounting-config-data-dto.js +0 -15
  78. package/dist/models/accounting-configuration-class.d.ts +0 -36
  79. package/dist/models/accounting-configuration-class.js +0 -15
  80. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  81. package/dist/models/commission-account-mapping-class.js +0 -15
  82. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  83. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  84. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  85. package/dist/models/commission-agreement-partner-class.js +0 -15
  86. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  87. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  88. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  89. package/dist/models/commission-type-account-mapping-class.js +0 -15
  90. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  91. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  92. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  93. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  94. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  95. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  96. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  97. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  98. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  99. package/dist/models/export-accounting-config-response-class.js +0 -15
  100. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  101. package/dist/models/get-accounting-categories-response-class.js +0 -15
  102. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  103. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  104. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  105. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  106. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  107. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  108. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  109. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  110. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  115. package/dist/models/opening-balance-item-dto.js +0 -20
  116. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  117. package/dist/models/post-financial-event-request-dto.js +0 -24
  118. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  119. package/dist/models/post-financial-event-response-class.js +0 -15
  120. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  121. package/dist/models/premium-item-account-mapping-class.js +0 -15
  122. package/dist/models/product-account-mapping-class.d.ts +0 -61
  123. package/dist/models/product-account-mapping-class.js +0 -15
  124. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  125. package/dist/models/product-account-mapping-detail-class.js +0 -15
  126. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  127. package/dist/models/product-risk-carrier-class.js +0 -15
  128. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  129. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  130. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  131. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  132. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  133. package/dist/models/product-with-account-mappings-class.js +0 -15
  134. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  135. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  136. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  137. package/dist/models/put-product-category-account-body-dto.js +0 -15
  138. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  139. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  140. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  142. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  143. package/dist/models/resolved-account-mapping-class.js +0 -15
  144. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  145. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  146. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  147. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  148. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  149. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  150. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  151. package/dist/models/update-financial-account-body-dto.js +0 -15
  152. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  153. package/dist/models/update-financial-account-response-class.js +0 -15
  154. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  155. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  156. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  157. package/dist/models/validate-accounting-config-response-class.js +0 -15
  158. package/models/account-mapping-class.ts +0 -82
  159. package/models/accounting-category-class.ts +0 -54
  160. package/models/accounting-config-class.ts +0 -87
  161. package/models/accounting-config-data-class.ts +0 -44
  162. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  163. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  164. package/models/accounting-config-data-dto.ts +0 -44
  165. package/models/accounting-configuration-class.ts +0 -42
  166. package/models/commission-account-mapping-class.ts +0 -55
  167. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  168. package/models/commission-agreement-partner-class.ts +0 -36
  169. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  170. package/models/commission-type-account-mapping-class.ts +0 -37
  171. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  172. package/models/create-and-enable-subledger-response-class.ts +0 -31
  173. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  174. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  175. package/models/export-accounting-config-response-class.ts +0 -31
  176. package/models/get-accounting-categories-response-class.ts +0 -31
  177. package/models/get-activation-snapshot-response-class.ts +0 -31
  178. package/models/list-commission-account-mappings-response-class.ts +0 -49
  179. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  180. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  181. package/models/list-product-account-mappings-response-class.ts +0 -49
  182. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  183. package/models/opening-balance-item-dto.ts +0 -50
  184. package/models/post-financial-event-request-dto.ts +0 -54
  185. package/models/post-financial-event-response-class.ts +0 -31
  186. package/models/premium-item-account-mapping-class.ts +0 -43
  187. package/models/product-account-mapping-class.ts +0 -67
  188. package/models/product-account-mapping-detail-class.ts +0 -62
  189. package/models/product-risk-carrier-class.ts +0 -48
  190. package/models/product-version-account-mapping-detail-class.ts +0 -56
  191. package/models/product-version-with-account-mappings-class.ts +0 -48
  192. package/models/product-with-account-mappings-class.ts +0 -55
  193. package/models/put-premium-item-account-body-dto.ts +0 -30
  194. package/models/put-product-category-account-body-dto.ts +0 -30
  195. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  196. package/models/put-product-version-category-account-body-dto.ts +0 -30
  197. package/models/resolved-account-mapping-class.ts +0 -37
  198. package/models/resolved-commission-account-mapping-class.ts +0 -46
  199. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  200. package/models/update-commission-type-account-body-dto.ts +0 -30
  201. package/models/update-financial-account-body-dto.ts +0 -54
  202. package/models/update-financial-account-response-class.ts +0 -31
  203. package/models/validate-accounting-config-request-dto.ts +0 -31
  204. 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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
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, description, functionalCategory, type</i>
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, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
107
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
120
108
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
123
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
111
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
156
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
179
157
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
182
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
160
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
254
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
266
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
278
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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, {}, 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, {}, 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, {}, 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, {}, 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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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, authorizationValue, headersFromBaseOptions;
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
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
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, authorizationValue, headersFromBaseOptions;
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
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
- if (authorizationValue) {
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, authorizationValue, headersFromBaseOptions;
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
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
- if (authorizationValue) {
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
256
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
264
257
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
267
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
260
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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, authorizationValue, headersFromBaseOptions;
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
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
- if (authorizationValue) {
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
402
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
467
403
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
470
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
406
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
473
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
560
474
  * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
563
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
477
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
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. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
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, {}, 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, {}, any>>;
214
+ listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
215
215
  }