@emilgroup/accounting-sdk 1.34.1-beta.74 → 1.34.1-beta.76

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 (70) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +16 -32
  4. package/api/booking-entries-api.ts +14 -24
  5. package/api/commission-account-mappings-api.ts +16 -32
  6. package/api/financial-accounts-api.ts +10 -20
  7. package/api/financial-transactions-api.ts +4 -8
  8. package/api/number-ranges-api.ts +8 -16
  9. package/api/personal-accounts-api.ts +8 -16
  10. package/api/product-account-mappings-api.ts +20 -265
  11. package/base.ts +41 -174
  12. package/common.ts +2 -3
  13. package/configuration.ts +0 -20
  14. package/dist/api/accounting-configs-api.d.ts +8 -8
  15. package/dist/api/accounting-configs-api.js +32 -56
  16. package/dist/api/booking-entries-api.d.ts +9 -9
  17. package/dist/api/booking-entries-api.js +22 -33
  18. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  19. package/dist/api/commission-account-mappings-api.js +29 -47
  20. package/dist/api/financial-accounts-api.d.ts +5 -5
  21. package/dist/api/financial-accounts-api.js +18 -29
  22. package/dist/api/financial-transactions-api.d.ts +2 -2
  23. package/dist/api/financial-transactions-api.js +6 -8
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/number-ranges-api.d.ts +4 -4
  26. package/dist/api/number-ranges-api.js +14 -22
  27. package/dist/api/personal-accounts-api.d.ts +4 -4
  28. package/dist/api/personal-accounts-api.js +14 -22
  29. package/dist/api/product-account-mappings-api.d.ts +10 -131
  30. package/dist/api/product-account-mappings-api.js +38 -261
  31. package/dist/base.d.ts +0 -24
  32. package/dist/base.js +59 -178
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +0 -1
  35. package/dist/configuration.d.ts +0 -17
  36. package/dist/configuration.js +0 -2
  37. package/dist/models/account-mapping-class.d.ts +0 -2
  38. package/dist/models/account-mapping-class.js +1 -3
  39. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -2
  40. package/dist/models/accounting-config-data-dto-default-account-mappings.js +1 -3
  41. package/dist/models/booking-entry-class.d.ts +2 -16
  42. package/dist/models/booking-entry-class.js +1 -3
  43. package/dist/models/create-booking-entry-request-dto.d.ts +2 -3
  44. package/dist/models/create-booking-entry-request-dto.js +2 -3
  45. package/dist/models/create-financial-account-request-dto.d.ts +0 -2
  46. package/dist/models/create-financial-account-request-dto.js +1 -3
  47. package/dist/models/financial-transaction-class.d.ts +0 -6
  48. package/dist/models/financial-transaction-data-dto.d.ts +0 -6
  49. package/dist/models/index.d.ts +0 -2
  50. package/dist/models/index.js +0 -2
  51. package/dist/models/post-financial-event-request-dto.d.ts +2 -3
  52. package/dist/models/post-financial-event-request-dto.js +0 -1
  53. package/dist/models/product-account-mapping-detail-class.d.ts +0 -6
  54. package/models/account-mapping-class.ts +1 -3
  55. package/models/accounting-config-data-dto-default-account-mappings.ts +1 -3
  56. package/models/booking-entry-class.ts +3 -17
  57. package/models/create-booking-entry-request-dto.ts +3 -4
  58. package/models/create-financial-account-request-dto.ts +1 -3
  59. package/models/financial-transaction-class.ts +0 -6
  60. package/models/financial-transaction-data-dto.ts +0 -6
  61. package/models/index.ts +0 -2
  62. package/models/post-financial-event-request-dto.ts +2 -3
  63. package/models/product-account-mapping-detail-class.ts +0 -6
  64. package/package.json +2 -2
  65. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  66. package/dist/models/product-risk-carrier-class.js +0 -15
  67. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  68. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  69. package/models/product-risk-carrier-class.ts +0 -48
  70. package/models/put-product-risk-carrier-body-dto.ts +0 -30
@@ -47,10 +47,4 @@ export interface ProductAccountMappingDetailClass {
47
47
  * @memberof ProductAccountMappingDetailClass
48
48
  */
49
49
  'versions': Array<ProductVersionWithAccountMappingsClass>;
50
- /**
51
- * The product\'s risk carrier, or absent when it has none. Present means this product\'s claim cost books as a receivable from that carrier; absent means it books the tenant\'s own claim expense. Independent of accountMappings: a claim_expense_acc override may exist either way, and a carrier uses no mapping row at all.
52
- * @type {string}
53
- * @memberof ProductAccountMappingDetailClass
54
- */
55
- 'riskCarrierPartnerCode'?: string;
56
50
  }
@@ -72,9 +72,7 @@ export const AccountMappingClassFunctionalCategoryEnum = {
72
72
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
73
73
  BrokerCtrlAcc: 'broker_ctrl_acc',
74
74
  CarrierCtrlAcc: 'carrier_ctrl_acc',
75
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
76
- ClaimsPayableAcc: 'claims_payable_acc',
77
- CarrierReceivableAcc: 'carrier_receivable_acc'
75
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
78
76
  } as const;
79
77
 
80
78
  export type AccountMappingClassFunctionalCategoryEnum = typeof AccountMappingClassFunctionalCategoryEnum[keyof typeof AccountMappingClassFunctionalCategoryEnum];
@@ -78,9 +78,7 @@ export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum
78
78
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
79
79
  BrokerCtrlAcc: 'broker_ctrl_acc',
80
80
  CarrierCtrlAcc: 'carrier_ctrl_acc',
81
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
82
- ClaimsPayableAcc: 'claims_payable_acc',
83
- CarrierReceivableAcc: 'carrier_receivable_acc'
81
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
84
82
  } as const;
85
83
 
86
84
  export type AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum[keyof typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum];
@@ -82,29 +82,17 @@ export interface BookingEntryClass {
82
82
  */
83
83
  'externalNumber'?: string;
84
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.
85
+ * The code of the source entity this entry was posted for, such as an invoice or payment code. Always set together with sourceEntityType.
86
86
  * @type {string}
87
87
  * @memberof BookingEntryClass
88
88
  */
89
89
  'sourceEntityCode'?: string;
90
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.
91
+ * The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
92
92
  * @type {string}
93
93
  * @memberof BookingEntryClass
94
94
  */
95
95
  'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
96
- /**
97
- * The code of the entry this entry reverses. Absent on an entry that is not a reversal.
98
- * @type {string}
99
- * @memberof BookingEntryClass
100
- */
101
- 'reversalOfCode'?: string;
102
- /**
103
- * True once the entry has been reversed in full. Its reversal names it in reversalOfCode.
104
- * @type {boolean}
105
- * @memberof BookingEntryClass
106
- */
107
- 'isReversed'?: boolean;
108
96
  /**
109
97
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
110
98
  * @type {Array<FinancialTransactionClass>}
@@ -157,9 +145,7 @@ export const BookingEntryClassSourceEntityTypeEnum = {
157
145
  Payment: 'payment',
158
146
  Credit: 'credit',
159
147
  CreditAllocation: 'credit_allocation',
160
- ClaimRegulation: 'claim_regulation',
161
- Commission: 'commission',
162
- Manual: 'manual'
148
+ Commission: 'commission'
163
149
  } as const;
164
150
 
165
151
  export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
@@ -52,7 +52,7 @@ export interface CreateBookingEntryRequestDto {
52
52
  */
53
53
  'sourceEntityCode'?: string;
54
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.
55
+ * The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
56
56
  * @type {string}
57
57
  * @memberof CreateBookingEntryRequestDto
58
58
  */
@@ -78,12 +78,11 @@ export interface CreateBookingEntryRequestDto {
78
78
  }
79
79
 
80
80
  export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
81
+ Invoice: 'invoice',
81
82
  Payment: 'payment',
82
83
  Credit: 'credit',
83
84
  CreditAllocation: 'credit_allocation',
84
- ClaimRegulation: 'claim_regulation',
85
- Commission: 'commission',
86
- Manual: 'manual'
85
+ Commission: 'commission'
87
86
  } as const;
88
87
 
89
88
  export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
@@ -124,9 +124,7 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
124
124
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
125
125
  BrokerCtrlAcc: 'broker_ctrl_acc',
126
126
  CarrierCtrlAcc: 'carrier_ctrl_acc',
127
- MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
128
- ClaimsPayableAcc: 'claims_payable_acc',
129
- CarrierReceivableAcc: 'carrier_receivable_acc'
127
+ MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
130
128
  } as const;
131
129
 
