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

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
@@ -76,6 +76,18 @@ export interface BookingEntryClass {
76
76
  * @memberof BookingEntryClass
77
77
  */
78
78
  'externalNumber'?: string;
79
+ /**
80
+ * The code of the source entity this entry was posted for, such as an invoice or payment code. Always set together with sourceEntityType.
81
+ * @type {string}
82
+ * @memberof BookingEntryClass
83
+ */
84
+ 'sourceEntityCode'?: string;
85
+ /**
86
+ * The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
87
+ * @type {string}
88
+ * @memberof BookingEntryClass
89
+ */
90
+ 'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
79
91
  /**
80
92
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
81
93
  * @type {Array<FinancialTransactionClass>}
@@ -121,3 +133,11 @@ export declare const BookingEntryClassCurrencyEnum: {
121
133
  readonly Sek: "SEK";
122
134
  };
123
135
  export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
136
+ export declare const BookingEntryClassSourceEntityTypeEnum: {
137
+ readonly Invoice: "invoice";
138
+ readonly Payment: "payment";
139
+ readonly Credit: "credit";
140
+ readonly CreditAllocation: "credit_allocation";
141
+ readonly Commission: "commission";
142
+ };
143
+ export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BookingEntryClassCurrencyEnum = void 0;
16
+ exports.BookingEntryClassSourceEntityTypeEnum = exports.BookingEntryClassCurrencyEnum = void 0;
17
17
  exports.BookingEntryClassCurrencyEnum = {
18
18
  Eur: 'EUR',
19
19
  Usd: 'USD',
@@ -27,3 +27,10 @@ exports.BookingEntryClassCurrencyEnum = {
27
27
  Nok: 'NOK',
28
28
  Sek: 'SEK'
29
29
  };
30
+ exports.BookingEntryClassSourceEntityTypeEnum = {
31
+ Invoice: 'invoice',
32
+ Payment: 'payment',
33
+ Credit: 'credit',
34
+ CreditAllocation: 'credit_allocation',
35
+ Commission: 'commission'
36
+ };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { FinancialAccountClass } from './financial-account-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAccountMappingClass
17
+ */
18
+ export interface CommissionAccountMappingClass {
19
+ /**
20
+ * Empty string when this row is type-level (not agreement-scoped).
21
+ * @type {string}
22
+ * @memberof CommissionAccountMappingClass
23
+ */
24
+ 'commissionAgreementCode': string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CommissionAccountMappingClass
29
+ */
30
+ 'commissionType': string;
31
+ /**
32
+ *
33
+ * @type {FinancialAccountClass}
34
+ * @memberof CommissionAccountMappingClass
35
+ */
36
+ 'financialAccount': FinancialAccountClass;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof CommissionAccountMappingClass
41
+ */
42
+ 'createdAt'?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CommissionAccountMappingClass
47
+ */
48
+ 'updatedAt'?: string;
49
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionAgreementPartnerClass } from './commission-agreement-partner-class';
13
+ import { CommissionTypeAccountMappingClass } from './commission-type-account-mapping-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionAgreementAccountMappingDetailClass
18
+ */
19
+ export interface CommissionAgreementAccountMappingDetailClass {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof CommissionAgreementAccountMappingDetailClass
24
+ */
25
+ 'commissionAgreementCode': string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CommissionAgreementAccountMappingDetailClass
30
+ */
31
+ 'commissionAgreementNumber': string;
32
+ /**
33
+ * The agreement\'s main partner.
34
+ * @type {CommissionAgreementPartnerClass}
35
+ * @memberof CommissionAgreementAccountMappingDetailClass
36
+ */
37
+ 'mainPartner'?: CommissionAgreementPartnerClass;
38
+ /**
39
+ * One entry per commission type that has some row (type-level or agreement-level) for this tenant.
40
+ * @type {Array<CommissionTypeAccountMappingClass>}
41
+ * @memberof CommissionAgreementAccountMappingDetailClass
42
+ */
43
+ 'accountMappings': Array<CommissionTypeAccountMappingClass>;
44
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CommissionAgreementPartnerClass
16
+ */
17
+ export interface CommissionAgreementPartnerClass {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CommissionAgreementPartnerClass
22
+ */
23
+ 'code': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CommissionAgreementPartnerClass
28
+ */
29
+ 'name': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionAgreementPartnerClass } from './commission-agreement-partner-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementWithAccountMappingClass
17
+ */
18
+ export interface CommissionAgreementWithAccountMappingClass {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CommissionAgreementWithAccountMappingClass
23
+ */
24
+ 'commissionAgreementCode': string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CommissionAgreementWithAccountMappingClass
29
+ */
30
+ 'commissionAgreementNumber': string;
31
+ /**
32
+ * The agreement\'s main partner, read from commissionservice (CommissionAgreement.metadata.mainPartner). Omitted when the agreement has none.
33
+ * @type {CommissionAgreementPartnerClass}
34
+ * @memberof CommissionAgreementWithAccountMappingClass
35
+ */
36
+ 'mainPartner'?: CommissionAgreementPartnerClass;
37
+ /**
38
+ * True if any commission type has an agreement-level override for this agreement.
39
+ * @type {boolean}
40
+ * @memberof CommissionAgreementWithAccountMappingClass
41
+ */
42
+ 'hasCustomMapping': boolean;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ResolvedCommissionAccountMappingClass } from './resolved-commission-account-mapping-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionTypeAccountMappingClass
17
+ */
18
+ export interface CommissionTypeAccountMappingClass {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CommissionTypeAccountMappingClass
23
+ */
24
+ 'commissionType': string;
25
+ /**
26
+ *
27
+ * @type {ResolvedCommissionAccountMappingClass}
28
+ * @memberof CommissionTypeAccountMappingClass
29
+ */
30
+ 'accountMapping': ResolvedCommissionAccountMappingClass;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AccountingConfigDataDto } from './accounting-config-data-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateAndEnableSubledgerRequestDto
17
+ */
18
+ export interface CreateAndEnableSubledgerRequestDto {
19
+ /**
20
+ * Configuration for the accounting system.
21
+ * @type {AccountingConfigDataDto}
22
+ * @memberof CreateAndEnableSubledgerRequestDto
23
+ */
24
+ 'accountingConfigData': AccountingConfigDataDto;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AccountingConfigClass } from './accounting-config-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateAndEnableSubledgerResponseClass
17
+ */
18
+ export interface CreateAndEnableSubledgerResponseClass {
19
+ /**
20
+ * The accounting configuration created
21
+ * @type {AccountingConfigClass}
22
+ * @memberof CreateAndEnableSubledgerResponseClass
23
+ */
24
+ 'accountingConfig'?: AccountingConfigClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,6 +40,18 @@ export interface CreateBookingEntryRequestDto {
40
40
  * @memberof CreateBookingEntryRequestDto
41
41
  */
42
42
  'externalNumber'?: string;
43
+ /**
44
+ * The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
45
+ * @type {string}
46
+ * @memberof CreateBookingEntryRequestDto
47
+ */
48
+ 'sourceEntityCode'?: string;
49
+ /**
50
+ * The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
51
+ * @type {string}
52
+ * @memberof CreateBookingEntryRequestDto
53
+ */
54
+ 'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
43
55
  /**
44
56
  * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
45
57
  * @type {string}
@@ -48,10 +60,12 @@ export interface CreateBookingEntryRequestDto {
48
60
  'description': string;
49
61
  /**
50
62
  * Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
51
- * @type {object}
63
+ * @type {{ [key: string]: object; }}
52
64
  * @memberof CreateBookingEntryRequestDto
53
65
  */
54
- 'customFields'?: object;
66
+ 'customFields'?: {
67
+ [key: string]: object;
68
+ };
55
69
  /**
56
70
  * An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
57
71
  * @type {Array<FinancialTransactionDataDto>}
@@ -59,3 +73,11 @@ export interface CreateBookingEntryRequestDto {
59
73
  */
60
74
  'financialTransactions': Array<FinancialTransactionDataDto>;
61
75
  }
76
+ export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
77
+ readonly Invoice: "invoice";
78
+ readonly Payment: "payment";
79
+ readonly Credit: "credit";
80
+ readonly CreditAllocation: "credit_allocation";
81
+ readonly Commission: "commission";
82
+ };
83
+ export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
@@ -13,3 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
17
+ exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
18
+ Invoice: 'invoice',
19
+ Payment: 'payment',
20
+ Credit: 'credit',
21
+ CreditAllocation: 'credit_allocation',
22
+ Commission: 'commission'
23
+ };
@@ -47,10 +47,12 @@ export interface CreateFinancialAccountRequestDto {
47
47
  'parentId'?: number;
48
48
  /**
49
49
  * Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
50
- * @type {object}
50
+ * @type {{ [key: string]: object; }}
51
51
  * @memberof CreateFinancialAccountRequestDto
52
52
  */
53
- 'customFields': object;
53
+ 'customFields'?: {
54
+ [key: string]: object;
55
+ };
54
56
  /**
55
57
  * A detailed description of the financial account
56
58
  * @type {string}
@@ -64,18 +66,59 @@ export interface CreateFinancialAccountRequestDto {
64
66
  */
65
67
  'clearable': boolean;
66
68
  /**
67
- * Not used on this release line. Declared so the DTO matches the generated proto interface. Empty string means unset.
69
+ * Whether the financial account is a control account
70
+ * @type {boolean}
71
+ * @memberof CreateFinancialAccountRequestDto
72
+ */
73
+ 'isControlAccount': boolean;
74
+ /**
75
+ * The functional category of the account. Empty string means unset.
68
76
  * @type {string}
69
77
  * @memberof CreateFinancialAccountRequestDto
70
78
  */
71
- 'functionalCategory'?: string;
79
+ 'functionalCategory': CreateFinancialAccountRequestDtoFunctionalCategoryEnum;
80
+ /**
81
+ * 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.
82
+ * @type {boolean}
83
+ * @memberof CreateFinancialAccountRequestDto
84
+ */
85
+ 'isDefault'?: boolean;
86
+ /**
87
+ * 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.
88
+ * @type {string}
89
+ * @memberof CreateFinancialAccountRequestDto
90
+ */
91
+ 'linkedBankAccountCode'?: string;
72
92
  }
73
93
  export declare const CreateFinancialAccountRequestDtoTypeEnum: {
74
94
  readonly Asset: "asset";
75
95
  readonly Liability: "liability";
76
96
  readonly Equity: "equity";
77
- readonly Revenue: "revenue";
97
+ readonly Income: "income";
78
98
  readonly Expense: "expense";
79
99
  readonly OpeningBalance: "opening_balance";
80
100
  };
81
101
  export type CreateFinancialAccountRequestDtoTypeEnum = typeof CreateFinancialAccountRequestDtoTypeEnum[keyof typeof CreateFinancialAccountRequestDtoTypeEnum];
102
+ export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
103
+ readonly BankAcc: "bank_acc";
104
+ readonly TaxPendingAcc: "tax_pending_acc";
105
+ readonly TaxForwardedAcc: "tax_forwarded_acc";
106
+ readonly TaxDueAcc: "tax_due_acc";
107
+ readonly VatPendingAcc: "vat_pending_acc";
108
+ readonly VatDueAcc: "vat_due_acc";
109
+ readonly RevenueBufferAcc: "revenue_buffer_acc";
110
+ readonly RevenueFinalAcc: "revenue_final_acc";
111
+ readonly ClaimExpenseAcc: "claim_expense_acc";
112
+ readonly CustomerCreditLiabAcc: "customer_credit_liab_acc";
113
+ readonly WriteOffExpAcc: "write_off_exp_acc";
114
+ readonly RoundingDiffAcc: "rounding_diff_acc";
115
+ readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
116
+ readonly FeeRevenueAcc: "fee_revenue_acc";
117
+ readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
118
+ readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
119
+ readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
120
+ readonly BrokerCtrlAcc: "broker_ctrl_acc";
121
+ readonly CarrierCtrlAcc: "carrier_ctrl_acc";
122
+ readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
123
+ };
124
+ export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
@@ -13,12 +13,34 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateFinancialAccountRequestDtoTypeEnum = void 0;
16
+ exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = exports.CreateFinancialAccountRequestDtoTypeEnum = void 0;
17
17
  exports.CreateFinancialAccountRequestDtoTypeEnum = {
18
18
  Asset: 'asset',
19
19
  Liability: 'liability',
20
20
  Equity: 'equity',
21
- Revenue: 'revenue',
21
+ Income: 'income',
22
22
  Expense: 'expense',
23
23
  OpeningBalance: 'opening_balance'
24
24
  };
