Skip to content

Commit

Permalink
Merge pull request #40 from Team-40-IDATT2003/27-transactioncalculato…
Browse files Browse the repository at this point in the history
…r-class

Feat: Implemented TransactionCalculator interface
  • Loading branch information
etsorens authored Feb 13, 2026
2 parents 4a28ffa + 5ced40d commit c41e279
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package edu.ntnu.idi.idatt2003.g40.mappe;

import java.math.BigDecimal;

/**
* Interface implemented by various calculators.
*
* <p>Has methods for calculating gross, commission fee, tax and total</p>*/
public interface TransactionCalculator {

/** Method for calculating gross transaction amount. */
BigDecimal calculateGross();

/** Method for calculating commission fee for transaction amount. */
BigDecimal calculateCommission();

/** Method for calculating tax fee for transaction amount. */
BigDecimal calculateTax();

/** Method for calculating total amount for transaction. */
BigDecimal calculateTotal();
}

0 comments on commit c41e279

Please sign in to comment.