|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.RateComponentModel
com.highdeal.pnr.hci.DefaultChargeActionModel
public class DefaultChargeActionModel
This class represents the action of charging on the default one of the mapping following a charging mode.
This model is a rate RateComponentModel containing three properties:
ChargingMode, the default one is ChargingMode.forceNothing>"AccountState, the default one is AccountState.CLOSED>"AccountState, the default one is AccountState.ACTIVE>"
| Field Summary | |
|---|---|
static AccountState |
DEFAULT_FREE_CHARGE_UP_TO
Default account state from which free amounts are not charged if its state is strictly higher than this value. |
static AccountState |
DEFAULT_NOT_FREE_CHARGE_UP_TO
Default account state from which non free amounts are not charged if its state is strictly higher than this value. |
| Fields inherited from class com.highdeal.pnr.hci.RateComponentModel |
|---|
children, description, name, parent |
| Constructor Summary | |
|---|---|
DefaultChargeActionModel()
|
|
| Method Summary | |
|---|---|
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the component is valid. |
AccountState |
getAllowFreeChargeUpTo()
Gets the account state from which free charged amounts are rejected. |
AccountState |
getAllowNotFreeChargeUpTo()
Gets the account state from which non free charged amounts are rejected. |
ChargingMode |
getChargingMode()
Returns the mode of the charging. |
int |
getMaxChildCount()
Gets the maximum child count. |
void |
internalAddChild(java.lang.String name,
XMLMarshallable child)
|
void |
internalMarshal(XMLOutputter output)
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAllowFreeChargeUpTo(AccountState allowFreeChargeUpTo)
Sets the account state from which free charged amounts are rejected. |
void |
setAllowNotFreeChargeUpTo(AccountState allowNotFreeChargeUpTo)
Sets the account state from which non free amounts charged are rejected. |
void |
setChargingMode(ChargingMode chargingMode)
Sets the charging mode. |
| Methods inherited from class com.highdeal.pnr.hci.RateComponentModel |
|---|
addCharacterData, getChildAt, getChildCount, getChildren, getContext, getDescription, getName, getParent, inheritedContext, isRemoveChildAllowed, isSetChildAllowed, marshallChildren, remove, removeChild, setAttributes, setChild, setChild, setChildren, setDescription, setName, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AccountState DEFAULT_FREE_CHARGE_UP_TO
public static final AccountState DEFAULT_NOT_FREE_CHARGE_UP_TO
| Constructor Detail |
|---|
public DefaultChargeActionModel()
| Method Detail |
|---|
public ChargingMode getChargingMode()
public void setChargingMode(ChargingMode chargingMode)
chargingMode - the charging mode.public AccountState getAllowFreeChargeUpTo()
public void setAllowFreeChargeUpTo(AccountState allowFreeChargeUpTo)
allowFreeChargeUpTo - an account statepublic AccountState getAllowNotFreeChargeUpTo()
public void setAllowNotFreeChargeUpTo(AccountState allowNotFreeChargeUpTo)
allowNotFreeChargeUpTo - an account statepublic int getMaxChildCount()
RateComponentModel
getMaxChildCount in class RateComponentModelpublic boolean checkValidity()
RateComponentModel
checkValidity in class RateComponentModel
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallableaddChild in class RateComponentModelname - The name of tag for the childchild - The child to be added
public void internalAddChild(java.lang.String name,
XMLMarshallable child)
public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallablemarshal in class RateComponentModeloutput - The XML output to marshal the object intopublic void internalMarshal(XMLOutputter output)
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||