jp.gopay.sdk.models.errors.DetailedError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.models.errors;
import com.google.gson.annotations.SerializedName;
public class DetailedError {
@SerializedName("field")
private String field;
@SerializedName("reason")
private String reason;
public String getField() {
return field;
}
public String getReason() {
return reason;
}
public DetailedError(){
}
public DetailedError(String field, String reason) {
this.field = field;
this.reason = reason;
}
@Override
public String toString() {
return field + ":" + reason;
}
@Override
public boolean equals(Object other) {
Boolean equals;
try{
equals = ((DetailedError)other).field.equals(this.field) &&
((DetailedError)other).reason.equals(this.reason);
} catch(Throwable t){
equals = false;
}
return equals;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy