@emilgroup/accounting-sdk 1.34.1-beta.77 → 1.34.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 (210) 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/base.ts +41 -174
  10. package/common.ts +2 -3
  11. package/configuration.ts +0 -20
  12. package/dist/api/booking-entries-api.d.ts +7 -121
  13. package/dist/api/booking-entries-api.js +14 -211
  14. package/dist/api/financial-accounts-api.d.ts +20 -86
  15. package/dist/api/financial-accounts-api.js +27 -137
  16. package/dist/api/financial-transactions-api.d.ts +2 -2
  17. package/dist/api/financial-transactions-api.js +6 -8
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/number-ranges-api.d.ts +4 -4
  20. package/dist/api/number-ranges-api.js +14 -22
  21. package/dist/api/personal-accounts-api.d.ts +4 -4
  22. package/dist/api/personal-accounts-api.js +14 -22
  23. package/dist/api.d.ts +0 -3
  24. package/dist/api.js +0 -3
  25. package/dist/base.d.ts +0 -24
  26. package/dist/base.js +59 -178
  27. package/dist/common.d.ts +1 -1
  28. package/dist/common.js +0 -1
  29. package/dist/configuration.d.ts +0 -17
  30. package/dist/configuration.js +0 -2
  31. package/dist/models/booking-entry-class.d.ts +0 -34
  32. package/dist/models/booking-entry-class.js +1 -10
  33. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  34. package/dist/models/create-booking-entry-request-dto.js +0 -9
  35. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  36. package/dist/models/create-financial-account-request-dto.js +2 -26
  37. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  38. package/dist/models/create-number-range-request-dto.js +4 -4
  39. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  40. package/dist/models/create-personal-account-request-dto.js +3 -3
  41. package/dist/models/financial-account-class.d.ts +2 -49
  42. package/dist/models/financial-account-class.js +2 -6
  43. package/dist/models/financial-transaction-class.d.ts +0 -6
  44. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  45. package/dist/models/financial-transaction-data-dto.js +0 -1
  46. package/dist/models/index.d.ts +0 -47
  47. package/dist/models/index.js +0 -47
  48. package/dist/models/personal-account-class.d.ts +2 -8
  49. package/dist/models/personal-account-class.js +1 -1
  50. package/models/booking-entry-class.ts +0 -35
  51. package/models/create-booking-entry-request-dto.ts +2 -26
  52. package/models/create-financial-account-request-dto.ts +5 -49
  53. package/models/create-number-range-request-dto.ts +4 -4
  54. package/models/create-personal-account-request-dto.ts +6 -12
  55. package/models/financial-account-class.ts +2 -50
  56. package/models/financial-transaction-class.ts +0 -6
  57. package/models/financial-transaction-data-dto.ts +2 -9
  58. package/models/index.ts +0 -47
  59. package/models/personal-account-class.ts +2 -8
  60. package/package.json +2 -2
  61. package/api/accounting-configs-api.ts +0 -862
  62. package/api/commission-account-mappings-api.ts +0 -1207
  63. package/api/product-account-mappings-api.ts +0 -1715
  64. package/dist/api/accounting-configs-api.d.ts +0 -451
  65. package/dist/api/accounting-configs-api.js +0 -881
  66. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  67. package/dist/api/commission-account-mappings-api.js +0 -1022
  68. package/dist/api/product-account-mappings-api.d.ts +0 -972
  69. package/dist/api/product-account-mappings-api.js +0 -1447
  70. package/dist/models/account-mapping-class.d.ts +0 -73
  71. package/dist/models/account-mapping-class.js +0 -40
  72. package/dist/models/accounting-category-class.d.ts +0 -45
  73. package/dist/models/accounting-category-class.js +0 -24
  74. package/dist/models/accounting-config-class.d.ts +0 -78
  75. package/dist/models/accounting-config-class.js +0 -20
  76. package/dist/models/accounting-config-data-class.d.ts +0 -38
  77. package/dist/models/accounting-config-data-class.js +0 -15
  78. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  79. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  80. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  81. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  82. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  83. package/dist/models/accounting-config-data-dto.js +0 -15
  84. package/dist/models/accounting-configuration-class.d.ts +0 -36
  85. package/dist/models/accounting-configuration-class.js +0 -15
  86. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  87. package/dist/models/commission-account-mapping-class.js +0 -15
  88. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  89. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  90. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  91. package/dist/models/commission-agreement-partner-class.js +0 -15
  92. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  93. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  94. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  95. package/dist/models/commission-type-account-mapping-class.js +0 -15
  96. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  97. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  98. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  99. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  100. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  101. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  102. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  103. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  104. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  105. package/dist/models/export-accounting-config-response-class.js +0 -15
  106. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  107. package/dist/models/get-accounting-categories-response-class.js +0 -15
  108. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  109. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  110. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  115. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  116. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  117. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  118. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  119. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  120. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  121. package/dist/models/opening-balance-item-dto.js +0 -20
  122. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  123. package/dist/models/post-financial-event-request-dto.js +0 -24
  124. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  125. package/dist/models/post-financial-event-response-class.js +0 -15
  126. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  127. package/dist/models/premium-item-account-mapping-class.js +0 -15
  128. package/dist/models/product-account-mapping-class.d.ts +0 -61
  129. package/dist/models/product-account-mapping-class.js +0 -15
  130. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  131. package/dist/models/product-account-mapping-detail-class.js +0 -15
  132. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  133. package/dist/models/product-risk-carrier-class.js +0 -15
  134. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  135. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  136. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  137. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  138. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  139. package/dist/models/product-with-account-mappings-class.js +0 -15
  140. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  142. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  143. package/dist/models/put-product-category-account-body-dto.js +0 -15
  144. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  145. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  146. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  147. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  148. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  149. package/dist/models/resolved-account-mapping-class.js +0 -15
  150. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  151. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  152. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  153. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  154. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  155. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  156. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  157. package/dist/models/update-financial-account-body-dto.js +0 -15
  158. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  159. package/dist/models/update-financial-account-response-class.js +0 -15
  160. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  161. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  162. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  163. package/dist/models/validate-accounting-config-response-class.js +0 -15
  164. package/models/account-mapping-class.ts +0 -82
  165. package/models/accounting-category-class.ts +0 -54
  166. package/models/accounting-config-class.ts +0 -87
  167. package/models/accounting-config-data-class.ts +0 -44
  168. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  169. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  170. package/models/accounting-config-data-dto.ts +0 -44
  171. package/models/accounting-configuration-class.ts +0 -42
  172. package/models/commission-account-mapping-class.ts +0 -55
  173. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  174. package/models/commission-agreement-partner-class.ts +0 -36
  175. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  176. package/models/commission-type-account-mapping-class.ts +0 -37
  177. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  178. package/models/create-and-enable-subledger-response-class.ts +0 -31
  179. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  180. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  181. package/models/export-accounting-config-response-class.ts +0 -31
  182. package/models/get-accounting-categories-response-class.ts +0 -31
  183. package/models/get-activation-snapshot-response-class.ts +0 -31
  184. package/models/list-commission-account-mappings-response-class.ts +0 -49
  185. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  186. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  187. package/models/list-product-account-mappings-response-class.ts +0 -49
  188. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  189. package/models/opening-balance-item-dto.ts +0 -50
  190. package/models/post-financial-event-request-dto.ts +0 -54
  191. package/models/post-financial-event-response-class.ts +0 -31
  192. package/models/premium-item-account-mapping-class.ts +0 -43
  193. package/models/product-account-mapping-class.ts +0 -67
  194. package/models/product-account-mapping-detail-class.ts +0 -62
  195. package/models/product-risk-carrier-class.ts +0 -48
  196. package/models/product-version-account-mapping-detail-class.ts +0 -56
  197. package/models/product-version-with-account-mappings-class.ts +0 -48
  198. package/models/product-with-account-mappings-class.ts +0 -55
  199. package/models/put-premium-item-account-body-dto.ts +0 -30
  200. package/models/put-product-category-account-body-dto.ts +0 -30
  201. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  202. package/models/put-product-version-category-account-body-dto.ts +0 -30
  203. package/models/resolved-account-mapping-class.ts +0 -37
  204. package/models/resolved-commission-account-mapping-class.ts +0 -46
  205. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  206. package/models/update-commission-type-account-body-dto.ts +0 -30
  207. package/models/update-financial-account-body-dto.ts +0 -54
  208. package/models/update-financial-account-response-class.ts +0 -31
  209. package/models/validate-accounting-config-request-dto.ts +0 -31
  210. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -81,30 +81,6 @@ export interface BookingEntryClass {
81
81
  * @memberof BookingEntryClass
82
82
  */
83
83
  'externalNumber'?: string;
84
- /**
85
- * The code of the source entity this entry was posted for, such as an invoice or payment code. Absent on an entry posted by hand (sourceEntityType manual) and on a legacy entry.
86
- * @type {string}
87
- * @memberof BookingEntryClass
88
- */
89
- 'sourceEntityCode'?: string;
90
- /**
91
- * The kind of source entity this entry was posted for: manual for an entry posted by hand, which carries no sourceEntityCode. Absent only on a legacy entry.
92
- * @type {string}
93
- * @memberof BookingEntryClass
94
- */
95
- 'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
96
- /**
97
- * The code of the entry this entry reverses. Absent on an entry that is not a reversal.
98
- * @type {string}
99
- * @memberof BookingEntryClass
100
- */
101
- 'reversalOfCode'?: string;
102
- /**
103
- * True once the entry has been reversed in full. Its reversal names it in reversalOfCode.
104
- * @type {boolean}
105
- * @memberof BookingEntryClass
106
- */
107
- 'isReversed'?: boolean;
108
84
  /**
109
85
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
110
86
  * @type {Array<FinancialTransactionClass>}
@@ -152,16 +128,5 @@ export const BookingEntryClassCurrencyEnum = {
152
128
  } as const;
153
129
 
154
130
  export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
155
- export const BookingEntryClassSourceEntityTypeEnum = {
156
- Invoice: 'invoice',
157
- Payment: 'payment',
158
- Credit: 'credit',
159
- CreditAllocation: 'credit_allocation',
160
- ClaimRegulation: 'claim_regulation',
161
- Commission: 'commission',
162
- Manual: 'manual'
163
- } as const;
164
-
165
- export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
166
131
 
167
132
 
@@ -45,18 +45,6 @@ export interface CreateBookingEntryRequestDto {
45
45
  * @memberof CreateBookingEntryRequestDto
46
46
  */
47
47
  'externalNumber'?: string;
48
- /**
49
- * The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
50
- * @type {string}
51
- * @memberof CreateBookingEntryRequestDto
52
- */
53
- 'sourceEntityCode'?: string;
54
- /**
55
- * The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode. Omitted, the entry is typed manual. An entry posted by hand cannot be typed invoice.
56
- * @type {string}
57
- * @memberof CreateBookingEntryRequestDto
58
- */
59
- 'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
60
48
  /**
61
49
  * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
62
50
  * @type {string}
@@ -65,10 +53,10 @@ export interface CreateBookingEntryRequestDto {
65
53
  'description': string;
66
54
  /**
67
55
  * Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
68
- * @type {{ [key: string]: object; }}
56
+ * @type {object}
69
57
  * @memberof CreateBookingEntryRequestDto
70
58
  */
71
- 'customFields'?: { [key: string]: object; };
59
+ 'customFields'?: object;
72
60
  /**
73
61
  * An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
74
62
  * @type {Array<FinancialTransactionDataDto>}
@@ -77,15 +65,3 @@ export interface CreateBookingEntryRequestDto {
77
65
  'financialTransactions': Array<FinancialTransactionDataDto>;
78
66
  }
79
67
 
80
- export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
81
- Payment: 'payment',
82
- Credit: 'credit',
83
- CreditAllocation: 'credit_allocation',
84
- ClaimRegulation: 'claim_regulation',
85
- Commission: 'commission',
86
- Manual: 'manual'
87
- } as const;
88
-
89
- export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
90
-
91
-
@@ -52,10 +52,10 @@ export interface CreateFinancialAccountRequestDto {
52
52
  'parentId'?: number;
53
53
  /**
54
54
  * Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
55
- * @type {{ [key: string]: object; }}
55
+ * @type {object}
56
56
  * @memberof CreateFinancialAccountRequestDto
57
57
  */
58
- 'customFields'?: { [key: string]: object; };
58
+ 'customFields': object;
59
59
  /**
60
60
  * A detailed description of the financial account
61
61
  * @type {string}
@@ -69,66 +69,22 @@ export interface CreateFinancialAccountRequestDto {
69
69
  */
70
70
  'clearable': boolean;
71
71
  /**
72
- * Whether the financial account is a control account
73
- * @type {boolean}
74
- * @memberof CreateFinancialAccountRequestDto
75
- */
76
- 'isControlAccount': boolean;
77
- /**
78
- * The functional category of the account. Empty string means unset.
79
- * @type {string}
80
- * @memberof CreateFinancialAccountRequestDto
81
- */
82
- 'functionalCategory': CreateFinancialAccountRequestDtoFunctionalCategoryEnum;
83
- /**
84
- * Whether this account is the default for its functional category. Only meaningful for pool categories. Setting true on creation will clear isDefault on any other account in the same category.
85
- * @type {boolean}
86
- * @memberof CreateFinancialAccountRequestDto
87
- */
88
- 'isDefault'?: boolean;
89
- /**
90
- * The connected bank account this account books, given as its code. Permitted only on bank_acc accounts, and rejected if another financial account already links that bank account. Its IBAN is read from the bank account and returned as linkedBankAccountIban; it is never accepted here.
72
+ * Not used on this release line. Declared so the DTO matches the generated proto interface. Empty string means unset.
91
73
  * @type {string}
92
74
  * @memberof CreateFinancialAccountRequestDto
93
75
  */
94
- 'linkedBankAccountCode'?: string;
76
+ 'functionalCategory'?: string;
95
77
  }
96
78
 
97
79
  export const CreateFinancialAccountRequestDtoTypeEnum = {
98
80
  Asset: 'asset',
99
81
  Liability: 'liability',
100
82
  Equity: 'equity',
101
- Income: 'income',
83
+ Revenue: 'revenue',
102
84
  Expense: 'expense',
103
85
  OpeningBalance: 'opening_balance'
104
86
  } as const;
105
87
 
106
88
  export type CreateFinancialAccountRequestDtoTypeEnum = typeof CreateFinancialAccountRequestDtoTypeEnum[keyof typeof CreateFinancialAccountRequestDtoTypeEnum];
107
- export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
108
- BankAcc: 'bank_acc',
109
- TaxPendingAcc: 'tax_pending_acc',
110
- TaxForwardedAcc: 'tax_forwarded_acc',
111
- TaxDueAcc: 'tax_due_acc',
112
- VatPendingAcc: 'vat_pending_acc',
113
- VatDueAcc: 'vat_due_acc',
114
- RevenueBufferAcc: 'revenue_buffer_acc',
115
- RevenueFinalAcc: 'revenue_final_acc',
116
- ClaimExpenseAcc: 'claim_expense_acc',
117
- CustomerCreditLiabAcc: 'customer_credit_liab_acc',
118
- WriteOffExpAcc: 'write_off_exp_acc',
119
- RoundingDiffAcc: 'rounding_diff_acc',
120
- PaymentFeesExpAcc: 'payment_fees_exp_acc',
121
- FeeRevenueAcc: 'fee_revenue_acc',
122
- UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
123
- OpeningBalEquityAcc: 'opening_bal_equity_acc',
124
- ReceivablesCtrlAcc: 'receivables_ctrl_acc',
125
- BrokerCtrlAcc: 'broker_ctrl_acc',
126
- CarrierCtrlAcc: 'carrier_ctrl_acc',
127
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
128
- ClaimsPayableAcc: 'claims_payable_acc',
129
- CarrierReceivableAcc: 'carrier_receivable_acc'
130
- } as const;
131
-
132
- export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
133
89
 
134
90
 
@@ -47,13 +47,13 @@ export interface CreateNumberRangeRequestDto {
47
47
  }
48
48
 
49
49
  export const CreateNumberRangeRequestDtoAccountTypeEnum = {
50
- Policyholder: 'policyholder',
51
- RiskCarrier: 'risk_carrier',
52
- Broker: 'broker',
50
+ Customer: 'customer',
51
+ Supplier: 'supplier',
52
+ Employee: 'employee',
53
53
  Asset: 'asset',
54
54
  Liability: 'liability',
55
55
  Equity: 'equity',
56
- Income: 'income',
56
+ Revenue: 'revenue',
57
57
  Expense: 'expense'
58
58
  } as const;
59
59
 
@@ -45,29 +45,23 @@ export interface CreatePersonalAccountRequestDto {
45
45
  */
46
46
  'partnerNumber': string;
47
47
  /**
48
- * The partner code of the account
49
- * @type {string}
50
- * @memberof CreatePersonalAccountRequestDto
51
- */
52
- 'partnerCode': string;
53
- /**
54
- * The type of personal account, specifying its category or classification, such as policyholder, risk_carrier, or broker. This categorization helps in accounting and reporting.
48
+ * The type of personal account, specifying its category or classification, such as customer, supplier, or employee. This categorization helps in accounting and reporting.
55
49
  * @type {string}
56
50
  * @memberof CreatePersonalAccountRequestDto
57
51
  */
58
52
  'type': CreatePersonalAccountRequestDtoTypeEnum;
59
53
  /**
60
54
  * Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
61
- * @type {{ [key: string]: object; }}
55
+ * @type {object}
62
56
  * @memberof CreatePersonalAccountRequestDto
63
57
  */
64
- 'customFields'?: { [key: string]: object; };
58
+ 'customFields'?: object;
65
59
  }
66
60
 
67
61
  export const CreatePersonalAccountRequestDtoTypeEnum = {
68
- Policyholder: 'policyholder',
69
- RiskCarrier: 'risk_carrier',
70
- Broker: 'broker'
62
+ Customer: 'customer',
63
+ Supplier: 'supplier',
64
+ Employee: 'employee'
71
65
  } as const;
72
66
 
73
67
  export type CreatePersonalAccountRequestDtoTypeEnum = typeof CreatePersonalAccountRequestDtoTypeEnum[keyof typeof CreatePersonalAccountRequestDtoTypeEnum];
@@ -57,7 +57,7 @@ export interface FinancialAccountClass {
57
57
  */
58
58
  'partnerNumber': string;
59
59
  /**
60
- * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Income\", \"Expense\".
60
+ * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
61
61
  * @type {string}
62
62
  * @memberof FinancialAccountClass
63
63
  */
@@ -80,48 +80,6 @@ export interface FinancialAccountClass {
80
80
  * @memberof FinancialAccountClass
81
81
  */
82
82
  'clearable': boolean;
83
- /**
84
- * The status of the account, either \'active\' or \'inactive\'.
85
- * @type {string}
86
- * @memberof FinancialAccountClass
87
- */
88
- 'status': FinancialAccountClassStatusEnum;
89
- /**
90
- * Whether the account is a control account.
91
- * @type {boolean}
92
- * @memberof FinancialAccountClass
93
- */
94
- 'isControlAccount': boolean;
95
- /**
96
- * The functional category of the account. Empty string means unset.
97
- * @type {string}
98
- * @memberof FinancialAccountClass
99
- */
100
- 'functionalCategory': string;
101
- /**
102
- * Whether this is the default account for its functional category. Only one pool-category account per category can have isDefault set to true.
103
- * @type {boolean}
104
- * @memberof FinancialAccountClass
105
- */
106
- 'isDefault': boolean;
107
- /**
108
- * Whether the account is locked. Set automatically the first time the account is posted to; once true, financialAccountNumber can no longer be changed.
109
- * @type {boolean}
110
- * @memberof FinancialAccountClass
111
- */
112
- 'isLocked': boolean;
113
- /**
114
- * The connected bank account this account books, if one is linked. Absent when unlinked, which is every account outside the bank category.
115
- * @type {string}
116
- * @memberof FinancialAccountClass
117
- */
118
- 'linkedBankAccountCode'?: string;
119
- /**
120
- * IBAN of the linked bank account. Read-only: it is read from the bank account when the link is written and cannot be set here.
121
- * @type {string}
122
- * @memberof FinancialAccountClass
123
- */
124
- 'linkedBankAccountIban'?: string;
125
83
  /**
126
84
  * Time at which the object was created.
127
85
  * @type {string}
@@ -152,17 +110,11 @@ export const FinancialAccountClassTypeEnum = {
152
110
  Asset: 'asset',
153
111
  Liability: 'liability',
154
112
  Equity: 'equity',
155
- Income: 'income',
113
+ Revenue: 'revenue',
156
114
  Expense: 'expense',
157
115
  OpeningBalance: 'opening_balance'
158
116
  } as const;
159
117
 
160
118
  export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
161
- export const FinancialAccountClassStatusEnum = {
162
- Active: 'active',
163
- Inactive: 'inactive'
164
- } as const;
165
-
166
- export type FinancialAccountClassStatusEnum = typeof FinancialAccountClassStatusEnum[keyof typeof FinancialAccountClassStatusEnum];
167
119
 
168
120
 
@@ -50,12 +50,6 @@ export interface FinancialTransactionClass {
50
50
  * @memberof FinancialTransactionClass
51
51
  */
52
52
  'personalAccountNumber'?: string;
53
- /**
54
- * The partner this line\'s amount belongs to. Set on a claims payable or carrier receivable line; absent elsewhere.
55
- * @type {string}
56
- * @memberof FinancialTransactionClass
57
- */
58
- 'partnerCode'?: string;
59
53
  /**
60
54
  * Internal identifier for the associated booking entry. This links the transaction to a specific entry in the booking system.
61
55
  * @type {number}
@@ -32,12 +32,6 @@ export interface FinancialTransactionDataDto {
32
32
  * @memberof FinancialTransactionDataDto
33
33
  */
34
34
  'personalAccountNumber'?: string;
35
- /**
36
- * The partner this line\'s amount belongs to. Required on a claims payable or carrier receivable line; never required elsewhere.
37
- * @type {string}
38
- * @memberof FinancialTransactionDataDto
39
- */
40
- 'partnerCode'?: string;
41
35
  /**
42
36
  * A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
43
37
  * @type {string}
@@ -58,10 +52,10 @@ export interface FinancialTransactionDataDto {
58
52
  'debitCredit': FinancialTransactionDataDtoDebitCreditEnum;
59
53
  /**
60
54
  * Optional additional information related to the transaction, structured as key-value pairs. These fields may include metadata, identifiers, or contextual details for custom processing.
61
- * @type {{ [key: string]: object; }}
55
+ * @type {object}
62
56
  * @memberof FinancialTransactionDataDto
63
57
  */
64
- 'customFields'?: { [key: string]: object; };
58
+ 'customFields': object;
65
59
  /**
66
60
  * Specifies the type of the transaction. This can be used to categorize transactions for reporting, analysis, or filtering purposes.
67
61
  * @type {string}
@@ -78,7 +72,6 @@ export const FinancialTransactionDataDtoDebitCreditEnum = {
78
72
  export type FinancialTransactionDataDtoDebitCreditEnum = typeof FinancialTransactionDataDtoDebitCreditEnum[keyof typeof FinancialTransactionDataDtoDebitCreditEnum];
79
73
  export const FinancialTransactionDataDtoTransactionTypeEnum = {
80
74
  OpeningBalance: 'OPENING_BALANCE',
81
- OpeningBalanceCorrection: 'OPENING_BALANCE_CORRECTION',
82
75
  Adjustment: 'ADJUSTMENT',
83
76
  Normal: 'NORMAL'
84
77
  } as const;
package/models/index.ts CHANGED
@@ -1,35 +1,15 @@
1
- export * from './account-mapping-class';
2
- export * from './accounting-category-class';
3
- export * from './accounting-config-class';
4
- export * from './accounting-config-data-class';
5
- export * from './accounting-config-data-dto';
6
- export * from './accounting-config-data-dto-accounting-configuration';
7
- export * from './accounting-config-data-dto-default-account-mappings';
8
- export * from './accounting-configuration-class';
9
1
  export * from './booking-entry-class';
10
- export * from './commission-account-mapping-class';
11
- export * from './commission-agreement-account-mapping-detail-class';
12
- export * from './commission-agreement-partner-class';
13
- export * from './commission-agreement-with-account-mapping-class';
14
- export * from './commission-type-account-mapping-class';
15
- export * from './create-and-enable-subledger-request-dto';
16
- export * from './create-and-enable-subledger-response-class';
17
2
  export * from './create-booking-entry-request-dto';
18
3
  export * from './create-booking-entry-response-class';
19
4
  export * from './create-financial-account-request-dto';
20
5
  export * from './create-financial-account-response-class';
21
6
  export * from './create-number-range-request-dto';
22
7
  export * from './create-number-range-response-class';
23
- export * from './create-or-correct-opening-balance-dto';
24
- export * from './create-or-correct-opening-balance-response-class';
25
8
  export * from './create-personal-account-request-dto';
26
9
  export * from './create-personal-account-response-class';
27
- export * from './export-accounting-config-response-class';
28
10
  export * from './financial-account-class';
29
11
  export * from './financial-transaction-class';
30
12
  export * from './financial-transaction-data-dto';
31
- export * from './get-accounting-categories-response-class';
32
- export * from './get-activation-snapshot-response-class';
33
13
  export * from './get-booking-entry-response-class';
34
14
  export * from './get-financial-account-response-class';
35
15
  export * from './get-financial-transaction-response-class';
@@ -38,36 +18,9 @@ export * from './get-personal-account-response-class';
38
18
  export * from './inline-response200';
39
19
  export * from './inline-response503';
40
20
  export * from './list-booking-entries-response-class';
41
- export * from './list-commission-account-mappings-response-class';
42
- export * from './list-commission-agreements-with-account-mappings-response-class';
43
- export * from './list-commission-type-account-mappings-response-class';
44
21
  export * from './list-financial-accounts-response-class';
45
22
  export * from './list-financial-transactions-response-class';
46
23
  export * from './list-number-range-response-class';
47
24
  export * from './list-personal-accounts-response-class';
48
- export * from './list-product-account-mappings-response-class';
49
- export * from './list-products-with-account-mappings-response-class';
50
25
  export * from './number-range-class';
51
- export * from './opening-balance-item-dto';
52
26
  export * from './personal-account-class';
53
- export * from './post-financial-event-request-dto';
54
- export * from './post-financial-event-response-class';
55
- export * from './premium-item-account-mapping-class';
56
- export * from './product-account-mapping-class';
57
- export * from './product-account-mapping-detail-class';
58
- export * from './product-risk-carrier-class';
59
- export * from './product-version-account-mapping-detail-class';
60
- export * from './product-version-with-account-mappings-class';
61
- export * from './product-with-account-mappings-class';
62
- export * from './put-premium-item-account-body-dto';
63
- export * from './put-product-category-account-body-dto';
64
- export * from './put-product-risk-carrier-body-dto';
65
- export * from './put-product-version-category-account-body-dto';
66
- export * from './resolved-account-mapping-class';
67
- export * from './resolved-commission-account-mapping-class';
68
- export * from './update-commission-agreement-account-body-dto';
69
- export * from './update-commission-type-account-body-dto';
70
- export * from './update-financial-account-body-dto';
71
- export * from './update-financial-account-response-class';
72
- export * from './validate-accounting-config-request-dto';
73
- export * from './validate-accounting-config-response-class';
@@ -56,12 +56,6 @@ export interface PersonalAccountClass {
56
56
  * @memberof PersonalAccountClass
57
57
  */
58
58
  'partnerNumber': string;
59
- /**
60
- * The partner code of the account
61
- * @type {string}
62
- * @memberof PersonalAccountClass
63
- */
64
- 'partnerCode': string;
65
59
  /**
66
60
  * The entity code of the account (account code, bank account code, etc...).
67
61
  * @type {string}
@@ -69,7 +63,7 @@ export interface PersonalAccountClass {
69
63
  */
70
64
  'entityCode'?: string;
71
65
  /**
72
- * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Income\", \"Expense\".
66
+ * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
73
67
  * @type {string}
74
68
  * @memberof PersonalAccountClass
75
69
  */
@@ -110,7 +104,7 @@ export const PersonalAccountClassTypeEnum = {
110
104
  Asset: 'asset',
111
105
  Liability: 'liability',
112
106
  Equity: 'equity',
113
- Income: 'income',
107
+ Revenue: 'revenue',
114
108
  Expense: 'expense',
115
109
  OpeningBalance: 'opening_balance'
116
110
  } as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.77",
3
+ "version": "1.34.1-beta.78",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.20.0"
21
+ "axios": "1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24