All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liberologico.cloudesire.cmw.model.dto.TaxCodeDTO Maven / Gradle / Ivy

The newest version!
package com.liberologico.cloudesire.cmw.model.dto;

import java.util.Objects;

public abstract class TaxCodeDTO extends NamedEntityDTO
{
    private String taxValidation;

    private String taxValidationMessage;

    public TaxCodeDTO( String name )
    {
        super( name );
    }

    public TaxCodeDTO()
    {
        super();
    }

    public abstract String getTaxCode();
    public abstract String getTaxCountryCode();
    public abstract String getTaxName();

    public String getTaxValidation()
    {
        return taxValidation;
    }

    public void setTaxValidation( String taxValidation )
    {
        this.taxValidation = taxValidation;
    }

    public String getTaxValidationMessage()
    {
        return taxValidationMessage;
    }

    public void setTaxValidationMessage( String taxValidationMessage )
    {
        this.taxValidationMessage = taxValidationMessage;
    }

    @Override
    public boolean equals( Object o )
    {
        if ( this == o ) return true;
        if ( !( o instanceof TaxCodeDTO ) ) return false;
        if ( !super.equals( o ) ) return false;
        TaxCodeDTO that = (TaxCodeDTO) o;
        return Objects.equals( taxValidation, that.taxValidation );
    }

    @Override
    public int hashCode()
    {
        return Objects.hash( super.hashCode(), taxValidation );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy