public enum TaxStatus extends java.lang.Enum<TaxStatus>
enumeration represents the different tax statuses that can be set in the charged transactions generated by the SAP CC Core Server system.ChargedTransaction| Enum Constant and Description |
|---|
APPLIED
The tax status for tax applied meaning
|
BUYER_SUBJECT_TO_PAY
The tax status for indicating that the buyer is responsible for
reversing tax to the tax authority
|
FOR_INFO
The tax status for indicating that the tax is given for information
|
NO_TAX
The tax status for no tax applied meaning
|
TAX_EXEMPTED
The tax status for tax exemption meaning
|
TAX_MISSED_FOR_APPLY
The tax status for indicating that the tax information is missing for tax
application
|
TAX_MISSED_FOR_INFO
The tax status for indicating that the tax information is missing for given
information about tax
|
UNKNOWN
The tax status for unknown status
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Gets the string code of this tax status.
|
int |
getId()
Gets the numeric code of this tax status.
|
static TaxStatus |
getTaxStatusFromCode(java.lang.String code)
Retrieves a tax status from its string code.
|
static TaxStatus |
getTaxStatusFromId(int id)
Retrieves a tax status from its numeric code.
|
static int |
parseTaxStatus(java.lang.String code)
Retrieves the numeric code of a tax status code from its string code.
|
static java.lang.String |
taxStatusToString(int code)
Retrieves the string code of a tax status code from its numeric code.
|
java.lang.String |
toString()
Returns the string code of of this tax status.
|
int |
value()
Gets the
numeric code of this tax status. |
static TaxStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaxStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaxStatus NO_TAX
public static final TaxStatus FOR_INFO
public static final TaxStatus APPLIED
public static final TaxStatus TAX_EXEMPTED
public static final TaxStatus BUYER_SUBJECT_TO_PAY
public static final TaxStatus TAX_MISSED_FOR_INFO
public static final TaxStatus TAX_MISSED_FOR_APPLY
public static final TaxStatus UNKNOWN
public static TaxStatus[] values()
for (TaxStatus c : TaxStatus.values()) System.out.println(c);
public static TaxStatus 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 int value()
numeric code of this tax status.public int getId()
public java.lang.String getCode()
public java.lang.String toString()
toString in class java.lang.Enum<TaxStatus>public static int parseTaxStatus(java.lang.String code)
code - The string code of a tax statuspublic static java.lang.String taxStatusToString(int code)
code - The numeric code of a tax statuspublic static TaxStatus getTaxStatusFromId(int id)
id - The numeric code of a tax statuspublic static TaxStatus getTaxStatusFromCode(java.lang.String code)
code - The string code of a tax status