Subversion Repositories SmartDukaan

Rev

Rev 31180 | Rev 31743 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import com.spice.profitmandi.common.enumuration.ActivationType;
import com.spice.profitmandi.common.enumuration.CounterSize;
import com.spice.profitmandi.common.enumuration.FofoType;

import java.util.Objects;

public class CustomRetailer {
        private int partnerId;
        private String code;

        public String getCode() {
                return code;
        }

        public void setCode(String code) {
                this.code = code;
        }

        private int cartId;
        private String businessName;
        private CustomAddress address;
        private String mobileNumber;
        private String gstNumber;
        private String email;
        private String displayName;
        private int warehouseId;
        private String pan;
        private FofoType fofoType;
        private ActivationType activationType;


        @Override
        public String toString() {
                return "CustomRetailer{" +
                                "partnerId=" + partnerId +
                                ", code='" + code + '\'' +
                                ", cartId=" + cartId +
                                ", businessName='" + businessName + '\'' +
                                ", address=" + address +
                                ", mobileNumber='" + mobileNumber + '\'' +
                                ", gstNumber='" + gstNumber + '\'' +
                                ", email='" + email + '\'' +
                                ", displayName='" + displayName + '\'' +
                                ", warehouseId=" + warehouseId +
                                ", pan='" + pan + '\'' +
                                ", fofoType=" + fofoType +
                                ", activationType=" + activationType +
                                ", counterSize=" + counterSize +
                                '}';
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (o == null || getClass() != o.getClass()) return false;
                CustomRetailer that = (CustomRetailer) o;
                return partnerId == that.partnerId && cartId == that.cartId && warehouseId == that.warehouseId && Objects.equals(code, that.code) && Objects.equals(businessName, that.businessName) && Objects.equals(address, that.address) && Objects.equals(mobileNumber, that.mobileNumber) && Objects.equals(gstNumber, that.gstNumber) && Objects.equals(email, that.email) && Objects.equals(displayName, that.displayName) && Objects.equals(pan, that.pan) && fofoType == that.fofoType && activationType == that.activationType && counterSize == that.counterSize;
        }

        @Override
        public int hashCode() {
                return Objects.hash(partnerId, code, cartId, businessName, address, mobileNumber, gstNumber, email, displayName, warehouseId, pan, fofoType, activationType, counterSize);
        }

        public ActivationType getActivationType() {
                return activationType;
        }

        public void setActivationType(ActivationType activationType) {
                this.activationType = activationType;
        }

        private CounterSize counterSize;

        // Derived fields to be set as required

        public CounterSize getCounterSize() {
                return counterSize;
        }

        public void setCounterSize(CounterSize counterSize) {
                this.counterSize = counterSize;
        }

        public String getPan() {
                return pan;
        }

        public FofoType getFofoType() {
                return fofoType;
        }

        public void setFofoType(FofoType fofoType) {
                this.fofoType = fofoType;
        }

        public void setPan(String pan) {
                this.pan = pan;
        }

        public int getWarehouseId() {
                return warehouseId;
        }

        public void setWarehouseId(int warehouseId) {
                this.warehouseId = warehouseId;
        }

        public String getDisplayName() {
                return displayName;
        }

        public void setDisplayName(String displayName) {
                this.displayName = displayName;
        }

        public String getBusinessName() {
                return businessName;
        }

        public void setBusinessName(String businessName) {
                this.businessName = businessName;
        }

        public CustomAddress getAddress() {
                return address;
        }

        public void setAddress(CustomAddress address) {
                this.address = address;
        }

        public String getMobileNumber() {
                return mobileNumber;
        }

        public void setMobileNumber(String mobileNumber) {
                this.mobileNumber = mobileNumber;
        }

        public String getGstNumber() {
                return gstNumber;
        }

        public String getEmail() {
                return email;
        }

        public void setEmail(String email) {
                this.email = email;
        }

        public void setGstNumber(String gstNumber) {
                this.gstNumber = gstNumber;
        }

        public int getCartId() {
                return cartId;
        }

        public void setCartId(int cartId) {
                this.cartId = cartId;
        }

        public int getPartnerId() {
                return partnerId;
        }

        public void setPartnerId(int partnerId) {
                this.partnerId = partnerId;
        }

}