Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class UpsellingReportModel {
    int agentId;
    String agentEmail;
    String partnerName;
    String partnerMobile;
    String state;
    int orderId;
    String customerNumber;
    String callingDate;
    String disposition;
    String remark;
    String paymentStatus;
    String insuranceStatus;
    float policySoldAmount;
    String invoiceNumber;
    String serialNumber;

    public UpsellingReportModel(int agentId, String agentEmail, String partnerName, String partnerMobile, String state, int orderId, String customerNumber, String callingDate, String disposition, String remark, String paymentStatus, String insuranceStatus, float policySoldAmount, String invoiceNumber, String serialNumber) {
        this.agentId = agentId;
        this.agentEmail = agentEmail;
        this.partnerName = partnerName;
        this.partnerMobile = partnerMobile;
        this.state = state;
        this.orderId = orderId;
        this.customerNumber = customerNumber;
        this.callingDate = callingDate;
        this.disposition = disposition;
        this.remark = remark;
        this.paymentStatus = paymentStatus;
        this.insuranceStatus = insuranceStatus;
        this.policySoldAmount = policySoldAmount;
        this.invoiceNumber = invoiceNumber;
        this.serialNumber = serialNumber;
    }

    public int getAgentId() {
        return agentId;
    }

    public void setAgentId(int agentId) {
        this.agentId = agentId;
    }

    public String getAgentEmail() {
        return agentEmail;
    }

    public void setAgentEmail(String agentEmail) {
        this.agentEmail = agentEmail;
    }

    public String getPartnerName() {
        return partnerName;
    }

    public void setPartnerName(String partnerName) {
        this.partnerName = partnerName;
    }

    public String getPartnerMobile() {
        return partnerMobile;
    }

    public void setPartnerMobile(String partnerMobile) {
        this.partnerMobile = partnerMobile;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public String getCallingDate() {
        return callingDate;
    }

    public void setCallingDate(String callingDate) {
        this.callingDate = callingDate;
    }

    public String getDisposition() {
        return disposition;
    }

    public void setDisposition(String disposition) {
        this.disposition = disposition;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public String getInsuranceStatus() {
        return insuranceStatus;
    }

    public void setInsuranceStatus(String insuranceStatus) {
        this.insuranceStatus = insuranceStatus;
    }

    public float getPolicySoldAmount() {
        return policySoldAmount;
    }

    public void setPolicySoldAmount(float policySoldAmount) {
        this.policySoldAmount = policySoldAmount;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    @Override
    public String toString() {
        return "UpsellingReportModel{" +
                "agentId=" + agentId +
                ", agentEmail='" + agentEmail + '\'' +
                ", partnerName='" + partnerName + '\'' +
                ", partnerMobile='" + partnerMobile + '\'' +
                ", state='" + state + '\'' +
                ", orderId=" + orderId +
                ", customerNumber='" + customerNumber + '\'' +
                ", callingDate='" + callingDate + '\'' +
                ", disposition='" + disposition + '\'' +
                ", remark='" + remark + '\'' +
                ", paymentStatus='" + paymentStatus + '\'' +
                ", insuranceStatus='" + insuranceStatus + '\'' +
                ", policySoldAmount=" + policySoldAmount +
                ", invoiceNumber='" + invoiceNumber + '\'' +
                ", serialNumber='" + serialNumber + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UpsellingReportModel that = (UpsellingReportModel) o;
        return agentId == that.agentId && orderId == that.orderId && Float.compare(policySoldAmount, that.policySoldAmount) == 0 && Objects.equals(agentEmail, that.agentEmail) && Objects.equals(partnerName, that.partnerName) && Objects.equals(partnerMobile, that.partnerMobile) && Objects.equals(state, that.state) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(callingDate, that.callingDate) && Objects.equals(disposition, that.disposition) && Objects.equals(remark, that.remark) && Objects.equals(paymentStatus, that.paymentStatus) && Objects.equals(insuranceStatus, that.insuranceStatus) && Objects.equals(invoiceNumber, that.invoiceNumber) && Objects.equals(serialNumber, that.serialNumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(agentId, agentEmail, partnerName, partnerMobile, state, orderId, customerNumber, callingDate, disposition, remark, paymentStatus, insuranceStatus, policySoldAmount, invoiceNumber, serialNumber);
    }
}