@emilgroup/accounting-sdk-node 1.0.1-beta.3 → 1.0.1-beta.4

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk-node@1.0.1-beta.3 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.0.1-beta.4 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.3
24
+ yarn add @emilgroup/accounting-sdk-node@1.0.1-beta.4
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -17,55 +17,61 @@ import { FinancialTransactionDataDto } from './financial-transaction-data-dto';
17
17
  */
18
18
  export interface CreateBookingEntryRequestDto {
19
19
  /**
20
- *
20
+ * The date of the booking entry. This represents when the transaction or booking was recorded. Defaults to the current date if not provided.
21
21
  * @type {string}
22
22
  * @memberof CreateBookingEntryRequestDto
23
23
  */
24
24
  'bookingDate'?: string;
25
25
  /**
26
- *
26
+ * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
27
27
  * @type {string}
28
28
  * @memberof CreateBookingEntryRequestDto
29
29
  */
30
30
  'description': string;
31
31
  /**
32
- *
32
+ * The policy number associated with this booking entry. This uniquely identifies the policy related to the transaction.
33
33
  * @type {string}
34
34
  * @memberof CreateBookingEntryRequestDto
35
35
  */
36
36
  'policyNumber': string;
37
37
  /**
38
- *
38
+ * The type of entity associated with this entry, such as invoice or payment. This helps categorize the nature of the booking entry.
39
39
  * @type {string}
40
40
  * @memberof CreateBookingEntryRequestDto
41
41
  */
42
42
  'entityName': CreateBookingEntryRequestDtoEntityNameEnum;
43
43
  /**
44
- *
44
+ * The unique number assigned to the entity, such as an invoice or payment reference number.
45
45
  * @type {string}
46
46
  * @memberof CreateBookingEntryRequestDto
47
47
  */
48
48
  'entityNumber': string;
49
49
  /**
50
- *
50
+ * The currency of the transaction amount, defaulting to EUR (Euro) if not otherwise specified.
51
51
  * @type {string}
52
52
  * @memberof CreateBookingEntryRequestDto
53
53
  */
54
54
  'currency': CreateBookingEntryRequestDtoCurrencyEnum;
55
55
  /**
56
- *
56
+ * The monetary value of the booking entry, expressed as an integer in the smallest currency unit (e.g., cents for EUR). Must be a non-negative integer.
57
57
  * @type {number}
58
58
  * @memberof CreateBookingEntryRequestDto
59
59
  */
60
60
  'amount': number;
61
61
  /**
62
- *
62
+ * An optional identifier for the booking process associated with this entry. This helps to link the entry to a specific booking process if applicable.
63
63
  * @type {number}
64
64
  * @memberof CreateBookingEntryRequestDto
65
65
  */
66
66
  'bookingProcessId'?: number;
67
67
  /**
68
- *
68
+ * Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
69
+ * @type {object}
70
+ * @memberof CreateBookingEntryRequestDto
71
+ */
72
+ 'customFields': object;
73
+ /**
74
+ * An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
69
75
  * @type {Array<FinancialTransactionDataDto>}
70
76
  * @memberof CreateBookingEntryRequestDto
71
77
  */
@@ -17,25 +17,31 @@ import { CreateBookingEntryRequestDto } from './create-booking-entry-request-dto
17
17
  */
18
18
  export interface CreateBookingProcessRequestDto {
19
19
  /**
20
- *
20
+ * The unique policy number associated with this booking process. This is used to identify the relevant insurance policy or agreement for which the booking process is being created.
21
21
  * @type {string}
22
22
  * @memberof CreateBookingProcessRequestDto
23
23
  */
24
24
  'policyNumber': string;
25
25
  /**
26
- *
26
+ * The current status of the booking process, indicating its completion or settlement stage, such as invoiced or paid, etc...
27
27
  * @type {string}
28
28
  * @memberof CreateBookingProcessRequestDto
29
29
  */
30
30
  'status': CreateBookingProcessRequestDtoStatusEnum;
31
31
  /**
32
- *
32
+ * The type of booking process being created, such as recurringInvoice or \" initialInvoice. This helps categorize the nature of the booking within the system.
33
33
  * @type {string}
34
34
  * @memberof CreateBookingProcessRequestDto
35
35
  */
36
36
  'bookingProcessType': CreateBookingProcessRequestDtoBookingProcessTypeEnum;
37
37
  /**
38
- *
38
+ * Optional key-value pairs containing additional custom information for the booking process. These fields allow flexibility to include metadata or specific attributes related to the booking.
39
+ * @type {object}
40
+ * @memberof CreateBookingProcessRequestDto
41
+ */
42
+ 'customFields': object;
43
+ /**
44
+ * An array of booking entries associated with this booking process. Each entry represents an individual transaction or action related to the booking and contains details such as amount, date, and descriptions.
39
45
  * @type {Array<CreateBookingEntryRequestDto>}
40
46
  * @memberof CreateBookingProcessRequestDto
41
47
  */
@@ -16,35 +16,41 @@
16
16
  */
17
17
  export interface CreateFinancialAccountRequestDto {
18
18
  /**
19
- *
19
+ * The name of the financial account. This is a descriptive label used to identify the account within the system.
20
20
  * @type {string}
21
21
  * @memberof CreateFinancialAccountRequestDto
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- *
25
+ * The unique account number assigned to this financial account. This number is used to route transactions and manage the account within the financial system.
26
26
  * @type {string}
27
27
  * @memberof CreateFinancialAccountRequestDto
28
28
  */
29
29
  'financialAccountNumber': string;
30
30
  /**
31
- *
31
+ * The type of financial account, specifying its category or classification, such as asset, equity, or expense. This categorization helps in accounting and reporting.
32
32
  * @type {string}
33
33
  * @memberof CreateFinancialAccountRequestDto
34
34
  */
35
35
  'type': CreateFinancialAccountRequestDtoTypeEnum;
36
36
  /**
37
- *
37
+ * An optional code representing the entity associated with this account. Useful for associating the account with specific organizational entities or departments.
38
38
  * @type {string}
39
39
  * @memberof CreateFinancialAccountRequestDto
40
40
  */
41
41
  'entityCode'?: string;
42
42
  /**
43
- *
43
+ * An optional identifier for the parent account. If provided, this allows the creation of sub-accounts under a parent financial account, establishing a hierarchy.
44
44
  * @type {number}
45
45
  * @memberof CreateFinancialAccountRequestDto
46
46
  */
47
47
  'parentId'?: number;
48
+ /**
49
+ * Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
50
+ * @type {object}
51
+ * @memberof CreateFinancialAccountRequestDto
52
+ */
53
+ 'customFields': object;
48
54
  }
49
55
  export declare const CreateFinancialAccountRequestDtoTypeEnum: {
50
56
  readonly Asset: "asset";
@@ -16,43 +16,49 @@
16
16
  */
17
17
  export interface FinancialTransactionDataDto {
18
18
  /**
19
- *
19
+ * The unique identifier of the financial account associated with the transaction. This is used to route the transaction to the correct account in the financial ledger.
20
20
  * @type {string}
21
21
  * @memberof FinancialTransactionDataDto
22
22
  */
23
23
  'financialAccountNumber': string;
24
24
  /**
25
- *
25
+ * The monetary value of the transaction, expressed as an integer in the smallest currency unit (e.g., cents). This represents the exact amount being debited or credited. The value must be an integer.
26
26
  * @type {number}
27
27
  * @memberof FinancialTransactionDataDto
28
28
  */
29
29
  'amount': number;
30
30
  /**
31
- *
31
+ * Specifies whether the transaction is a debit or a credit. A debit indicates an outgoing payment, while a credit represents incoming funds.
32
32
  * @type {string}
33
33
  * @memberof FinancialTransactionDataDto
34
34
  */
35
35
  'debitCredit': FinancialTransactionDataDtoDebitCreditEnum;
36
36
  /**
37
- *
37
+ * The unique number assigned to the partner involved in the transaction, typically representing a customer, supplier, or other associated party.
38
38
  * @type {string}
39
39
  * @memberof FinancialTransactionDataDto
40
40
  */
41
41
  'partnerNumber': string;
42
42
  /**
43
- *
43
+ * An optional grouping identifier for the partner, used for categorization and reporting purposes.
44
44
  * @type {string}
45
45
  * @memberof FinancialTransactionDataDto
46
46
  */
47
47
  'partnerGroup'?: string;
48
48
  /**
49
- *
49
+ * The policy number related to this transaction, used for referencing the associated insurance policy or agreement.
50
50
  * @type {string}
51
51
  * @memberof FinancialTransactionDataDto
52
52
  */
53
53
  'policyNumber': string;
54
54
  /**
55
- *
55
+ * Optional additional information related to the transaction, structured as key-value pairs. These fields may include metadata, identifiers, or contextual details for custom processing.
56
+ * @type {object}
57
+ * @memberof FinancialTransactionDataDto
58
+ */
59
+ 'customFields': object;
60
+ /**
61
+ * A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
56
62
  * @type {string}
57
63
  * @memberof FinancialTransactionDataDto
58
64
  */
@@ -22,55 +22,61 @@ import { FinancialTransactionDataDto } from './financial-transaction-data-dto';
22
22
  */
23
23
  export interface CreateBookingEntryRequestDto {
24
24
  /**
25
- *
25
+ * The date of the booking entry. This represents when the transaction or booking was recorded. Defaults to the current date if not provided.
26
26
  * @type {string}
27
27
  * @memberof CreateBookingEntryRequestDto
28
28
  */
29
29
  'bookingDate'?: string;
30
30
  /**
31
- *
31
+ * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
32
32
  * @type {string}
33
33
  * @memberof CreateBookingEntryRequestDto
34
34
  */
35
35
  'description': string;
36
36
  /**
37
- *
37
+ * The policy number associated with this booking entry. This uniquely identifies the policy related to the transaction.
38
38
  * @type {string}
39
39
  * @memberof CreateBookingEntryRequestDto
40
40
  */
41
41
  'policyNumber': string;
42
42
  /**
43
- *
43
+ * The type of entity associated with this entry, such as invoice or payment. This helps categorize the nature of the booking entry.
44
44
  * @type {string}
45
45
  * @memberof CreateBookingEntryRequestDto
46
46
  */
47
47
  'entityName': CreateBookingEntryRequestDtoEntityNameEnum;
48
48
  /**
49
- *
49
+ * The unique number assigned to the entity, such as an invoice or payment reference number.
50
50
  * @type {string}
51
51
  * @memberof CreateBookingEntryRequestDto
52
52
  */
53
53
  'entityNumber': string;
54
54
  /**
55
- *
55
+ * The currency of the transaction amount, defaulting to EUR (Euro) if not otherwise specified.
56
56
  * @type {string}
57
57
  * @memberof CreateBookingEntryRequestDto
58
58
  */
59
59
  'currency': CreateBookingEntryRequestDtoCurrencyEnum;
60
60
  /**
61
- *
61
+ * The monetary value of the booking entry, expressed as an integer in the smallest currency unit (e.g., cents for EUR). Must be a non-negative integer.
62
62
  * @type {number}
63
63
  * @memberof CreateBookingEntryRequestDto
64
64
  */
65
65
  'amount': number;
66
66
  /**
67
- *
67
+ * An optional identifier for the booking process associated with this entry. This helps to link the entry to a specific booking process if applicable.
68
68
  * @type {number}
69
69
  * @memberof CreateBookingEntryRequestDto
70
70
  */
71
71
  'bookingProcessId'?: number;
72
72
  /**
73
- *
73
+ * Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
74
+ * @type {object}
75
+ * @memberof CreateBookingEntryRequestDto
76
+ */
77
+ 'customFields': object;
78
+ /**
79
+ * An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
74
80
  * @type {Array<FinancialTransactionDataDto>}
75
81
  * @memberof CreateBookingEntryRequestDto
76
82
  */
@@ -22,25 +22,31 @@ import { CreateBookingEntryRequestDto } from './create-booking-entry-request-dto
22
22
  */
23
23
  export interface CreateBookingProcessRequestDto {
24
24
  /**
25
- *
25
+ * The unique policy number associated with this booking process. This is used to identify the relevant insurance policy or agreement for which the booking process is being created.
26
26
  * @type {string}
27
27
  * @memberof CreateBookingProcessRequestDto
28
28
  */
29
29
  'policyNumber': string;
30
30
  /**
31
- *
31
+ * The current status of the booking process, indicating its completion or settlement stage, such as invoiced or paid, etc...
32
32
  * @type {string}
33
33
  * @memberof CreateBookingProcessRequestDto
34
34
  */
35
35
  'status': CreateBookingProcessRequestDtoStatusEnum;
36
36
  /**
37
- *
37
+ * The type of booking process being created, such as recurringInvoice or \" initialInvoice. This helps categorize the nature of the booking within the system.
38
38
  * @type {string}
39
39
  * @memberof CreateBookingProcessRequestDto
40
40
  */
41
41
  'bookingProcessType': CreateBookingProcessRequestDtoBookingProcessTypeEnum;
42
42
  /**
43
- *
43
+ * Optional key-value pairs containing additional custom information for the booking process. These fields allow flexibility to include metadata or specific attributes related to the booking.
44
+ * @type {object}
45
+ * @memberof CreateBookingProcessRequestDto
46
+ */
47
+ 'customFields': object;
48
+ /**
49
+ * An array of booking entries associated with this booking process. Each entry represents an individual transaction or action related to the booking and contains details such as amount, date, and descriptions.
44
50
  * @type {Array<CreateBookingEntryRequestDto>}
45
51
  * @memberof CreateBookingProcessRequestDto
46
52
  */
@@ -21,35 +21,41 @@
21
21
  */
22
22
  export interface CreateFinancialAccountRequestDto {
23
23
  /**
24
- *
24
+ * The name of the financial account. This is a descriptive label used to identify the account within the system.
25
25
  * @type {string}
26
26
  * @memberof CreateFinancialAccountRequestDto
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- *
30
+ * The unique account number assigned to this financial account. This number is used to route transactions and manage the account within the financial system.
31
31
  * @type {string}
32
32
  * @memberof CreateFinancialAccountRequestDto
33
33
  */
34
34
  'financialAccountNumber': string;
35
35
  /**
36
- *
36
+ * The type of financial account, specifying its category or classification, such as asset, equity, or expense. This categorization helps in accounting and reporting.
37
37
  * @type {string}
38
38
  * @memberof CreateFinancialAccountRequestDto
39
39
  */
40
40
  'type': CreateFinancialAccountRequestDtoTypeEnum;
41
41
  /**
42
- *
42
+ * An optional code representing the entity associated with this account. Useful for associating the account with specific organizational entities or departments.
43
43
  * @type {string}
44
44
  * @memberof CreateFinancialAccountRequestDto
45
45
  */
46
46
  'entityCode'?: string;
47
47
  /**
48
- *
48
+ * An optional identifier for the parent account. If provided, this allows the creation of sub-accounts under a parent financial account, establishing a hierarchy.
49
49
  * @type {number}
50
50
  * @memberof CreateFinancialAccountRequestDto
51
51
  */
52
52
  'parentId'?: number;
53
+ /**
54
+ * Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
55
+ * @type {object}
56
+ * @memberof CreateFinancialAccountRequestDto
57
+ */
58
+ 'customFields': object;
53
59
  }
54
60
 
55
61
  export const CreateFinancialAccountRequestDtoTypeEnum = {
@@ -21,43 +21,49 @@
21
21
  */
22
22
  export interface FinancialTransactionDataDto {
23
23
  /**
24
- *
24
+ * The unique identifier of the financial account associated with the transaction. This is used to route the transaction to the correct account in the financial ledger.
25
25
  * @type {string}
26
26
  * @memberof FinancialTransactionDataDto
27
27
  */
28
28
  'financialAccountNumber': string;
29
29
  /**
30
- *
30
+ * The monetary value of the transaction, expressed as an integer in the smallest currency unit (e.g., cents). This represents the exact amount being debited or credited. The value must be an integer.
31
31
  * @type {number}
32
32
  * @memberof FinancialTransactionDataDto
33
33
  */
34
34
  'amount': number;
35
35
  /**
36
- *
36
+ * Specifies whether the transaction is a debit or a credit. A debit indicates an outgoing payment, while a credit represents incoming funds.
37
37
  * @type {string}
38
38
  * @memberof FinancialTransactionDataDto
39
39
  */
40
40
  'debitCredit': FinancialTransactionDataDtoDebitCreditEnum;
41
41
  /**
42
- *
42
+ * The unique number assigned to the partner involved in the transaction, typically representing a customer, supplier, or other associated party.
43
43
  * @type {string}
44
44
  * @memberof FinancialTransactionDataDto
45
45
  */
46
46
  'partnerNumber': string;
47
47
  /**
48
- *
48
+ * An optional grouping identifier for the partner, used for categorization and reporting purposes.
49
49
  * @type {string}
50
50
  * @memberof FinancialTransactionDataDto
51
51
  */
52
52
  'partnerGroup'?: string;
53
53
  /**
54
- *
54
+ * The policy number related to this transaction, used for referencing the associated insurance policy or agreement.
55
55
  * @type {string}
56
56
  * @memberof FinancialTransactionDataDto
57
57
  */
58
58
  'policyNumber': string;
59
59
  /**
60
- *
60
+ * Optional additional information related to the transaction, structured as key-value pairs. These fields may include metadata, identifiers, or contextual details for custom processing.
61
+ * @type {object}
62
+ * @memberof FinancialTransactionDataDto
63
+ */
64
+ 'customFields': object;
65
+ /**
66
+ * A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
61
67
  * @type {string}
62
68
  * @memberof FinancialTransactionDataDto
63
69
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.0.1-beta.3",
3
+ "version": "1.0.1-beta.4",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [