@emilgroup/accounting-sdk 1.34.1-beta.113 → 1.34.1-beta.114

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 (61) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +64 -24
  4. package/api/booking-entries-api.ts +40 -15
  5. package/api/commission-account-mappings-api.ts +64 -24
  6. package/api/financial-accounts-api.ts +40 -15
  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 +377 -36
  12. package/base.ts +239 -43
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +8 -8
  16. package/dist/api/accounting-configs-api.js +120 -64
  17. package/dist/api/booking-entries-api.d.ts +5 -5
  18. package/dist/api/booking-entries-api.js +67 -38
  19. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  20. package/dist/api/commission-account-mappings-api.js +108 -61
  21. package/dist/api/financial-accounts-api.d.ts +5 -5
  22. package/dist/api/financial-accounts-api.js +67 -38
  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 +168 -12
  32. package/dist/api/product-account-mappings-api.js +401 -94
  33. package/dist/base.d.ts +26 -0
  34. package/dist/base.js +243 -60
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +1 -0
  37. package/dist/configuration.d.ts +17 -0
  38. package/dist/configuration.js +2 -0
  39. package/dist/models/account-mapping-class.d.ts +3 -2
  40. package/dist/models/account-mapping-class.js +4 -3
  41. package/dist/models/accounting-category-class.d.ts +12 -0
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +3 -2
  43. package/dist/models/accounting-config-data-dto-default-account-mappings.js +4 -3
  44. package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
  45. package/dist/models/create-booking-entry-request-dto.js +0 -6
  46. package/dist/models/create-financial-account-request-dto.d.ts +3 -2
  47. package/dist/models/create-financial-account-request-dto.js +4 -3
  48. package/dist/models/index.d.ts +1 -0
  49. package/dist/models/index.js +1 -0
  50. package/dist/models/premium-item-account-mapping-class.d.ts +12 -0
  51. package/dist/models/put-premium-item-carrier-body-dto.d.ts +24 -0
  52. package/dist/models/put-premium-item-carrier-body-dto.js +15 -0
  53. package/models/account-mapping-class.ts +4 -3
  54. package/models/accounting-category-class.ts +12 -0
  55. package/models/accounting-config-data-dto-default-account-mappings.ts +4 -3
  56. package/models/create-booking-entry-request-dto.ts +1 -7
  57. package/models/create-financial-account-request-dto.ts +4 -3
  58. package/models/index.ts +1 -0
  59. package/models/premium-item-account-mapping-class.ts +12 -0
  60. package/models/put-premium-item-carrier-body-dto.ts +30 -0
  61. package/package.json +2 -2
@@ -47,7 +47,7 @@ export interface CreateBookingEntryRequestDto {
47
47
  */
48
48
  'sourceEntityCode'?: string;
49
49
  /**
50
- * 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.
50
+ * 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 can only be typed manual: every other type is refused, since only its posting flow writes or reads it.
51
51
  * @type {string}
52
52
  * @memberof CreateBookingEntryRequestDto
53
53
  */
@@ -74,12 +74,6 @@ export interface CreateBookingEntryRequestDto {
74
74
  'financialTransactions': Array<FinancialTransactionDataDto>;
75
75
  }
76
76
  export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
77
- readonly Payment: "payment";
78
- readonly Credit: "credit";
79
- readonly CreditAllocation: "credit_allocation";
80
- readonly ClaimRegulation: "claim_regulation";
81
- readonly Commission: "commission";
82
- readonly PaymentReceipt: "payment_receipt";
83
77
  readonly Manual: "manual";
84
78
  };
85
79
  export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
@@ -15,11 +15,5 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
17
17
  exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
18
- Payment: 'payment',
19
- Credit: 'credit',
20
- CreditAllocation: 'credit_allocation',
21
- ClaimRegulation: 'claim_regulation',
22
- Commission: 'commission',
23
- PaymentReceipt: 'payment_receipt',
24
18
  Manual: 'manual'
25
19
  };
@@ -111,16 +111,17 @@ export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
111
111
  readonly ClaimExpenseAcc: "claim_expense_acc";
