com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidSharedMrz Maven / Gradle / Ivy
The newest version!
/*
* ZenidWeb
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.wultra.app.onboardingserver.provider.zenid.model.api;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.time.OffsetDateTime;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
* ZenidSharedMrz
*/
@JsonPropertyOrder({
ZenidSharedMrz.JSON_PROPERTY_BIRTH_DATE,
ZenidSharedMrz.JSON_PROPERTY_BIRTH_DATE_VERIFIED,
ZenidSharedMrz.JSON_PROPERTY_DOCUMENT_NUMBER,
ZenidSharedMrz.JSON_PROPERTY_DOCUMENT_NUMBER_VERIFIED,
ZenidSharedMrz.JSON_PROPERTY_EXPIRY_DATE,
ZenidSharedMrz.JSON_PROPERTY_EXPIRY_DATE_VERIFIED,
ZenidSharedMrz.JSON_PROPERTY_GIVEN_NAME,
ZenidSharedMrz.JSON_PROPERTY_CHECKSUM_VERIFIED,
ZenidSharedMrz.JSON_PROPERTY_CHECKSUM_DIGIT,
ZenidSharedMrz.JSON_PROPERTY_LAST_NAME,
ZenidSharedMrz.JSON_PROPERTY_NATIONALITY,
ZenidSharedMrz.JSON_PROPERTY_SEX,
ZenidSharedMrz.JSON_PROPERTY_BIRTHDATE_CHECKSUM,
ZenidSharedMrz.JSON_PROPERTY_DOCUMENT_NUM_CHECKSUM,
ZenidSharedMrz.JSON_PROPERTY_EXPIRY_CHECKSUM,
ZenidSharedMrz.JSON_PROPERTY_ISSUE_DATE,
ZenidSharedMrz.JSON_PROPERTY_ADDITIONAL_DATA,
ZenidSharedMrz.JSON_PROPERTY_ADDITIONAL_DATA2,
ZenidSharedMrz.JSON_PROPERTY_ISSUER,
ZenidSharedMrz.JSON_PROPERTY_BIRTH_DATE_PARSED,
ZenidSharedMrz.JSON_PROPERTY_EXPIRY_DATE_PARSED,
ZenidSharedMrz.JSON_PROPERTY_ISSUE_DATE_PARSED,
ZenidSharedMrz.JSON_PROPERTY_MRZ_DEF_TYPE,
ZenidSharedMrz.JSON_PROPERTY_BIRTH_NUMBER,
ZenidSharedMrz.JSON_PROPERTY_BIRTH_NUMBER_CHECKSUM,
ZenidSharedMrz.JSON_PROPERTY_BIRTH_NUMBER_VERIFIED,
ZenidSharedMrz.JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER,
ZenidSharedMrz.JSON_PROPERTY_SECONDARY_DOCUMENT_ROLE,
ZenidSharedMrz.JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_CHECKSUM,
ZenidSharedMrz.JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_VERIFIED
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidSharedMrz {
public static final String JSON_PROPERTY_BIRTH_DATE = "BirthDate";
private String birthDate;
public static final String JSON_PROPERTY_BIRTH_DATE_VERIFIED = "BirthDateVerified";
private Boolean birthDateVerified;
public static final String JSON_PROPERTY_DOCUMENT_NUMBER = "DocumentNumber";
private String documentNumber;
public static final String JSON_PROPERTY_DOCUMENT_NUMBER_VERIFIED = "DocumentNumberVerified";
private Boolean documentNumberVerified;
public static final String JSON_PROPERTY_EXPIRY_DATE = "ExpiryDate";
private String expiryDate;
public static final String JSON_PROPERTY_EXPIRY_DATE_VERIFIED = "ExpiryDateVerified";
private Boolean expiryDateVerified;
public static final String JSON_PROPERTY_GIVEN_NAME = "GivenName";
private String givenName;
public static final String JSON_PROPERTY_CHECKSUM_VERIFIED = "ChecksumVerified";
private Boolean checksumVerified;
public static final String JSON_PROPERTY_CHECKSUM_DIGIT = "ChecksumDigit";
private Integer checksumDigit;
public static final String JSON_PROPERTY_LAST_NAME = "LastName";
private String lastName;
public static final String JSON_PROPERTY_NATIONALITY = "Nationality";
private String nationality;
public static final String JSON_PROPERTY_SEX = "Sex";
private String sex;
public static final String JSON_PROPERTY_BIRTHDATE_CHECKSUM = "BirthdateChecksum";
private Integer birthdateChecksum;
public static final String JSON_PROPERTY_DOCUMENT_NUM_CHECKSUM = "DocumentNumChecksum";
private Integer documentNumChecksum;
public static final String JSON_PROPERTY_EXPIRY_CHECKSUM = "ExpiryChecksum";
private Integer expiryChecksum;
public static final String JSON_PROPERTY_ISSUE_DATE = "IssueDate";
private String issueDate;
public static final String JSON_PROPERTY_ADDITIONAL_DATA = "AdditionalData";
private String additionalData;
public static final String JSON_PROPERTY_ADDITIONAL_DATA2 = "AdditionalData2";
private String additionalData2;
public static final String JSON_PROPERTY_ISSUER = "Issuer";
private String issuer;
public static final String JSON_PROPERTY_BIRTH_DATE_PARSED = "BirthDateParsed";
private OffsetDateTime birthDateParsed;
public static final String JSON_PROPERTY_EXPIRY_DATE_PARSED = "ExpiryDateParsed";
private OffsetDateTime expiryDateParsed;
public static final String JSON_PROPERTY_ISSUE_DATE_PARSED = "IssueDateParsed";
private OffsetDateTime issueDateParsed;
/**
* Gets or Sets mrzDefType
*/
public enum MrzDefTypeEnum {
TD1_IDC("TD1_IDC"),
TD2_IDC2000("TD2_IDC2000"),
TD3_PAS("TD3_PAS"),
SKDRV("SKDRV"),
NONE("None"),
FRENCH_ID1988("FrenchID1988"),
NLDRV("NLDRV");
private String value;
MrzDefTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static MrzDefTypeEnum fromValue(String value) {
for (MrzDefTypeEnum b : MrzDefTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_MRZ_DEF_TYPE = "MrzDefType";
private MrzDefTypeEnum mrzDefType;
public static final String JSON_PROPERTY_BIRTH_NUMBER = "BirthNumber";
private String birthNumber;
public static final String JSON_PROPERTY_BIRTH_NUMBER_CHECKSUM = "BirthNumberChecksum";
private Integer birthNumberChecksum;
public static final String JSON_PROPERTY_BIRTH_NUMBER_VERIFIED = "BirthNumberVerified";
private Boolean birthNumberVerified;
public static final String JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER = "SecondaryDocumentNumber";
private String secondaryDocumentNumber;
/**
* Role of secondary document. For some passports, that is Idc.
*/
public enum SecondaryDocumentRoleEnum {
IDC("Idc"),
PAS("Pas"),
DRV("Drv"),
RES("Res"),
GUN("Gun"),
HIC("Hic"),
STD("Std"),
CAR("Car"),
BIRTH("Birth"),
ADD("Add"),
IDE("Ide"),
VIS("Vis"),
EXP("Exp");
private String value;
SecondaryDocumentRoleEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SecondaryDocumentRoleEnum fromValue(String value) {
for (SecondaryDocumentRoleEnum b : SecondaryDocumentRoleEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SECONDARY_DOCUMENT_ROLE = "SecondaryDocumentRole";
private SecondaryDocumentRoleEnum secondaryDocumentRole;
public static final String JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_CHECKSUM = "SecondaryDocumentNumberChecksum";
private Integer secondaryDocumentNumberChecksum;
public static final String JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_VERIFIED = "SecondaryDocumentNumberVerified";
private Boolean secondaryDocumentNumberVerified;
public ZenidSharedMrz() {
}
public ZenidSharedMrz birthDate(String birthDate) {
this.birthDate = birthDate;
return this;
}
/**
* Inner Birth date string of MRZ. Low-level data, ignore it. Use BirthDate from MineAllResult object.
* @return birthDate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBirthDate() {
return birthDate;
}
@JsonProperty(JSON_PROPERTY_BIRTH_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthDate(String birthDate) {
this.birthDate = birthDate;
}
public ZenidSharedMrz birthDateVerified(Boolean birthDateVerified) {
this.birthDateVerified = birthDateVerified;
return this;
}
/**
* Inner flag, if MRZ BirthDate checksum is ok. Low-level check, ignore it. Use Validators.
* @return birthDateVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_DATE_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getBirthDateVerified() {
return birthDateVerified;
}
@JsonProperty(JSON_PROPERTY_BIRTH_DATE_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthDateVerified(Boolean birthDateVerified) {
this.birthDateVerified = birthDateVerified;
}
public ZenidSharedMrz documentNumber(String documentNumber) {
this.documentNumber = documentNumber;
return this;
}
/**
* Inner Document number string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return documentNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDocumentNumber() {
return documentNumber;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentNumber(String documentNumber) {
this.documentNumber = documentNumber;
}
public ZenidSharedMrz documentNumberVerified(Boolean documentNumberVerified) {
this.documentNumberVerified = documentNumberVerified;
return this;
}
/**
* Inner flag, if MRZ DocumentNumber checksum is ok. Low-level check, ignore it. Use Validators.
* @return documentNumberVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDocumentNumberVerified() {
return documentNumberVerified;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentNumberVerified(Boolean documentNumberVerified) {
this.documentNumberVerified = documentNumberVerified;
}
public ZenidSharedMrz expiryDate(String expiryDate) {
this.expiryDate = expiryDate;
return this;
}
/**
* Inner Expiry date string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return expiryDate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExpiryDate() {
return expiryDate;
}
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
}
public ZenidSharedMrz expiryDateVerified(Boolean expiryDateVerified) {
this.expiryDateVerified = expiryDateVerified;
return this;
}
/**
* Inner flag, if MRZ ExpiryDate checksum is ok. Low-level check, ignore it. Use Validators.
* @return expiryDateVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getExpiryDateVerified() {
return expiryDateVerified;
}
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiryDateVerified(Boolean expiryDateVerified) {
this.expiryDateVerified = expiryDateVerified;
}
public ZenidSharedMrz givenName(String givenName) {
this.givenName = givenName;
return this;
}
/**
* Inner Given name string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return givenName
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIVEN_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGivenName() {
return givenName;
}
@JsonProperty(JSON_PROPERTY_GIVEN_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public ZenidSharedMrz checksumVerified(Boolean checksumVerified) {
this.checksumVerified = checksumVerified;
return this;
}
/**
* Inner flag, if checksum of MRZ itself is ok. Low-level check, ignore it. Use Validators.
* @return checksumVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CHECKSUM_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getChecksumVerified() {
return checksumVerified;
}
@JsonProperty(JSON_PROPERTY_CHECKSUM_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setChecksumVerified(Boolean checksumVerified) {
this.checksumVerified = checksumVerified;
}
public ZenidSharedMrz checksumDigit(Integer checksumDigit) {
this.checksumDigit = checksumDigit;
return this;
}
/**
* Inner value of global MRZ checksum.
* @return checksumDigit
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CHECKSUM_DIGIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getChecksumDigit() {
return checksumDigit;
}
@JsonProperty(JSON_PROPERTY_CHECKSUM_DIGIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setChecksumDigit(Integer checksumDigit) {
this.checksumDigit = checksumDigit;
}
public ZenidSharedMrz lastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Inner Last name string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return lastName
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() {
return lastName;
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastName(String lastName) {
this.lastName = lastName;
}
public ZenidSharedMrz nationality(String nationality) {
this.nationality = nationality;
return this;
}
/**
* Inner Nationality string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return nationality
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NATIONALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNationality() {
return nationality;
}
@JsonProperty(JSON_PROPERTY_NATIONALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNationality(String nationality) {
this.nationality = nationality;
}
public ZenidSharedMrz sex(String sex) {
this.sex = sex;
return this;
}
/**
* Inner Sex string of MRZ. Low-level data, ignore it. Use value from MineAllResult object.
* @return sex
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SEX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSex() {
return sex;
}
@JsonProperty(JSON_PROPERTY_SEX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSex(String sex) {
this.sex = sex;
}
public ZenidSharedMrz birthdateChecksum(Integer birthdateChecksum) {
this.birthdateChecksum = birthdateChecksum;
return this;
}
/**
* Inner value of MRZ BirthDate checksum.
* @return birthdateChecksum
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTHDATE_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getBirthdateChecksum() {
return birthdateChecksum;
}
@JsonProperty(JSON_PROPERTY_BIRTHDATE_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthdateChecksum(Integer birthdateChecksum) {
this.birthdateChecksum = birthdateChecksum;
}
public ZenidSharedMrz documentNumChecksum(Integer documentNumChecksum) {
this.documentNumChecksum = documentNumChecksum;
return this;
}
/**
* Inner value of MRZ DocumentNumber checksum.
* @return documentNumChecksum
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUM_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getDocumentNumChecksum() {
return documentNumChecksum;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_NUM_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentNumChecksum(Integer documentNumChecksum) {
this.documentNumChecksum = documentNumChecksum;
}
public ZenidSharedMrz expiryChecksum(Integer expiryChecksum) {
this.expiryChecksum = expiryChecksum;
return this;
}
/**
* Inner value of MRZ ExpiryDate checksum.
* @return expiryChecksum
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRY_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getExpiryChecksum() {
return expiryChecksum;
}
@JsonProperty(JSON_PROPERTY_EXPIRY_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiryChecksum(Integer expiryChecksum) {
this.expiryChecksum = expiryChecksum;
}
public ZenidSharedMrz issueDate(String issueDate) {
this.issueDate = issueDate;
return this;
}
/**
* Prefix of the MRZ (type of the MRZ + subtype (differs, some ID cards have ID, other I_ or IO) + country issuer. Low-level data, can be ignored.
* @return issueDate
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ISSUE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIssueDate() {
return issueDate;
}
@JsonProperty(JSON_PROPERTY_ISSUE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIssueDate(String issueDate) {
this.issueDate = issueDate;
}
public ZenidSharedMrz additionalData(String additionalData) {
this.additionalData = additionalData;
return this;
}
/**
* Output of OptionalSubstructure dont fitting in IssueDate or BirthNumber
* @return additionalData
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdditionalData() {
return additionalData;
}
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdditionalData(String additionalData) {
this.additionalData = additionalData;
}
public ZenidSharedMrz additionalData2(String additionalData2) {
this.additionalData2 = additionalData2;
return this;
}
/**
* Output of OptionalSubstructure dont fitting in IssueDate or BirthNumber (second line)
* @return additionalData2
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdditionalData2() {
return additionalData2;
}
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdditionalData2(String additionalData2) {
this.additionalData2 = additionalData2;
}
public ZenidSharedMrz issuer(String issuer) {
this.issuer = issuer;
return this;
}
/**
* Issuer ISO identification
* @return issuer
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ISSUER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getIssuer() {
return issuer;
}
@JsonProperty(JSON_PROPERTY_ISSUER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIssuer(String issuer) {
this.issuer = issuer;
}
public ZenidSharedMrz birthDateParsed(OffsetDateTime birthDateParsed) {
this.birthDateParsed = birthDateParsed;
return this;
}
/**
* Inner machine-readable value of BirthDate (in DateTime structure). Low-level data, use value from MineAllResult object.
* @return birthDateParsed
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getBirthDateParsed() {
return birthDateParsed;
}
@JsonProperty(JSON_PROPERTY_BIRTH_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthDateParsed(OffsetDateTime birthDateParsed) {
this.birthDateParsed = birthDateParsed;
}
public ZenidSharedMrz expiryDateParsed(OffsetDateTime expiryDateParsed) {
this.expiryDateParsed = expiryDateParsed;
return this;
}
/**
* Inner machine-readable value of ExpiryDate (in DateTime structure). Low-level data, use value from MineAllResult object.
* @return expiryDateParsed
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getExpiryDateParsed() {
return expiryDateParsed;
}
@JsonProperty(JSON_PROPERTY_EXPIRY_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpiryDateParsed(OffsetDateTime expiryDateParsed) {
this.expiryDateParsed = expiryDateParsed;
}
public ZenidSharedMrz issueDateParsed(OffsetDateTime issueDateParsed) {
this.issueDateParsed = issueDateParsed;
return this;
}
/**
* Get issueDateParsed
* @return issueDateParsed
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ISSUE_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getIssueDateParsed() {
return issueDateParsed;
}
@JsonProperty(JSON_PROPERTY_ISSUE_DATE_PARSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIssueDateParsed(OffsetDateTime issueDateParsed) {
this.issueDateParsed = issueDateParsed;
}
public ZenidSharedMrz mrzDefType(MrzDefTypeEnum mrzDefType) {
this.mrzDefType = mrzDefType;
return this;
}
/**
* Get mrzDefType
* @return mrzDefType
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MRZ_DEF_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public MrzDefTypeEnum getMrzDefType() {
return mrzDefType;
}
@JsonProperty(JSON_PROPERTY_MRZ_DEF_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMrzDefType(MrzDefTypeEnum mrzDefType) {
this.mrzDefType = mrzDefType;
}
public ZenidSharedMrz birthNumber(String birthNumber) {
this.birthNumber = birthNumber;
return this;
}
/**
* Inner Birthnumber string of MRZ (used on Czech passports). Low-level data, ignore it. Use value from MineAllResult object.
* @return birthNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBirthNumber() {
return birthNumber;
}
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthNumber(String birthNumber) {
this.birthNumber = birthNumber;
}
public ZenidSharedMrz birthNumberChecksum(Integer birthNumberChecksum) {
this.birthNumberChecksum = birthNumberChecksum;
return this;
}
/**
* Inner value of Birthnumber checksum in MRZ (on Czech passports). Low-level check, ignore it. Use Validators.
* @return birthNumberChecksum
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getBirthNumberChecksum() {
return birthNumberChecksum;
}
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthNumberChecksum(Integer birthNumberChecksum) {
this.birthNumberChecksum = birthNumberChecksum;
}
public ZenidSharedMrz birthNumberVerified(Boolean birthNumberVerified) {
this.birthNumberVerified = birthNumberVerified;
return this;
}
/**
* Inner flag, if MRZ BirthNumber checksum is ok (used on Czech passports). Low-level check, ignore it. Use Validators.
* @return birthNumberVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getBirthNumberVerified() {
return birthNumberVerified;
}
@JsonProperty(JSON_PROPERTY_BIRTH_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBirthNumberVerified(Boolean birthNumberVerified) {
this.birthNumberVerified = birthNumberVerified;
}
public ZenidSharedMrz secondaryDocumentNumber(String secondaryDocumentNumber) {
this.secondaryDocumentNumber = secondaryDocumentNumber;
return this;
}
/**
* Some documents (passports) dont have any additional number. Some have PIN (birthnumber in object MRZ). Some have number of some other document, for example document of ID card. In that case this field is used.
* @return secondaryDocumentNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSecondaryDocumentNumber() {
return secondaryDocumentNumber;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecondaryDocumentNumber(String secondaryDocumentNumber) {
this.secondaryDocumentNumber = secondaryDocumentNumber;
}
public ZenidSharedMrz secondaryDocumentRole(SecondaryDocumentRoleEnum secondaryDocumentRole) {
this.secondaryDocumentRole = secondaryDocumentRole;
return this;
}
/**
* Role of secondary document. For some passports, that is Idc.
* @return secondaryDocumentRole
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_ROLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SecondaryDocumentRoleEnum getSecondaryDocumentRole() {
return secondaryDocumentRole;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_ROLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecondaryDocumentRole(SecondaryDocumentRoleEnum secondaryDocumentRole) {
this.secondaryDocumentRole = secondaryDocumentRole;
}
public ZenidSharedMrz secondaryDocumentNumberChecksum(Integer secondaryDocumentNumberChecksum) {
this.secondaryDocumentNumberChecksum = secondaryDocumentNumberChecksum;
return this;
}
/**
* Get secondaryDocumentNumberChecksum
* @return secondaryDocumentNumberChecksum
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSecondaryDocumentNumberChecksum() {
return secondaryDocumentNumberChecksum;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_CHECKSUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecondaryDocumentNumberChecksum(Integer secondaryDocumentNumberChecksum) {
this.secondaryDocumentNumberChecksum = secondaryDocumentNumberChecksum;
}
public ZenidSharedMrz secondaryDocumentNumberVerified(Boolean secondaryDocumentNumberVerified) {
this.secondaryDocumentNumberVerified = secondaryDocumentNumberVerified;
return this;
}
/**
* Check, if number is verified.
* @return secondaryDocumentNumberVerified
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSecondaryDocumentNumberVerified() {
return secondaryDocumentNumberVerified;
}
@JsonProperty(JSON_PROPERTY_SECONDARY_DOCUMENT_NUMBER_VERIFIED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecondaryDocumentNumberVerified(Boolean secondaryDocumentNumberVerified) {
this.secondaryDocumentNumberVerified = secondaryDocumentNumberVerified;
}
/**
* Return true if this ZenidShared.Mrz object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ZenidSharedMrz zenidSharedMrz = (ZenidSharedMrz) o;
return Objects.equals(this.birthDate, zenidSharedMrz.birthDate) &&
Objects.equals(this.birthDateVerified, zenidSharedMrz.birthDateVerified) &&
Objects.equals(this.documentNumber, zenidSharedMrz.documentNumber) &&
Objects.equals(this.documentNumberVerified, zenidSharedMrz.documentNumberVerified) &&
Objects.equals(this.expiryDate, zenidSharedMrz.expiryDate) &&
Objects.equals(this.expiryDateVerified, zenidSharedMrz.expiryDateVerified) &&
Objects.equals(this.givenName, zenidSharedMrz.givenName) &&
Objects.equals(this.checksumVerified, zenidSharedMrz.checksumVerified) &&
Objects.equals(this.checksumDigit, zenidSharedMrz.checksumDigit) &&
Objects.equals(this.lastName, zenidSharedMrz.lastName) &&
Objects.equals(this.nationality, zenidSharedMrz.nationality) &&
Objects.equals(this.sex, zenidSharedMrz.sex) &&
Objects.equals(this.birthdateChecksum, zenidSharedMrz.birthdateChecksum) &&
Objects.equals(this.documentNumChecksum, zenidSharedMrz.documentNumChecksum) &&
Objects.equals(this.expiryChecksum, zenidSharedMrz.expiryChecksum) &&
Objects.equals(this.issueDate, zenidSharedMrz.issueDate) &&
Objects.equals(this.additionalData, zenidSharedMrz.additionalData) &&
Objects.equals(this.additionalData2, zenidSharedMrz.additionalData2) &&
Objects.equals(this.issuer, zenidSharedMrz.issuer) &&
Objects.equals(this.birthDateParsed, zenidSharedMrz.birthDateParsed) &&
Objects.equals(this.expiryDateParsed, zenidSharedMrz.expiryDateParsed) &&
Objects.equals(this.issueDateParsed, zenidSharedMrz.issueDateParsed) &&
Objects.equals(this.mrzDefType, zenidSharedMrz.mrzDefType) &&
Objects.equals(this.birthNumber, zenidSharedMrz.birthNumber) &&
Objects.equals(this.birthNumberChecksum, zenidSharedMrz.birthNumberChecksum) &&
Objects.equals(this.birthNumberVerified, zenidSharedMrz.birthNumberVerified) &&
Objects.equals(this.secondaryDocumentNumber, zenidSharedMrz.secondaryDocumentNumber) &&
Objects.equals(this.secondaryDocumentRole, zenidSharedMrz.secondaryDocumentRole) &&
Objects.equals(this.secondaryDocumentNumberChecksum, zenidSharedMrz.secondaryDocumentNumberChecksum) &&
Objects.equals(this.secondaryDocumentNumberVerified, zenidSharedMrz.secondaryDocumentNumberVerified);
}
@Override
public int hashCode() {
return Objects.hash(birthDate, birthDateVerified, documentNumber, documentNumberVerified, expiryDate, expiryDateVerified, givenName, checksumVerified, checksumDigit, lastName, nationality, sex, birthdateChecksum, documentNumChecksum, expiryChecksum, issueDate, additionalData, additionalData2, issuer, birthDateParsed, expiryDateParsed, issueDateParsed, mrzDefType, birthNumber, birthNumberChecksum, birthNumberVerified, secondaryDocumentNumber, secondaryDocumentRole, secondaryDocumentNumberChecksum, secondaryDocumentNumberVerified);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ZenidSharedMrz {\n");
sb.append(" birthDate: ").append(toIndentedString(birthDate)).append("\n");
sb.append(" birthDateVerified: ").append(toIndentedString(birthDateVerified)).append("\n");
sb.append(" documentNumber: ").append(toIndentedString(documentNumber)).append("\n");
sb.append(" documentNumberVerified: ").append(toIndentedString(documentNumberVerified)).append("\n");
sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).append("\n");
sb.append(" expiryDateVerified: ").append(toIndentedString(expiryDateVerified)).append("\n");
sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n");
sb.append(" checksumVerified: ").append(toIndentedString(checksumVerified)).append("\n");
sb.append(" checksumDigit: ").append(toIndentedString(checksumDigit)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" nationality: ").append(toIndentedString(nationality)).append("\n");
sb.append(" sex: ").append(toIndentedString(sex)).append("\n");
sb.append(" birthdateChecksum: ").append(toIndentedString(birthdateChecksum)).append("\n");
sb.append(" documentNumChecksum: ").append(toIndentedString(documentNumChecksum)).append("\n");
sb.append(" expiryChecksum: ").append(toIndentedString(expiryChecksum)).append("\n");
sb.append(" issueDate: ").append(toIndentedString(issueDate)).append("\n");
sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n");
sb.append(" additionalData2: ").append(toIndentedString(additionalData2)).append("\n");
sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n");
sb.append(" birthDateParsed: ").append(toIndentedString(birthDateParsed)).append("\n");
sb.append(" expiryDateParsed: ").append(toIndentedString(expiryDateParsed)).append("\n");
sb.append(" issueDateParsed: ").append(toIndentedString(issueDateParsed)).append("\n");
sb.append(" mrzDefType: ").append(toIndentedString(mrzDefType)).append("\n");
sb.append(" birthNumber: ").append(toIndentedString(birthNumber)).append("\n");
sb.append(" birthNumberChecksum: ").append(toIndentedString(birthNumberChecksum)).append("\n");
sb.append(" birthNumberVerified: ").append(toIndentedString(birthNumberVerified)).append("\n");
sb.append(" secondaryDocumentNumber: ").append(toIndentedString(secondaryDocumentNumber)).append("\n");
sb.append(" secondaryDocumentRole: ").append(toIndentedString(secondaryDocumentRole)).append("\n");
sb.append(" secondaryDocumentNumberChecksum: ").append(toIndentedString(secondaryDocumentNumberChecksum)).append("\n");
sb.append(" secondaryDocumentNumberVerified: ").append(toIndentedString(secondaryDocumentNumberVerified)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `BirthDate` to the URL query string
if (getBirthDate() != null) {
joiner.add(String.format("%sBirthDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthDateVerified` to the URL query string
if (getBirthDateVerified() != null) {
joiner.add(String.format("%sBirthDateVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthDateVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `DocumentNumber` to the URL query string
if (getDocumentNumber() != null) {
joiner.add(String.format("%sDocumentNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `DocumentNumberVerified` to the URL query string
if (getDocumentNumberVerified() != null) {
joiner.add(String.format("%sDocumentNumberVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentNumberVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ExpiryDate` to the URL query string
if (getExpiryDate() != null) {
joiner.add(String.format("%sExpiryDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ExpiryDateVerified` to the URL query string
if (getExpiryDateVerified() != null) {
joiner.add(String.format("%sExpiryDateVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDateVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `GivenName` to the URL query string
if (getGivenName() != null) {
joiner.add(String.format("%sGivenName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getGivenName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ChecksumVerified` to the URL query string
if (getChecksumVerified() != null) {
joiner.add(String.format("%sChecksumVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getChecksumVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ChecksumDigit` to the URL query string
if (getChecksumDigit() != null) {
joiner.add(String.format("%sChecksumDigit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getChecksumDigit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `LastName` to the URL query string
if (getLastName() != null) {
joiner.add(String.format("%sLastName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLastName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Nationality` to the URL query string
if (getNationality() != null) {
joiner.add(String.format("%sNationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Sex` to the URL query string
if (getSex() != null) {
joiner.add(String.format("%sSex%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSex()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthdateChecksum` to the URL query string
if (getBirthdateChecksum() != null) {
joiner.add(String.format("%sBirthdateChecksum%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthdateChecksum()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `DocumentNumChecksum` to the URL query string
if (getDocumentNumChecksum() != null) {
joiner.add(String.format("%sDocumentNumChecksum%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentNumChecksum()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ExpiryChecksum` to the URL query string
if (getExpiryChecksum() != null) {
joiner.add(String.format("%sExpiryChecksum%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryChecksum()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `IssueDate` to the URL query string
if (getIssueDate() != null) {
joiner.add(String.format("%sIssueDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIssueDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `AdditionalData` to the URL query string
if (getAdditionalData() != null) {
joiner.add(String.format("%sAdditionalData%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `AdditionalData2` to the URL query string
if (getAdditionalData2() != null) {
joiner.add(String.format("%sAdditionalData2%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalData2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Issuer` to the URL query string
if (getIssuer() != null) {
joiner.add(String.format("%sIssuer%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIssuer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthDateParsed` to the URL query string
if (getBirthDateParsed() != null) {
joiner.add(String.format("%sBirthDateParsed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthDateParsed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `ExpiryDateParsed` to the URL query string
if (getExpiryDateParsed() != null) {
joiner.add(String.format("%sExpiryDateParsed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDateParsed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `IssueDateParsed` to the URL query string
if (getIssueDateParsed() != null) {
joiner.add(String.format("%sIssueDateParsed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIssueDateParsed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `MrzDefType` to the URL query string
if (getMrzDefType() != null) {
joiner.add(String.format("%sMrzDefType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMrzDefType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthNumber` to the URL query string
if (getBirthNumber() != null) {
joiner.add(String.format("%sBirthNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthNumberChecksum` to the URL query string
if (getBirthNumberChecksum() != null) {
joiner.add(String.format("%sBirthNumberChecksum%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthNumberChecksum()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `BirthNumberVerified` to the URL query string
if (getBirthNumberVerified() != null) {
joiner.add(String.format("%sBirthNumberVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBirthNumberVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SecondaryDocumentNumber` to the URL query string
if (getSecondaryDocumentNumber() != null) {
joiner.add(String.format("%sSecondaryDocumentNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecondaryDocumentNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SecondaryDocumentRole` to the URL query string
if (getSecondaryDocumentRole() != null) {
joiner.add(String.format("%sSecondaryDocumentRole%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecondaryDocumentRole()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SecondaryDocumentNumberChecksum` to the URL query string
if (getSecondaryDocumentNumberChecksum() != null) {
joiner.add(String.format("%sSecondaryDocumentNumberChecksum%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecondaryDocumentNumberChecksum()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SecondaryDocumentNumberVerified` to the URL query string
if (getSecondaryDocumentNumberVerified() != null) {
joiner.add(String.format("%sSecondaryDocumentNumberVerified%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecondaryDocumentNumberVerified()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}