com.mindee.product.us.driverlicense.DriverLicenseV1Page Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mindee-api-java Show documentation
Show all versions of mindee-api-java Show documentation
Java Library to call Mindee's Off-The-Shelf and Custom APIs
package com.mindee.product.us.driverlicense;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mindee.parsing.SummaryHelper;
import com.mindee.parsing.standard.PositionField;
import lombok.EqualsAndHashCode;
import lombok.Getter;
/**
* Driver License API version 1.1 page data.
*/
@Getter
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class DriverLicenseV1Page extends DriverLicenseV1Document {
/**
* Has a photo of the US driver license holder
*/
@JsonProperty("photo")
protected PositionField photo;
/**
* Has a signature of the US driver license holder
*/
@JsonProperty("signature")
protected PositionField signature;
@Override
public boolean isEmpty() {
return (
this.photo == null
&& this.signature == null
);
}
@Override
public String toString() {
StringBuilder outStr = new StringBuilder();
outStr.append(
String.format(":Photo: %s%n", this.getPhoto())
);
outStr.append(
String.format(":Signature: %s%n", this.getSignature())
);
outStr.append(super.toString());
return SummaryHelper.cleanSummary(outStr.toString());
}
}