Subversion Repositories SmartDukaan

Rev

Rev 30123 | Rev 31170 | Go to most recent revision | 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;
30454 amit.gupta 8
import java.util.Objects;
30123 amit.gupta 9
import java.util.Set;
10
 
22858 ashik.ali 11
public class CreateSchemeRequest {
25503 amit.gupta 12
 
23886 amit.gupta 13
	public LocalDateTime getStartDate() {
14
		return startDate;
15
	}
25503 amit.gupta 16
 
23886 amit.gupta 17
	public void setStartDate(LocalDateTime startDate) {
18
		this.startDate = startDate;
19
	}
25503 amit.gupta 20
 
23886 amit.gupta 21
	public LocalDateTime getEndDate() {
22
		return endDate;
23
	}
25503 amit.gupta 24
 
23886 amit.gupta 25
	public void setEndDate(LocalDateTime endDate) {
26
		this.endDate = endDate;
27
	}
28
 
22858 ashik.ali 29
	private String name;
30
	private String description;
25503 amit.gupta 31
	private SchemeType type;
32
	private AmountType amountType;
30123 amit.gupta 33
	private PartnerType partnerType;
28465 amit.gupta 34
	private boolean cashback;
30454 amit.gupta 35
	private boolean basePluseGstCalc;
30123 amit.gupta 36
	private Set<Integer> catalogIds;
30454 amit.gupta 37
	private boolean gstReversal;
30123 amit.gupta 38
 
39
 
40
	public boolean isCashback() {
41
		return cashback;
42
	}
43
 
44
	public void setCashback(boolean cashback) {
45
		this.cashback = cashback;
46
	}
47
 
48
	public PartnerType getPartnerType() {
49
		return partnerType;
26679 amit.gupta 50
	}
51
 
30123 amit.gupta 52
	public void setPartnerType(PartnerType partnerType) {
53
		this.partnerType = partnerType;
26679 amit.gupta 54
	}
55
 
30123 amit.gupta 56
	private float amount;
57
	private LocalDateTime startDate;
58
	private LocalDateTime endDate;
59
 
22858 ashik.ali 60
	public String getName() {
61
		return name;
62
	}
25503 amit.gupta 63
 
64
	public SchemeType getType() {
65
		return type;
66
	}
67
 
68
	public void setType(SchemeType type) {
69
		this.type = type;
70
	}
71
 
72
	public AmountType getAmountType() {
73
		return amountType;
74
	}
75
 
76
	public void setAmountType(AmountType amountType) {
77
		this.amountType = amountType;
78
	}
79
 
22858 ashik.ali 80
	public void setName(String name) {
81
		this.name = name;
82
	}
25503 amit.gupta 83
 
22858 ashik.ali 84
	public String getDescription() {
85
		return description;
86
	}
25503 amit.gupta 87
 
22858 ashik.ali 88
	public void setDescription(String description) {
89
		this.description = description;
90
	}
25503 amit.gupta 91
 
22858 ashik.ali 92
	public float getAmount() {
93
		return amount;
94
	}
25503 amit.gupta 95
 
22858 ashik.ali 96
	public void setAmount(float amount) {
97
		this.amount = amount;
98
	}
25503 amit.gupta 99
 
30123 amit.gupta 100
	public Set<Integer> getCatalogIds() {
101
		return catalogIds;
22858 ashik.ali 102
	}
25503 amit.gupta 103
 
30123 amit.gupta 104
	public void setCatalogIds(Set<Integer> catalogIds) {
105
		this.catalogIds = catalogIds;
22858 ashik.ali 106
	}
30454 amit.gupta 107
 
108
	public boolean isBasePluseGstCalc() {
109
		return basePluseGstCalc;
110
	}
111
 
112
	public void setBasePluseGstCalc(boolean basePluseGstCalc) {
113
		this.basePluseGstCalc = basePluseGstCalc;
114
	}
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
				", basePluseGstCalc=" + basePluseGstCalc +
126
				", catalogIds=" + catalogIds +
127
				", gstReversal=" + gstReversal +
128
				", amount=" + amount +
129
				", startDate=" + startDate +
130
				", endDate=" + endDate +
131
				'}';
132
	}
133
 
134
	@Override
135
	public boolean equals(Object o) {
136
		if (this == o) return true;
137
		if (o == null || getClass() != o.getClass()) return false;
138
		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);
140
	}
141
 
142
	@Override
143
	public int hashCode() {
144
		return Objects.hash(name, description, type, amountType, partnerType, cashback, basePluseGstCalc, catalogIds, gstReversal, amount, startDate, endDate);
145
	}
22858 ashik.ali 146
}