public enum AccessibleChargeType extends java.lang.Enum<AccessibleChargeType>
enumeration lists the types of
an accessible charge in customer master data: SUBSCRIPTION or CHARGING_CONTRACT.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="AccessibleChargeType"> <xs:restriction base="xs:string"> <xs:enumeration value="subscription"/> <xs:enumeration value="chargingContract"/> </xs:restriction> </xs:simpleType>
| Enum Constant and Description |
|---|
CHARGING_CONTRACT
Constant when the
accessible charge references a charging contract (provider contract). |
SUBSCRIPTION
Constant when the
accessible charge references a subscription. |
| Modifier and Type | Method and Description |
|---|---|
static AccessibleChargeType |
getAccessibleChargeTypeFromId(int AccessibleChargeTypeId)
Gets the AccessibleChargeType instance corresponding to the identifier.
|
static AccessibleChargeType |
getAccessibleChargeTypeFromPrettyName(java.lang.String prettyName)
Gets the AccessibleChargeType instance corresponding to the pretty name.
|
int |
getId()
Gets the identifier of the accessible charge.
|
java.lang.String |
getPrettyName()
Gets the name of the accessible charge.
|
static AccessibleChargeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccessibleChargeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessibleChargeType SUBSCRIPTION
accessible charge references a subscription.public static final AccessibleChargeType CHARGING_CONTRACT
accessible charge references a charging contract (provider contract).public static AccessibleChargeType[] values()
for (AccessibleChargeType c : AccessibleChargeType.values()) System.out.println(c);
public static AccessibleChargeType 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 java.lang.String getPrettyName()
public int getId()
public static final AccessibleChargeType getAccessibleChargeTypeFromPrettyName(java.lang.String prettyName)
prettyName - The name of the AccessibleCharge typenull otherwise.public static final AccessibleChargeType getAccessibleChargeTypeFromId(int AccessibleChargeTypeId)
AccessibleChargeTypeId - The identifier of the AccessibleCharge typenull otherwise.