Subversion Repositories SmartDukaan

Rev

Rev 31180 | Rev 31743 | 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
 
31684 amit.gupta 3
import com.spice.profitmandi.common.enumuration.ActivationType;
31180 tejbeer 4
import com.spice.profitmandi.common.enumuration.CounterSize;
30219 tejbeer 5
import com.spice.profitmandi.common.enumuration.FofoType;
6
 
31684 amit.gupta 7
import java.util.Objects;
8
 
21686 ashik.ali 9
public class CustomRetailer {
23786 amit.gupta 10
	private int partnerId;
26089 amit.gupta 11
	private String code;
30219 tejbeer 12
 
26089 amit.gupta 13
	public String getCode() {
14
		return code;
15
	}
30219 tejbeer 16
 
26089 amit.gupta 17
	public void setCode(String code) {
18
		this.code = code;
19
	}
30122 amit.gupta 20
 
23796 amit.gupta 21
	private int cartId;
21686 ashik.ali 22
	private String businessName;
23
	private CustomAddress address;
24
	private String mobileNumber;
22351 ashik.ali 25
	private String gstNumber;
23903 amit.gupta 26
	private String email;
24349 amit.gupta 27
	private String displayName;
26115 amit.gupta 28
	private int warehouseId;
29645 amit.gupta 29
	private String pan;
30219 tejbeer 30
	private FofoType fofoType;
31684 amit.gupta 31
	private ActivationType activationType;
30122 amit.gupta 32
 
31684 amit.gupta 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
	}
74
 
31180 tejbeer 75
	private CounterSize counterSize;
76
 
30219 tejbeer 77
	// Derived fields to be set as required
30122 amit.gupta 78
 
31180 tejbeer 79
	public CounterSize getCounterSize() {
80
		return counterSize;
81
	}
82
 
83
	public void setCounterSize(CounterSize counterSize) {
84
		this.counterSize = counterSize;
85
	}
86
 
29645 amit.gupta 87
	public String getPan() {
88
		return pan;
89
	}
30122 amit.gupta 90
 
30219 tejbeer 91
	public FofoType getFofoType() {
92
		return fofoType;
93
	}
94
 
95
	public void setFofoType(FofoType fofoType) {
96
		this.fofoType = fofoType;
97
	}
98
 
29645 amit.gupta 99
	public void setPan(String pan) {
100
		this.pan = pan;
101
	}
30122 amit.gupta 102
 
26115 amit.gupta 103
	public int getWarehouseId() {
104
		return warehouseId;
105
	}
30219 tejbeer 106
 
26115 amit.gupta 107
	public void setWarehouseId(int warehouseId) {
108
		this.warehouseId = warehouseId;
109
	}
30219 tejbeer 110
 
24349 amit.gupta 111
	public String getDisplayName() {
112
		return displayName;
113
	}
30219 tejbeer 114
 
24349 amit.gupta 115
	public void setDisplayName(String displayName) {
116
		this.displayName = displayName;
117
	}
30219 tejbeer 118
 
21686 ashik.ali 119
	public String getBusinessName() {
120
		return businessName;
121
	}
30219 tejbeer 122
 
21686 ashik.ali 123
	public void setBusinessName(String businessName) {
124
		this.businessName = businessName;
125
	}
30219 tejbeer 126
 
21686 ashik.ali 127
	public CustomAddress getAddress() {
128
		return address;
129
	}
30219 tejbeer 130
 
21686 ashik.ali 131
	public void setAddress(CustomAddress address) {
132
		this.address = address;
133
	}
30219 tejbeer 134
 
21686 ashik.ali 135
	public String getMobileNumber() {
136
		return mobileNumber;
137
	}
30219 tejbeer 138
 
21686 ashik.ali 139
	public void setMobileNumber(String mobileNumber) {
140
		this.mobileNumber = mobileNumber;
141
	}
30219 tejbeer 142
 
22351 ashik.ali 143
	public String getGstNumber() {
144
		return gstNumber;
145
	}
30219 tejbeer 146
 
23903 amit.gupta 147
	public String getEmail() {
148
		return email;
149
	}
30219 tejbeer 150
 
23903 amit.gupta 151
	public void setEmail(String email) {
152
		this.email = email;
153
	}
30219 tejbeer 154
 
22351 ashik.ali 155
	public void setGstNumber(String gstNumber) {
156
		this.gstNumber = gstNumber;
157
	}
30219 tejbeer 158
 
23796 amit.gupta 159
	public int getCartId() {
160
		return cartId;
161
	}
30219 tejbeer 162
 
23796 amit.gupta 163
	public void setCartId(int cartId) {
164
		this.cartId = cartId;
165
	}
30219 tejbeer 166
 
23786 amit.gupta 167
	public int getPartnerId() {
168
		return partnerId;
169
	}
30219 tejbeer 170
 
23786 amit.gupta 171
	public void setPartnerId(int partnerId) {
172
		this.partnerId = partnerId;
173
	}
30219 tejbeer 174
 
21686 ashik.ali 175
}