Subversion Repositories SmartDukaan

Rev

Rev 24854 | Rev 30399 | 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.Set;

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

        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;
        }
        private CustomRetailer retailer;
        private String invoiceNumber;
        private boolean isCancelled;
        public boolean isCancelled() {
                return isCancelled;
        }
        public void setCancelled(boolean isCancelled) {
                this.isCancelled = isCancelled;
        }
        private String invoiceDate;
        private Set<CustomOrderItem> orderItems;
        private Set<CustomInsurancePolicy> insurancePolicies;
        private List<CustomPaymentOption> paymentOptions;
        private List<String> tncs;
        private float totalAmount;
        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;
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((auther == null) ? 0 : auther.hashCode());
                result = prime * result + ((customer == null) ? 0 : customer.hashCode());
                result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
                result = prime * result + ((invoiceDate == null) ? 0 : invoiceDate.hashCode());
                result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
                result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
                result = prime * result + ((paymentOptions == null) ? 0 : paymentOptions.hashCode());
                result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
                result = prime * result + ((title == null) ? 0 : title.hashCode());
                result = prime * result + ((tncs == null) ? 0 : tncs.hashCode());
                result = prime * result + Float.floatToIntBits(totalAmount);
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                InvoicePdfModel other = (InvoicePdfModel) obj;
                if (auther == null) {
                        if (other.auther != null)
                                return false;
                } else if (!auther.equals(other.auther))
                        return false;
                if (customer == null) {
                        if (other.customer != null)
                                return false;
                } else if (!customer.equals(other.customer))
                        return false;
                if (insurancePolicies == null) {
                        if (other.insurancePolicies != null)
                                return false;
                } else if (!insurancePolicies.equals(other.insurancePolicies))
                        return false;
                if (invoiceDate == null) {
                        if (other.invoiceDate != null)
                                return false;
                } else if (!invoiceDate.equals(other.invoiceDate))
                        return false;
                if (invoiceNumber == null) {
                        if (other.invoiceNumber != null)
                                return false;
                } else if (!invoiceNumber.equals(other.invoiceNumber))
                        return false;
                if (orderItems == null) {
                        if (other.orderItems != null)
                                return false;
                } else if (!orderItems.equals(other.orderItems))
                        return false;
                if (paymentOptions == null) {
                        if (other.paymentOptions != null)
                                return false;
                } else if (!paymentOptions.equals(other.paymentOptions))
                        return false;
                if (retailer == null) {
                        if (other.retailer != null)
                                return false;
                } else if (!retailer.equals(other.retailer))
                        return false;
                if (title == null) {
                        if (other.title != null)
                                return false;
                } else if (!title.equals(other.title))
                        return false;
                if (tncs == null) {
                        if (other.tncs != null)
                                return false;
                } else if (!tncs.equals(other.tncs))
                        return false;
                if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer
                                + ", customerAddressStateCode=" + customerAddressStateCode + ", partnerAddressStateCode="
                                + partnerAddressStateCode + ", retailer=" + retailer + ", invoiceNumber=" + invoiceNumber
                                + ", isCancelled=" + isCancelled + ", invoiceDate=" + invoiceDate + ", orderItems=" + orderItems
                                + ", insurancePolicies=" + insurancePolicies + ", paymentOptions=" + paymentOptions + ", tncs=" + tncs
                                + ", 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;
        }
        
        
        
}