Rev 30651 | 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.enumuration.catalog.AchievementType;import com.spice.profitmandi.dao.enumuration.catalog.AmountType;import java.util.List;import java.util.Objects;public class OfferRowModel {private String storeName;private int fofoId;private int maxBrandSharePercentage;private double payoutPurchaseValue;private double totalBasePurchaseValue;private double eligibleSaleDp;private String baseCriteria;private double totalSale;private double eligibleSale;private List<String> eligibleImeis;private double achievedTarget;private double nextTarget;private int soldValue;private AchievementType targetType;private int currentPayoutTarget;private int payoutTargetAchieved;private float payoutValue;private float payoutValueDp;private String payoutCriteria;private double payout;private double finalPayout;private AmountType payoutType;public double getPayoutPurchaseValue() {return payoutPurchaseValue;}public void setPayoutPurchaseValue(double payoutPurchaseValue) {this.payoutPurchaseValue = payoutPurchaseValue;}@Overridepublic String toString() {return "OfferRowModel{" +"storeName='" + storeName + '\'' +", fofoId=" + fofoId +", maxBrandSharePercentage=" + maxBrandSharePercentage +", payoutPurchaseValue=" + payoutPurchaseValue +", totalBasePurchaseValue=" + totalBasePurchaseValue +", eligibleSaleDp=" + eligibleSaleDp +", baseCriteria='" + baseCriteria + '\'' +", totalSale=" + totalSale +", eligibleSale=" + eligibleSale +", eligibleImeis=" + eligibleImeis +", achievedTarget=" + achievedTarget +", nextTarget=" + nextTarget +", soldValue=" + soldValue +", targetType=" + targetType +", currentPayoutTarget=" + currentPayoutTarget +", payoutTargetAchieved=" + payoutTargetAchieved +", payoutValue=" + payoutValue +", payoutValueDp=" + payoutValueDp +", payoutCriteria='" + payoutCriteria + '\'' +", payout='" + payout + '\'' +", finalPayout=" + finalPayout +", payoutType=" + payoutType +'}';}public List<String> getEligibleImeis() {return eligibleImeis;}public void setEligibleImeis(List<String> eligibleImeis) {this.eligibleImeis = eligibleImeis;}public String getPayoutCriteria() {return payoutCriteria;}public void setPayoutValueDp(float payoutValueDp) {this.payoutValueDp = payoutValueDp;}public void setPayoutCriteria(String payoutCriteria) {this.payoutCriteria = payoutCriteria;}public void setCurrentPayoutTarget(int currentPayoutTarget) {this.currentPayoutTarget = currentPayoutTarget;}public float getPayoutValueDp() {return payoutValueDp;}public int getCurrentPayoutTarget() {return currentPayoutTarget;}public int getSoldValue() {return soldValue;}public void setSoldValue(int soldValue) {this.soldValue = soldValue;}public AchievementType getTargetType() {return targetType;}public void setTargetType(AchievementType targetType) {this.targetType = targetType;}public List<String> getPendingImeis() {return eligibleImeis;}public double setPayout(double payout) {return this.payout = payout;}public int getPayoutTargetAchieved() {return payoutTargetAchieved;}public void setPayoutTargetAchieved(int payoutTargetAchieved) {this.payoutTargetAchieved = payoutTargetAchieved;}public float getPayoutValue() {return payoutValue;}public void setPayoutValue(float payoutValue) {this.payoutValue = payoutValue;}public double getFinalPayout() {return finalPayout;}public void setFinalPayout(double finalPayout) {this.finalPayout = finalPayout;}public double getPayout() {return this.payout;}public double getEligibleSaleDp() {return eligibleSaleDp;}public void setEligibleSaleDp(double eligibleSaleDp) {this.eligibleSaleDp = eligibleSaleDp;}public double getTotalSale() {return totalSale;}public void setTotalSale(double totalSale) {this.totalSale = totalSale;}public String getStoreName() {return storeName;}public void setStoreName(String storeName) {this.storeName = storeName;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getMaxBrandSharePercentage() {return maxBrandSharePercentage;}public void setMaxBrandSharePercentage(int maxBrandSharePercentage) {this.maxBrandSharePercentage = maxBrandSharePercentage;}public double getEligibleSale() {return eligibleSale;}public void setEligibleSale(double eligibleSale) {this.eligibleSale = eligibleSale;}public double getAchievedTarget() {return achievedTarget;}public void setAchievedTarget(double achievedTarget) {this.achievedTarget = achievedTarget;}public double getNextTarget() {return nextTarget;}public void setNextTarget(double nextTarget) {this.nextTarget = nextTarget;}public String getBaseCriteria() {return baseCriteria;}public void setBaseCriteria(String baseCriteria) {this.baseCriteria = baseCriteria;}public AmountType getPayoutType() {return payoutType;}public void setPayoutType(AmountType payoutType) {this.payoutType = payoutType;}public double getTotalBasePurchaseValue() {return totalBasePurchaseValue;}public void setTotalBasePurchaseValue(double totalBasePurchaseValue) {this.totalBasePurchaseValue = totalBasePurchaseValue;}private List<String> billingPendingImeis;public List<String> getBillingPendingImeis() {return billingPendingImeis;}public void setBillingPendingImeis(List<String> billingPendingImeis) {this.billingPendingImeis = billingPendingImeis;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;OfferRowModel that = (OfferRowModel) o;return fofoId == that.fofoId && maxBrandSharePercentage == that.maxBrandSharePercentage && Double.compare(that.payoutPurchaseValue, payoutPurchaseValue) == 0 && Double.compare(that.totalBasePurchaseValue, totalBasePurchaseValue) == 0 && Double.compare(that.eligibleSaleDp, eligibleSaleDp) == 0 && Double.compare(that.totalSale, totalSale) == 0 && Double.compare(that.eligibleSale, eligibleSale) == 0 && Double.compare(that.achievedTarget, achievedTarget) == 0 && Double.compare(that.nextTarget, nextTarget) == 0 && soldValue == that.soldValue && currentPayoutTarget == that.currentPayoutTarget && payoutTargetAchieved == that.payoutTargetAchieved && Float.compare(that.payoutValue, payoutValue) == 0 && Float.compare(that.payoutValueDp, payoutValueDp) == 0 && Double.compare(that.payout, payout) == 0 && Double.compare(that.finalPayout, finalPayout) == 0 && Objects.equals(storeName, that.storeName) && Objects.equals(baseCriteria, that.baseCriteria) && Objects.equals(eligibleImeis, that.eligibleImeis) && targetType ==that.targetType && Objects.equals(payoutCriteria, that.payoutCriteria) && payoutType == that.payoutType && Objects.equals(billingPendingImeis, that.billingPendingImeis);}@Overridepublic int hashCode() {return Objects.hash(storeName, fofoId, maxBrandSharePercentage, payoutPurchaseValue, totalBasePurchaseValue, eligibleSaleDp, baseCriteria, totalSale, eligibleSale, eligibleImeis, achievedTarget, nextTarget, soldValue, targetType, currentPayoutTarget, payoutTargetAchieved, payoutValue, payoutValueDp, payoutCriteria, payout, finalPayout, payoutType, billingPendingImeis);}}