/**
 * PaymentTerms.java
 * <p>
 * File generated from the voc::PaymentTerms uml Enumeration
 * Generated by IHE - europe, gazelle team
 */
package net.ihe.gazelle.hl7v3.voc;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
/**
 * Description of the enumeration PaymentTerms.
 *
 */

@XmlType(name = "PaymentTerms")
@XmlEnum
@XmlRootElement(name = "PaymentTerms")
public enum PaymentTerms {
	@XmlEnumValue("COD")
	COD("COD"),
	@XmlEnumValue("N30")
	N30("N30"),
	@XmlEnumValue("N60")
	N60("N60"),
	@XmlEnumValue("N90")
	N90("N90");
	
	private final String value;

    PaymentTerms(String v) {
        value = v;
    }
    
     public String value() {
        return value;
    }

    public static PaymentTerms fromValue(String v) {
        for (PaymentTerms c: PaymentTerms.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
	
}