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

com.onfido.model.ReportName Maven / Gradle / Ivy

There is a newer version: 5.5.0
Show newest version
/*
 * Onfido API v3.6
 * The Onfido API (v3.6)
 *
 * The version of the OpenAPI document: v3.6
 * 
 *
 * 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.onfido.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;

import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.JsonElement;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * Gets or Sets report_name
 */
@JsonAdapter(ReportName.Adapter.class)
public enum ReportName {
  
  DOCUMENT("document"),
  
  DOCUMENT_VIDEO("document_video"),
  
  DOCUMENT_VIDEO_WITH_ADDRESS_INFORMATION("document_video_with_address_information"),
  
  DOCUMENT_WITH_ADDRESS_INFORMATION("document_with_address_information"),
  
  DOCUMENT_WITH_DRIVING_LICENCE_INFORMATION("document_with_driving_licence_information"),
  
  DOCUMENT_WITH_DRIVER_VERIFICATION("document_with_driver_verification"),
  
  FACIAL_SIMILARITY_PHOTO("facial_similarity_photo"),
  
  FACIAL_SIMILARITY_PHOTO_FULLY_AUTO("facial_similarity_photo_fully_auto"),
  
  FACIAL_SIMILARITY_VIDEO("facial_similarity_video"),
  
  FACIAL_SIMILARITY_MOTION("facial_similarity_motion"),
  
  KNOWN_FACES("known_faces"),
  
  IDENTITY_ENHANCED("identity_enhanced"),
  
  WATCHLIST_AML("watchlist_aml"),
  
  WATCHLIST_ENHANCED("watchlist_enhanced"),
  
  WATCHLIST_STANDARD("watchlist_standard"),
  
  WATCHLIST_PEPS_ONLY("watchlist_peps_only"),
  
  WATCHLIST_SANCTIONS_ONLY("watchlist_sanctions_only"),
  
  PROOF_OF_ADDRESS("proof_of_address"),
  
  US_DRIVING_LICENCE("us_driving_licence"),
  
  DEVICE_INTELLIGENCE("device_intelligence"),
  
  INDIA_PAN("india_pan"),
  
  UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

  private String value;

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

  public String getValue() {
    return value;
  }

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

  public static ReportName fromValue(String value) {
    for (ReportName b : ReportName.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    return UNKNOWN_DEFAULT_OPEN_API;
  }

  public static class Adapter extends TypeAdapter {
    @Override
    public void write(final JsonWriter jsonWriter, final ReportName enumeration) throws IOException {
      jsonWriter.value(enumeration.getValue());
    }

    @Override
    public ReportName read(final JsonReader jsonReader) throws IOException {
      String value = jsonReader.nextString();
      return ReportName.fromValue(value);
    }
  }

  public static void validateJsonElement(JsonElement jsonElement) throws IOException {
    String value = jsonElement.getAsString();
    ReportName.fromValue(value);
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy