2 * Copyright (C) 2016, 2017 Roland Häder
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.item;
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jfinancials.model.receipt.BillableReceipt;
22 import org.mxchange.jproduct.model.product.Product;
25 * An interface for receipt items
27 * @author Roland Häder<roland@mxchange.org>
29 public interface BillableReceiptItem extends Serializable {
32 * Getter when this receipt item has been created in database
34 * @return When this item has been created
36 Date getItemCreated ();
39 * Setter when this receipt item has been created in database
41 * @param itemCreated When this item has been created
43 void setItemCreated (final Date itemCreated);
46 * Getter for primary key
53 * Setter for primary key
55 * @param itemId Primary key
57 void setItemId (final Long itemId);
60 * Getter for receipt instance
62 * @return Receipt instance
64 BillableReceipt getItemReceipt ();
67 * Setter for receipt instance
69 * @param itemReceipt Receipt instance
71 void setItemReceipt (final BillableReceipt itemReceipt);
74 * Getter for linked product
78 Product getItemProduct ();
81 * Setter for linked product
83 * @param itemProduct Product
85 void setItemProduct (final Product itemProduct);
88 * Getter for product discount
90 * @return Product discount
92 Float getItemProductDiscount ();
95 * Setter for product discount
97 * @param productDiscount Product discount
99 void setItemProductDiscount (final Float productDiscount);
102 * Getter for product quantity
104 * @return Product quantity
106 Long getItemProductQuantity ();
109 * Setter for product quantity
111 * @param itemProductQuantity Product quantity
113 void setItemProductQuantity (final Long itemProductQuantity);
116 boolean equals (final Object object);