package com.lob.protocol.response; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.lob.id.CountryCode; import com.lob.id.ZipCode; public class IntlVerificationResponse extends AbstractResponse { @JsonProperty private final BaseAddressResponse address; @JsonProperty private final String message; @JsonCreator public IntlVerificationResponse(@JsonProperty("address") final BaseAddressResponse address, @JsonProperty("message") final String message) { this.address = address; this.message = message; } public String getLine1() { return address.getLine1(); } public CountryCode getCountry() { return address.getCountry(); } public String getState() { return address.getState(); } public ZipCode getZip() { return address.getZip(); } public String getCity() { return address.getCity(); } public String getLine2() { return address.getLine2(); } public String getObject() { return address.getObject(); } public String getMessage() { return message; } @Override public String toString() { return "IntlVerificationResponse{" + "message='" + message + '\'' + ", address={" + address.toStringWithoutLeadingComma() + '}'; } }