com.wultra.app.onboardingserver.provider.zenid.model.api.RecogLibSampleOverview 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.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
* RecogLibSampleOverview
*/
@JsonPropertyOrder({
RecogLibSampleOverview.JSON_PROPERTY_SAMPLE_TYPE,
RecogLibSampleOverview.JSON_PROPERTY_PAGE,
RecogLibSampleOverview.JSON_PROPERTY_RANK,
RecogLibSampleOverview.JSON_PROPERTY_DOCUMENT_CODE,
RecogLibSampleOverview.JSON_PROPERTY_SAMPLE_I_D
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class RecogLibSampleOverview {
/**
* Gets or Sets sampleType
*/
public enum SampleTypeEnum {
DOCUMENT_PICTURE("DocumentPicture"),
SELFIE("Selfie"),
SELFIE_VIDEO("SelfieVideo"),
DOCUMENT_VIDEO("DocumentVideo"),
ARCHIVED("Archived"),
UNKNOWN("Unknown");
private String value;
SampleTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SampleTypeEnum fromValue(String value) {
for (SampleTypeEnum b : SampleTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SAMPLE_TYPE = "SampleType";
private SampleTypeEnum sampleType;
/**
* Gets or Sets page
*/
public enum PageEnum {
F("F"),
B("B");
private String value;
PageEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PageEnum fromValue(String value) {
for (PageEnum b : PageEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_PAGE = "Page";
private PageEnum page;
/**
* Rank B or F indicates problems and it is recommended to take image again and re-upload
*/
public enum RankEnum {
A("A"),
B("B"),
F("F");
private String value;
RankEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static RankEnum fromValue(String value) {
for (RankEnum b : RankEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_RANK = "Rank";
private RankEnum rank;
/**
* Gets or Sets documentCode
*/
public enum DocumentCodeEnum {
IDC1("IDC1"),
IDC2("IDC2"),
DRV("DRV"),
PAS("PAS"),
EU_VIS_2019("EU_VIS_2019"),
CZ_BIRTH_A2("CZ_BIRTH_A2"),
CZ_BIRTH_A3("CZ_BIRTH_A3"),
CZ_BIRTH_A4("CZ_BIRTH_A4"),
CZ_RES_2020_A2("CZ_RES_2020_A2"),
SK_IDC_2008PLUS("SK_IDC_2008plus"),
SK_DRV_2004_08_09("SK_DRV_2004_08_09"),
SK_DRV_2013("SK_DRV_2013"),
SK_DRV_2015("SK_DRV_2015"),
SK_PAS_2008_14("SK_PAS_2008_14"),
SK_RES_2011("SK_RES_2011"),
SK_RES_2020("SK_RES_2020"),
SK_IDC_2022("SK_IDC_2022"),
SK_DRV_1993("SK_DRV_1993"),
PL_IDC_2015("PL_IDC_2015"),
DE_IDC_2010("DE_IDC_2010"),
DE_IDC_2001("DE_IDC_2001"),
HR_IDC_2013_15("HR_IDC_2013_15"),
AT_IDE_2000("AT_IDE_2000"),
HU_IDC_2000_01_12("HU_IDC_2000_01_12"),
HU_IDC_2016("HU_IDC_2016"),
AT_IDC_2002_05_10("AT_IDC_2002_05_10"),
HU_ADD_2012("HU_ADD_2012"),
AT_PAS_2006_14("AT_PAS_2006_14"),
AT_DRV_2006("AT_DRV_2006"),
AT_DRV_2013("AT_DRV_2013"),
CZ_RES_2011_14("CZ_RES_2011_14"),
CZ_RES_2006_T("CZ_RES_2006_T"),
CZ_RES_2006_07("CZ_RES_2006_07"),
CZ_GUN_2014("CZ_GUN_2014"),
HU_PAS_2006_12("HU_PAS_2006_12"),
HU_DRV_2012_13("HU_DRV_2012_13"),
HU_DRV_2012_B("HU_DRV_2012_B"),
EU_EHIC_2004_A("EU_EHIC_2004_A"),
UNKNOWN("Unknown"),
CZ_GUN_2017("CZ_GUN_2017"),
CZ_RES_2020("CZ_RES_2020"),
PL_IDC_2019("PL_IDC_2019"),
IT_PAS_2006_10("IT_PAS_2006_10"),
INT_ISIC_2008("INT_ISIC_2008"),
DE_PAS("DE_PAS"),
DK_PAS("DK_PAS"),
ES_PAS("ES_PAS"),
FI_PAS("FI_PAS"),
FR_PAS("FR_PAS"),
GB_PAS("GB_PAS"),
IS_PAS("IS_PAS"),
NL_PAS("NL_PAS"),
RO_PAS("RO_PAS"),
SE_PAS("SE_PAS"),
PL_PAS("PL_PAS"),
PL_DRV_2013("PL_DRV_2013"),
CZ_BIRTH("CZ_BIRTH"),
CZ_VEHICLE_I("CZ_VEHICLE_I"),
INT_ISIC_2019("INT_ISIC_2019"),
SI_PAS("SI_PAS"),
SI_IDC("SI_IDC"),
SI_DRV("SI_DRV"),
EU_EHIC_2004_B("EU_EHIC_2004_B"),
PL_IDC_2001_02_13("PL_IDC_2001_02_13"),
IT_IDC_2016("IT_IDC_2016"),
HR_PAS_2009_15("HR_PAS_2009_15"),
HR_DRV_2013("HR_DRV_2013"),
HR_IDC_2003("HR_IDC_2003"),
SI_DRV_2009("SI_DRV_2009"),
BG_PAS_2010("BG_PAS_2010"),
BG_IDC_2010("BG_IDC_2010"),
BG_DRV_2010_13("BG_DRV_2010_13"),
HR_IDC_2021("HR_IDC_2021"),
AT_IDC_2021("AT_IDC_2021"),
DE_PAS_2007("DE_PAS_2007"),
DE_DRV_2013_21("DE_DRV_2013_21"),
DE_DRV_1999_01_04_11("DE_DRV_1999_01_04_11"),
FR_IDC_2021("FR_IDC_2021"),
FR_IDC_1988_94("FR_IDC_1988_94"),
ES_PAS_2003_06("ES_PAS_2003_06"),
ES_IDC_2015("ES_IDC_2015"),
ES_IDC_2006("ES_IDC_2006"),
IT_IDC_2004("IT_IDC_2004"),
RO_IDC_2001_06_09_17_21("RO_IDC_2001_06_09_17_21"),
NL_IDC_2014_17_21("NL_IDC_2014_17_21"),
BE_PAS_2014_17_19("BE_PAS_2014_17_19"),
BE_IDC_2013_15("BE_IDC_2013_15"),
BE_IDC_2020_21("BE_IDC_2020_21"),
GR_PAS_2020("GR_PAS_2020"),
PT_PAS_2006_09("PT_PAS_2006_09"),
PT_IDC_2007_08_09_15("PT_IDC_2007_08_09_15"),
SE_IDC_2012_21("SE_IDC_2012_21"),
FI_IDC_2017_21("FI_IDC_2017_21"),
IE_PAS_2006_13("IE_PAS_2006_13"),
LT_PAS_2008_09_11_19("LT_PAS_2008_09_11_19"),
LT_IDC_2009_12("LT_IDC_2009_12"),
LV_PAS_2015("LV_PAS_2015"),
LV_PAS_2007("LV_PAS_2007"),
LV_IDC_2012("LV_IDC_2012"),
LV_IDC_2019("LV_IDC_2019"),
EE_PAS_2014("EE_PAS_2014"),
EE_PAS_2021("EE_PAS_2021"),
EE_IDC_2011("EE_IDC_2011"),
EE_IDC_2018_21("EE_IDC_2018_21"),
CY_PAS_2010_20("CY_PAS_2010_20"),
CY_IDC_2000_08("CY_IDC_2000_08"),
CY_IDC_2015_20("CY_IDC_2015_20"),
LU_PAS_2015("LU_PAS_2015"),
LU_IDC_2014_21("LU_IDC_2014_21"),
LU_IDC_2008_13("LU_IDC_2008_13"),
MT_PAS_2008("MT_PAS_2008"),
MT_IDC_2014("MT_IDC_2014"),
PL_PAS_2011("PL_PAS_2011"),
PL_DRV_1999("PL_DRV_1999"),
LT_IDC_2021("LT_IDC_2021"),
UA_PAS_2007_15("UA_PAS_2007_15"),
UA_IDC_2017("UA_IDC_2017"),
UA_DRV_2016("UA_DRV_2016"),
UA_DRV_2005("UA_DRV_2005"),
UA_DRV_2021("UA_DRV_2021"),
EU_EHIC_2004_C("EU_EHIC_2004_C"),
VN_PAS_2005("VN_PAS_2005"),
NL_DRV_2006("NL_DRV_2006"),
NL_DRV_2013("NL_DRV_2013"),
NL_DRV_2014("NL_DRV_2014"),
AL_PAS_2009("AL_PAS_2009"),
BA_PAS_2014("BA_PAS_2014"),
CH_PAS_2010("CH_PAS_2010"),
ME_PAS_2008("ME_PAS_2008"),
MK_PAS_2007("MK_PAS_2007"),
RS_PAS_2008("RS_PAS_2008"),
NO_PAS_2011_15("NO_PAS_2011_15"),
NO_PAS_2020("NO_PAS_2020"),
GB_PAS_2010_11_15_19("GB_PAS_2010_11_15_19"),
BY_PAS_2006("BY_PAS_2006"),
BY_PAS_2021("BY_PAS_2021"),
MD_PAS_2011_14_18("MD_PAS_2011_14_18"),
IS_PAS_2006("IS_PAS_2006"),
IN_PAS_2000_13("IN_PAS_2000_13"),
TR_PAS_2010("TR_PAS_2010"),
TR_PAS_2018("TR_PAS_2018"),
RO_IDC_2021SEP("RO_IDC_2021sep"),
PL_DRV_1999_A2("PL_DRV_1999_A2"),
DE_IDC_2010_A2("DE_IDC_2010_A2"),
DE_IDC_2010_A3("DE_IDC_2010_A3"),
PL_DRV_2013_A2("PL_DRV_2013_A2"),
AT_IDC_2002_05_10_A2("AT_IDC_2002_05_10_A2"),
CY_IDC_2015_20_A2("CY_IDC_2015_20_A2"),
CY_IDC_2000_08_A2("CY_IDC_2000_08_A2"),
CY_PAS_2010_20_A2("CY_PAS_2010_20_A2"),
ES_PAS_2003_06_A2("ES_PAS_2003_06_A2"),
LU_IDC_2008_13_A2("LU_IDC_2008_13_A2"),
NL_IDC_2014_17_21_A2("NL_IDC_2014_17_21_A2"),
SE_IDC_2022("SE_IDC_2022"),
SE_PAS_2022("SE_PAS_2022"),
DK_PAS_2021("DK_PAS_2021"),
CH_PAS_2022("CH_PAS_2022"),
VN_PAS_2022("VN_PAS_2022"),
ME_PAS_2008_A2("ME_PAS_2008_A2"),
OL_IDC_2022("OL_IDC_2022"),
SM_PAS_2006("SM_PAS_2006"),
AD_PAS_2017("AD_PAS_2017"),
BE_PAS_2022("BE_PAS_2022"),
RU_PAS_2006_10("RU_PAS_2006_10"),
TR_PAS_2023("TR_PAS_2023"),
DO_IDC_2014("DO_IDC_2014"),
LI_PAS_2006("LI_PAS_2006"),
VA_PAS_2013("VA_PAS_2013"),
US_PAS_2006("US_PAS_2006"),
JP_PAS_2013("JP_PAS_2013"),
PK_PAS_2022("PK_PAS_2022");
private String value;
DocumentCodeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DocumentCodeEnum fromValue(String value) {
for (DocumentCodeEnum b : DocumentCodeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DOCUMENT_CODE = "DocumentCode";
private DocumentCodeEnum documentCode;
public static final String JSON_PROPERTY_SAMPLE_I_D = "SampleID";
private String sampleID;
public RecogLibSampleOverview() {
}
public RecogLibSampleOverview sampleType(SampleTypeEnum sampleType) {
this.sampleType = sampleType;
return this;
}
/**
* Get sampleType
* @return sampleType
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SAMPLE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SampleTypeEnum getSampleType() {
return sampleType;
}
@JsonProperty(JSON_PROPERTY_SAMPLE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSampleType(SampleTypeEnum sampleType) {
this.sampleType = sampleType;
}
public RecogLibSampleOverview page(PageEnum page) {
this.page = page;
return this;
}
/**
* Get page
* @return page
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PageEnum getPage() {
return page;
}
@JsonProperty(JSON_PROPERTY_PAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPage(PageEnum page) {
this.page = page;
}
public RecogLibSampleOverview rank(RankEnum rank) {
this.rank = rank;
return this;
}
/**
* Rank B or F indicates problems and it is recommended to take image again and re-upload
* @return rank
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RANK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RankEnum getRank() {
return rank;
}
@JsonProperty(JSON_PROPERTY_RANK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRank(RankEnum rank) {
this.rank = rank;
}
public RecogLibSampleOverview documentCode(DocumentCodeEnum documentCode) {
this.documentCode = documentCode;
return this;
}
/**
* Get documentCode
* @return documentCode
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DocumentCodeEnum getDocumentCode() {
return documentCode;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentCode(DocumentCodeEnum documentCode) {
this.documentCode = documentCode;
}
public RecogLibSampleOverview sampleID(String sampleID) {
this.sampleID = sampleID;
return this;
}
/**
* If SampleID is undefined, it means that validators require sample, but it miss
* @return sampleID
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SAMPLE_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSampleID() {
return sampleID;
}
@JsonProperty(JSON_PROPERTY_SAMPLE_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSampleID(String sampleID) {
this.sampleID = sampleID;
}
/**
* Return true if this RecogLib.SampleOverview object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RecogLibSampleOverview recogLibSampleOverview = (RecogLibSampleOverview) o;
return Objects.equals(this.sampleType, recogLibSampleOverview.sampleType) &&
Objects.equals(this.page, recogLibSampleOverview.page) &&
Objects.equals(this.rank, recogLibSampleOverview.rank) &&
Objects.equals(this.documentCode, recogLibSampleOverview.documentCode) &&
Objects.equals(this.sampleID, recogLibSampleOverview.sampleID);
}
@Override
public int hashCode() {
return Objects.hash(sampleType, page, rank, documentCode, sampleID);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RecogLibSampleOverview {\n");
sb.append(" sampleType: ").append(toIndentedString(sampleType)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" rank: ").append(toIndentedString(rank)).append("\n");
sb.append(" documentCode: ").append(toIndentedString(documentCode)).append("\n");
sb.append(" sampleID: ").append(toIndentedString(sampleID)).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 `SampleType` to the URL query string
if (getSampleType() != null) {
joiner.add(String.format("%sSampleType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSampleType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Page` to the URL query string
if (getPage() != null) {
joiner.add(String.format("%sPage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Rank` to the URL query string
if (getRank() != null) {
joiner.add(String.format("%sRank%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRank()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `DocumentCode` to the URL query string
if (getDocumentCode() != null) {
joiner.add(String.format("%sDocumentCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `SampleID` to the URL query string
if (getSampleID() != null) {
joiner.add(String.format("%sSampleID%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSampleID()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}