Subversion Repositories SmartDukaan

Rev

Rev 24854 | Rev 30399 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
23001 amit.gupta 3
import java.util.List;
21686 ashik.ali 4
import java.util.Set;
5
 
30321 amit.gupta 6
public class InvoicePdfModel {
21686 ashik.ali 7
	private String title;
8
	private String auther;
9
	private CustomCustomer customer;
24854 amit.gupta 10
	private String customerAddressStateCode;
30321 amit.gupta 11
 
24854 amit.gupta 12
	public String getCustomerAddressStateCode() {
13
		return customerAddressStateCode;
14
	}
30321 amit.gupta 15
 
24854 amit.gupta 16
	public void setCustomerAddressStateCode(String customerAddressStateCode) {
17
		this.customerAddressStateCode = customerAddressStateCode;
18
	}
19
	private String partnerAddressStateCode;
20
	public String getPartnerAddressStateCode() {
21
		return partnerAddressStateCode;
22
	}
23
	public void setPartnerAddressStateCode(String partnerAddressStateCode) {
24
		this.partnerAddressStateCode = partnerAddressStateCode;
25
	}
21686 ashik.ali 26
	private CustomRetailer retailer;
27
	private String invoiceNumber;
24509 amit.gupta 28
	private boolean isCancelled;
29
	public boolean isCancelled() {
30
		return isCancelled;
31
	}
32
	public void setCancelled(boolean isCancelled) {
33
		this.isCancelled = isCancelled;
34
	}
22688 amit.gupta 35
	private String invoiceDate;
22858 ashik.ali 36
	private Set<CustomOrderItem> orderItems;
22215 ashik.ali 37
	private Set<CustomInsurancePolicy> insurancePolicies;
23552 amit.gupta 38
	private List<CustomPaymentOption> paymentOptions;
23001 amit.gupta 39
	private List<String> tncs;
21686 ashik.ali 40
	private float totalAmount;
41
	public String getTitle() {
42
		return title;
43
	}
44
	public void setTitle(String title) {
45
		this.title = title;
46
	}
47
	public String getAuther() {
48
		return auther;
49
	}
50
	public void setAuther(String auther) {
51
		this.auther = auther;
52
	}
53
	public CustomCustomer getCustomer() {
54
		return customer;
55
	}
56
	public void setCustomer(CustomCustomer customer) {
57
		this.customer = customer;
58
	}
59
	public CustomRetailer getRetailer() {
60
		return retailer;
61
	}
62
	public void setRetailer(CustomRetailer retailer) {
63
		this.retailer = retailer;
64
	}
65
	public String getInvoiceNumber() {
66
		return invoiceNumber;
67
	}
68
	public void setInvoiceNumber(String invoiceNumber) {
69
		this.invoiceNumber = invoiceNumber;
70
	}
22858 ashik.ali 71
	public Set<CustomOrderItem> getOrderItems() {
21686 ashik.ali 72
		return orderItems;
73
	}
22858 ashik.ali 74
	public void setOrderItems(Set<CustomOrderItem> orderItems) {
21686 ashik.ali 75
		this.orderItems = orderItems;
76
	}
22215 ashik.ali 77
	public Set<CustomInsurancePolicy> getInsurancePolicies() {
78
		return insurancePolicies;
79
	}
80
	public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
81
		this.insurancePolicies = insurancePolicies;
82
	}
21686 ashik.ali 83
	public float getTotalAmount() {
84
		return totalAmount;
85
	}
86
	public void setTotalAmount(float totalAmount) {
87
		this.totalAmount = totalAmount;
88
	}
21923 ashik.ali 89
	@Override
90
	public int hashCode() {
91
		final int prime = 31;
92
		int result = 1;
93
		result = prime * result + ((auther == null) ? 0 : auther.hashCode());
94
		result = prime * result + ((customer == null) ? 0 : customer.hashCode());
23552 amit.gupta 95
		result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
96
		result = prime * result + ((invoiceDate == null) ? 0 : invoiceDate.hashCode());
21923 ashik.ali 97
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
98
		result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
23552 amit.gupta 99
		result = prime * result + ((paymentOptions == null) ? 0 : paymentOptions.hashCode());
21923 ashik.ali 100
		result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
101
		result = prime * result + ((title == null) ? 0 : title.hashCode());
23552 amit.gupta 102
		result = prime * result + ((tncs == null) ? 0 : tncs.hashCode());
21923 ashik.ali 103
		result = prime * result + Float.floatToIntBits(totalAmount);
104
		return result;
105
	}
