Subversion Repositories SmartDukaan

Rev

Rev 33298 | 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.util.List;
import java.util.Objects;

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

    private IrnModel irnModel;


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

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

    private EWayBillPdfModel eWayBillPdfModel;



    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 List<CustomOrderItem> getOrderItems() {
        return orderItems;
    }

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

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

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

    public EWayBillPdfModel geteWayBillPdfModel() {
        return eWayBillPdfModel;
    }

    public void seteWayBillPdfModel(EWayBillPdfModel eWayBillPdfModel) {
        this.eWayBillPdfModel = eWayBillPdfModel;
    }

    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 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(totalAmount, that.totalAmount) == 0 && Objects.equals(title, that.title) && Objects.equals(auther, that.auther) && Objects.equals(customer, that.customer) && Objects.equals(customerAddressStateCode, that.customerAddressStateCode) && Objects.equals(irnModel, that.irnModel) && 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) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode);
    }

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

    public IrnModel getIrnModel() {
        return irnModel;
    }

    public void setIrnModel(IrnModel irnModel) {
        this.irnModel = irnModel;
    }

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