com.tradeshift.sdk.linelinker.domain.SourceDocResult Maven / Gradle / Ivy
/*
* Copyright (c) 2018 Tradeshift Inc. and/or its affiliates. All rights reserved.
*/
package com.tradeshift.sdk.linelinker.domain;
import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tradeshift.sdk.core.domain.Document;
import com.tradeshift.sdk.core.domain.ID;
public class SourceDocResult {
private ID sourceDocumentId;
private String sourceBusinessId;
private List lines;
@JsonCreator
public SourceDocResult(@JsonProperty("sourceDocumentId") ID sourceDocumentId,
@JsonProperty("sourceBusinessId") String sourceBusinessId,
@JsonProperty("lines") List lines) {
this.sourceDocumentId = sourceDocumentId;
this.sourceBusinessId = sourceBusinessId;
this.lines = lines;
}
public ID getSourceDocumentId() {
return sourceDocumentId;
}
public String getSourceBusinessId() {
return sourceBusinessId;
}
public List getLines() {
return lines;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SourceDocResult that = (SourceDocResult) o;
return Objects.equals(sourceDocumentId, that.sourceDocumentId) &&
Objects.equals(sourceBusinessId, that.sourceBusinessId) &&
Objects.equals(lines, that.lines);
}
@Override
public int hashCode() {
return Objects.hash(sourceDocumentId, sourceBusinessId, lines);
}
@Override
public String toString() {
return "SourceDocResult{" +
"sourceDocumentId=" + sourceDocumentId +
", sourceBusinessId='" + sourceBusinessId + '\'' +
", lines=" + lines +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy