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

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 +0 -1
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +24 -64
  4. package/api/booking-entries-api.ts +15 -40
  5. package/api/commission-account-mappings-api.ts +24 -64
  6. package/api/financial-accounts-api.ts +15 -40
  7. package/api/financial-transactions-api.ts +6 -16
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +12 -32
  10. package/api/personal-accounts-api.ts +12 -32
  11. package/api/product-account-mappings-api.ts +36 -377
  12. package/base.ts +43 -239
  13. package/common.ts +2 -3
  14. package/configuration.ts +0 -20
  15. package/dist/api/accounting-configs-api.d.ts +8 -8
  16. package/dist/api/accounting-configs-api.js +64 -120
  17. package/dist/api/booking-entries-api.d.ts +5 -5
  18. package/dist/api/booking-entries-api.js +38 -67
  19. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  20. package/dist/api/commission-account-mappings-api.js +61 -108
  21. package/dist/api/financial-accounts-api.d.ts +5 -5
  22. package/dist/api/financial-accounts-api.js +38 -67
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +14 -22
  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 +30 -52
  29. package/dist/api/personal-accounts-api.d.ts +4 -4
  30. package/dist/api/personal-accounts-api.js +30 -52
  31. package/dist/api/product-account-mappings-api.d.ts +12 -168
  32. package/dist/api/product-account-mappings-api.js +94 -401
  33. package/dist/base.d.ts +0 -26
  34. package/dist/base.js +60 -243
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +0 -1
  37. package/dist/configuration.d.ts +0 -17
  38. package/dist/configuration.js +0 -2
  39. package/dist/models/account-mapping-class.d.ts +2 -3
  40. package/dist/models/account-mapping-class.js +3 -4
  41. package/dist/models/accounting-category-class.d.ts +0 -12
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -3
  43. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -4
  44. package/dist/models/create-booking-entry-request-dto.d.ts +7 -1
  45. package/dist/models/create-booking-entry-request-dto.js +6 -0
  46. package/dist/models/create-financial-account-request-dto.d.ts +2 -3
  47. package/dist/models/create-financial-account-request-dto.js +3 -4
  48. package/dist/models/index.d.ts +0 -1
  49. package/dist/models/index.js +0 -1
  50. package/dist/models/premium-item-account-mapping-class.d.ts +0 -12
  51. package/models/account-mapping-class.ts +3 -4
  52. package/models/accounting-category-class.ts +0 -12
  53. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -4
  54. package/models/create-booking-entry-request-dto.ts +7 -1
  55. package/models/create-financial-account-request-dto.ts +3 -4
  56. package/models/index.ts +0 -1
  57. package/models/premium-item-account-mapping-class.ts +0 -12
  58. package/package.json +2 -2
  59. package/dist/models/put-premium-item-carrier-body-dto.d.ts +0 -24
  60. package/dist/models/put-premium-item-carrier-body-dto.js +0 -15
  61. package/models/put-premium-item-carrier-body-dto.ts +0 -30
@@ -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 can only be typed manual: every other type is refused, since only its posting flow writes or reads it.
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.
51
51
  * @type {string}
52
52
  * @memberof CreateBookingEntryRequestDto
53
53
  */
@@ -74,6 +74,12 @@ 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";
77
83
  readonly Manual: "manual";
78
84
  };
79
85
  export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
@@ -15,5 +15,11 @@
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',
18
24
  Manual: 'manual'
19
25
  };
@@ -111,17 +111,16 @@ 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";
114
115
  readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
115
116
  readonly FeeRevenueAcc: "fee_revenue_acc";
116
117
  readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
118
+ readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
117
119
  readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
118
120
  readonly BrokerCtrlAcc: "broker_ctrl_acc";
119
121
  readonly CarrierCtrlAcc: "carrier_ctrl_acc";
120
122
  readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
121
123
  readonly ClaimsPayableAcc: "claims_payable_acc";
122
124
  readonly CarrierReceivableAcc: "carrier_receivable_acc";
123
- readonly BankTransitAcc: "bank_transit_acc";
124
- readonly CarrierPendingAcc: "carrier_pending_acc";
125
- readonly CommissionExpenseAcc: "commission_expense_acc";
126
125
  };
127
126
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
@@ -34,16 +34,15 @@ 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',
37
38
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
38
39
  FeeRevenueAcc: 'fee_revenue_acc',
39
40
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
41
+ OpeningBalEquityAcc: 'opening_bal_equity_acc',
40
42
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
41
43
  BrokerCtrlAcc: 'broker_ctrl_acc',
42
44
  CarrierCtrlAcc: 'carrier_ctrl_acc',
43
45
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
44
46
  ClaimsPayableAcc: 'claims_payable_acc',
