Rev 33741 | 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;@Overridepublic 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(creditTerms, that.creditTerms) && Objects.equals(eWayBillPdfModel, that.eWayBillPdfModel) && Objects.equals(partnerAddressStateCode, that.partnerAddressStateCode);}@Overridepublic int hashCode() {return Objects.hash(title, auther, customer, customerAddressStateCode, irnModel, retailer, invoiceNumber, isCancelled, invoiceDate, orderItems, insurancePolicies, paymentOptions, tncs, creditTerms, totalAmount, eWayBillPdfModel, partnerAddressStateCode);}@Overridepublic 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 +", creditTerms=" + creditTerms +", totalAmount=" + totalAmount +", eWayBillPdfModel=" + eWayBillPdfModel +", partnerAddressStateCode='" + partnerAddressStateCode + '\'' +'}';}private List<String> creditTerms;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;}public IrnModel getIrnModel() {return irnModel;}public void setIrnModel(IrnModel irnModel) {this.irnModel = irnModel;}public void setCreditTerms(List<String> creditTerms) {this.creditTerms = creditTerms;}public List<String> getCreditTerms() {return creditTerms;}}