DocumentOutOfTolerance.java
package com.tradecloud.dto.document;
import java.math.BigDecimal;
import java.util.Objects;
public class DocumentOutOfTolerance {
private String costGroup;
private String costLine;
private String toleranceLevel;
private String consignmentReference;
private BigDecimal clcValue;
private BigDecimal toleranceAmount;
private boolean serviceProviderValidationFail;
private String documentServiceProvider;
public String getCostGroup() {
return costGroup;
}
public void setCostGroup(String costGroup) {
this.costGroup = costGroup;
}
public String getCostLine() {
return costLine;
}
public void setCostLine(String costLine) {
this.costLine = costLine;
}
public String getToleranceLevel() {
return toleranceLevel;
}
public void setToleranceLevel(String toleranceLevel) {
this.toleranceLevel = toleranceLevel;
}
public String getConsignmentReference() {
return consignmentReference;
}
public void setConsignmentReference(String consignmentReference) {
this.consignmentReference = consignmentReference;
}
public BigDecimal getClcValue() {
return clcValue;
}
public void setClcValue(BigDecimal clcValue) {
this.clcValue = clcValue;
}
public BigDecimal getToleranceAmount() {
return toleranceAmount;
}
public void setToleranceAmount(BigDecimal toleranceAmount) {
this.toleranceAmount = toleranceAmount;
}
public boolean isServiceProviderValidationFail() {
return serviceProviderValidationFail;
}
public void setServiceProviderValidationFail(boolean serviceProviderValidationFail) {
this.serviceProviderValidationFail = serviceProviderValidationFail;
}
public String getDocumentServiceProvider() {
return documentServiceProvider;
}
public void setDocumentServiceProvider(String documentServiceProvider) {
this.documentServiceProvider = documentServiceProvider;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DocumentOutOfTolerance that = (DocumentOutOfTolerance) o;
return Objects.equals(costGroup, that.costGroup) &&
Objects.equals(costLine, that.costLine) &&
Objects.equals(documentServiceProvider, that.documentServiceProvider);
}
@Override
public int hashCode() {
return Objects.hash(costGroup, costLine, documentServiceProvider);
}
}