45
- CarrierReceivableAcc: 'carrier_receivable_acc',
46
- BankTransitAcc: 'bank_transit_acc',
47
- CarrierPendingAcc: 'carrier_pending_acc',
48
- CommissionExpenseAcc: 'commission_expense_acc'
47
+ CarrierReceivableAcc: 'carrier_receivable_acc'
49
48
  };
@@ -62,7 +62,6 @@ 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';
66
65
  export * from './put-product-category-account-body-dto';
67
66
  export * from './put-product-risk-carrier-body-dto';
68
67
  export * from './put-product-version-category-account-body-dto';
@@ -78,7 +78,6 @@ __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);
82
81
  __exportStar(require("./put-product-category-account-body-dto"), exports);
83
82
  __exportStar(require("./put-product-risk-carrier-body-dto"), exports);
84
83
  __exportStar(require("./put-product-version-category-account-body-dto"), exports);
@@ -34,16 +34,4 @@ 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;
49
37
  }
@@ -64,18 +64,17 @@ 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',
67
68
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
68
69
  FeeRevenueAcc: 'fee_revenue_acc',
69
70
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
71
+ OpeningBalEquityAcc: 'opening_bal_equity_acc',
70
72
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
71
73
  BrokerCtrlAcc: 'broker_ctrl_acc',
72
74
  CarrierCtrlAcc: 'carrier_ctrl_acc',
73
75
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
74
76
  ClaimsPayableAcc: 'claims_payable_acc',
75
- CarrierReceivableAcc: 'carrier_receivable_acc',
76
- BankTransitAcc: 'bank_transit_acc',
77
- CarrierPendingAcc: 'carrier_pending_acc',
78
- CommissionExpenseAcc: 'commission_expense_acc'
77
+ CarrierReceivableAcc: 'carrier_receivable_acc'
79
78
  } as const;
80
79
 
81
80
  export type AccountMappingClassFunctionalCategoryEnum = typeof AccountMappingClassFunctionalCategoryEnum[keyof typeof AccountMappingClassFunctionalCategoryEnum];
@@ -38,18 +38,6 @@ 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;
53
41
  }
54
42
 
55
43
  export const AccountingCategoryClassTypeEnum = {
@@ -70,18 +70,17 @@ 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',
73
74
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
74
75
  FeeRevenueAcc: 'fee_revenue_acc',
75
76
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
77
+ OpeningBalEquityAcc: 'opening_bal_equity_acc',
76
78
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
77
79
  BrokerCtrlAcc: 'broker_ctrl_acc',
78
80
  CarrierCtrlAcc: 'carrier_ctrl_acc',
79
81
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
80
82
  ClaimsPayableAcc: 'claims_payable_acc',
81
- CarrierReceivableAcc: 'carrier_receivable_acc',
82
- BankTransitAcc: 'bank_transit_acc',
83
- CarrierPendingAcc: 'carrier_pending_acc',
84
- CommissionExpenseAcc: 'commission_expense_acc'
83
+ CarrierReceivableAcc: 'carrier_receivable_acc'
85
84
  } as const;
86
85
 
87
86
  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 can only be typed manual: every other type is refused, since only its posting flow writes or reads it.
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
56
  * @type {string}
57
57
  * @memberof CreateBookingEntryRequestDto
58
58
  */
@@ -78,6 +78,12 @@ 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',
81
87
  Manual: 'manual'
82
88
  } as const;
83
89
 
@@ -116,18 +116,17 @@ 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',
119
120
  PaymentFeesExpAcc: 'payment_fees_exp_acc',
120
121
  FeeRevenueAcc: 'fee_revenue_acc',
121
122
  UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
123
+ OpeningBalEquityAcc: 'opening_bal_equity_acc',
122
124
  ReceivablesCtrlAcc: 'receivables_ctrl_acc',
123
125
  BrokerCtrlAcc: 'broker_ctrl_acc',
124
126
  CarrierCtrlAcc: 'carrier_ctrl_acc',
125
127
  MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
126
128
  ClaimsPayableAcc: 'claims_payable_acc',
127
- CarrierReceivableAcc: 'carrier_receivable_acc',
128
- BankTransitAcc: 'bank_transit_acc',
129
- CarrierPendingAcc: 'carrier_pending_acc',
130
- CommissionExpenseAcc: 'commission_expense_acc'
129
+ CarrierReceivableAcc: 'carrier_receivable_acc'
131
130
  } as const;
132
131
 
133
132
  export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
package/models/index.ts CHANGED
@@ -62,7 +62,6 @@ 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';
66
65
  export * from './put-product-category-account-body-dto';
67
66
  export * from './put-product-risk-carrier-body-dto';
68
67
  export * from './put-product-version-category-account-body-dto';
@@ -39,17 +39,5 @@ 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;
54
42
  }
55
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.112",
3
+ "version": "1.34.1-beta.113",
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,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 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
- }
@@ -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,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 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
-