Rev 31170 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import com.spice.profitmandi.dao.entity.fofo.PartnerType;import com.spice.profitmandi.dao.enumuration.catalog.AmountType;import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;import java.time.LocalDateTime;import java.util.List;import java.util.Objects;import java.util.Set;public class CreateSchemeRequest {public LocalDateTime getStartDate() {return startDate;}public void setStartDate(LocalDateTime startDate) {this.startDate = startDate;}public LocalDateTime getEndDate() {return endDate;}public void setEndDate(LocalDateTime endDate) {this.endDate = endDate;}private String name;private String description;private SchemeType type;private AmountType amountType;private PartnerType partnerType;private boolean cashback;private Set<Integer> catalogIds;private List<Integer> regionIds;private String reference;public String getReference() {return reference;}public void setReference(String reference) {this.reference = reference;}public boolean isCashback() {return cashback;}public void setCashback(boolean cashback) {this.cashback = cashback;}public PartnerType getPartnerType() {return partnerType;}public void setPartnerType(PartnerType partnerType) {this.partnerType = partnerType;}private float amount;private LocalDateTime startDate;private LocalDateTime endDate;public String getName() {return name;}public SchemeType getType() {return type;}public void setType(SchemeType type) {this.type = type;}public AmountType getAmountType() {return amountType;}public void setAmountType(AmountType amountType) {this.amountType = amountType;}public void setName(String name) {this.name = name;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}public Set<Integer> getCatalogIds() {return catalogIds;}public void setCatalogIds(Set<Integer> catalogIds) {this.catalogIds = catalogIds;}@Overridepublic String toString() {return "CreateSchemeRequest{" +"name='" + name + '\'' +", description='" + description + '\'' +", type=" + type +", amountType=" + amountType +", partnerType=" + partnerType +", cashback=" + cashback +", catalogIds=" + catalogIds +", regionIds=" + regionIds +", amount=" + amount +", startDate=" + startDate +", endDate=" + endDate +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;CreateSchemeRequest that = (CreateSchemeRequest) o;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);}@Overridepublic int hashCode() {return Objects.hash(name, description, type, amountType, partnerType, cashback, catalogIds, regionIds, amount, startDate, endDate);}public List<Integer> getRegionIds() {return regionIds;}public void setRegionIds(List<Integer> regionIds) {this.regionIds = regionIds;}}