content: package com.adyen.model.nexo;
  
  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 BarcodeType.
   *
   * <p>The following schema fragment specifies the expected content contained within this class.
   *
   * <pre>
   * &lt;simpleType name="BarcodeType"&gt;
   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
   *     &lt;enumeration value="EAN8"/&gt;
   *     &lt;enumeration value="EAN13"/&gt;
   *     &lt;enumeration value="UPCA"/&gt;
   *     &lt;enumeration value="Code25"/&gt;
   *     &lt;enumeration value="Code128"/&gt;
   *     &lt;enumeration value="PDF417"/&gt;
   *     &lt;enumeration value="QRCode"/&gt;
   *   &lt;/restriction&gt;
   * &lt;/simpleType&gt;
   * </pre>
   */
  @XmlType(name = "BarcodeType")
  @XmlEnum
  public enum BarcodeType {
  
    /** Ean 8 barcode type. */
    @XmlEnumValue("EAN8")
    EAN_8("EAN8"),
    /** Ean 13 barcode type. */
    @XmlEnumValue("EAN13")
    EAN_13("EAN13"),
    /** Upca barcode type. */
    UPCA("UPCA"),
    /** Code 25 barcode type. */
    @XmlEnumValue("Code25")
    CODE_25("Code25"),
    /** Code 128 barcode type. */
    @XmlEnumValue("Code128")
    CODE_128("Code128"),
    /** Pdf 417 barcode type. */
    @XmlEnumValue("PDF417")
    PDF_417("PDF417"),
    /** Qrcode barcode type. */
    @XmlEnumValue("QRCode")
    QRCODE("QRCode");
    private final String value;
  
    BarcodeType(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 BarcodeType, or {@code null} if no match is found.
     */
    public static BarcodeType fromValue(String v) {
      return Arrays.stream(values()).filter(s -> s.value.equals(v)).findFirst().orElse(null);
    }
  }
  