Subversion Repositories SmartDukaan

Rev

Rev 30399 | Rev 32980 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.io.File;
import java.util.List;
import java.util.Objects;
import java.util.Set;

public class InvoicePdfModel {
    private String title;
    private String auther;
    private CustomCustomer customer;
    private String customerAddressStateCode;
    private File qrCode;
    private String irnNumber;


    private CustomRetailer retailer;
    private String invoiceNumber;
    private boolean isCancelled;

    private String invoiceDate;
    private Set<CustomOrderItem> orderItems;
    private Set<CustomInsurancePolicy> insurancePolicies;
    private List<CustomPaymentOption> paymentOptions;
    private List<String> tncs;
    private float totalAmount;

    public boolean isCancelled() {
        return isCancelled;
    }

    public void setCancelled(boolean isCancelled) {
        this.isCancelled = isCancelled;
    }

    public String getCustomerAddressStateCode() {
        return customerAddressStateCode;
    }

    public void setCustomerAddressStateCode(String customerAddressStateCode) {
        this.customerAddressStateCode = customerAddressStateCode;
    }

    private String partnerAddressStateCode;

    public String getPartnerAddressStateCode() {
        return partnerAddressStateCode;
    }

    public void setPartnerAddressStateCode(String partnerAddressStateCode) {
        this.partnerAddressStateCode = partnerAddressStateCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuther() {
        return auther;
    }

    public void setAuther(String auther) {
        this.auther = auther;
    }

    public CustomCustomer getCustomer() {
        return customer;
    }

    public void setCustomer(CustomCustomer customer) {
        this.customer = customer;
    }

    public CustomRetailer getRetailer() {
        return retailer;
    }

    public void setRetailer(CustomRetailer retailer) {
        this.retailer = retailer;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public Set<CustomOrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(Set<CustomOrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public Set<CustomInsurancePolicy> getInsurancePolicies() {
        return insurancePolicies;
    }

    public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
        this.insurancePolicies = insurancePolicies;
    }

    public float getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(float totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getInvoiceDate() {
        return invoiceDate;
    }

    public void setInvoiceDate(String invoiceDate) {
        this.invoiceDate = invoiceDate;
    }

    public List<String> getTncs() {
        return tncs;
    }

    public void setTncs(List<String> tncs) {
        this.tncs = tncs;
    }

    public List<CustomPaymentOption> getPaymentOptions() {
        return paymentOptions;
    }

    public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
        this.paymentOptions = paymentOptions;
    }

    @Override
    public String toString() {
        return "InvoicePdfModel{" + "title='" + title + '\'' + ", auther='" + auther + '\'' + ", customer=" + customer + ", customerAddressStateCode='" + customerAddressStateCode + '\'' + ", qrCode='" + qrCode + '\'' + ", irnNumber='" + irnNumber + '\'' + ", partnerAddressStateCode='" + partnerAddressStateCode + '\'' + ", retailer=" + retailer + ", invoiceNumber='" + invoiceNumber + '\'' + ", isCancelled=" + isCancelled + ", invoiceDate='" + invoiceDate + '\'' + ", orderItems=" + orderItems + ", insurancePolicies=" + insurancePolicies + ", paymentOptions=" + paymentOptions + ", tncs=" + tncs + ", totalAmount=" + totalAmount + '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InvoicePdfModel that = (InvoicePdfModel) o;
        return isCancelled == that.isCancelled && Float.compare(that.totalAmount, totalAmount) == 0 && Objects.equals(title, that.title) && Objects.equals(auther, that.auther) && Objects.equals(customer, that.customer) && Objects.equals(customerAddressStateCode, that.customerAddressStateCode) && Objects.equals(qrCode, that.qrCode) && Objects.equals(irnNumber, that.irnNumber) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode) && Objects.equals(retailer, that.retailer) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(invoiceDate, that.invoiceDate) && Objects.equals(orderItems, that.orderItems) && Objects.equals(insurancePolicies, that.insurancePolicies) && Objects.equals(paymentOptions, that.paymentOptions) && Objects.equals(tncs, that.tncs);
    }

    @Override
    public int hashCode() {
        return Objects.hash(title, auther, customer, customerAddressStateCode, qrCode, irnNumber, partnerAddressStateCode, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, totalAmount);
    }

    public File getQrCode() {
        return qrCode;
    }

    public void setQrCode(File qrCode) {
        this.qrCode = qrCode;
    }

    public String getIrnNumber() {
        return irnNumber;
    }

    public void setIrnNumber(String irnNumber) {
        this.irnNumber = irnNumber;
    }
}