com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidWebVerifyCardsRecalledResponseVerifiedCard 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;
/**
* ZenidWebVerifyCardsRecalledResponseVerifiedCard
*/
@JsonPropertyOrder({
ZenidWebVerifyCardsRecalledResponseVerifiedCard.JSON_PROPERTY_RECALLED,
ZenidWebVerifyCardsRecalledResponseVerifiedCard.JSON_PROPERTY_DOCUMENT_CODE,
ZenidWebVerifyCardsRecalledResponseVerifiedCard.JSON_PROPERTY_CARD_NUMBER
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidWebVerifyCardsRecalledResponseVerifiedCard {
public static final String JSON_PROPERTY_RECALLED = "Recalled";
private Boolean recalled;
/**
* 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_CARD_NUMBER = "CardNumber";
private String cardNumber;
public ZenidWebVerifyCardsRecalledResponseVerifiedCard() {
}
public ZenidWebVerifyCardsRecalledResponseVerifiedCard recalled(Boolean recalled) {
this.recalled = recalled;
return this;
}
/**
* Get recalled
* @return recalled
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECALLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getRecalled() {
return recalled;
}
@JsonProperty(JSON_PROPERTY_RECALLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecalled(Boolean recalled) {
this.recalled = recalled;
}
public ZenidWebVerifyCardsRecalledResponseVerifiedCard 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 ZenidWebVerifyCardsRecalledResponseVerifiedCard cardNumber(String cardNumber) {
this.cardNumber = cardNumber;
return this;
}
/**
* Get cardNumber
* @return cardNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CARD_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCardNumber() {
return cardNumber;
}
@JsonProperty(JSON_PROPERTY_CARD_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
}
/**
* Return true if this ZenidWeb.VerifyCardsRecalledResponse.VerifiedCard object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ZenidWebVerifyCardsRecalledResponseVerifiedCard zenidWebVerifyCardsRecalledResponseVerifiedCard = (ZenidWebVerifyCardsRecalledResponseVerifiedCard) o;
return Objects.equals(this.recalled, zenidWebVerifyCardsRecalledResponseVerifiedCard.recalled) &&
Objects.equals(this.documentCode, zenidWebVerifyCardsRecalledResponseVerifiedCard.documentCode) &&
Objects.equals(this.cardNumber, zenidWebVerifyCardsRecalledResponseVerifiedCard.cardNumber);
}
@Override
public int hashCode() {
return Objects.hash(recalled, documentCode, cardNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ZenidWebVerifyCardsRecalledResponseVerifiedCard {\n");
sb.append(" recalled: ").append(toIndentedString(recalled)).append("\n");
sb.append(" documentCode: ").append(toIndentedString(documentCode)).append("\n");
sb.append(" cardNumber: ").append(toIndentedString(cardNumber)).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 `Recalled` to the URL query string
if (getRecalled() != null) {
joiner.add(String.format("%sRecalled%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecalled()), 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 `CardNumber` to the URL query string
if (getCardNumber() != null) {
joiner.add(String.format("%sCardNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}