@emilgroup/accounting-sdk 1.34.1-beta.9 → 1.34.1-beta.90

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 (180) hide show
  1. package/.openapi-generator/FILES +35 -1
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +85 -45
  4. package/api/booking-entries-api.ts +252 -13
  5. package/api/commission-account-mappings-api.ts +1231 -0
  6. package/api/financial-accounts-api.ts +56 -31
  7. package/api/financial-transactions-api.ts +16 -6
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +32 -12
  10. package/api/personal-accounts-api.ts +32 -12
  11. package/api/product-account-mappings-api.ts +1751 -0
  12. package/api.ts +4 -0
  13. package/base.ts +239 -43
  14. package/common.ts +3 -2
  15. package/configuration.ts +20 -0
  16. package/dist/api/accounting-configs-api.d.ts +25 -25
  17. package/dist/api/accounting-configs-api.js +136 -80
  18. package/dist/api/booking-entries-api.d.ts +121 -7
  19. package/dist/api/booking-entries-api.js +241 -26
  20. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  21. package/dist/api/commission-account-mappings-api.js +1051 -0
  22. package/dist/api/financial-accounts-api.d.ts +21 -21
  23. package/dist/api/financial-accounts-api.js +81 -52
  24. package/dist/api/financial-transactions-api.d.ts +2 -2
  25. package/dist/api/financial-transactions-api.js +22 -14
  26. package/dist/api/health-api.d.ts +1 -1
  27. package/dist/api/health-api.js +1 -1
  28. package/dist/api/number-ranges-api.d.ts +4 -4
  29. package/dist/api/number-ranges-api.js +52 -30
  30. package/dist/api/personal-accounts-api.d.ts +4 -4
  31. package/dist/api/personal-accounts-api.js +52 -30
  32. package/dist/api/product-account-mappings-api.d.ts +972 -0
  33. package/dist/api/product-account-mappings-api.js +1493 -0
  34. package/dist/api.d.ts +2 -0
  35. package/dist/api.js +2 -0
  36. package/dist/base.d.ts +26 -0
  37. package/dist/base.js +243 -60
  38. package/dist/common.d.ts +1 -1
  39. package/dist/common.js +1 -0
  40. package/dist/configuration.d.ts +17 -0
  41. package/dist/configuration.js +2 -0
  42. package/dist/models/account-mapping-class.d.ts +2 -0
  43. package/dist/models/account-mapping-class.js +3 -1
  44. package/dist/models/accounting-config-class.d.ts +11 -0
  45. package/dist/models/accounting-config-class.js +5 -0
  46. package/dist/models/accounting-config-data-class.d.ts +7 -0
  47. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  48. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  49. package/dist/models/accounting-config-data-dto.d.ts +7 -0
  50. package/dist/models/booking-entry-class.d.ts +34 -0
  51. package/dist/models/booking-entry-class.js +10 -1
  52. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  53. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  54. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  55. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  56. package/dist/models/commission-agreement-partner-class.js +15 -0
  57. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  58. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  59. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  60. package/dist/models/commission-type-account-mapping-class.js +15 -0
  61. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  62. package/dist/models/create-booking-entry-request-dto.js +9 -0
  63. package/dist/models/create-financial-account-request-dto.d.ts +8 -0
  64. package/dist/models/create-financial-account-request-dto.js +3 -1
  65. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  66. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  67. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  68. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  69. package/dist/models/financial-account-class.d.ts +18 -1
  70. package/dist/models/financial-account-class.js +5 -1
  71. package/dist/models/financial-transaction-class.d.ts +6 -0
  72. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  73. package/dist/models/financial-transaction-data-dto.js +1 -0
  74. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  75. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  76. package/dist/models/index.d.ts +33 -1
  77. package/dist/models/index.js +33 -1
  78. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  79. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  80. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  82. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  84. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  85. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  86. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  87. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  88. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  89. package/dist/models/opening-balance-item-dto.js +20 -0
  90. package/dist/models/personal-account-class.d.ts +6 -0
  91. package/dist/models/personal-account-range-class.d.ts +42 -0
  92. package/dist/models/personal-account-range-class.js +21 -0
  93. package/dist/models/personal-account-range-dto.d.ts +42 -0
  94. package/dist/models/personal-account-range-dto.js +21 -0
  95. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  96. package/dist/models/post-financial-event-request-dto.js +24 -0
  97. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  98. package/dist/models/post-financial-event-response-class.js +15 -0
  99. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  100. package/dist/models/premium-item-account-mapping-class.js +15 -0
  101. package/dist/models/product-account-mapping-class.d.ts +61 -0
  102. package/dist/models/product-account-mapping-class.js +15 -0
  103. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  104. package/dist/models/product-account-mapping-detail-class.js +15 -0
  105. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  106. package/dist/models/product-risk-carrier-class.js +15 -0
  107. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  108. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  109. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  110. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  111. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  112. package/dist/models/product-with-account-mappings-class.js +15 -0
  113. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  114. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  115. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  116. package/dist/models/put-product-category-account-body-dto.js +15 -0
  117. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  118. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  119. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  120. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  121. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  122. package/dist/models/resolved-account-mapping-class.js +15 -0
  123. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  124. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  125. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  126. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  127. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  128. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  129. package/dist/models/update-financial-account-body-dto.d.ts +6 -0
  130. package/models/account-mapping-class.ts +3 -1
  131. package/models/accounting-config-class.ts +14 -0
  132. package/models/accounting-config-data-class.ts +7 -0
  133. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  134. package/models/accounting-config-data-dto.ts +7 -0
  135. package/models/booking-entry-class.ts +35 -0
  136. package/models/commission-account-mapping-class.ts +55 -0
  137. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  138. package/models/commission-agreement-partner-class.ts +36 -0
  139. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  140. package/models/commission-type-account-mapping-class.ts +37 -0
  141. package/models/create-booking-entry-request-dto.ts +24 -0
  142. package/models/create-financial-account-request-dto.ts +9 -1
  143. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  144. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  145. package/models/financial-account-class.ts +19 -1
  146. package/models/financial-transaction-class.ts +6 -0
  147. package/models/financial-transaction-data-dto.ts +7 -0
  148. package/models/get-activation-snapshot-response-class.ts +31 -0
  149. package/models/index.ts +33 -1
  150. package/models/list-commission-account-mappings-response-class.ts +49 -0
  151. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  152. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  153. package/models/list-product-account-mappings-response-class.ts +49 -0
  154. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  155. package/models/opening-balance-item-dto.ts +50 -0
  156. package/models/personal-account-class.ts +6 -0
  157. package/models/personal-account-range-class.ts +51 -0
  158. package/models/personal-account-range-dto.ts +51 -0
  159. package/models/post-financial-event-request-dto.ts +54 -0
  160. package/models/post-financial-event-response-class.ts +31 -0
  161. package/models/premium-item-account-mapping-class.ts +43 -0
  162. package/models/product-account-mapping-class.ts +67 -0
  163. package/models/product-account-mapping-detail-class.ts +62 -0
  164. package/models/product-risk-carrier-class.ts +48 -0
  165. package/models/product-version-account-mapping-detail-class.ts +56 -0
  166. package/models/product-version-with-account-mappings-class.ts +48 -0
  167. package/models/product-with-account-mappings-class.ts +55 -0
  168. package/models/put-premium-item-account-body-dto.ts +30 -0
  169. package/models/put-product-category-account-body-dto.ts +30 -0
  170. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  171. package/models/put-product-version-category-account-body-dto.ts +30 -0
  172. package/models/resolved-account-mapping-class.ts +37 -0
  173. package/models/resolved-commission-account-mapping-class.ts +46 -0
  174. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  175. package/models/update-commission-type-account-body-dto.ts +30 -0
  176. package/models/update-financial-account-body-dto.ts +6 -0
  177. package/package.json +2 -2
  178. package/dist/models/get-subledger-settings-response-class.d.ts +0 -36
  179. package/models/get-subledger-settings-response-class.ts +0 -42
  180. /package/dist/models/{get-subledger-settings-response-class.js → commission-account-mapping-class.js} +0 -0
@@ -24,7 +24,7 @@ import { UpdateFinancialAccountResponseClass } from '../models';
24
24
  */
25
25
  export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
26
26
  /**
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
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\"
28
28
  * @summary Create the Financial Account
29
29
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
30
30
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -57,17 +57,17 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
58
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
59
  * @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</i>
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>
61
61
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
62
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>
63
63
  * @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</i>
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>
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
68
  listFinancialAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
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
71
  * @summary Update the Financial Account
72
72
  * @param {string} code Unique identifier for the object.
73
73
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -83,7 +83,7 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
83
83
  */
84
84
  export declare const FinancialAccountsApiFp: (configuration?: Configuration) => {
85
85
  /**
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
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\"
87
87
  * @summary Create the Financial Account
88
88
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
89
89
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -116,17 +116,17 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
116
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
117
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
118
  * @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&lt;/i&gt;
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;
120
120
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
121
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;
122
122
  * @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&lt;/i&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;
124
124
  * @param {*} [options] Override http request option.
125
125
  * @throws {RequiredError}
126
126
  */
127
127
  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
128
  /**
129
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
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
130
  * @summary Update the Financial Account
131
131
  * @param {string} code Unique identifier for the object.
132
132
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -142,7 +142,7 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
142
142
  */
143
143
  export declare const FinancialAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
144
144
  /**
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
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\"
146
146
  * @summary Create the Financial Account
147
147
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -175,17 +175,17 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
175
175
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
176
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
177
  * @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&lt;/i&gt;
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;
179
179
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
180
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;
181
181
  * @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&lt;/i&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;
183
183
  * @param {*} [options] Override http request option.
184
184
  * @throws {RequiredError}
185
185
  */
186
186
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass>;
187
187
  /**
188
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
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
189
  * @summary Update the Financial Account
190
190
  * @param {string} code Unique identifier for the object.
191
191
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -283,7 +283,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
283
283
  */
284
284
  readonly pageToken?: string;
285
285
  /**
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&lt;/i&gt;
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;
287
287
  * @type {string}
288
288
  * @memberof FinancialAccountsApiListFinancialAccounts
289
289
  */
@@ -307,7 +307,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
307
307
  */
308
308
  readonly expand?: string;
309
309
  /**
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&lt;/i&gt;
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;
311
311
  * @type {string}
312
312
  * @memberof FinancialAccountsApiListFinancialAccounts
313
313
  */
@@ -346,14 +346,14 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
346
346
  */
347
347
  export declare class FinancialAccountsApi extends BaseAPI {
348
348
  /**
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
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\"
350
350
  * @summary Create the Financial Account
351
351
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
352
352
  * @param {*} [options] Override http request option.
353
353
  * @throws {RequiredError}
354
354
  * @memberof FinancialAccountsApi
355
355
  */
356
- createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
356
+ createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}, any>>;
357
357
  /**
358
358
  * 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
359
  * @summary Delete the Financial Account
@@ -362,7 +362,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof FinancialAccountsApi
364
364
  */
365
- deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
365
+ deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
366
366
  /**
367
367
  * 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
368
  * @summary Retrieve the Financial Account
@@ -371,7 +371,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof FinancialAccountsApi
373
373
  */
374
- getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
374
+ getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}, any>>;
375
375
  /**
376
376
  * 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
377
  * @summary List Financial Accounts
@@ -380,14 +380,14 @@ export declare class FinancialAccountsApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof FinancialAccountsApi
382
382
  */
383
- listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
383
+ listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}, any>>;
384
384
  /**
385
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
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
386
  * @summary Update the Financial Account
387
387
  * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
388
388
  * @param {*} [options] Override http request option.
389
389
  * @throws {RequiredError}
390
390
  * @memberof FinancialAccountsApi
391
391
  */
392
- updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
392
+ updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
393
393
  }
@@ -93,7 +93,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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\"
96
+ * 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\"
97
97
  * @summary Create the Financial Account
98
98
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
99
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -103,9 +103,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
@@ -120,13 +121,19 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
152
159
  deleteFinancialAccount: function (code, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
158
166
  case 0:
159
167
  // verify required parameter 'code' is not null or undefined
160
168
  (0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
@@ -170,13 +178,19 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ _b.sent();
189
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
+ if (authorizationValue || authorizationKeepEmpty) {
193
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
194
  }
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,9 +215,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
201
215
  getFinancialAccount: function (code, expand, authorization, options) {
202
216
  if (options === void 0) { options = {}; }
203
217
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
219
+ var _a;
220
+ return __generator(this, function (_b) {
221
+ switch (_b.label) {
207
222
  case 0:
208
223
  // verify required parameter 'code' is not null or undefined
209
224
  (0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
@@ -225,12 +240,15 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
225
240
  case 1:
226
241
  // authentication bearer required
227
242
  // http bearer authentication required
228
- _a.sent();
243
+ _b.sent();
229
244
  if (expand !== undefined) {
230
245
  localVarQueryParameter['expand'] = expand;
231
246
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
+ if (authorizationValue || authorizationKeepEmpty) {
251
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
252
  }
235
253
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
254
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -249,20 +267,21 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
249
267
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
268
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
269
  * @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.
252
- * @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&lt;/i&gt;
270
+ * @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;
253
271
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
254
272
  * @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;
255
273
  * @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;
256
- * @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&lt;/i&gt;
274
+ * @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;
257
275
  * @param {*} [options] Override http request option.
258
276
  * @throws {RequiredError}
259
277
  */
260
278
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
279
  if (options === void 0) { options = {}; }
262
280
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
- return __generator(this, function (_a) {
265
- switch (_a.label) {
281
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
+ var _a;
283
+ return __generator(this, function (_b) {
284
+ switch (_b.label) {
266
285
  case 0:
267
286
  localVarPath = "/accountingservice/v1/financial-accounts";
268
287
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -279,7 +298,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
279
298
  case 1:
280
299
  // authentication bearer required
281
300
  // http bearer authentication required
282
- _a.sent();
301
+ _b.sent();
283
302
  if (pageSize !== undefined) {
284
303
  localVarQueryParameter['pageSize'] = pageSize;
285
304
  }
@@ -301,8 +320,11 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
301
320
  if (filters !== undefined) {
302
321
  localVarQueryParameter['filters'] = filters;
303
322
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
+ if (authorizationValue || authorizationKeepEmpty) {
327
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
328
  }
307
329
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
330
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -316,7 +338,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
316
338
  });
317
339
  },
318
340
  /**
319
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
341
+ * 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\"
320
342
  * @summary Update the Financial Account
321
343
  * @param {string} code Unique identifier for the object.
322
344
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -327,9 +349,10 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
327
349
  updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
328
350
  if (options === void 0) { options = {}; }
329
351
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
- return __generator(this, function (_a) {
332
- switch (_a.label) {
352
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
353
+ var _a;
354
+ return __generator(this, function (_b) {
355
+ switch (_b.label) {
333
356
  case 0:
334
357
  // verify required parameter 'code' is not null or undefined
335
358
  (0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
@@ -347,13 +370,19 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
347
370
  localVarQueryParameter = {};
348
371
  // authentication bearer required
349
372
  // http bearer authentication required
350
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
373
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
374
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
375
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
376
+ ];
351
377
  case 1:
352
378
  // authentication bearer required
353
379
  // http bearer authentication required
354
- _a.sent();
355
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ _b.sent();
381
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
382
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
383
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
384
+ if (authorizationValue || authorizationKeepEmpty) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
357
386
  }
358
387
  localVarHeaderParameter['Content-Type'] = 'application/json';
359
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -379,7 +408,7 @@ var FinancialAccountsApiFp = function (configuration) {
379
408
  var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
380
409
  return {
381
410
  /**
382
- * 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\"
411
+ * 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\"
383
412
  * @summary Create the Financial Account
384
413
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
385
414
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -448,11 +477,11 @@ var FinancialAccountsApiFp = function (configuration) {
448
477
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
478
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
479
  * @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.
451
- * @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&lt;/i&gt;
480
+ * @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;
452
481
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
453
482
  * @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;
454
483
  * @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;
455
- * @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&lt;/i&gt;
484
+ * @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;
456
485
  * @param {*} [options] Override http request option.
457
486
  * @throws {RequiredError}
458
487
  */
@@ -470,7 +499,7 @@ var FinancialAccountsApiFp = function (configuration) {
470
499
  });
471
500
  },
472
501
  /**
473
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
502
+ * 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\"
474
503
  * @summary Update the Financial Account
475
504
  * @param {string} code Unique identifier for the object.
476
505
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -502,7 +531,7 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
502
531
  var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
503
532
  return {
504
533
  /**
505
- * 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\"
534
+ * 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\"
506
535
  * @summary Create the Financial Account
507
536
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
508
537
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -541,11 +570,11 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
541
570
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
571
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
572
  * @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.
544
- * @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&lt;/i&gt;
573
+ * @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;
545
574
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
546
575
  * @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;
547
576
  * @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;
548
- * @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&lt;/i&gt;
577
+ * @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;
549
578
  * @param {*} [options] Override http request option.
550
579
  * @throws {RequiredError}
551
580
  */
@@ -553,7 +582,7 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
553
582
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
554
583
  },
555
584
  /**
556
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
585
+ * 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\"
557
586
  * @summary Update the Financial Account
558
587
  * @param {string} code Unique identifier for the object.
559
588
  * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
@@ -579,7 +608,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
579
608
  return _super !== null && _super.apply(this, arguments) || this;
580
609
  }
581
610
  /**
582
- * 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\"
611
+ * 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\"
583
612
  * @summary Create the Financial Account
584
613
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
585
614
  * @param {*} [options] Override http request option.
@@ -588,7 +617,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
588
617
  */
589
618
  FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
590
619
  var _this = this;
591
- return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
592
621
  };
593
622
  /**
594
623
  * 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\"
@@ -600,7 +629,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
600
629
  */
601
630
  FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
602
631
  var _this = this;
603
- return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
604
633
  };
605
634
  /**
606
635
  * 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\"
@@ -612,7 +641,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
612
641
  */
613
642
  FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
614
643
  var _this = this;
615
- return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
616
645
  };
617
646
  /**
618
647
  * 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\"
@@ -625,10 +654,10 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
625
654
  FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
626
655
  var _this = this;
627
656
  if (requestParameters === void 0) { requestParameters = {}; }
628
- 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); });
657
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
629
658
  };
630
659
  /**
631
- * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
660
+ * 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\"
632
661
  * @summary Update the Financial Account
633
662
  * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
634
663
  * @param {*} [options] Override http request option.
@@ -637,7 +666,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
637
666
  */
638
667
  FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
639
668
  var _this = this;
640
- return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
669
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
641
670
  };
642
671
  return FinancialAccountsApi;
643
672
  }(base_1.BaseAPI));
@@ -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, {}, 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, {}, any>>;
215
215
  }