Subversion Repositories SmartDukaan

Rev

Rev 31861 | 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;
    private int astId;

    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;

    private float counterPotential;
    private String firstName;
    private String lastName;
    
    

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public int getAstId() {
        return astId;
    }

    public void setAstId(int astId) {
        this.astId = astId;
    }

    @Override
    public String toString() {
        return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ",astId=" + astId + ", businessName=" + businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan + ", fofoType=" + fofoType + ", activationType=" + activationType + ", counterPotential=" + counterPotential + ", firstName=" + firstName + ", lastName=" + lastName + ", counterSize=" + counterSize + "]";
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        CustomRetailer other = (CustomRetailer) obj;
        if (activationType != other.activationType) return false;
        if (address == null) {
            if (other.address != null) return false;
        } else if (!address.equals(other.address)) return false;
        if (businessName == null) {
            if (other.businessName != null) return false;
        } else if (!businessName.equals(other.businessName)) return false;
        if (cartId != other.cartId) return false;
        if (astId != other.astId) return false;
        if (code == null) {
            if (other.code != null) return false;
        } else if (!code.equals(other.code)) return false;

        if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential)) return false;
        if (counterSize != other.counterSize) return false;
        if (displayName == null) {
            if (other.displayName != null) return false;
        } else if (!displayName.equals(other.displayName)) return false;
        if (email == null) {
            if (other.email != null) return false;
        } else if (!email.equals(other.email)) return false;
        if (firstName == null) {
            if (other.firstName != null) return false;
        } else if (!firstName.equals(other.firstName)) return false;
        if (fofoType != other.fofoType) return false;
        if (gstNumber == null) {
            if (other.gstNumber != null) return false;
        } else if (!gstNumber.equals(other.gstNumber)) return false;
        if (lastName == null) {
            if (other.lastName != null) return false;
        } else if (!lastName.equals(other.lastName)) return false;
        if (mobileNumber == null) {
            if (other.mobileNumber != null) return false;
        } else if (!mobileNumber.equals(other.mobileNumber)) return false;
        if (pan == null) {
            if (other.pan != null) return false;
        } else if (!pan.equals(other.pan)) return false;
        if (partnerId != other.partnerId) return false;
        if (warehouseId != other.warehouseId) return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
        result = prime * result + ((address == null) ? 0 : address.hashCode());
        result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
        result = prime * result + cartId;
        result = prime * result + astId;
        result = prime * result + ((code == null) ? 0 : code.hashCode());
        result = prime * result + Float.floatToIntBits(counterPotential);
        result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
        result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
        result = prime * result + ((email == null) ? 0 : email.hashCode());
        result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
        result = prime * result + ((fofoType == null) ? 0 : fofoType.hashCode());
        result = prime * result + ((gstNumber == null) ? 0 : gstNumber.hashCode());
        result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
        result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
        result = prime * result + ((pan == null) ? 0 : pan.hashCode());
        result = prime * result + partnerId;
        result = prime * result + warehouseId;
        return result;
    }

    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;
    }

    public float getCounterPotential() {
        return counterPotential;
    }

    public void setCounterPotential(float counterPotential) {
        this.counterPotential = counterPotential;
    }

}