132
130
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
@@ -50,12 +50,6 @@ export interface FinancialTransactionClass {
50
50
  * @memberof FinancialTransactionClass
51
51
  */
52
52
  'personalAccountNumber'?: string;
53
- /**
54
- * The partner this line\'s amount belongs to. Set on a claims payable or carrier receivable line; absent elsewhere.
55
- * @type {string}
56
- * @memberof FinancialTransactionClass
57
- */
58
- 'partnerCode'?: string;
59
53
  /**
60
54
  * Internal identifier for the associated booking entry. This links the transaction to a specific entry in the booking system.
61
55
  * @type {number}
@@ -32,12 +32,6 @@ export interface FinancialTransactionDataDto {
32
32
  * @memberof FinancialTransactionDataDto
33
33
  */
34
34
  'personalAccountNumber'?: string;
35
- /**
36
- * The partner this line\'s amount belongs to. Required on a claims payable or carrier receivable line; never required elsewhere.
37
- * @type {string}
38
- * @memberof FinancialTransactionDataDto
39
- */
40
- 'partnerCode'?: string;
41
35
  /**
42
36
  * A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
43
37
  * @type {string}
package/models/index.ts CHANGED
@@ -55,13 +55,11 @@ export * from './post-financial-event-response-class';
55
55
  export * from './premium-item-account-mapping-class';
56
56
  export * from './product-account-mapping-class';
57
57
  export * from './product-account-mapping-detail-class';
58
- export * from './product-risk-carrier-class';
59
58
  export * from './product-version-account-mapping-detail-class';
60
59
  export * from './product-version-with-account-mappings-class';
61
60
  export * from './product-with-account-mappings-class';
62
61
  export * from './put-premium-item-account-body-dto';
63
62
  export * from './put-product-category-account-body-dto';
64
- export * from './put-product-risk-carrier-body-dto';
65
63
  export * from './put-product-version-category-account-body-dto';
66
64
  export * from './resolved-account-mapping-class';
67
65
  export * from './resolved-commission-account-mapping-class';
@@ -27,13 +27,13 @@ export interface PostFinancialEventRequestDto {
27
27
  */
28
28
  'sourceEntityType': PostFinancialEventRequestDtoSourceEntityTypeEnum;
29
29
  /**
30
- * The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission or claim regulation code.
30
+ * The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation or commission code.
31
31
  * @type {string}
32
32
  * @memberof PostFinancialEventRequestDto
33
33
  */
34
34
  'sourceEntityCode': string;
35
35
  /**
36
- * The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, and not accepted for a commission, which names its own recipient.
36
+ * The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment or credit allocation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, and not accepted for a commission, which names its own recipient.
37
37
  * @type {string}
38
38
  * @memberof PostFinancialEventRequestDto
39
39
  */
@@ -45,7 +45,6 @@ export const PostFinancialEventRequestDtoSourceEntityTypeEnum = {
45
45
  Payment: 'payment',
46
46
  Credit: 'credit',
47
47
  CreditAllocation: 'credit_allocation',
48
- ClaimRegulation: 'claim_regulation',
49
48
  Commission: 'commission'
50
49
  } as const;
51
50
 
@@ -52,11 +52,5 @@ export interface ProductAccountMappingDetailClass {
52
52
  * @memberof ProductAccountMappingDetailClass
53
53
  */
54
54
  'versions': Array<ProductVersionWithAccountMappingsClass>;
55
- /**
56
- * The product\'s risk carrier, or absent when it has none. Present means this product\'s claim cost books as a receivable from that carrier; absent means it books the tenant\'s own claim expense. Independent of accountMappings: a claim_expense_acc override may exist either way, and a carrier uses no mapping row at all.
57
- * @type {string}
58
- * @memberof ProductAccountMappingDetailClass
59
- */
60
- 'riskCarrierPartnerCode'?: string;
61
55
  }
62
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.74",
3
+ "version": "1.34.1-beta.76",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.20.0"
21
+ "axios": "1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24
 
@@ -1,42 +0,0 @@
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 ProductRiskCarrierClass
16
- */
17
- export interface ProductRiskCarrierClass {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ProductRiskCarrierClass
22
- */
23
- 'productCode': string;
24
- /**
25
- * The risk carrier that reimburses this product’s claim payouts. The code only — this service never resolves or returns a partner name. While this mapping exists, the product’s claim cost books against the carrier receivable account instead of a claim expense account.
26
- * @type {string}
27
- * @memberof ProductRiskCarrierClass
28
- */
29
- 'partnerCode': string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ProductRiskCarrierClass
34
- */
35
- 'createdAt'?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ProductRiskCarrierClass
40
- */
41
- 'updatedAt'?: string;
42
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,24 +0,0 @@
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 PutProductRiskCarrierBodyDto
16
- */
17
- export interface PutProductRiskCarrierBodyDto {
18
- /**
19
- * The risk carrier that reimburses this product’s claim payouts. Setting it books the product’s claim cost against the carrier receivable account; delete the mapping to book claim expense instead.
20
- * @type {string}
21
- * @memberof PutProductRiskCarrierBodyDto
22
- */
23
- 'partnerCode': string;
24
- }
@@ -1,15 +0,0 @@
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 });
@@ -1,48 +0,0 @@
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 ProductRiskCarrierClass
21
- */
22
- export interface ProductRiskCarrierClass {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof ProductRiskCarrierClass
27
- */
28
- 'productCode': string;
29
- /**
30
- * The risk carrier that reimburses this product’s claim payouts. The code only — this service never resolves or returns a partner name. While this mapping exists, the product’s claim cost books against the carrier receivable account instead of a claim expense account.
31
- * @type {string}
32
- * @memberof ProductRiskCarrierClass
33
- */
34
- 'partnerCode': string;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof ProductRiskCarrierClass
39
- */
40
- 'createdAt'?: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ProductRiskCarrierClass
45
- */
46
- 'updatedAt'?: string;
47
- }
48
-
@@ -1,30 +0,0 @@
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 PutProductRiskCarrierBodyDto
21
- */
22
- export interface PutProductRiskCarrierBodyDto {
23
- /**
24
- * The risk carrier that reimburses this product’s claim payouts. Setting it books the product’s claim cost against the carrier receivable account; delete the mapping to book claim expense instead.
25
- * @type {string}
26
- * @memberof PutProductRiskCarrierBodyDto
27
- */
28
- 'partnerCode': string;
29
- }
30
-