Package com.xero.models.accounting
Enum LinkedTransaction.StatusEnum
- java.lang.Object
-
- java.lang.Enum<LinkedTransaction.StatusEnum>
-
- com.xero.models.accounting.LinkedTransaction.StatusEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LinkedTransaction.StatusEnum>
- Enclosing class:
- LinkedTransaction
public static enum LinkedTransaction.StatusEnum extends Enum<LinkedTransaction.StatusEnum>
Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkedTransaction.StatusEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic LinkedTransaction.StatusEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LinkedTransaction.StatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPROVED
public static final LinkedTransaction.StatusEnum APPROVED
APPROVED
-
DRAFT
public static final LinkedTransaction.StatusEnum DRAFT
DRAFT
-
ONDRAFT
public static final LinkedTransaction.StatusEnum ONDRAFT
ONDRAFT
-
BILLED
public static final LinkedTransaction.StatusEnum BILLED
BILLED
-
VOIDED
public static final LinkedTransaction.StatusEnum VOIDED
VOIDED
-
-
Method Detail
-
values
public static LinkedTransaction.StatusEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LinkedTransaction.StatusEnum c : LinkedTransaction.StatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkedTransaction.StatusEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<LinkedTransaction.StatusEnum>- Returns:
- String value
-
fromValue
public static LinkedTransaction.StatusEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-