112
112
  readonly CustomerCreditLiabAcc: "customer_credit_liab_acc";
113
113
  readonly WriteOffExpAcc: "write_off_exp_acc";
114
- readonly RoundingDiffAcc: "rounding_diff_acc";
115
114
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
116
115
  readonly FeeRevenueAcc: "fee_revenue_acc";
117
116
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
118
- readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
119
117
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
120
118
  readonly BrokerCtrlAcc: "broker_ctrl_acc";
121
119
  readonly CarrierCtrlAcc: "carrier_ctrl_acc";
122
120
  readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
123
121
  readonly ClaimsPayableAcc: "claims_payable_acc";
124
122
  readonly CarrierReceivableAcc: "carrier_receivable_acc";
123
+ readonly BankTransitAcc: "bank_transit_acc";
124
+ readonly CarrierPendingAcc: "carrier_pending_acc";
125
+ readonly CommissionExpenseAcc: "commission_expense_acc";
125
126
  };
126
127
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
@@ -34,15 +34,16 @@ exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
34
34
  ClaimExpenseAcc: 'claim_expense_acc',
35
35
  CustomerCreditLiabAcc: 'customer_credit_liab_acc',
36
36
  WriteOffExpAcc: 'write_off_exp_acc',
37
- RoundingDiffAcc: 'rounding_diff_acc',
38
37
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
39
38
  FeeRevenueAcc: 'fee_revenue_acc',
40
39
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
41
- OpeningBalEquityAcc: 'opening_bal_equity_acc',
42
40
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
43
41
  BrokerCtrlAcc: 'broker_ctrl_acc',
44
42
  CarrierCtrlAcc: 'carrier_ctrl_acc',
45
43
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
46
44
  ClaimsPayableAcc: 'claims_payable_acc',
47
- CarrierReceivableAcc: 'carrier_receivable_acc'
45
+ CarrierReceivableAcc: 'carrier_receivable_acc',
46
+ BankTransitAcc: 'bank_transit_acc',
47
+ CarrierPendingAcc: 'carrier_pending_acc',
48
+ CommissionExpenseAcc: 'commission_expense_acc'
48
49
  };
@@ -62,6 +62,7 @@ export * from './product-version-account-mapping-detail-class';
62
62
  export * from './product-version-with-account-mappings-class';
63
63
  export * from './product-with-account-mappings-class';
64
64
  export * from './put-premium-item-account-body-dto';
65
+ export * from './put-premium-item-carrier-body-dto';
65
66
  export * from './put-product-category-account-body-dto';
66
67
  export * from './put-product-risk-carrier-body-dto';
67
68
  export * from './put-product-version-category-account-body-dto';
@@ -78,6 +78,7 @@ __exportStar(require("./product-version-account-mapping-detail-class"), exports)
78
78
  __exportStar(require("./product-version-with-account-mappings-class"), exports);
79
79
  __exportStar(require("./product-with-account-mappings-class"), exports);
80
80
  __exportStar(require("./put-premium-item-account-body-dto"), exports);
81
+ __exportStar(require("./put-premium-item-carrier-body-dto"), exports);
81
82
  __exportStar(require("./put-product-category-account-body-dto"), exports);
82
83
  __exportStar(require("./put-product-risk-carrier-body-dto"), exports);
83
84
  __exportStar(require("./put-product-version-category-account-body-dto"), exports);
@@ -34,4 +34,16 @@ export interface PremiumItemAccountMappingClass {
34
34
  * @memberof PremiumItemAccountMappingClass
35
35
  */
36
36
  'accountMappings': Array<ResolvedAccountMappingClass>;
37
+ /**
38
+ * Set when the item is mapped to a risk carrier instead of accounts: its amount is owed to that partner and is not the tenant’s revenue. accountMappings is empty then. The code only, never a name.
39
+ * @type {string}
40
+ * @memberof PremiumItemAccountMappingClass
41
+ */
42
+ 'carrierPartnerCode'?: string;
43
+ /**
44
+ * The number of the carrier’s personal account, once it exists. The first booking that moves money to the carrier creates it.
45
+ * @type {string}
46
+ * @memberof PremiumItemAccountMappingClass
47
+ */
48
+ 'carrierPersonalAccountNumber'?: string;
37
49
  }
@@ -0,0 +1,24 @@
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 PutPremiumItemCarrierBodyDto
16
+ */
17
+ export interface PutPremiumItemCarrierBodyDto {
18
+ /**
19
+ * The risk carrier whose share this premium item is. The partner must hold the subtype RISK_CARRIER. Saving it replaces the item’s account mappings; delete the carrier to book the item as revenue again.
20
+ * @type {string}
21
+ * @memberof PutPremiumItemCarrierBodyDto
22
+ */
23
+ 'partnerCode': string;
24
+ }
@@ -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 });
@@ -64,17 +64,18 @@ export const AccountMappingClassFunctionalCategoryEnum = {
64
64
  ClaimExpenseAcc: 'claim_expense_acc',
65
65
  CustomerCreditLiabAcc: 'customer_credit_liab_acc',
66
66
  WriteOffExpAcc: 'write_off_exp_acc',
67
- RoundingDiffAcc: 'rounding_diff_acc',
68
67
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
69
68
  FeeRevenueAcc: 'fee_revenue_acc',
70
69
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
71
- OpeningBalEquityAcc: 'opening_bal_equity_acc',
72
70
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
73
71
  BrokerCtrlAcc: 'broker_ctrl_acc',
74
72
  CarrierCtrlAcc: 'carrier_ctrl_acc',
75
73
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
76
74
  ClaimsPayableAcc: 'claims_payable_acc',
77
- CarrierReceivableAcc: 'carrier_receivable_acc'
75
+ CarrierReceivableAcc: 'carrier_receivable_acc',
76
+ BankTransitAcc: 'bank_transit_acc',
77
+ CarrierPendingAcc: 'carrier_pending_acc',
78
+ CommissionExpenseAcc: 'commission_expense_acc'
78
79
  } as const;
79
80
 
80
81
  export type AccountMappingClassFunctionalCategoryEnum = typeof AccountMappingClassFunctionalCategoryEnum[keyof typeof AccountMappingClassFunctionalCategoryEnum];
@@ -38,6 +38,18 @@ export interface AccountingCategoryClass {
38
38
  * @memberof AccountingCategoryClass
39
39
  */
40
40
  'type': AccountingCategoryClassTypeEnum;
41
+ /**
42
+ * The account number this category is given when the default chart of accounts is provisioned. Categories are returned in ascending order of this number.
43
+ * @type {string}
44
+ * @memberof AccountingCategoryClass
45
+ */
46
+ 'defaultAccountNumber': string;
47
+ /**
48
+ * True if an account of this category can carry an opening balance.
49
+ * @type {boolean}
50
+ * @memberof AccountingCategoryClass
51
+ */
52
+ 'canCarryOpeningBalance': boolean;
41
53
  }
42
54
 
43
55
  export const AccountingCategoryClassTypeEnum = {
@@ -70,17 +70,18 @@ export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum
70
70
  ClaimExpenseAcc: 'claim_expense_acc',
71
71
  CustomerCreditLiabAcc: 'customer_credit_liab_acc',
72
72
  WriteOffExpAcc: 'write_off_exp_acc',
73
- RoundingDiffAcc: 'rounding_diff_acc',
74
73
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
75
74
  FeeRevenueAcc: 'fee_revenue_acc',
76
75
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
77
- OpeningBalEquityAcc: 'opening_bal_equity_acc',
78
76
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
79
77
  BrokerCtrlAcc: 'broker_ctrl_acc',
80
78
  CarrierCtrlAcc: 'carrier_ctrl_acc',
81
79
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
82
80
  ClaimsPayableAcc: 'claims_payable_acc',
83
- CarrierReceivableAcc: 'carrier_receivable_acc'
81
+ CarrierReceivableAcc: 'carrier_receivable_acc',
82
+ BankTransitAcc: 'bank_transit_acc',
83
+ CarrierPendingAcc: 'carrier_pending_acc',
84
+ CommissionExpenseAcc: 'commission_expense_acc'
84
85
  } as const;
