@emilgroup/accounting-sdk-node 1.32.1-beta.22 → 1.32.1-beta.23

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.32.1-beta.22 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.23 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.22
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.23
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -76,6 +76,18 @@ export interface BookingEntryClass {
76
76
  * @memberof BookingEntryClass
77
77
  */
78
78
  'externalNumber'?: string;
79
+ /**
80
+ * The code of the source entity this entry was posted for, such as an invoice or payment code. Always set together with sourceEntityType.
81
+ * @type {string}
82
+ * @memberof BookingEntryClass
83
+ */
84
+ 'sourceEntityCode'?: string;
85
+ /**
86
+ * The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
87
+ * @type {string}
88
+ * @memberof BookingEntryClass
89
+ */
90
+ 'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
79
91
  /**
80
92
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
81
93
  * @type {Array<FinancialTransactionClass>}
@@ -121,3 +133,10 @@ export declare const BookingEntryClassCurrencyEnum: {
121
133
  readonly Sek: "SEK";
122
134
  };
123
135
  export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
136
+ export declare const BookingEntryClassSourceEntityTypeEnum: {
137
+ readonly Invoice: "invoice";
138
+ readonly Payment: "payment";
139
+ readonly Credit: "credit";
140
+ readonly CreditAllocation: "credit_allocation";
141
+ };
142
+ export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BookingEntryClassCurrencyEnum = void 0;
16
+ exports.BookingEntryClassSourceEntityTypeEnum = exports.BookingEntryClassCurrencyEnum = void 0;
17
17
  exports.BookingEntryClassCurrencyEnum = {
18
18
  Eur: 'EUR',
19
19
  Usd: 'USD',
@@ -27,3 +27,9 @@ exports.BookingEntryClassCurrencyEnum = {
27
27
  Nok: 'NOK',
28
28
  Sek: 'SEK'
29
29
  };
30
+ exports.BookingEntryClassSourceEntityTypeEnum = {
31
+ Invoice: 'invoice',
32
+ Payment: 'payment',
33
+ Credit: 'credit',
34
+ CreditAllocation: 'credit_allocation'
35
+ };
@@ -40,6 +40,18 @@ export interface CreateBookingEntryRequestDto {
40
40
  * @memberof CreateBookingEntryRequestDto
41
41
  */
42
42
  'externalNumber'?: string;
43
+ /**
44
+ * The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
45
+ * @type {string}
46
+ * @memberof CreateBookingEntryRequestDto
47
+ */
48
+ 'sourceEntityCode'?: string;
49
+ /**
50
+ * The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
51
+ * @type {string}
52
+ * @memberof CreateBookingEntryRequestDto
53
+ */
54
+ 'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
43
55
  /**
44
56
  * A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
45
57
  * @type {string}
@@ -61,3 +73,10 @@ export interface CreateBookingEntryRequestDto {
61
73
  */
62
74
  'financialTransactions': Array<FinancialTransactionDataDto>;
63
75
  }
76
+ export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
77
+ readonly Invoice: "invoice";
78
+ readonly Payment: "payment";
79
+ readonly Credit: "credit";
80
+ readonly CreditAllocation: "credit_allocation";
81
+ };
82
+ export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
@@ -13,3 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
17
+ exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
18
+ Invoice: 'invoice',
19
+ Payment: 'payment',
20
+ Credit: 'credit',
21
+ CreditAllocation: 'credit_allocation'
22
+ };
@@ -81,6 +81,18 @@ 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. Always set together with sourceEntityType.
86
+ * @type {string}
87
+ * @memberof BookingEntryClass
88
+ */
89
+ 'sourceEntityCode'?: string;
90
+ /**
91
+ * The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
92
+ * @type {string}
93
+ * @memberof BookingEntryClass
94
+ */
95
+ 'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
84
96
  /**
85
97
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
86
98
  * @type {Array<FinancialTransactionClass>}
@@ -128,5 +140,13 @@ export const BookingEntryClassCurrencyEnum = {
128
140
  } as const;
129
141
 
130
142
  export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
143
+ export const BookingEntryClassSourceEntityTypeEnum = {
144
+ Invoice: 'invoice',
145
+ Payment: 'payment',
146
+ Credit: 'credit',
147
+ CreditAllocation: 'credit_allocation'
148
+ } as const;
149
+
150
+ export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
131
151
 
132
152
 
@@ -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.
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,13 @@ export interface CreateBookingEntryRequestDto {
65
77
  'financialTransactions': Array<FinancialTransactionDataDto>;
66
78
  }
67
79
 
80
+ export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
81
+ Invoice: 'invoice',
82
+ Payment: 'payment',
83
+ Credit: 'credit',
84
+ CreditAllocation: 'credit_allocation'
85
+ } as const;
86
+
87
+ export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
88
+
89
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.32.1-beta.22",
3
+ "version": "1.32.1-beta.23",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [