Subversion Repositories SmartDukaan

Rev

Rev 31180 | Rev 31743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31180 Rev 31684
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.enumuration.ActivationType;
3
import com.spice.profitmandi.common.enumuration.CounterSize;
4
import com.spice.profitmandi.common.enumuration.CounterSize;
4
import com.spice.profitmandi.common.enumuration.FofoType;
5
import com.spice.profitmandi.common.enumuration.FofoType;
5
 
6
 
-
 
7
import java.util.Objects;
-
 
8
 
6
public class CustomRetailer {
9
public class CustomRetailer {
7
	private int partnerId;
10
	private int partnerId;
8
	private String code;
11
	private String code;
9
 
12
 
10
	public String getCode() {
13
	public String getCode() {
Line 23... Line 26...
23
	private String email;
26
	private String email;
24
	private String displayName;
27
	private String displayName;
25
	private int warehouseId;
28
	private int warehouseId;
26
	private String pan;
29
	private String pan;
27
	private FofoType fofoType;
30
	private FofoType fofoType;
-
 
31
	private ActivationType activationType;
-
 
32
 
-
 
33
 
-
 
34
	@Override
-
 
35
	public String toString() {
-
 
36
		return "CustomRetailer{" +
-
 
37
				"partnerId=" + partnerId +
-
 
38
				", code='" + code + '\'' +
-
 
39
				", cartId=" + cartId +
-
 
40
				", businessName='" + businessName + '\'' +
-
 
41
				", address=" + address +
-
 
42
				", mobileNumber='" + mobileNumber + '\'' +
-
 
43
				", gstNumber='" + gstNumber + '\'' +
-
 
44
				", email='" + email + '\'' +
-
 
45
				", displayName='" + displayName + '\'' +
-
 
46
				", warehouseId=" + warehouseId +
-
 
47
				", pan='" + pan + '\'' +
-
 
48
				", fofoType=" + fofoType +
-
 
49
				", activationType=" + activationType +
-
 
50
				", counterSize=" + counterSize +
-
 
51
				'}';
-
 
52
	}
-
 
53
 
-
 
54
	@Override
-
 
55
	public boolean equals(Object o) {
-
 
56
		if (this == o) return true;
-
 
57
		if (o == null || getClass() != o.getClass()) return false;
-
 
58
		CustomRetailer that = (CustomRetailer) o;
-
 
59
		return partnerId == that.partnerId && cartId == that.cartId && warehouseId == that.warehouseId && Objects.equals(code, that.code) && Objects.equals(businessName, that.businessName) && Objects.equals(address, that.address) && Objects.equals(mobileNumber, that.mobileNumber) && Objects.equals(gstNumber, that.gstNumber) && Objects.equals(email, that.email) && Objects.equals(displayName, that.displayName) && Objects.equals(pan, that.pan) && fofoType == that.fofoType && activationType == that.activationType && counterSize == that.counterSize;
-
 
60
	}
-
 
61
 
-
 
62
	@Override
-
 
63
	public int hashCode() {
-
 
64
		return Objects.hash(partnerId, code, cartId, businessName, address, mobileNumber, gstNumber, email, displayName, warehouseId, pan, fofoType, activationType, counterSize);
-
 
65
	}
-
 
66
 
-
 
67
	public ActivationType getActivationType() {
-
 
68
		return activationType;
-
 
69
	}
-
 
70
 
-
 
71
	public void setActivationType(ActivationType activationType) {
-
 
72
		this.activationType = activationType;
-
 
73
	}
28
 
74
 
29
	private CounterSize counterSize;
75
	private CounterSize counterSize;
30
 
76
 
31
	// Derived fields to be set as required
77
	// Derived fields to be set as required
32
 
78
 
Line 124... Line 170...
124
 
170
 
125
	public void setPartnerId(int partnerId) {
171
	public void setPartnerId(int partnerId) {
126
		this.partnerId = partnerId;
172
		this.partnerId = partnerId;
127
	}
173
	}
128
 
174
 
129
	@Override
-
 
130
	public int hashCode() {
-
 
131
		final int prime = 31;
-
 
132
		int result = 1;
-
 
133
		result = prime * result + partnerId;
-
 
134
		return result;
-
 
135
	}
-
 
136
 
-
 
137
	@Override
-
 
138
	public boolean equals(Object obj) {
-
 
139
		if (this == obj)
-
 
140
			return true;
-
 
141
		if (obj == null)
-
 
142
			return false;
-
 
143
		if (getClass() != obj.getClass())
-
 
144
			return false;
-
 
145
		CustomRetailer other = (CustomRetailer) obj;
-
 
146
		if (partnerId != other.partnerId)
-
 
147
			return false;
-
 
148
		return true;
-
 
149
	}
-
 
150
 
-
 
151
	@Override
-
 
152
	public String toString() {
-
 
153
		return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ", businessName="
-
 
154
				+ businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber
-
 
155
				+ ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan
-
 
156
				+ ", fofoType=" + fofoType + ", counterSize=" + counterSize + "]";
-
 
157
	}
-
 
158
 
-
 
159
}
175
}