public static enum Invoice.State extends Enum<Invoice.State>
For invoice's, you can use the sent_at, paid_at (or paid_date), closed_at, and due_date fields to determine state:
| Modifier and Type | Method and Description |
|---|---|
static Invoice.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Invoice.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Invoice.State DRAFT
public static final Invoice.State OPEN
public static final Invoice.State LATE
public static final Invoice.State PAID
public static final Invoice.State CLOSED
public static Invoice.State[] values()
for (Invoice.State c : Invoice.State.values()) System.out.println(c);
public static Invoice.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null