25
+ exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
26
+ BankAcc: 'bank_acc',
27
+ TaxPendingAcc: 'tax_pending_acc',
28
+ TaxForwardedAcc: 'tax_forwarded_acc',
29
+ TaxDueAcc: 'tax_due_acc',
30
+ VatPendingAcc: 'vat_pending_acc',
31
+ VatDueAcc: 'vat_due_acc',
32
+ RevenueBufferAcc: 'revenue_buffer_acc',
33
+ RevenueFinalAcc: 'revenue_final_acc',
34
+ ClaimExpenseAcc: 'claim_expense_acc',
35
+ CustomerCreditLiabAcc: 'customer_credit_liab_acc',
36
+ WriteOffExpAcc: 'write_off_exp_acc',
37
+ RoundingDiffAcc: 'rounding_diff_acc',
38
+ PaymentFeesExpAcc: 'payment_fees_exp_acc',
39
+ FeeRevenueAcc: 'fee_revenue_acc',
40
+ UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
41
+ OpeningBalEquityAcc: 'opening_bal_equity_acc',
42
+ ReceivablesCtrlAcc: 'receivables_ctrl_acc',
43
+ BrokerCtrlAcc: 'broker_ctrl_acc',
44
+ CarrierCtrlAcc: 'carrier_ctrl_acc',
45
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
46
+ };
@@ -41,13 +41,13 @@ export interface CreateNumberRangeRequestDto {
41
41
  'accountType': CreateNumberRangeRequestDtoAccountTypeEnum;
42
42
  }
43
43
  export declare const CreateNumberRangeRequestDtoAccountTypeEnum: {
44
- readonly Customer: "customer";
45
- readonly Supplier: "supplier";
46
- readonly Employee: "employee";
44
+ readonly Policyholder: "policyholder";
45
+ readonly RiskCarrier: "risk_carrier";
46
+ readonly Broker: "broker";
47
47
  readonly Asset: "asset";
48
48
  readonly Liability: "liability";
49
49
  readonly Equity: "equity";
50
- readonly Revenue: "revenue";
50
+ readonly Income: "income";
51
51
  readonly Expense: "expense";
52
52
  };
53
53
  export type CreateNumberRangeRequestDtoAccountTypeEnum = typeof CreateNumberRangeRequestDtoAccountTypeEnum[keyof typeof CreateNumberRangeRequestDtoAccountTypeEnum];
@@ -15,12 +15,12 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateNumberRangeRequestDtoAccountTypeEnum = void 0;
17
17
  exports.CreateNumberRangeRequestDtoAccountTypeEnum = {
18
- Customer: 'customer',
19
- Supplier: 'supplier',
20
- Employee: 'employee',
18
+ Policyholder: 'policyholder',
19
+ RiskCarrier: 'risk_carrier',
20
+ Broker: 'broker',
21
21
  Asset: 'asset',
22
22
  Liability: 'liability',
23
23
  Equity: 'equity',
24
- Revenue: 'revenue',
24
+ Income: 'income',
25
25
  Expense: 'expense'
26
26
  };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { OpeningBalanceItemDto } from './opening-balance-item-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateOrCorrectOpeningBalanceDto
17
+ */
18
+ export interface CreateOrCorrectOpeningBalanceDto {
19
+ /**
20
+ * 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).
21
+ * @type {Array<OpeningBalanceItemDto>}
22
+ * @memberof CreateOrCorrectOpeningBalanceDto
23
+ */
24
+ 'openingBalances': Array<OpeningBalanceItemDto>;
25
+ }