Subversion Repositories SmartDukaan

Rev

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

Rev 30454 Rev 31170
Line 3... Line 3...
3
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
3
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
4
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
4
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
5
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
5
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
6
 
6
 
7
import java.time.LocalDateTime;
7
import java.time.LocalDateTime;
-
 
8
import java.util.List;
8
import java.util.Objects;
9
import java.util.Objects;
9
import java.util.Set;
10
import java.util.Set;
10
 
11
 
11
public class CreateSchemeRequest {
12
public class CreateSchemeRequest {
12
 
13
 
Line 30... Line 31...
30
	private String description;
31
	private String description;
31
	private SchemeType type;
32
	private SchemeType type;
32
	private AmountType amountType;
33
	private AmountType amountType;
33
	private PartnerType partnerType;
34
	private PartnerType partnerType;
34
	private boolean cashback;
35
	private boolean cashback;
35
	private boolean basePluseGstCalc;
-
 
36
	private Set<Integer> catalogIds;
36
	private Set<Integer> catalogIds;
37
	private boolean gstReversal;
37
	private List<Integer> regionIds;
38
 
-
 
39
 
38
 
40
	public boolean isCashback() {
39
	public boolean isCashback() {
41
		return cashback;
40
		return cashback;
42
	}
41
	}
43
 
42
 
Line 103... Line 102...
103
 
102
 
104
	public void setCatalogIds(Set<Integer> catalogIds) {
103
	public void setCatalogIds(Set<Integer> catalogIds) {
105
		this.catalogIds = catalogIds;
104
		this.catalogIds = catalogIds;
106
	}
105
	}
107
 
106
 
108
	public boolean isBasePluseGstCalc() {
-
 
109
		return basePluseGstCalc;
-
 
110
	}
-
 
111
 
-
 
112
	public void setBasePluseGstCalc(boolean basePluseGstCalc) {
-
 
113
		this.basePluseGstCalc = basePluseGstCalc;
-
 
114
	}
-
 
115
 
-
 
116
	@Override
107
	@Override
117
	public String toString() {
108
	public String toString() {
118
		return "CreateSchemeRequest{" +
109
		return "CreateSchemeRequest{" +
119
				"name='" + name + '\'' +
110
				"name='" + name + '\'' +
120
				", description='" + description + '\'' +
111
				", description='" + description + '\'' +
121
				", type=" + type +
112
				", type=" + type +
122
				", amountType=" + amountType +
113
				", amountType=" + amountType +
123
				", partnerType=" + partnerType +
114
				", partnerType=" + partnerType +
124
				", cashback=" + cashback +
115
				", cashback=" + cashback +
125
				", basePluseGstCalc=" + basePluseGstCalc +
-
 
126
				", catalogIds=" + catalogIds +
116
				", catalogIds=" + catalogIds +
127
				", gstReversal=" + gstReversal +
117
				", regionIds=" + regionIds +
128
				", amount=" + amount +
118
				", amount=" + amount +
129
				", startDate=" + startDate +
119
				", startDate=" + startDate +
130
				", endDate=" + endDate +
120
				", endDate=" + endDate +
131
				'}';
121
				'}';
132
	}
122
	}
Line 134... Line 124...
134
	@Override
124
	@Override
135
	public boolean equals(Object o) {
125
	public boolean equals(Object o) {
136
		if (this == o) return true;
126
		if (this == o) return true;
137
		if (o == null || getClass() != o.getClass()) return false;
127
		if (o == null || getClass() != o.getClass()) return false;
138
		CreateSchemeRequest that = (CreateSchemeRequest) o;
128
		CreateSchemeRequest that = (CreateSchemeRequest) o;
139
		return cashback == that.cashback && basePluseGstCalc == that.basePluseGstCalc && gstReversal == that.gstReversal && Float.compare(that.amount, amount) == 0 && Objects.equals(name, that.name) && Objects.equals(description, that.description) && type == that.type && amountType == that.amountType && partnerType == that.partnerType && Objects.equals(catalogIds, that.catalogIds) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate);
129
		return cashback == that.cashback && Float.compare(that.amount, amount) == 0 && Objects.equals(name, that.name) && Objects.equals(description, that.description) && type == that.type && amountType == that.amountType && partnerType == that.partnerType && Objects.equals(catalogIds, that.catalogIds) && Objects.equals(regionIds, that.regionIds) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate);
140
	}
130
	}
141
 
131
 
142
	@Override
132
	@Override
143
	public int hashCode() {
133
	public int hashCode() {
144
		return Objects.hash(name, description, type, amountType, partnerType, cashback, basePluseGstCalc, catalogIds, gstReversal, amount, startDate, endDate);
134
		return Objects.hash(name, description, type, amountType, partnerType, cashback, catalogIds, regionIds, amount, startDate, endDate);
-
 
135
	}
-
 
136
 
-
 
137
	public List<Integer> getRegionIds() {
-
 
138
		return regionIds;
-
 
139
	}
-
 
140
 
-
 
141
	public void setRegionIds(List<Integer> regionIds) {
-
 
142
		this.regionIds = regionIds;
145
	}
143
	}
146
}
144
}