85
86
 
86
87
  export type AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum[keyof typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum];
@@ -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. Omitted, the entry is typed manual. An entry posted by hand can only be typed manual: every other type is refused, since only its posting flow writes or reads it.
56
56
  * @type {string}
57
57
  * @memberof CreateBookingEntryRequestDto
58
58
  */
@@ -78,12 +78,6 @@ export interface CreateBookingEntryRequestDto {
78
78
  }
79
79
 
80
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
81
  Manual: 'manual'
88
82
  } as const;
89
83
 
@@ -116,17 +116,18 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
116
116
  ClaimExpenseAcc: 'claim_expense_acc',
117
117
  CustomerCreditLiabAcc: 'customer_credit_liab_acc',
118
118
  WriteOffExpAcc: 'write_off_exp_acc',
119
- RoundingDiffAcc: 'rounding_diff_acc',
120
119
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
121
120
  FeeRevenueAcc: 'fee_revenue_acc',
122
121
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
123
- OpeningBalEquityAcc: 'opening_bal_equity_acc',
124
122
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
125
123
  BrokerCtrlAcc: 'broker_ctrl_acc',
126
124
  CarrierCtrlAcc: 'carrier_ctrl_acc',
127
125
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
128
126
  ClaimsPayableAcc: 'claims_payable_acc',
129
- CarrierReceivableAcc: 'carrier_receivable_acc'
127
+ CarrierReceivableAcc: 'carrier_receivable_acc',
128
+ BankTransitAcc: 'bank_transit_acc',
129
+ CarrierPendingAcc: 'carrier_pending_acc',
130
+ CommissionExpenseAcc: 'commission_expense_acc'
130
131
  } as const;
131
132
 
132
133
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
package/models/index.ts CHANGED
@@ -62,6 +62,7 @@ export * from './product-version-account-mapping-detail-class';
62
62
  export * from './product-version-with-account-mappings-class';
63
63
  export * from './product-with-account-mappings-class';
64
64
  export * from './put-premium-item-account-body-dto';
65
+ export * from './put-premium-item-carrier-body-dto';
65
66
  export * from './put-product-category-account-body-dto';
66
67
  export * from './put-product-risk-carrier-body-dto';
67
68
  export * from './put-product-version-category-account-body-dto';
@@ -39,5 +39,17 @@ export interface PremiumItemAccountMappingClass {
39
39
  * @memberof PremiumItemAccountMappingClass
40
40
  */
41
41
  'accountMappings': Array<ResolvedAccountMappingClass>;
42
+ /**
43
+ * Set when the item is mapped to a risk carrier instead of accounts: its amount is owed to that partner and is not the tenant’s revenue. accountMappings is empty then. The code only, never a name.
44
+ * @type {string}
45
+ * @memberof PremiumItemAccountMappingClass
46
+ */
47
+ 'carrierPartnerCode'?: string;
48
+ /**
49
+ * The number of the carrier’s personal account, once it exists. The first booking that moves money to the carrier creates it.
50
+ * @type {string}
51
+ * @memberof PremiumItemAccountMappingClass
52
+ */
53
+ 'carrierPersonalAccountNumber'?: string;
42
54
  }
43
55
 
@@ -0,0 +1,30 @@
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 PutPremiumItemCarrierBodyDto
21
+ */
22
+ export interface PutPremiumItemCarrierBodyDto {
23
+ /**
24
+ * The risk carrier whose share this premium item is. The partner must hold the subtype RISK_CARRIER. Saving it replaces the item’s account mappings; delete the carrier to book the item as revenue again.
25
+ * @type {string}
26
+ * @memberof PutPremiumItemCarrierBodyDto
27
+ */
28
+ 'partnerCode': string;
29
+ }
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.113",
3
+ "version": "1.34.1-beta.114",
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.18.0"
21
+ "axios": "1.20.0"
22
22
  },
23
23
  "devDependencies": {
24
24