Subversion Repositories SmartDukaan

Rev

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

Rev 31684 Rev 31743
Line 5... Line 5...
5
import com.spice.profitmandi.common.enumuration.FofoType;
5
import com.spice.profitmandi.common.enumuration.FofoType;
6
 
6
 
7
import java.util.Objects;
7
import java.util.Objects;
8
 
8
 
9
public class CustomRetailer {
9
public class CustomRetailer {
10
	private int partnerId;
10
    private int partnerId;
11
	private String code;
11
    private String code;
12
 
12
 
13
	public String getCode() {
13
    public String getCode() {
14
		return code;
14
        return code;
15
	}
15
    }
16
 
16
 
17
	public void setCode(String code) {
17
    public void setCode(String code) {
18
		this.code = code;
18
        this.code = code;
19
	}
19
    }
20
 
20
 
21
	private int cartId;
21
    private int cartId;
22
	private String businessName;
22
    private String businessName;
23
	private CustomAddress address;
23
    private CustomAddress address;
24
	private String mobileNumber;
24
    private String mobileNumber;
25
	private String gstNumber;
25
    private String gstNumber;
26
	private String email;
26
    private String email;
27
	private String displayName;
27
    private String displayName;
28
	private int warehouseId;
28
    private int warehouseId;
29
	private String pan;
29
    private String pan;
30
	private FofoType fofoType;
30
    private FofoType fofoType;
31
	private ActivationType activationType;
31
    private ActivationType activationType;
32
 
32
 
33
 
33
    private float counterPotential;
34
	@Override
34
 
35
	public String toString() {
35
    @Override
36
		return "CustomRetailer{" +
36
    public String toString() {
37
				"partnerId=" + partnerId +
37
        return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ", businessName=" + businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan + ", fofoType=" + fofoType + ", activationType=" + activationType + ", counterPotential=" + counterPotential + ", counterSize=" + counterSize + "]";
38
				", code='" + code + '\'' +
38
    }
39
				", cartId=" + cartId +
39
 
40
				", businessName='" + businessName + '\'' +
40
    @Override
41
				", address=" + address +
41
    public boolean equals(Object obj) {
42
				", mobileNumber='" + mobileNumber + '\'' +
42
        if (this == obj) return true;
43
				", gstNumber='" + gstNumber + '\'' +
43
        if (obj == null) return false;
44
				", email='" + email + '\'' +
44
        if (getClass() != obj.getClass()) return false;
45
				", displayName='" + displayName + '\'' +
45
        CustomRetailer other = (CustomRetailer) obj;
46
				", warehouseId=" + warehouseId +
46
        if (activationType != other.activationType) return false;
47
				", pan='" + pan + '\'' +
47
        if (address == null) {
48
				", fofoType=" + fofoType +
48
            if (other.address != null) return false;
49
				", activationType=" + activationType +
49
        } else if (!address.equals(other.address)) return false;
50
				", counterSize=" + counterSize +
50
        if (businessName == null) {
51
				'}';
51
            if (other.businessName != null) return false;
52
	}
52
        } else if (!businessName.equals(other.businessName)) return false;
53
 
53
        if (cartId != other.cartId) return false;
54
	@Override
54
        if (code == null) {
55
	public boolean equals(Object o) {
55
            if (other.code != null) return false;
56
		if (this == o) return true;
56
        } else if (!code.equals(other.code)) return false;
57
		if (o == null || getClass() != o.getClass()) return false;
57
        if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential)) return false;
58
		CustomRetailer that = (CustomRetailer) o;
58
        if (counterSize != other.counterSize) return false;
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;
59
        if (displayName == null) {
60
	}
60
            if (other.displayName != null) return false;
61
 
61
        } else if (!displayName.equals(other.displayName)) return false;
62
	@Override
62
        if (email == null) {
63
	public int hashCode() {
63
            if (other.email != null) return false;
64
		return Objects.hash(partnerId, code, cartId, businessName, address, mobileNumber, gstNumber, email, displayName, warehouseId, pan, fofoType, activationType, counterSize);
64
        } else if (!email.equals(other.email)) return false;
65
	}
65
        if (fofoType != other.fofoType) return false;
66
 
66
        if (gstNumber == null) {
67
	public ActivationType getActivationType() {
67
            if (other.gstNumber != null) return false;
68
		return activationType;
68
        } else if (!gstNumber.equals(other.gstNumber)) return false;
69
	}
69
        if (mobileNumber == null) {
70
 
70
            if (other.mobileNumber != null) return false;
71
	public void setActivationType(ActivationType activationType) {
71
        } else if (!mobileNumber.equals(other.mobileNumber)) return false;
72
		this.activationType = activationType;
72
        if (pan == null) {
73
	}
73
            if (other.pan != null) return false;
74
 
74
        } else if (!pan.equals(other.pan)) return false;
75
	private CounterSize counterSize;
75
        if (partnerId != other.partnerId) return false;
76
 
76
        if (warehouseId != other.warehouseId) return false;
77
	// Derived fields to be set as required
77
        return true;
78
 
78
    }
79
	public CounterSize getCounterSize() {
79
 
80
		return counterSize;
80
    @Override
81
	}
