@emilgroup/accounting-sdk-node 1.32.1-beta.1 → 1.32.1-beta.100

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 (179) hide show
  1. package/.openapi-generator/FILES +37 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +158 -28
  4. package/api/booking-entries-api.ts +252 -13
  5. package/api/commission-account-mappings-api.ts +1235 -0
  6. package/api/financial-accounts-api.ts +169 -24
  7. package/api/financial-transactions-api.ts +16 -6
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +32 -12
  10. package/api/personal-accounts-api.ts +32 -12
  11. package/api/product-account-mappings-api.ts +1755 -0
  12. package/api.ts +4 -0
  13. package/base.ts +4 -0
  14. package/common.ts +3 -2
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +206 -63
  17. package/dist/api/booking-entries-api.d.ts +121 -7
  18. package/dist/api/booking-entries-api.js +241 -26
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1055 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +168 -40
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +22 -14
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/health-api.js +1 -1
  27. package/dist/api/number-ranges-api.d.ts +4 -4
  28. package/dist/api/number-ranges-api.js +52 -30
  29. package/dist/api/personal-accounts-api.d.ts +4 -4
  30. package/dist/api/personal-accounts-api.js +52 -30
  31. package/dist/api/product-account-mappings-api.d.ts +972 -0
  32. package/dist/api/product-account-mappings-api.js +1497 -0
  33. package/dist/api.d.ts +2 -0
  34. package/dist/api.js +2 -0
  35. package/dist/base.d.ts +1 -0
  36. package/dist/base.js +3 -0
  37. package/dist/common.d.ts +1 -1
  38. package/dist/common.js +1 -0
  39. package/dist/models/account-mapping-class.d.ts +2 -0
  40. package/dist/models/account-mapping-class.js +3 -1
  41. package/dist/models/accounting-config-class.d.ts +11 -0
  42. package/dist/models/accounting-config-class.js +5 -0
  43. package/dist/models/accounting-config-data-class.d.ts +7 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/accounting-config-data-dto.d.ts +7 -0
  47. package/dist/models/booking-entry-class.d.ts +35 -0
  48. package/dist/models/booking-entry-class.js +11 -1
  49. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  50. package/dist/models/commission-account-mapping-class.js +15 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  52. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  53. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  54. package/dist/models/commission-agreement-partner-class.js +15 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  56. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  57. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  58. package/dist/models/commission-type-account-mapping-class.js +15 -0
  59. package/dist/models/create-booking-entry-request-dto.d.ts +22 -0
  60. package/dist/models/create-booking-entry-request-dto.js +10 -0
  61. package/dist/models/create-financial-account-request-dto.d.ts +14 -0
  62. package/dist/models/create-financial-account-request-dto.js +3 -1
  63. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  64. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  66. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  67. package/dist/models/financial-account-class.d.ts +30 -1
  68. package/dist/models/financial-account-class.js +5 -1
  69. package/dist/models/financial-transaction-class.d.ts +6 -0
  70. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  71. package/dist/models/financial-transaction-data-dto.js +1 -0
  72. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  73. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  74. package/dist/models/index.d.ts +35 -0
  75. package/dist/models/index.js +35 -0
  76. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  77. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  79. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  82. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  83. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  85. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  86. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  87. package/dist/models/opening-balance-item-dto.js +20 -0
  88. package/dist/models/personal-account-class.d.ts +6 -0
  89. package/dist/models/personal-account-range-class.d.ts +42 -0
  90. package/dist/models/personal-account-range-class.js +21 -0
  91. package/dist/models/personal-account-range-dto.d.ts +42 -0
  92. package/dist/models/personal-account-range-dto.js +21 -0
  93. package/dist/models/post-financial-event-request-dto.d.ts +46 -0
  94. package/dist/models/post-financial-event-request-dto.js +25 -0
  95. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  96. package/dist/models/post-financial-event-response-class.js +15 -0
  97. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  98. package/dist/models/premium-item-account-mapping-class.js +15 -0
  99. package/dist/models/product-account-mapping-class.d.ts +61 -0
  100. package/dist/models/product-account-mapping-class.js +15 -0
  101. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  102. package/dist/models/product-account-mapping-detail-class.js +15 -0
  103. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  104. package/dist/models/product-risk-carrier-class.js +15 -0
  105. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  106. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  107. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  108. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  109. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  110. package/dist/models/product-with-account-mappings-class.js +15 -0
  111. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  113. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  114. package/dist/models/put-product-category-account-body-dto.js +15 -0
  115. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  116. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  117. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  118. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  119. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  120. package/dist/models/resolved-account-mapping-class.js +15 -0
  121. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  122. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  123. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  124. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  125. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  126. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  127. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  128. package/dist/models/update-financial-account-body-dto.js +15 -0
  129. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  130. package/dist/models/update-financial-account-response-class.js +15 -0
  131. package/models/account-mapping-class.ts +3 -1
  132. package/models/accounting-config-class.ts +14 -0
  133. package/models/accounting-config-data-class.ts +7 -0
  134. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  135. package/models/accounting-config-data-dto.ts +7 -0
  136. package/models/booking-entry-class.ts +36 -0
  137. package/models/commission-account-mapping-class.ts +55 -0
  138. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  139. package/models/commission-agreement-partner-class.ts +36 -0
  140. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  141. package/models/commission-type-account-mapping-class.ts +37 -0
  142. package/models/create-booking-entry-request-dto.ts +25 -0
  143. package/models/create-financial-account-request-dto.ts +15 -1
  144. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  145. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  146. package/models/financial-account-class.ts +31 -1
  147. package/models/financial-transaction-class.ts +6 -0
  148. package/models/financial-transaction-data-dto.ts +7 -0
  149. package/models/get-activation-snapshot-response-class.ts +31 -0
  150. package/models/index.ts +35 -0
  151. package/models/list-commission-account-mappings-response-class.ts +49 -0
  152. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  153. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  154. package/models/list-product-account-mappings-response-class.ts +49 -0
  155. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  156. package/models/opening-balance-item-dto.ts +50 -0
  157. package/models/personal-account-class.ts +6 -0
  158. package/models/personal-account-range-class.ts +51 -0
  159. package/models/personal-account-range-dto.ts +51 -0
  160. package/models/post-financial-event-request-dto.ts +55 -0
  161. package/models/post-financial-event-response-class.ts +31 -0
  162. package/models/premium-item-account-mapping-class.ts +43 -0
  163. package/models/product-account-mapping-class.ts +67 -0
  164. package/models/product-account-mapping-detail-class.ts +62 -0
  165. package/models/product-risk-carrier-class.ts +48 -0
  166. package/models/product-version-account-mapping-detail-class.ts +56 -0
  167. package/models/product-version-with-account-mappings-class.ts +48 -0
  168. package/models/product-with-account-mappings-class.ts +55 -0
  169. package/models/put-premium-item-account-body-dto.ts +30 -0
  170. package/models/put-product-category-account-body-dto.ts +30 -0
  171. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  172. package/models/put-product-version-category-account-body-dto.ts +30 -0
  173. package/models/resolved-account-mapping-class.ts +37 -0
  174. package/models/resolved-commission-account-mapping-class.ts +46 -0
  175. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  176. package/models/update-commission-type-account-body-dto.ts +30 -0
  177. package/models/update-financial-account-body-dto.ts +54 -0
  178. package/models/update-financial-account-response-class.ts +31 -0
  179. package/package.json +2 -2
