Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.common.model;

import java.util.Objects;

public class EWBPartAModel {
    private String supplierGstin;
    private String placeOfDispatch;
    private String recipientGstin;
    private String placeOfDelivery;
    private String documentNumber;
    private String documentDate;
    private String transactType;
    private String valueOfGoods;
    private String hsnCode;
    private String reasonForTransportation;

    public String getSupplierGstin() {
        return supplierGstin;
    }

    public void setSupplierGstin(String supplierGstin) {
        this.supplierGstin = supplierGstin;
    }

    public String getPlaceOfDispatch() {
        return placeOfDispatch;
    }

    public void setPlaceOfDispatch(String placeOfDispatch) {
        this.placeOfDispatch = placeOfDispatch;
    }

    public String getRecipientGstin() {
        return recipientGstin;
    }

    public void setRecipientGstin(String recipientGstin) {
        this.recipientGstin = recipientGstin;
    }

    public String getPlaceOfDelivery() {
        return placeOfDelivery;
    }

    public void setPlaceOfDelivery(String placeOfDelivery) {
        this.placeOfDelivery = placeOfDelivery;
    }

    public String getDocumentNumber() {
        return documentNumber;
    }

    public void setDocumentNumber(String documentNumber) {
        this.documentNumber = documentNumber;
    }

    public String getDocumentDate() {
        return documentDate;
    }

    public void setDocumentDate(String documentDate) {
        this.documentDate = documentDate;
    }

    public String getTransactType() {
        return transactType;
    }

    public void setTransactType(String transactType) {
        this.transactType = transactType;
    }

    public String getValueOfGoods() {
        return valueOfGoods;
    }

    public void setValueOfGoods(String valueOfGoods) {
        this.valueOfGoods = valueOfGoods;
    }

    public String getHsnCode() {
        return hsnCode;
    }

    public void setHsnCode(String hsnCode) {
        this.hsnCode = hsnCode;
    }

    public String getReasonForTransportation() {
        return reasonForTransportation;
    }

    public void setReasonForTransportation(String reasonForTransportation) {
        this.reasonForTransportation = reasonForTransportation;
    }

    @Override
    public String toString() {
        return "EWBPartAModel{" +
                "supplierGstin='" + supplierGstin + '\'' +
                ", placeOfDispatch='" + placeOfDispatch + '\'' +
                ", recipientGstin='" + recipientGstin + '\'' +
                ", placeOfDelivery='" + placeOfDelivery + '\'' +
                ", documentNumber='" + documentNumber + '\'' +
                ", documentDate='" + documentDate + '\'' +
                ", transactType='" + transactType + '\'' +
                ", valueOfGoods='" + valueOfGoods + '\'' +
                ", hsnCode='" + hsnCode + '\'' +
                ", reasonForTransportation='" + reasonForTransportation + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EWBPartAModel that = (EWBPartAModel) o;
        return Objects.equals(supplierGstin, that.supplierGstin) && Objects.equals(placeOfDispatch, that.placeOfDispatch) && Objects.equals(recipientGstin, that.recipientGstin) && Objects.equals(placeOfDelivery, that.placeOfDelivery) && Objects.equals(documentNumber, that.documentNumber) && Objects.equals(documentDate, that.documentDate) && Objects.equals(transactType, that.transactType) && Objects.equals(valueOfGoods, that.valueOfGoods) && Objects.equals(hsnCode, that.hsnCode) && Objects.equals(reasonForTransportation, that.reasonForTransportation);
    }

    @Override
    public int hashCode() {
        return Objects.hash(supplierGstin, placeOfDispatch, recipientGstin, placeOfDelivery, documentNumber, documentDate, transactType, valueOfGoods, hsnCode, reasonForTransportation);
    }
}