|
diff --git a/src/main/webapp/app/shared/model/transaction.model.ts b/src/main/webapp/app/shared/model/transaction.model.ts
index 23240cb..c21fba8 100644
--- a/src/main/webapp/app/shared/model/transaction.model.ts
+++ b/src/main/webapp/app/shared/model/transaction.model.ts
@@ -1,12 +1,14 @@
import { type IEvent } from '@/shared/model/event.model';
import { type TransactionType } from '@/shared/model/enumerations/transaction-type.model';
+import type { IUserAccount } from '@/shared/model/user-account.model';
export interface ITransaction {
id?: number;
type?: keyof typeof TransactionType | null;
date?: Date | null;
comment?: string | null;
event?: IEvent | null;
+ items?: ITransactionItem[] | [];
}
export class Transaction implements ITransaction {
@@ -16,5 +18,24 @@ export class Transaction implements ITransaction {
public date?: Date | null,
public comment?: string | null,
public event?: IEvent | null,
+ public items?: ITransactionItem[] | [],
+ ) {}
+}
+
+export interface ITransactionItem {
+ id?: number;
+ comment?: string | null;
+ event?: IEvent | null;
+ amount?: number | null;
+ userAccount?: IUserAccount | null;
+}
+
+export class TransactionItem implements ITransactionItem {
+ constructor(
+ public id?: number,
+ public comment?: string | null,
+ public event?: IEvent | null,
+ public amount?: number | null,
+ public userAccount?: IUserAccount | null,
) {}
}
|