From 129d6811c442e5782a9df92cf8f2cdbb36dad5d8 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 12 May 2026 10:51:00 +0200 Subject: [PATCH] Feat: Added enum representing transaction types. --- .../g40/mappe/service/TransactionType.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/service/TransactionType.java diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/service/TransactionType.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/service/TransactionType.java new file mode 100644 index 0000000..bb0ed32 --- /dev/null +++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/service/TransactionType.java @@ -0,0 +1,18 @@ +package edu.ntnu.idi.idatt2003.g40.mappe.service; + +/** + * Enum used by the {@link TransactionFactory} to separate between + * the different transaction implementations. + * */ +public enum TransactionType { + + /** + * {@link edu.ntnu.idi.idatt2003.g40.mappe.model.Sale}. + * */ + SALE, + + /** + * {@link edu.ntnu.idi.idatt2003.g40.mappe.model.Purchase}. + * */ + PURCHASE; +}