Subversion Repositories SmartDukaan

Rev

Rev 37244 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.catalog;

/**
 * The five mandatory informational attributes captured when a model is marked
 * as a hot deal. All fields are wrapper types so "not provided" is detectable —
 * the form has no defaults and the service rejects any null.
 */
public class HotDealAttributes {

    private Integer warrantyMonths;
    private String condition;
    private Boolean fresh;
    private Boolean financeMapping;
    private Boolean affordability;

    public HotDealAttributes() {
    }

    public HotDealAttributes(Integer warrantyMonths, String condition, Boolean fresh,
                             Boolean financeMapping, Boolean affordability) {
        this.warrantyMonths = warrantyMonths;
        this.condition = condition;
        this.fresh = fresh;
        this.financeMapping = financeMapping;
        this.affordability = affordability;
    }

    public Integer getWarrantyMonths() {
        return warrantyMonths;
    }

    public void setWarrantyMonths(Integer warrantyMonths) {
        this.warrantyMonths = warrantyMonths;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public Boolean getFresh() {
        return fresh;
    }

    public void setFresh(Boolean fresh) {
        this.fresh = fresh;
    }

    public Boolean getFinanceMapping() {
        return financeMapping;
    }

    public void setFinanceMapping(Boolean financeMapping) {
        this.financeMapping = financeMapping;
    }

    public Boolean getAffordability() {
        return affordability;
    }

    public void setAffordability(Boolean affordability) {
        this.affordability = affordability;
    }
}