Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.scratch;

import javax.persistence.Column;
import java.time.LocalDate;
import java.util.List;

// ScratchRequest.java
public class ScratchRequest {
    // Offer Fields
    private int id;
    private String name;
    private String description;
    private String offerImage;
    private String offerType;
    private LocalDate startDate;
    private LocalDate endDate;
    private String termsCondition;
    private Integer userLimit;
    private Integer scratchValidity;
    private String productCategory;
    private String paymentMethod;
    private String classification;
    // Gift Fields (nested list)
    private List<GiftData> gifts;
    @Column(name = "isActive")
    private boolean active;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOfferImage() {
        return offerImage;
    }

    public void setOfferImage(String offerImage) {
        this.offerImage = offerImage;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public String getTermsCondition() {
        return termsCondition;
    }

    public void setTermsCondition(String termsCondition) {
        this.termsCondition = termsCondition;
    }

    public Integer getUserLimit() {
        return userLimit;
    }

    public void setUserLimit(Integer userLimit) {
        this.userLimit = userLimit;
    }

    public Integer getScratchValidity() {
        return scratchValidity;
    }

    public void setScratchValidity(Integer scratchValidity) {
        this.scratchValidity = scratchValidity;
    }

    public String getProductCategory() {
        return productCategory;
    }

    public void setProductCategory(String productCategory) {
        this.productCategory = productCategory;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public List<GiftData> getGifts() {
        return gifts;
    }

    public void setGifts(List<GiftData> gifts) {
        this.gifts = gifts;
    }

    public String getOfferType() {
        return offerType;
    }

    public void setOfferType(String offerType) {
        this.offerType = offerType;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getClassification() {
        return classification;
    }

    public void setClassification(String classification) {
        this.classification = classification;
    }

    @Override
    public String toString() {
        return "ScratchRequest{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", offerImage='" + offerImage + '\'' +
                ", offerType='" + offerType + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", termsCondition='" + termsCondition + '\'' +
                ", userLimit=" + userLimit +
                ", scratchValidity=" + scratchValidity +
                ", productCategory='" + productCategory + '\'' +
                ", paymentMethod='" + paymentMethod + '\'' +
                ", gifts=" + gifts +
                ", active=" + active +
                ", classification=" + classification +
                '}';
    }

    // Inner class for Gift data
    public static class GiftData {
        private Integer id;
        private String name;
        private String thumbnailUrl;
        private Double minCartValue;
        private Integer maxRedemptions;
        private String productCategory;
        private String fofoStore;
        private Double maxCartValue;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getThumbnailUrl() {
            return thumbnailUrl;
        }

        public void setThumbnailUrl(String thumbnailUrl) {
            this.thumbnailUrl = thumbnailUrl;
        }


        public Double getMinCartValue() {
            return minCartValue;
        }

        public void setMinCartValue(Double minCartValue) {
            this.minCartValue = minCartValue;
        }

        public Integer getMaxRedemptions() {
            return maxRedemptions;
        }

        public void setMaxRedemptions(Integer maxRedemptions) {
            this.maxRedemptions = maxRedemptions;
        }

        public String getProductCategory() {
            return productCategory;
        }

        public void setProductCategory(String productCategory) {
            this.productCategory = productCategory;
        }

        public String getFofoStore() {
            return fofoStore;
        }

        public void setFofoStore(String fofoStore) {
            this.fofoStore = fofoStore;
        }

        public Double getMaxCartValue() {
            return maxCartValue;
        }

        public void setMaxCartValue(Double maxCartValue) {
            this.maxCartValue = maxCartValue;
        }


    }
}