Class DebtService
java.lang.Object
com.truebubo.maniflow.debt.DebtService
Handles business logic behind debts
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DebtService
Service for debts- Parameters:
debtRepository
- Repository for data about debts
-
-
Method Details
-
getDebts
-
addDebt
Saves the debt- Parameters:
debt
- Information about the debt to be added
-
payDebt
Pay the value on the debt with given id- Parameters:
id
- ID identifying the debt. It is the left value displayed when calling showDebtsamount
- Will deduct this much from the debt
-