2 * Copyright (C) 2017 - 2022 Free Software Foundation
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jfinancials.model.income;
19 import java.io.Serializable;
20 import java.math.BigDecimal;
21 import java.util.Date;
22 import org.mxchange.jfinancials.model.income.interval.FinancialInterval;
23 import org.mxchange.jusercore.model.user.User;
26 * An interface for billable income
28 * @author Roland Häder<roland@mxchange.org>
30 public interface BillableIncome extends Comparable<BillableIncome>, Serializable {
33 * Getter for income id (primary key)
35 * @return Income id (primary key)
40 * Setter for income id (primary key)
42 * @param incomeId Income id (primary key)
44 void setIncomeId (final Long incomeId);
47 * Getter for whether income is enabled
49 * @return Whether income is enabled
51 Boolean getIncomeEnabled ();
54 * Setter for whether income is enabled
56 * @param incomeEnabled Whether income is enabled
58 void setIncomeEnabled (final Boolean incomeEnabled);
61 * Getter for income interval
63 * @return Income interval
65 FinancialInterval getIncomeInterval ();
68 * Setter for income interval
70 * @param incomeInterval Income interval
72 void setIncomeInterval (final FinancialInterval incomeInterval);
75 * Getter for income single amount
77 * @return Income single amount
79 BigDecimal getIncomeSingleAmount ();
82 * Setter for income single amount
84 * @param incomeSingleAmount Income single amount
86 void setIncomeSingleAmount (final BigDecimal incomeSingleAmount);
89 * Getter for income title
91 * @return Income title
93 String getIncomeTitle ();
96 * Setter for income title
98 * @param incomeTitle Income title
100 void setIncomeTitle (final String incomeTitle);
103 * Getter for connected user account
105 * @return Connected user account
107 User getIncomeUser ();
110 * Setter for connected user account
112 * @param incomeUser Connected user account
114 void setIncomeUser (final User incomeUser);
117 * Getter for income-created timestamp
119 * @return Income-created timestamp
121 Date getIncomeEntryCreated ();
124 * Setter for income-created timestamp
126 * @param incomeEntryCreated Income-created timestamp
128 void setIncomeEntryCreated (final Date incomeEntryCreated);
131 * Getter for income-updated timestamp
133 * @return Income-updated timestamp
135 Date getIncomeEntryUpdated ();
138 * Setter for income-updated timestamp
140 * @param incomeEntryUpdated Income-updated timestamp
142 void setIncomeEntryUpdated (final Date incomeEntryUpdated);
145 boolean equals (final Object object);