@@ -50,6 +50,12 @@ export interface AccountingConfigDataDtoDefaultAccountMappings {
50
50
  * @memberof AccountingConfigDataDtoDefaultAccountMappings
51
51
  */
52
52
  'debitOpeningAmountInCents': number;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof AccountingConfigDataDtoDefaultAccountMappings
57
+ */
58
+ 'bankAccountCode'?: string;
53
59
  }
54
60
 
55
61
  export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = {
@@ -72,7 +78,9 @@ export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum
72
78
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
73
79
  BrokerCtrlAcc: 'broker_ctrl_acc',
74
80
  CarrierCtrlAcc: 'carrier_ctrl_acc',
75
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
81
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
82
+ ClaimsPayableAcc: 'claims_payable_acc',
83
+ CarrierReceivableAcc: 'carrier_receivable_acc'
76
84
  } as const;
77
85
 
78
86
  export type AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum[keyof typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum];
@@ -15,6 +15,7 @@
15
15
 
16
16
  import { AccountingConfigDataDtoAccountingConfiguration } from './accounting-config-data-dto-accounting-configuration';
17
17
  import { AccountingConfigDataDtoDefaultAccountMappings } from './accounting-config-data-dto-default-account-mappings';
18
+ import { PersonalAccountRangeDto } from './personal-account-range-dto';
18
19
 
19
20
  /**
20
21
  *
@@ -40,5 +41,11 @@ export interface AccountingConfigDataDto {
40
41
  * @memberof AccountingConfigDataDto
41
42
  */
42
43
  'accountingConfiguration'?: AccountingConfigDataDtoAccountingConfiguration;
44
+ /**
45
+ * The personal account number ranges: exactly one each for policyholder, risk_carrier and broker
46
+ * @type {Array<PersonalAccountRangeDto>}
47
+ * @memberof AccountingConfigDataDto
48
+ */
49
+ 'personalAccountRanges': Array<PersonalAccountRangeDto>;
43
50
  }
44
51
 
@@ -81,6 +81,30 @@ 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;
84
108
  /**
85
109
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
86
110
  * @type {Array<FinancialTransactionClass>}
@@ -128,5 +152,17 @@ export const BookingEntryClassCurrencyEnum = {
128
152
  } as const;
129
153
 
130
154
  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
+ PaymentReceipt: 'payment_receipt',
163
+ Manual: 'manual'
164
+ } as const;
165
+
166
+ export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
131
167
 
132
168
 
@@ -0,0 +1,55 @@
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 { FinancialAccountClass } from './financial-account-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAccountMappingClass
22
+ */
23
+ export interface CommissionAccountMappingClass {
24
+ /**
25
+ * Empty string when this row is type-level (not agreement-scoped).
26
+ * @type {string}
27
+ * @memberof CommissionAccountMappingClass
28
+ */
29
+ 'commissionAgreementCode': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CommissionAccountMappingClass
34
+ */
35
+ 'commissionType': string;
36
+ /**
37
+ *
38
+ * @type {FinancialAccountClass}
39
+ * @memberof CommissionAccountMappingClass
40
+ */
41
+ 'financialAccount': FinancialAccountClass;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CommissionAccountMappingClass
46
+ */
47
+ 'createdAt'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CommissionAccountMappingClass
52
+ */
53
+ 'updatedAt'?: string;
54
+ }
55
+
@@ -0,0 +1,50 @@
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
+ import { CommissionTypeAccountMappingClass } from './commission-type-account-mapping-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionAgreementAccountMappingDetailClass
23
+ */
24
+ export interface CommissionAgreementAccountMappingDetailClass {
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CommissionAgreementAccountMappingDetailClass
29
+ */
30
+ 'commissionAgreementCode': string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CommissionAgreementAccountMappingDetailClass
35
+ */
36
+ 'commissionAgreementNumber': string;
37
+ /**
38
+ * The agreement\'s main partner.
39
+ * @type {CommissionAgreementPartnerClass}
40
+ * @memberof CommissionAgreementAccountMappingDetailClass
41
+ */
42
+ 'mainPartner'?: CommissionAgreementPartnerClass;
43
+ /**
44
+ * One entry per commission type that has some row (type-level or agreement-level) for this tenant.
45
+ * @type {Array<CommissionTypeAccountMappingClass>}
46
+ * @memberof CommissionAgreementAccountMappingDetailClass
47
+ */
48
+ 'accountMappings': Array<CommissionTypeAccountMappingClass>;
49
+ }
50
+
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CommissionAgreementPartnerClass
21
+ */
22
+ export interface CommissionAgreementPartnerClass {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CommissionAgreementPartnerClass
27
+ */
28
+ 'code': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CommissionAgreementPartnerClass
33
+ */
34
+ 'name': string;
35
+ }
36
+
@@ -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
+
@@ -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. 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;
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}
@@ -65,3 +77,16 @@ export interface CreateBookingEntryRequestDto {
65
77
  'financialTransactions': Array<FinancialTransactionDataDto>;
66
78
  }
67
79
 
80
+ export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
81
+ Payment: 'payment',
82
+ Credit: 'credit',
83
+ CreditAllocation: 'credit_allocation',
84
+ ClaimRegulation: 'claim_regulation',
85
+ Commission: 'commission',
86
+ PaymentReceipt: 'payment_receipt',
87
+ Manual: 'manual'
88
+ } as const;
89
+
90
+ export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
91
+
92
+
@@ -80,6 +80,18 @@ export interface CreateFinancialAccountRequestDto {
80
80
  * @memberof CreateFinancialAccountRequestDto
81
81
  */
82
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.
91
+ * @type {string}
92
+ * @memberof CreateFinancialAccountRequestDto
93
+ */
94
+ 'linkedBankAccountCode'?: string;
83
95
  }
84
96
 
85
97
  export const CreateFinancialAccountRequestDtoTypeEnum = {
@@ -112,7 +124,9 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
112
124
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
113
125
  BrokerCtrlAcc: 'broker_ctrl_acc',
114
126
  CarrierCtrlAcc: 'carrier_ctrl_acc',
115
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
127
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
128
+ ClaimsPayableAcc: 'claims_payable_acc',
129
+ CarrierReceivableAcc: 'carrier_receivable_acc'
116
130
  } as const;
117
131
 
118
132
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
@@ -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
+
@@ -85,7 +85,7 @@ export interface FinancialAccountClass {
85
85
  * @type {string}
86
86
  * @memberof FinancialAccountClass
87
87
  */
88
- 'status': string;
88
+ 'status': FinancialAccountClassStatusEnum;
89
89
  /**
90
90
  * Whether the account is a control account.
91
91
  * @type {boolean}
@@ -98,6 +98,30 @@ export interface FinancialAccountClass {
98
98
  * @memberof FinancialAccountClass
99
99
  */
100
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;
101
125
  /**
102
126
  * Time at which the object was created.
103
127
  * @type {string}
@@ -134,5 +158,11 @@ export const FinancialAccountClassTypeEnum = {
134
158
  } as const;
135
159
 
136
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];
137
167
 
138
168
 
@@ -50,6 +50,12 @@ 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;
53
59
  /**
54
60
  * Internal identifier for the associated booking entry. This links the transaction to a specific entry in the booking system.
55
61
  * @type {number}
@@ -32,6 +32,12 @@ 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;
35
41
  /**
36
42
  * A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
37
43
  * @type {string}
@@ -72,6 +78,7 @@ export const FinancialTransactionDataDtoDebitCreditEnum = {
72
78
  export type FinancialTransactionDataDtoDebitCreditEnum = typeof FinancialTransactionDataDtoDebitCreditEnum[keyof typeof FinancialTransactionDataDtoDebitCreditEnum];
73
79
  export const FinancialTransactionDataDtoTransactionTypeEnum = {
74
80
  OpeningBalance: 'OPENING_BALANCE',
81
+ OpeningBalanceCorrection: 'OPENING_BALANCE_CORRECTION',
75
82
  Adjustment: 'ADJUSTMENT',
76
83
  Normal: 'NORMAL'
77
84
  } 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 { 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
@@ -7,6 +7,11 @@ export * from './accounting-config-data-dto-accounting-configuration';
7
7
  export * from './accounting-config-data-dto-default-account-mappings';
8
8
  export * from './accounting-configuration-class';
9
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';
10
15
  export * from './create-and-enable-subledger-request-dto';
11
16
  export * from './create-and-enable-subledger-response-class';
12
17
  export * from './create-booking-entry-request-dto';
@@ -15,6 +20,8 @@ export * from './create-financial-account-request-dto';
15
20
  export * from './create-financial-account-response-class';
16
21
  export * from './create-number-range-request-dto';
17
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';
18
25
  export * from './create-personal-account-request-dto';
19
26
  export * from './create-personal-account-response-class';
20
27
  export * from './export-accounting-config-response-class';
@@ -22,6 +29,7 @@ export * from './financial-account-class';
22
29
  export * from './financial-transaction-class';
23
30
  export * from './financial-transaction-data-dto';
24
31
  export * from './get-accounting-categories-response-class';
32
+ export * from './get-activation-snapshot-response-class';
25
33
  export * from './get-booking-entry-response-class';
26
34
  export * from './get-financial-account-response-class';
27
35
  export * from './get-financial-transaction-response-class';
@@ -30,11 +38,38 @@ export * from './get-personal-account-response-class';
30
38
  export * from './inline-response200';
31
39
  export * from './inline-response503';
32
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';
33
44
  export * from './list-financial-accounts-response-class';
34
45
  export * from './list-financial-transactions-response-class';
35
46
  export * from './list-number-range-response-class';
36
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';
37
50
  export * from './number-range-class';
51
+ export * from './opening-balance-item-dto';
38
52
  export * from './personal-account-class';
53
+ export * from './personal-account-range-class';
54
+ export * from './personal-account-range-dto';
55
+ export * from './post-financial-event-request-dto';
56
+ export * from './post-financial-event-response-class';
57
+ export * from './premium-item-account-mapping-class';
58
+ export * from './product-account-mapping-class';
59
+ export * from './product-account-mapping-detail-class';
60
+ export * from './product-risk-carrier-class';
61
+ export * from './product-version-account-mapping-detail-class';
62
+ export * from './product-version-with-account-mappings-class';
63
+ export * from './product-with-account-mappings-class';
64
+ export * from './put-premium-item-account-body-dto';
65
+ export * from './put-product-category-account-body-dto';
66
+ export * from './put-product-risk-carrier-body-dto';
67
+ export * from './put-product-version-category-account-body-dto';
68
+ export * from './resolved-account-mapping-class';
69
+ export * from './resolved-commission-account-mapping-class';
70
+ export * from './update-commission-agreement-account-body-dto';
71
+ export * from './update-commission-type-account-body-dto';
72
+ export * from './update-financial-account-body-dto';
73
+ export * from './update-financial-account-response-class';
39
74
  export * from './validate-accounting-config-request-dto';
40
75
  export * from './validate-accounting-config-response-class';