package lk.ac.pdn.ceit.pos.entities; import java.math.BigDecimal; public class LineItem { private String itemId; private String itemName; private int quantity; private BigDecimal unitPrice; public LineItem() { } public LineItem(String itemId, String itemName, int quantity, BigDecimal unitPrice) { this.itemId = itemId; this.itemName = itemName; this.quantity = quantity; this.unitPrice = unitPrice; } public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public BigDecimal getUnitPrice() { return unitPrice; } public void setUnitPrice(BigDecimal unitPrice) { this.unitPrice = unitPrice; } @Override public String toString() { return "LineItem [itemId=" + itemId + ", itemName=" + itemName + ", quantity=" + quantity + ", unitPrice=" + unitPrice + "]"; } }