Skip to content

Commit

Permalink
Feat: Added enum representing transaction types.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah committed May 12, 2026
1 parent c62c1e5 commit 129d681
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 129d681

Please sign in to comment.