package org.example.petshopdesktop.models;

public class SaleLineItem {
    private final int saleId;
    private final String saleDate;
    private final String employeeName;
    private final String itemName;
    private final int quantity;
    private final double unitPrice;
    private final double total;
    private final String paymentMethod;
    private final boolean isRefund;
    private final String storeName;
    private final String customerName;

    public SaleLineItem(int saleId, String saleDate, String employeeName, String itemName, int quantity, double unitPrice, double total, String paymentMethod, boolean isRefund, String storeName, String customerName) {
        this.saleId = saleId;
        this.saleDate = saleDate;
        this.employeeName = employeeName;
        this.itemName = itemName;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
        this.total = total;
        this.paymentMethod = paymentMethod;
        this.isRefund = isRefund;
        this.storeName = storeName != null ? storeName : "";
        this.customerName = customerName != null ? customerName : "";
    }

    public int getSaleId() {
        return saleId;
    }

    public String getSaleDate() {
        return saleDate;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public String getItemName() {
        return itemName;
    }

    public int getQuantity() {
        return quantity;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public double getTotal() {
        return total;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public boolean isRefund() {
        return isRefund;
    }

    public String getStoreName() {
        return storeName;
    }

    public String getCustomerName() {
        return customerName;
    }
}
