public enum InvoiceType extends java.lang.Enum<InvoiceType> implements io.geewit.core.utils.enums.Name
| Enum Constant and Description |
|---|
ELECTRONIC
增值税电子普通发票
|
NORMAL
增值税普通发票
|
NORMAL_ROLL
卷票
|
NORMAL_SPECIAL |
SPECIAL
增值税专用发票
|
SPECIAL_ELECTRONIC
增值税电子专用发票
|
UNIVERSAL
通用机打发票
|
VEHICLE
机动车销售发票
|
| Modifier and Type | Method and Description |
|---|---|
static InvoiceType |
fromValue(java.lang.String value) |
boolean |
isNormal() |
boolean |
isSpecial() |
static java.util.List<java.lang.String> |
special() |
static java.util.List<java.lang.String> |
toList() |
static InvoiceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvoiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvoiceType NORMAL
public static final InvoiceType SPECIAL
public static final InvoiceType VEHICLE
public static final InvoiceType UNIVERSAL
public static final InvoiceType ELECTRONIC
public static final InvoiceType NORMAL_ROLL
public static final InvoiceType NORMAL_SPECIAL
public static final InvoiceType SPECIAL_ELECTRONIC
public static InvoiceType[] values()
for (InvoiceType c : InvoiceType.values()) System.out.println(c);
public static InvoiceType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static InvoiceType fromValue(java.lang.String value) throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic static java.util.List<java.lang.String> special()
public static java.util.List<java.lang.String> toList()
public boolean isNormal()
public boolean isSpecial()