106
	@Override
107
	public boolean equals(Object obj) {
108
		if (this == obj)
109
			return true;
110
		if (obj == null)
111
			return false;
112
		if (getClass() != obj.getClass())
113
			return false;
30321 amit.gupta 114
		InvoicePdfModel other = (InvoicePdfModel) obj;
21923 ashik.ali 115
		if (auther == null) {
116
			if (other.auther != null)
117
				return false;
118
		} else if (!auther.equals(other.auther))
119
			return false;
120
		if (customer == null) {
121
			if (other.customer != null)
122
				return false;
123
		} else if (!customer.equals(other.customer))
124
			return false;
23552 amit.gupta 125
		if (insurancePolicies == null) {
126
			if (other.insurancePolicies != null)
127
				return false;
128
		} else if (!insurancePolicies.equals(other.insurancePolicies))
129
			return false;
130
		if (invoiceDate == null) {
131
			if (other.invoiceDate != null)
132
				return false;
133
		} else if (!invoiceDate.equals(other.invoiceDate))
134
			return false;
21923 ashik.ali 135
		if (invoiceNumber == null) {
136
			if (other.invoiceNumber != null)
137
				return false;
138
		} else if (!invoiceNumber.equals(other.invoiceNumber))
139
			return false;
140
		if (orderItems == null) {
141
			if (other.orderItems != null)
142
				return false;
143
		} else if (!orderItems.equals(other.orderItems))
144
			return false;
23552 amit.gupta 145
		if (paymentOptions == null) {
146
			if (other.paymentOptions != null)
22215 ashik.ali 147
				return false;
23552 amit.gupta 148
		} else if (!paymentOptions.equals(other.paymentOptions))
22215 ashik.ali 149
			return false;
21923 ashik.ali 150
		if (retailer == null) {
151
			if (other.retailer != null)
152
				return false;
153
		} else if (!retailer.equals(other.retailer))
154
			return false;
155
		if (title == null) {
156
			if (other.title != null)
157
				return false;
158
		} else if (!title.equals(other.title))
159
			return false;
23552 amit.gupta 160
		if (tncs == null) {
161
			if (other.tncs != null)
162
				return false;
163
		} else if (!tncs.equals(other.tncs))
164
			return false;
21923 ashik.ali 165
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
166
			return false;
167
		return true;
168
	}
169
	@Override
170
	public String toString() {
24854 amit.gupta 171
		return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer
172
				+ ", customerAddressStateCode=" + customerAddressStateCode + ", partnerAddressStateCode="
173
				+ partnerAddressStateCode + ", retailer=" + retailer + ", invoiceNumber=" + invoiceNumber
174
				+ ", isCancelled=" + isCancelled + ", invoiceDate=" + invoiceDate + ", orderItems=" + orderItems
175
				+ ", insurancePolicies=" + insurancePolicies + ", paymentOptions=" + paymentOptions + ", tncs=" + tncs
176
				+ ", totalAmount=" + totalAmount + "]";
21923 ashik.ali 177
	}
22688 amit.gupta 178
	public String getInvoiceDate() {
179
		return invoiceDate;
180
	}
181
	public void setInvoiceDate(String invoiceDate) {
182
		this.invoiceDate = invoiceDate;
183
	}
23001 amit.gupta 184
	public List<String> getTncs() {
185
		return tncs;
186
	}
187
	public void setTncs(List<String> tncs) {
188
		this.tncs = tncs;
189
	}
23552 amit.gupta 190
	public List<CustomPaymentOption> getPaymentOptions() {
191
		return paymentOptions;
192
	}
193
	public void setPaymentOptions(List<CustomPaymentOption> paymentOptions) {
194
		this.paymentOptions = paymentOptions;
195
	}
21923 ashik.ali 196
 
197
 
22215 ashik.ali 198
 
21686 ashik.ali 199
}