@emilgroup/accounting-sdk-node 1.32.1-beta.54 → 1.32.1-beta.57

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 (183) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +852 -0
  4. package/api/booking-entries-api.ts +214 -0
  5. package/api/commission-account-mappings-api.ts +1195 -0
  6. package/api/financial-accounts-api.ts +136 -16
  7. package/api/product-account-mappings-api.ts +1474 -0
  8. package/api.ts +6 -0
  9. package/dist/api/accounting-configs-api.d.ts +451 -0
  10. package/dist/api/accounting-configs-api.js +863 -0
  11. package/dist/api/booking-entries-api.d.ts +114 -0
  12. package/dist/api/booking-entries-api.js +186 -0
  13. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  14. package/dist/api/commission-account-mappings-api.js +1008 -0
  15. package/dist/api/financial-accounts-api.d.ts +82 -16
  16. package/dist/api/financial-accounts-api.js +112 -13
  17. package/dist/api/product-account-mappings-api.d.ts +851 -0
  18. package/dist/api/product-account-mappings-api.js +1228 -0
  19. package/dist/api.d.ts +3 -0
  20. package/dist/api.js +3 -0
  21. package/dist/models/account-mapping-class.d.ts +71 -0
  22. package/dist/models/account-mapping-class.js +38 -0
  23. package/dist/models/accounting-category-class.d.ts +45 -0
  24. package/dist/models/accounting-category-class.js +24 -0
  25. package/dist/models/accounting-config-class.d.ts +78 -0
  26. package/dist/models/accounting-config-class.js +20 -0
  27. package/dist/models/accounting-config-data-class.d.ts +38 -0
  28. package/dist/models/accounting-config-data-class.js +15 -0
  29. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  30. package/dist/models/accounting-config-data-dto-accounting-configuration.js +24 -0
  31. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +77 -0
  32. package/dist/models/accounting-config-data-dto-default-account-mappings.js +38 -0
  33. package/dist/models/accounting-config-data-dto.d.ts +38 -0
  34. package/dist/models/accounting-config-data-dto.js +15 -0
  35. package/dist/models/accounting-configuration-class.d.ts +36 -0
  36. package/dist/models/accounting-configuration-class.js +15 -0
  37. package/dist/models/booking-entry-class.d.ts +20 -0
  38. package/dist/models/booking-entry-class.js +8 -1
  39. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  40. package/dist/models/commission-account-mapping-class.js +15 -0
  41. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  42. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  43. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  44. package/dist/models/commission-agreement-partner-class.js +15 -0
  45. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  46. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  47. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  48. package/dist/models/commission-type-account-mapping-class.js +15 -0
  49. package/dist/models/create-and-enable-subledger-request-dto.d.ts +25 -0
  50. package/dist/models/create-and-enable-subledger-request-dto.js +15 -0
  51. package/dist/models/create-and-enable-subledger-response-class.d.ts +25 -0
  52. package/dist/models/create-and-enable-subledger-response-class.js +15 -0
  53. package/dist/models/create-booking-entry-request-dto.d.ts +24 -2
  54. package/dist/models/create-booking-entry-request-dto.js +8 -0
  55. package/dist/models/create-financial-account-request-dto.d.ts +48 -5
  56. package/dist/models/create-financial-account-request-dto.js +24 -2
  57. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  58. package/dist/models/create-number-range-request-dto.js +4 -4
  59. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  60. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  61. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  62. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  63. package/dist/models/create-personal-account-request-dto.d.ts +14 -6
  64. package/dist/models/create-personal-account-request-dto.js +3 -3
  65. package/dist/models/export-accounting-config-response-class.d.ts +25 -0
  66. package/dist/models/export-accounting-config-response-class.js +15 -0
  67. package/dist/models/financial-account-class.d.ts +49 -2
  68. package/dist/models/financial-account-class.js +6 -2
  69. package/dist/models/financial-transaction-data-dto.d.ts +5 -2
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  72. package/dist/models/get-accounting-categories-response-class.js +15 -0
  73. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  74. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  75. package/dist/models/index.d.ts +45 -0
  76. package/dist/models/index.js +45 -0
  77. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  85. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  86. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  87. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  88. package/dist/models/opening-balance-item-dto.js +20 -0
  89. package/dist/models/personal-account-class.d.ts +8 -2
  90. package/dist/models/personal-account-class.js +1 -1
  91. package/dist/models/post-financial-event-request-dto.d.ts +44 -0
  92. package/dist/models/post-financial-event-request-dto.js +23 -0
  93. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  94. package/dist/models/post-financial-event-response-class.js +15 -0
  95. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  96. package/dist/models/premium-item-account-mapping-class.js +15 -0
  97. package/dist/models/product-account-mapping-class.d.ts +61 -0
  98. package/dist/models/product-account-mapping-class.js +15 -0
  99. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  102. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  103. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  104. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  105. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  106. package/dist/models/product-with-account-mappings-class.js +15 -0
  107. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  109. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-category-account-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  126. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  127. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  128. package/dist/models/validate-accounting-config-response-class.js +15 -0
  129. package/models/account-mapping-class.ts +80 -0
  130. package/models/accounting-category-class.ts +54 -0
  131. package/models/accounting-config-class.ts +87 -0
  132. package/models/accounting-config-data-class.ts +44 -0
  133. package/models/accounting-config-data-dto-accounting-configuration.ts +56 -0
  134. package/models/accounting-config-data-dto-default-account-mappings.ts +86 -0
  135. package/models/accounting-config-data-dto.ts +44 -0
  136. package/models/accounting-configuration-class.ts +42 -0
  137. package/models/booking-entry-class.ts +21 -0
  138. package/models/commission-account-mapping-class.ts +55 -0
  139. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  140. package/models/commission-agreement-partner-class.ts +36 -0
  141. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  142. package/models/commission-type-account-mapping-class.ts +37 -0
  143. package/models/create-and-enable-subledger-request-dto.ts +31 -0
  144. package/models/create-and-enable-subledger-response-class.ts +31 -0
  145. package/models/create-booking-entry-request-dto.ts +25 -2
  146. package/models/create-financial-account-request-dto.ts +47 -5
  147. package/models/create-number-range-request-dto.ts +4 -4
  148. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  149. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  150. package/models/create-personal-account-request-dto.ts +12 -6
  151. package/models/export-accounting-config-response-class.ts +31 -0
  152. package/models/financial-account-class.ts +50 -2
  153. package/models/financial-transaction-data-dto.ts +3 -2
  154. package/models/get-accounting-categories-response-class.ts +31 -0
  155. package/models/get-activation-snapshot-response-class.ts +31 -0
  156. package/models/index.ts +45 -0
  157. package/models/list-commission-account-mappings-response-class.ts +49 -0
  158. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  159. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  160. package/models/list-product-account-mappings-response-class.ts +49 -0
  161. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  162. package/models/opening-balance-item-dto.ts +50 -0
  163. package/models/personal-account-class.ts +8 -2
  164. package/models/post-financial-event-request-dto.ts +53 -0
  165. package/models/post-financial-event-response-class.ts +31 -0
  166. package/models/premium-item-account-mapping-class.ts +43 -0
  167. package/models/product-account-mapping-class.ts +67 -0
  168. package/models/product-account-mapping-detail-class.ts +56 -0
  169. package/models/product-version-account-mapping-detail-class.ts +56 -0
  170. package/models/product-version-with-account-mappings-class.ts +48 -0
  171. package/models/product-with-account-mappings-class.ts +55 -0
  172. package/models/put-premium-item-account-body-dto.ts +30 -0
  173. package/models/put-product-category-account-body-dto.ts +30 -0
  174. package/models/put-product-version-category-account-body-dto.ts +30 -0
  175. package/models/resolved-account-mapping-class.ts +37 -0
  176. package/models/resolved-commission-account-mapping-class.ts +46 -0
  177. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  178. package/models/update-commission-type-account-body-dto.ts +30 -0
  179. package/models/update-financial-account-body-dto.ts +54 -0
  180. package/models/update-financial-account-response-class.ts +31 -0
  181. package/models/validate-accounting-config-request-dto.ts +31 -0
  182. package/models/validate-accounting-config-response-class.ts +36 -0
  183. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CommissionAgreementPartnerClass } from './commission-agreement-partner-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAgreementWithAccountMappingClass
22
+ */
23
+ export interface CommissionAgreementWithAccountMappingClass {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CommissionAgreementWithAccountMappingClass
28
+ */
29
+ 'commissionAgreementCode': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CommissionAgreementWithAccountMappingClass
34
+ */
35
+ 'commissionAgreementNumber': string;
36
+ /**
37
+ * The agreement\'s main partner, read from commissionservice (CommissionAgreement.metadata.mainPartner). Omitted when the agreement has none.
38
+ * @type {CommissionAgreementPartnerClass}
39
+ * @memberof CommissionAgreementWithAccountMappingClass
40
+ */
41
+ 'mainPartner'?: CommissionAgreementPartnerClass;
42
+ /**
43
+ * True if any commission type has an agreement-level override for this agreement.
44
+ * @type {boolean}
45
+ * @memberof CommissionAgreementWithAccountMappingClass
46
+ */
47
+ 'hasCustomMapping': boolean;
48
+ }
49
+
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { ResolvedCommissionAccountMappingClass } from './resolved-commission-account-mapping-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionTypeAccountMappingClass
22
+ */
23
+ export interface CommissionTypeAccountMappingClass {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CommissionTypeAccountMappingClass
28
+ */
29
+ 'commissionType': string;
30
+ /**
31
+ *
32
+ * @type {ResolvedCommissionAccountMappingClass}
33
+ * @memberof CommissionTypeAccountMappingClass
34
+ */
35
+ 'accountMapping': ResolvedCommissionAccountMappingClass;
36
+ }
37
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingConfigDataDto } from './accounting-config-data-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateAndEnableSubledgerRequestDto
22
+ */
23
+ export interface CreateAndEnableSubledgerRequestDto {
24
+ /**
25
+ * Configuration for the accounting system.
26
+ * @type {AccountingConfigDataDto}
27
+ * @memberof CreateAndEnableSubledgerRequestDto
28
+ */
29
+ 'accountingConfigData': AccountingConfigDataDto;
30
+ }
31
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingConfigClass } from './accounting-config-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateAndEnableSubledgerResponseClass
22
+ */
23
+ export interface CreateAndEnableSubledgerResponseClass {
24
+ /**
25
+ * The accounting configuration created
26
+ * @type {AccountingConfigClass}
27
+ * @memberof CreateAndEnableSubledgerResponseClass
28
+ */
29
+ 'accountingConfig'?: AccountingConfigClass;
30
+ }
31
+
@@ -45,6 +45,18 @@ 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.
56
+ * @type {string}
57
+ * @memberof CreateBookingEntryRequestDto
58
+ */
59
+ 'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
48
60
  /**
49
61
  * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
50
62
  * @type {string}
@@ -53,10 +65,10 @@ export interface CreateBookingEntryRequestDto {
53
65
  'description': string;
54
66
  /**
55
67
  * Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
56
- * @type {object}
68
+ * @type {{ [key: string]: object; }}
57
69
  * @memberof CreateBookingEntryRequestDto
58
70
  */
59
- 'customFields'?: object;
71
+ 'customFields'?: { [key: string]: object; };
60
72
  /**
61
73
  * An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
62
74
  * @type {Array<FinancialTransactionDataDto>}
@@ -65,3 +77,14 @@ export interface CreateBookingEntryRequestDto {
65
77
  'financialTransactions': Array<FinancialTransactionDataDto>;
66
78
  }
67
79
 
80
+ export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
81
+ Invoice: 'invoice',
82
+ Payment: 'payment',
83
+ Credit: 'credit',
84
+ CreditAllocation: 'credit_allocation',
85
+ Commission: 'commission'
86
+ } as const;
87
+
88
+ export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
89
+
90
+
@@ -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 {object}
55
+ * @type {{ [key: string]: object; }}
56
56
  * @memberof CreateFinancialAccountRequestDto
57
57
  */
58
- 'customFields': object;
58
+ 'customFields'?: { [key: string]: object; };
59
59
  /**
60
60
  * A detailed description of the financial account
61
61
  * @type {string}
@@ -69,22 +69,64 @@ export interface CreateFinancialAccountRequestDto {
69
69
  */
70
70
  'clearable': boolean;
71
71
  /**
72
- * Not used on this release line. Declared so the DTO matches the generated proto interface. Empty string means unset.
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.
73
91
  * @type {string}
74
92
  * @memberof CreateFinancialAccountRequestDto
75
93
  */
76
- 'functionalCategory'?: string;
94
+ 'linkedBankAccountCode'?: string;
77
95
  }
78
96
 
79
97
  export const CreateFinancialAccountRequestDtoTypeEnum = {
80
98
  Asset: 'asset',
81
99
  Liability: 'liability',
82
100
  Equity: 'equity',
83
- Revenue: 'revenue',
101
+ Income: 'income',
84
102
  Expense: 'expense',
85
103
  OpeningBalance: 'opening_balance'
86
104
  } as const;
87
105
 
88
106
  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
+ } as const;
129
+
130
+ export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
89
131
 
90
132
 
@@ -47,13 +47,13 @@ export interface CreateNumberRangeRequestDto {
47
47
  }
48
48
 
49
49
  export const CreateNumberRangeRequestDtoAccountTypeEnum = {
50
- Customer: 'customer',
51
- Supplier: 'supplier',
52
- Employee: 'employee',
50
+ Policyholder: 'policyholder',
51
+ RiskCarrier: 'risk_carrier',
52
+ Broker: 'broker',
53
53
  Asset: 'asset',
54
54
  Liability: 'liability',
55
55
  Equity: 'equity',
56
- Revenue: 'revenue',
56
+ Income: 'income',
57
57
  Expense: 'expense'
58
58
  } as const;
59
59
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { OpeningBalanceItemDto } from './opening-balance-item-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateOrCorrectOpeningBalanceDto
22
+ */
23
+ export interface CreateOrCorrectOpeningBalanceDto {
24
+ /**
25
+ * The confirmed opening balance for each account — a first-time entry for one with no history yet, a restatement for one that already has some. The service derives the delta itself against whatever balance it reads (implicitly zero for a first-time entry).
26
+ * @type {Array<OpeningBalanceItemDto>}
27
+ * @memberof CreateOrCorrectOpeningBalanceDto
28
+ */
29
+ 'openingBalances': Array<OpeningBalanceItemDto>;
30
+ }
31
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { BookingEntryClass } from './booking-entry-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateOrCorrectOpeningBalanceResponseClass
22
+ */
23
+ export interface CreateOrCorrectOpeningBalanceResponseClass {
24
+ /**
25
+ * The booking entries created — one per item whose confirmed balance differed from its current one (implicitly zero for an account with no history yet). Empty when every item\'s confirmed balance already matched: nothing was booked, and that is success, not an error.
26
+ * @type {Array<BookingEntryClass>}
27
+ * @memberof CreateOrCorrectOpeningBalanceResponseClass
28
+ */
29
+ 'bookingEntries': Array<BookingEntryClass>;
30
+ }
31
+
@@ -45,23 +45,29 @@ export interface CreatePersonalAccountRequestDto {
45
45
  */
46
46
  'partnerNumber': string;
47
47
  /**
48
- * The type of personal account, specifying its category or classification, such as customer, supplier, or employee. This categorization helps in accounting and reporting.
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.
49
55
  * @type {string}
50
56
  * @memberof CreatePersonalAccountRequestDto
51
57
  */
52
58
  'type': CreatePersonalAccountRequestDtoTypeEnum;
53
59
  /**
54
60
  * 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 {object}
61
+ * @type {{ [key: string]: object; }}
56
62
  * @memberof CreatePersonalAccountRequestDto
57
63
  */
58
- 'customFields'?: object;
64
+ 'customFields'?: { [key: string]: object; };
59
65
  }
60
66
 
61
67
  export const CreatePersonalAccountRequestDtoTypeEnum = {
62
- Customer: 'customer',
63
- Supplier: 'supplier',
64
- Employee: 'employee'
68
+ Policyholder: 'policyholder',
69
+ RiskCarrier: 'risk_carrier',
70
+ Broker: 'broker'
65
71
  } as const;
66
72
 
67
73
  export type CreatePersonalAccountRequestDtoTypeEnum = typeof CreatePersonalAccountRequestDtoTypeEnum[keyof typeof CreatePersonalAccountRequestDtoTypeEnum];
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingConfigClass } from './accounting-config-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ExportAccountingConfigResponseClass
22
+ */
23
+ export interface ExportAccountingConfigResponseClass {
24
+ /**
25
+ * The accounting configuration used to enable andactivate the subledger
26
+ * @type {AccountingConfigClass}
27
+ * @memberof ExportAccountingConfigResponseClass
28
+ */
29
+ 'accountingConfig'?: AccountingConfigClass;
30
+ }
31
+
@@ -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\", \"Revenue\", \"Expense\".
60
+ * The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Income\", \"Expense\".
61
61
  * @type {string}
62
62
  * @memberof FinancialAccountClass
63
63
  */
@@ -80,6 +80,48 @@ 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;
83
125
  /**
84
126
  * Time at which the object was created.
85
127
  * @type {string}
@@ -110,11 +152,17 @@ export const FinancialAccountClassTypeEnum = {
110
152
  Asset: 'asset',
111
153
  Liability: 'liability',
112
154
  Equity: 'equity',
113
- Revenue: 'revenue',
155
+ Income: 'income',
114
156
  Expense: 'expense',
115
157
  OpeningBalance: 'opening_balance'
116
158
  } as const;
117
159
 
118
160
  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];
119
167
 
120
168
 
@@ -52,10 +52,10 @@ export interface FinancialTransactionDataDto {
52
52
  'debitCredit': FinancialTransactionDataDtoDebitCreditEnum;
53
53
  /**
54
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.
55
- * @type {object}
55
+ * @type {{ [key: string]: object; }}
56
56
  * @memberof FinancialTransactionDataDto
57
57
  */
58
- 'customFields': object;
58
+ 'customFields'?: { [key: string]: object; };
59
59
  /**
60
60
  * Specifies the type of the transaction. This can be used to categorize transactions for reporting, analysis, or filtering purposes.
61
61
  * @type {string}
@@ -72,6 +72,7 @@ export const FinancialTransactionDataDtoDebitCreditEnum = {
72
72
  export type FinancialTransactionDataDtoDebitCreditEnum = typeof FinancialTransactionDataDtoDebitCreditEnum[keyof typeof FinancialTransactionDataDtoDebitCreditEnum];
73
73
  export const FinancialTransactionDataDtoTransactionTypeEnum = {
74
74
  OpeningBalance: 'OPENING_BALANCE',
75
+ OpeningBalanceCorrection: 'OPENING_BALANCE_CORRECTION',
75
76
  Adjustment: 'ADJUSTMENT',
76
77
  Normal: 'NORMAL'
77
78
  } as const;
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingCategoryClass } from './accounting-category-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetAccountingCategoriesResponseClass
22
+ */
23
+ export interface GetAccountingCategoriesResponseClass {
24
+ /**
25
+ * The list of functional categories
26
+ * @type {Array<AccountingCategoryClass>}
27
+ * @memberof GetAccountingCategoriesResponseClass
28
+ */
29
+ 'items': Array<AccountingCategoryClass>;
30
+ }
31
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingConfigClass } from './accounting-config-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetActivationSnapshotResponseClass
22
+ */
23
+ export interface GetActivationSnapshotResponseClass {
24
+ /**
25
+ * The subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status.
26
+ * @type {AccountingConfigClass}
27
+ * @memberof GetActivationSnapshotResponseClass
28
+ */
29
+ 'accountingConfig'?: AccountingConfigClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,15 +1,35 @@
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';
1
9
  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';
2
17
  export * from './create-booking-entry-request-dto';
3
18
  export * from './create-booking-entry-response-class';
4
19
  export * from './create-financial-account-request-dto';
5
20
  export * from './create-financial-account-response-class';
6
21
  export * from './create-number-range-request-dto';
7
22
  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';
8
25
  export * from './create-personal-account-request-dto';
9
26
  export * from './create-personal-account-response-class';
27
+ export * from './export-accounting-config-response-class';
10
28
  export * from './financial-account-class';
11
29
  export * from './financial-transaction-class';
12
30
  export * from './financial-transaction-data-dto';
31
+ export * from './get-accounting-categories-response-class';
32
+ export * from './get-activation-snapshot-response-class';
13
33
  export * from './get-booking-entry-response-class';
14
34
  export * from './get-financial-account-response-class';
15
35
  export * from './get-financial-transaction-response-class';
@@ -18,9 +38,34 @@ export * from './get-personal-account-response-class';
18
38
  export * from './inline-response200';
19
39
  export * from './inline-response503';
20
40
  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';
21
44
  export * from './list-financial-accounts-response-class';
22
45
  export * from './list-financial-transactions-response-class';
23
46
  export * from './list-number-range-response-class';
24
47
  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';
25
50
  export * from './number-range-class';
51
+ export * from './opening-balance-item-dto';
26
52
  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-version-account-mapping-detail-class';
59
+ export * from './product-version-with-account-mappings-class';
60
+ export * from './product-with-account-mappings-class';
61
+ export * from './put-premium-item-account-body-dto';
62
+ export * from './put-product-category-account-body-dto';
63
+ export * from './put-product-version-category-account-body-dto';
64
+ export * from './resolved-account-mapping-class';
65
+ export * from './resolved-commission-account-mapping-class';
66
+ export * from './update-commission-agreement-account-body-dto';
67
+ export * from './update-commission-type-account-body-dto';
68
+ export * from './update-financial-account-body-dto';
69
+ export * from './update-financial-account-response-class';
70
+ export * from './validate-accounting-config-request-dto';
71
+ export * from './validate-accounting-config-response-class';