content: package com.adyen.model.nexo;
  
  import io.swagger.v3.oas.annotations.media.Schema;
  import java.util.Arrays;
  import javax.xml.bind.annotation.XmlEnum;
  import javax.xml.bind.annotation.XmlEnumValue;
  import javax.xml.bind.annotation.XmlType;
  
  /**
   * Java class for IdentificationType.
   *
   * <p>The following schema fragment specifies the expected content contained within this class.
   *
   * <pre>
   * &lt;simpleType name="IdentificationType"&gt;
   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
   *     &lt;enumeration value="PAN"/&gt;
   *     &lt;enumeration value="ISOTrack2"/&gt;
   *     &lt;enumeration value="BarCode"/&gt;
   *     &lt;enumeration value="AccountNumber"/&gt;
   *     &lt;enumeration value="PhoneNumber"/&gt;
   *   &lt;/restriction&gt;
   * &lt;/simpleType&gt;
   * </pre>
   */
  @XmlType(name = "IdentificationType")
  @XmlEnum
  public enum IdentificationType {
  
    /** Standard card identification (card number) */
    PAN("PAN"),
  
    /** ISO Track 2 including identification. */
    @XmlEnumValue("ISOTrack2")
    @Schema(description = "ISO Track 2 including identification.")
    ISO_TRACK_2("ISOTrack2"),
  
    /** Bar-code with a specific form of identification */
    @XmlEnumValue("BarCode")
    @Schema(description = "Bar-code with a specific form of identification")
    BAR_CODE("BarCode"),
  
    /** Account number */
    @XmlEnumValue("AccountNumber")
    @Schema(description = "Account number")
    ACCOUNT_NUMBER("AccountNumber"),
  
    /** A phone number identifies the account on which the phone card is assigned. */
    @XmlEnumValue("PhoneNumber")
    @Schema(
        description = "A phone number identifies the account on which the phone card is assigned.")
    PHONE_NUMBER("PhoneNumber");
    private final String value;
  
    IdentificationType(String v) {
      value = v;
    }
  
    /**
     * Value string.
     *
     * @return the string
     */
    public String value() {
      return value;
    }
  
    /**
     * Returns the enum constant matching the given string, or {@code null} if no match is found.
     *
     * @param v string value
     * @return the IdentificationType, or {@code null} if no match is found.
     */
    public static IdentificationType fromValue(String v) {
      return Arrays.stream(values()).filter(s -> s.value.equals(v)).findFirst().orElse(null);
    }
  }
  