Subversion Repositories SmartDukaan

Rev

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