Subversion Repositories SmartDukaan

Rev

Rev 31170 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25503 amit.gupta 1
package com.spice.profitmandi.dao.model;
22858 ashik.ali 2
 
25503 amit.gupta 3
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
4
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
5
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
6
 
30123 amit.gupta 7
import java.time.LocalDateTime;
31170 amit.gupta 8
import java.util.List;
30454 amit.gupta 9
import java.util.Objects;
30123 amit.gupta 10
import java.util.Set;
11
 
22858 ashik.ali 12
public class CreateSchemeRequest {
25503 amit.gupta 13
 
23886 amit.gupta 14
	public LocalDateTime getStartDate() {
15
		return startDate;
16
	}
25503 amit.gupta 17
 
23886 amit.gupta 18
	public void setStartDate(LocalDateTime startDate) {
19
		this.startDate = startDate;
20
	}
25503 amit.gupta 21
 
23886 amit.gupta 22
	public LocalDateTime getEndDate() {
23
		return endDate;
24
	}
25503 amit.gupta 25
 
23886 amit.gupta 26
	public void setEndDate(LocalDateTime endDate) {
27
		this.endDate = endDate;
28
	}
29
 
22858 ashik.ali 30
	private String name;
31
	private String description;
25503 amit.gupta 32
	private SchemeType type;
33
	private AmountType amountType;
30123 amit.gupta 34
	private PartnerType partnerType;
28465 amit.gupta 35
	private boolean cashback;
30123 amit.gupta 36
	private Set<Integer> catalogIds;
31170 amit.gupta 37
	private List<Integer> regionIds;
36451 amit 38
	private String reference;
30123 amit.gupta 39
 
36451 amit 40
	public String getReference() {
41
		return reference;
42
	}
43
 
44
	public void setReference(String reference) {
45
		this.reference = reference;
46
	}
47
 
30123 amit.gupta 48
	public boolean isCashback() {
49
		return cashback;
50
	}
51
 
52
	public void setCashback(boolean cashback) {
53
		this.cashback = cashback;
54
	}
55
 
56
	public PartnerType getPartnerType() {
57
		return partnerType;
26679 amit.gupta 58
	}
59
 
30123 amit.gupta 60
	public void setPartnerType(PartnerType partnerType) {
61
		this.partnerType = partnerType;
26679 amit.gupta 62
	}
63
 
30123 amit.gupta 64
	private float amount;
65
	private LocalDateTime startDate;
66
	private LocalDateTime endDate;
67
 
22858 ashik.ali 68
	public String getName() {
69
		return name;
70
	}
25503 amit.gupta 71
 
72
	public SchemeType getType() {
73
		return type;
74
	}
75
 
76
	public void setType(SchemeType type) {
77
		this.type = type;
78
	}
79
 
80
	public AmountType getAmountType() {
81
		return amountType;
82
	}
83
 
84
	public void setAmountType(AmountType amountType) {
85
		this.amountType = amountType;
86
	}
87
 
22858 ashik.ali 88
	public void setName(String name) {
89
		this.name = name;
90
	}
25503 amit.gupta 91
 
22858 ashik.ali 92
	public String getDescription() {
93
		return description;
94
	}
25503 amit.gupta 95
 
22858 ashik.ali 96
	public void setDescription(String description) {
97
		this.description = description;
98
	}
25503 amit.gupta 99
 
22858 ashik.ali 100
	public float getAmount() {
101
		return amount;
102
	}
25503 amit.gupta 103
 
22858 ashik.ali 104
	public void setAmount(float amount) {
105
		this.amount = amount;
106
	}
25503 amit.gupta 107
 
30123 amit.gupta 108
	public Set<Integer> getCatalogIds() {
109
		return catalogIds;
22858 ashik.ali 110
	}
25503 amit.gupta 111
 
30123 amit.gupta 112
	public void setCatalogIds(Set<Integer> catalogIds) {
113
		this.catalogIds = catalogIds;
22858 ashik.ali 114
	}
30454 amit.gupta 115
 
116
	@Override
117
	public String toString() {
118
		return "CreateSchemeRequest{" +
119
				"name='" + name + '\'' +
120
				", description='" + description + '\'' +
121
				", type=" + type +
122
				", amountType=" + amountType +
123
				", partnerType=" + partnerType +
124
				", cashback=" + cashback +
125
				", catalogIds=" + catalogIds +
31170 amit.gupta 126
				", regionIds=" + regionIds +
30454 amit.gupta 127
				", amount=" + amount +
128
				", startDate=" + startDate +
129
				", endDate=" + endDate +
130
				'}';
131
	}
132
 
133
	@Override
134
	public boolean equals(Object o) {
135
		if (this == o) return true;
136
		if (o == null || getClass() != o.getClass()) return false;
137
		CreateSchemeRequest that = (CreateSchemeRequest) o;
31170 amit.gupta 138
		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);
30454 amit.gupta 139
	}
140
 
141
	@Override
142
	public int hashCode() {
31170 amit.gupta 143
		return Objects.hash(name, description, type, amountType, partnerType, cashback, catalogIds, regionIds, amount, startDate, endDate);
30454 amit.gupta 144
	}
31170 amit.gupta 145
 
146
	public List<Integer> getRegionIds() {
147
		return regionIds;
148
	}
149
 
150
	public void setRegionIds(List<Integer> regionIds) {
151
		this.regionIds = regionIds;
152
	}
22858 ashik.ali 153
}