2 * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
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.receipt;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcontactsbusiness.BusinessContact;
22 import org.mxchange.jshopcore.model.payment.PaymentType;
23 import org.mxchange.jusercore.model.user.User;
26 * An interface for receipts
28 * @author Roland Haeder<roland@mxchange.org>
30 public interface Billable extends Serializable {
33 * Getter for when this receipt has been created in database
35 * @return Receipt creation timestamp
37 Calendar getReceiptCreated ();
40 * Setter for when this receipt has been created in database
42 * @param receiptCreated Receipt creation timestamp
44 void setReceiptCreated (final Calendar receiptCreated);
47 * Getter for primary key
54 * Setter for primary key
56 * @param receiptId Primary key
58 void setReceiptId (final Long receiptId);
61 * Getter for receipt's user
63 * @return Receipt's user
65 User getReceiptUser ();
68 * Setter for receipt's user
70 * @param receiptUser Receipt's user
72 void setReceiptUser (final User receiptUser);
75 * Getter for seller instance
77 * @return Seller instance
79 BusinessContact getReceiptSeller ();
82 * Setter for seller instance
84 * @param receiptSeller Seller instance
86 void setReceiptSeller (final BusinessContact receiptSeller);
89 * Getter for payment type
91 * @return Payment type
93 PaymentType getReceiptPaymentType ();
96 * Setter for payment type
98 * @param receiptPaymentType Payment type
100 void setReceiptPaymentType (final PaymentType receiptPaymentType);
103 boolean equals (final Object object);