81
    public int hashCode() {
82
 
82
        final int prime = 31;
83
	public void setCounterSize(CounterSize counterSize) {
83
        int result = 1;
84
		this.counterSize = counterSize;
84
        result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
85
	}
85
        result = prime * result + ((address == null) ? 0 : address.hashCode());
86
 
86
        result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
87
	public String getPan() {
87
        result = prime * result + cartId;
88
		return pan;
88
        result = prime * result + ((code == null) ? 0 : code.hashCode());
89
	}
89
        result = prime * result + Float.floatToIntBits(counterPotential);
90
 
90
        result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
91
	public FofoType getFofoType() {
91
        result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
92
		return fofoType;
92
        result = prime * result + ((email == null) ? 0 : email.hashCode());
93
	}
93
        result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
94
 
94
        result = prime * result + ((gstNumber == null) ? 0 : gstNumber.hashCode());
95
	public void setFofoType(FofoType fofoType) {
95
        result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
96
		this.fofoType = fofoType;
96
        result = prime * result + ((pan == null) ? 0 : pan.hashCode());
97
	}
97
        result = prime * result + partnerId;
98
 
98
        result = prime * result + warehouseId;
99
	public void setPan(String pan) {
99
        return result;
100
		this.pan = pan;
100
    }
101
	}
101
 
102
 
102
    public ActivationType getActivationType() {
103
	public int getWarehouseId() {
103
        return activationType;
104
		return warehouseId;
104
    }
105
	}
105
 
106
 
106
    public void setActivationType(ActivationType activationType) {
107
	public void setWarehouseId(int warehouseId) {
107
        this.activationType = activationType;
108
		this.warehouseId = warehouseId;
108
    }
109
	}
109
 
110
 
110
    private CounterSize counterSize;
111
	public String getDisplayName() {
111
 
112
		return displayName;
112
    // Derived fields to be set as required
113
	}
113
 
114
 
114
    public CounterSize getCounterSize() {
115
	public void setDisplayName(String displayName) {
115
        return counterSize;
116
		this.displayName = displayName;
116
    }
117
	}
117
 
118
 
118
    public void setCounterSize(CounterSize counterSize) {
119
	public String getBusinessName() {
119
        this.counterSize = counterSize;
120
		return businessName;
120
    }
121
	}
121
 
122
 
122
    public String getPan() {
123
	public void setBusinessName(String businessName) {
123
        return pan;
124
		this.businessName = businessName;
124
    }
125
	}
125
 
126
 
126
    public FofoType getFofoType() {
127
	public CustomAddress getAddress() {
127
        return fofoType;
128
		return address;
128
    }
129
	}
129
 
130
 
130
    public void setFofoType(FofoType fofoType) {
131
	public void setAddress(CustomAddress address) {
131
        this.fofoType = fofoType;
132
		this.address = address;
132
    }
133
	}
133
 
134
 
134
    public void setPan(String pan) {
135
	public String getMobileNumber() {
135
        this.pan = pan;
136
		return mobileNumber;
136
    }
137
	}
137
 
138
 
138
    public int getWarehouseId() {
139
	public void setMobileNumber(String mobileNumber) {
139
        return warehouseId;
140
		this.mobileNumber = mobileNumber;
140
    }
141
	}
141
 
142
 
142
    public void setWarehouseId(int warehouseId) {
143
	public String getGstNumber() {
143
        this.warehouseId = warehouseId;
144
		return gstNumber;
144
    }
145
	}
145
 
146
 
146
    public String getDisplayName() {
147
	public String getEmail() {
147
        return displayName;
148
		return email;
148
    }
149
	}
149
 
150
 
150
    public void setDisplayName(String displayName) {
151
	public void setEmail(String email) {
151
        this.displayName = displayName;
152
		this.email = email;
152
    }
153
	}
153
 
154
 
154
    public String getBusinessName() {
155
	public void setGstNumber(String gstNumber) {
155
        return businessName;
156
		this.gstNumber = gstNumber;
156
    }
157
	}
157
 
158
 
158
    public void setBusinessName(String businessName) {
159
	public int getCartId() {
159
        this.businessName = businessName;
160
		return cartId;
160
    }
161
	}
161
 
162
 
162
    public CustomAddress getAddress() {
163
	public void setCartId(int cartId) {
163
        return address;
164
		this.cartId = cartId;
164
    }
165
	}
165
 
166
 
166
    public void setAddress(CustomAddress address) {
167
	public int getPartnerId() {
167
        this.address = address;
168
		return partnerId;
168
    }
169
	}
169
 
170
 
170
    public String getMobileNumber() {
171
	public void setPartnerId(int partnerId) {
171
        return mobileNumber;
172
		this.partnerId = partnerId;
172
    }
173
	}
173
 
-
 
174
    public void setMobileNumber(String mobileNumber) {
-
 
175
        this.mobileNumber = mobileNumber;
-
 
176
    }
-
 
177
 
-
 
178
    public String getGstNumber() {
-
 
179
        return gstNumber;
-
 
180
    }
-
 
181
 
-
 
182
    public String getEmail() {
-
 
183
        return email;
-
 
184
    }
-
 
185
 
-
 
186
    public void setEmail(String email) {
-
 
187
        this.email = email;
-
 
188
    }
-
 
189
 
-
 
190
    public void setGstNumber(String gstNumber) {
-
 
191
        this.gstNumber = gstNumber;
-
 
192
    }
-
 
193
 
-
 
194
    public int getCartId() {
-
 
195
        return cartId;
-
 
196
    }
-
 
197
 
-
 
198
    public void setCartId(int cartId) {
-
 
199
        this.cartId = cartId;
-
 
200
    }
-
 
201
 
-
 
202
    public int getPartnerId() {
-
 
203
        return partnerId;
-
 
204
    }
-
 
205
 
-
 
206
    public void setPartnerId(int partnerId) {
-
 
207
        this.partnerId = partnerId;
-
 
208
    }
-
 
209
 
-
 
210
    public float getCounterPotential() {
-
 
211
        return counterPotential;
-
 
212
    }
-
 
213
 
-
 
214
    public void setCounterPotential(float counterPotential) {
-
 
215
        this.counterPotential = counterPotential;
-
 
216
    }
174
 
217
 
175
}
218
}