com.squareup.square.models.DeprecatedCreateDisputeEvidenceFileResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of square Show documentation
Show all versions of square Show documentation
Java client library for the Square API
package com.squareup.square.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Objects;
/**
* This is a model class for DeprecatedCreateDisputeEvidenceFileResponse type.
*/
public class DeprecatedCreateDisputeEvidenceFileResponse {
private final List errors;
private final DisputeEvidence evidence;
/**
* Initialization constructor.
* @param errors List of Error value for errors.
* @param evidence DisputeEvidence value for evidence.
*/
@JsonCreator
public DeprecatedCreateDisputeEvidenceFileResponse(
@JsonProperty("errors") List errors,
@JsonProperty("evidence") DisputeEvidence evidence) {
this.errors = errors;
this.evidence = evidence;
}
/**
* Getter for Errors.
* Any errors that occurred during the request.
* @return Returns the List of Error
*/
@JsonGetter("errors")
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getErrors() {
return errors;
}
/**
* Getter for Evidence.
* @return Returns the DisputeEvidence
*/
@JsonGetter("evidence")
@JsonInclude(JsonInclude.Include.NON_NULL)
public DisputeEvidence getEvidence() {
return evidence;
}
@Override
public int hashCode() {
return Objects.hash(errors, evidence);
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof DeprecatedCreateDisputeEvidenceFileResponse)) {
return false;
}
DeprecatedCreateDisputeEvidenceFileResponse other =
(DeprecatedCreateDisputeEvidenceFileResponse) obj;
return Objects.equals(errors, other.errors)
&& Objects.equals(evidence, other.evidence);
}
/**
* Converts this DeprecatedCreateDisputeEvidenceFileResponse into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "DeprecatedCreateDisputeEvidenceFileResponse [" + "errors=" + errors + ", evidence="
+ evidence + "]";
}
/**
* Builds a new {@link DeprecatedCreateDisputeEvidenceFileResponse.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link DeprecatedCreateDisputeEvidenceFileResponse.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.errors(getErrors())
.evidence(getEvidence());
return builder;
}
/**
* Class to build instances of {@link DeprecatedCreateDisputeEvidenceFileResponse}.
*/
public static class Builder {
private List errors;
private DisputeEvidence evidence;
/**
* Setter for errors.
* @param errors List of Error value for errors.
* @return Builder
*/
public Builder errors(List errors) {
this.errors = errors;
return this;
}
/**
* Setter for evidence.
* @param evidence DisputeEvidence value for evidence.
* @return Builder
*/
public Builder evidence(DisputeEvidence evidence) {
this.evidence = evidence;
return this;
}
/**
* Builds a new {@link DeprecatedCreateDisputeEvidenceFileResponse} object using the set
* fields.
* @return {@link DeprecatedCreateDisputeEvidenceFileResponse}
*/
public DeprecatedCreateDisputeEvidenceFileResponse build() {
return new DeprecatedCreateDisputeEvidenceFileResponse(errors, evidence);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy