All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidWebClassesFieldOcrResult 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 com.wultra.app.onboardingserver.provider.zenid.model.api.SystemNullableSystemDrawingRectangleF;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
 * ZenidWebClassesFieldOcrResult
 */
@JsonPropertyOrder({
  ZenidWebClassesFieldOcrResult.JSON_PROPERTY_FIELD_ID,
  ZenidWebClassesFieldOcrResult.JSON_PROPERTY_CONFIDENCE,
  ZenidWebClassesFieldOcrResult.JSON_PROPERTY_ORC_RESULT,
  ZenidWebClassesFieldOcrResult.JSON_PROPERTY_ORC_RAW_RESULT,
  ZenidWebClassesFieldOcrResult.JSON_PROPERTY_OUTLINE_IN_PROJECTED_IMAGE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidWebClassesFieldOcrResult {
  /**
   * Gets or Sets fieldId
   */
  public enum FieldIdEnum {
    A1("A1"),
    
    A2("A2"),
    
    A3("A3"),
    
    FIRST_NAME("FirstName"),
    
    LAST_NAME("LastName"),
    
    PHOTO("Photo"),
    
    BIRTH_DATE("BirthDate"),
    
    BIRTH_NUMBER("BirthNumber"),
    
    AUTHORITY("Authority"),
    
    MRZ1("Mrz1"),
    
    MRZ2("Mrz2"),
    
    MRZ3("Mrz3"),
    
    IDCARD_NUMBER("IdcardNumber"),
    
    SEX("Sex"),
    
    MARITAL_STATUS("MaritalStatus"),
    
    BIRTH_ADDRESS("BirthAddress"),
    
    BA1("BA1"),
    
    BA2("BA2"),
    
    ISSUE_DATE("IssueDate"),
    
    EXPIRY_DATE("ExpiryDate"),
    
    PASSPORT_NUMBER("PassportNumber"),
    
    DRIVINGLICENSE_NUMBER("DrivinglicenseNumber"),
    
    BARCODE("Barcode"),
    
    BIRTH_LAST_NAME("BirthLastName"),
    
    SPECIAL_REMARKS("SpecialRemarks"),
    
    HEIGHT("Height"),
    
    EYES_COLOR("EyesColor"),
    
    TITLES("Titles"),
    
    AUTHORITY1("Authority1"),
    
    AUTHORITY2("Authority2"),
    
    LAST_NAME1("LastName1"),
    
    LAST_NAME2_TITLES_AFTER("LastName2TitlesAfter"),
    
    DRV_CODES("DrvCodes"),
    
    SIGNATURE("Signature"),
    
    OTHER_INFO("OtherInfo"),
    
    MINI_HOLOGRAM("MiniHologram"),
    
    MINI_PHOTO("MiniPhoto"),
    
    CAR_NUMBER("CarNumber"),
    
    LICENSE_TYPES("LicenseTypes"),
    
    FIRST_NAME_OF_PARENTS("FirstNameOfParents"),
    
    BIRTH_DATE_NUMBER("BirthDateNumber"),
    
    DRIVINGLICENSE_NUMBER2("DrivinglicenseNumber2"),
    
    RDIF_CHIP_ACCESS("RDIFChipAccess"),
    
    PSEUDONYM("Pseudonym"),
    
    RESIDENCY_PERMIT_DESCRIPTION("ResidencyPermitDescription"),
    
    RESIDENCY_PERMIT_CODE("ResidencyPermitCode"),
    
    RESIDENCY_NUMBER("ResidencyNumber"),
    
    AUTHORITY_AND_ISSUE_DATE("AuthorityAndIssueDate"),
    
    NATIONALITY("Nationality"),
    
    GUNLICENSE_NUMBER("GunlicenseNumber"),
    
    STAMP("Stamp"),
    
    STAMP2("Stamp2"),
    
    SURNAME_AND_NAME1("SurnameAndName1"),
    
    SURNAME_AND_NAME2("SurnameAndName2"),
    
    SURNAME_AND_NAME3("SurnameAndName3"),
    
    MOTHERS_SURNAME_AND_NAME("MothersSurnameAndName"),
    
    TEMPORARY_ADDRESS1("TemporaryAddress1"),
    
    TEMPORARY_ADDRESS2("TemporaryAddress2"),
    
    ADDRESS_STARTING_DATE("AddressStartingDate"),
    
    TEMPORARY_ADDRESS_STARTING_DATE("TemporaryAddressStartingDate"),
    
    TEMPORARY_ADDRESS_ENDING_DATE("TemporaryAddressEndingDate"),
    
    NAME_IN_NATIONAL_LANGUAGE("NameInNationalLanguage"),
    
    BIRTH_DATE_AND_ADDRESS("BirthDateAndAddress"),
    
    SPECIAL_REMARKS2("SpecialRemarks2"),
    
    SPECIAL_REMARKS3("SpecialRemarks3"),
    
    UNKNOWN("Unknown"),
    
    HEALTH_INSURANCE_CARD_NUMBER("HealthInsuranceCardNumber"),
    
    INSURANCE_COMPANY_CODE("InsuranceCompanyCode"),
    
    ISSUING_COUNTRY("IssuingCountry"),
    
    RESIDENCY_NUMBER_PHOTO("ResidencyNumberPhoto"),
    
    ISSUE_DATE_AND_AUTHORITY("IssueDateAndAuthority"),
    
    TITLES_AFTER("TitlesAfter"),
    
    PLACE_OF_ISSUE("PlaceOfIssue"),
    
    BIRTH_ADDRESS_AND_DATE("BirthAddressAndDate"),
    
    ISSUE_DATE_AND_PLACE_OF_ISSUE("IssueDateAndPlaceOfIssue"),
    
    MOTHERS_SURNAME("MothersSurname"),
    
    MOTHERS_NAME("MothersName"),
    
    FATHERS_SURNAME("FathersSurname"),
    
    FATHERS_NAME("FathersName"),
    
    LAST_NAME2("LastName2"),
    
    A4("A4"),
    
    FIRST_NAME2("FirstName2"),
    
    ISSUE_AND_EXPIRY_DATE("IssueAndExpiryDate"),
    
    FISCAL_NUMBER("FiscalNumber"),
    
    SOCIAL_NUMBER("SocialNumber"),
    
    ALTERNATIVE_NAME("AlternativeName"),
    
    VISA_NUMBER("VisaNumber"),
    
    DURATION("Duration"),
    
    TYPE("Type"),
    
    COUNT("Count"),
    
    NAMES_OF_PARENTS("NamesOfParents"),
    
    NAMES_OF_PARENTS2("NamesOfParents2"),
    
    HEALTH_INSURANCE_NUMBER("HealthInsuranceNumber"),
    
    FATHERS_BIRTH_DATE("FathersBirthDate"),
    
    MOTHERS_BIRTH_DATE("MothersBirthDate"),
    
    BIRTH_CERTIFICATE_NUMBER1("BirthCertificateNumber1"),
    
    BIRTH_CERTIFICATE_NUMBER2("BirthCertificateNumber2"),
    
    BIRTH_CERTIFICATE_NUMBER3("BirthCertificateNumber3"),
    
    BIRTH_CERTIFICATE_NUMBER4("BirthCertificateNumber4"),
    
    FATHERS_BIRTH_NUMBER("FathersBirthNumber"),
    
    MOTHERS_BIRTH_NUMBER("MothersBirthNumber"),
    
    FATHERS_SURNAME_BIRTH_SURNAME("FathersSurnameBirthSurname"),
    
    MOTHERS_SURNAME_BIRTH_SURNAME("MothersSurnameBirthSurname"),
    
    AUTHORITY3("Authority3"),
    
    SEX2("Sex2");

    private String value;

    FieldIdEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static FieldIdEnum fromValue(String value) {
      for (FieldIdEnum b : FieldIdEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  public static final String JSON_PROPERTY_FIELD_ID = "FieldId";
  private FieldIdEnum fieldId;

  public static final String JSON_PROPERTY_CONFIDENCE = "Confidence";
  private Integer confidence;

  public static final String JSON_PROPERTY_ORC_RESULT = "OrcResult";
  private String orcResult;

  public static final String JSON_PROPERTY_ORC_RAW_RESULT = "OrcRawResult";
  private String orcRawResult;

  public static final String JSON_PROPERTY_OUTLINE_IN_PROJECTED_IMAGE = "OutlineInProjectedImage";
  private SystemNullableSystemDrawingRectangleF outlineInProjectedImage;

  public ZenidWebClassesFieldOcrResult() { 
  }

  public ZenidWebClassesFieldOcrResult fieldId(FieldIdEnum fieldId) {
    this.fieldId = fieldId;
    return this;
  }

  /**
   * Get fieldId
   * @return fieldId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FIELD_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public FieldIdEnum getFieldId() {
    return fieldId;
  }


  @JsonProperty(JSON_PROPERTY_FIELD_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFieldId(FieldIdEnum fieldId) {
    this.fieldId = fieldId;
  }


  public ZenidWebClassesFieldOcrResult confidence(Integer confidence) {
    this.confidence = confidence;
    return this;
  }

  /**
   * Get confidence
   * @return confidence
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CONFIDENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Integer getConfidence() {
    return confidence;
  }


  @JsonProperty(JSON_PROPERTY_CONFIDENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setConfidence(Integer confidence) {
    this.confidence = confidence;
  }


  public ZenidWebClassesFieldOcrResult orcResult(String orcResult) {
    this.orcResult = orcResult;
    return this;
  }

  /**
   * Get orcResult
   * @return orcResult
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ORC_RESULT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getOrcResult() {
    return orcResult;
  }


  @JsonProperty(JSON_PROPERTY_ORC_RESULT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrcResult(String orcResult) {
    this.orcResult = orcResult;
  }


  public ZenidWebClassesFieldOcrResult orcRawResult(String orcRawResult) {
    this.orcRawResult = orcRawResult;
    return this;
  }

  /**
   * Get orcRawResult
   * @return orcRawResult
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ORC_RAW_RESULT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getOrcRawResult() {
    return orcRawResult;
  }


  @JsonProperty(JSON_PROPERTY_ORC_RAW_RESULT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrcRawResult(String orcRawResult) {
    this.orcRawResult = orcRawResult;
  }


  public ZenidWebClassesFieldOcrResult outlineInProjectedImage(SystemNullableSystemDrawingRectangleF outlineInProjectedImage) {
    this.outlineInProjectedImage = outlineInProjectedImage;
    return this;
  }

  /**
   * Get outlineInProjectedImage
   * @return outlineInProjectedImage
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_OUTLINE_IN_PROJECTED_IMAGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public SystemNullableSystemDrawingRectangleF getOutlineInProjectedImage() {
    return outlineInProjectedImage;
  }


  @JsonProperty(JSON_PROPERTY_OUTLINE_IN_PROJECTED_IMAGE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOutlineInProjectedImage(SystemNullableSystemDrawingRectangleF outlineInProjectedImage) {
    this.outlineInProjectedImage = outlineInProjectedImage;
  }


  /**
   * Return true if this ZenidWeb.Classes.FieldOcrResult object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ZenidWebClassesFieldOcrResult zenidWebClassesFieldOcrResult = (ZenidWebClassesFieldOcrResult) o;
    return Objects.equals(this.fieldId, zenidWebClassesFieldOcrResult.fieldId) &&
        Objects.equals(this.confidence, zenidWebClassesFieldOcrResult.confidence) &&
        Objects.equals(this.orcResult, zenidWebClassesFieldOcrResult.orcResult) &&
        Objects.equals(this.orcRawResult, zenidWebClassesFieldOcrResult.orcRawResult) &&
        Objects.equals(this.outlineInProjectedImage, zenidWebClassesFieldOcrResult.outlineInProjectedImage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fieldId, confidence, orcResult, orcRawResult, outlineInProjectedImage);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ZenidWebClassesFieldOcrResult {\n");
    sb.append("    fieldId: ").append(toIndentedString(fieldId)).append("\n");
    sb.append("    confidence: ").append(toIndentedString(confidence)).append("\n");
    sb.append("    orcResult: ").append(toIndentedString(orcResult)).append("\n");
    sb.append("    orcRawResult: ").append(toIndentedString(orcRawResult)).append("\n");
    sb.append("    outlineInProjectedImage: ").append(toIndentedString(outlineInProjectedImage)).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 `FieldId` to the URL query string
    if (getFieldId() != null) {
      joiner.add(String.format("%sFieldId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFieldId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `Confidence` to the URL query string
    if (getConfidence() != null) {
      joiner.add(String.format("%sConfidence%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getConfidence()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `OrcResult` to the URL query string
    if (getOrcResult() != null) {
      joiner.add(String.format("%sOrcResult%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOrcResult()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `OrcRawResult` to the URL query string
    if (getOrcRawResult() != null) {
      joiner.add(String.format("%sOrcRawResult%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOrcRawResult()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
    }

    // add `OutlineInProjectedImage` to the URL query string
    if (getOutlineInProjectedImage() != null) {
      joiner.add(getOutlineInProjectedImage().toUrlQueryString(prefix + "OutlineInProjectedImage" + suffix));
    }

    return joiner.toString();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy