Package com.highdeal.pnr.hci
Class ChargeActivationModel
java.lang.Object
com.highdeal.pnr.hci.ChargeActivationModel
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents a charge activation in a subscription (customer master data)
owned by a service provider; This data relates to the activation of charges in the subscribed offer.
Concepts and Terminology
A charge activation is an extensibility concept. The corresponding functional and business concept is the charge visible in a subscription.
Feature
A charge activation is contained in a SubscriptionModel and
managed using operations related to subscriptions.
Concepts and Terminology
A charge activation with a dependent role does not have any status.
Accesses are directly managed using the CreateAccessOp,
DeleteAccessOp and
ModifyAccessOp operations.
Behavior of a charge activation status:
- The initial state is
neverActivated. - The next possible state is
active. - After the state
active, next possible states aresuspended,cancelled,earlyCancelledandexpired. - After the state
suspended, next possible states areactive,cancelled,earlyCancelledandexpired. - The final states are
cancelled,earlyCancelledandexpired.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeActivation">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="parameterSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="parameterSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="translationInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="translationInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="tierTableInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="tierTableInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="access" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="chargingMapping" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="subCode" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="currency" type="xs:string" use="optional"/>
<xs:attribute name="effectiveDate" type="xs:dateTime"/>
<xs:attribute name="expirationDate" type="xs:dateTime"/>
<xs:attribute name="lastActivationDate" type="xs:dateTime"/>
<xs:attribute name="cancellationDate" type="xs:dateTime"/>
<xs:attribute name="parentCode" type="xs:string"/>
<xs:attribute name="parentRef" type="xs:string"/>
<xs:attribute name="status" type="CAStatusType"/>
</xs:complexType>
</xs:element><xs:simpleType name="CAStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="neverActivated"/>
<xs:enumeration value="active"/>
<xs:enumeration value="suspended"/>
<xs:enumeration value="cancelled"/>
<xs:enumeration value="earlyCancelled"/>
<xs:enumeration value="expired"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumeric value for the status of a charge activation which is active.static final StringString value for the status of a charge activation which is active.static final intNumeric value for the status of a charge activation which is cancelled.static final StringString value for the status of a charge activation which is cancelled.static final intNumeric value for the status of a charge activation which has been early cancelled.static final StringString value for the status of a charge activation which has been early cancelled.static final intNumeric value for the status of a charge activation which is expired.static final StringString value for the status of a charge activation which is expired.static final intNumeric value for the status of a charge activation which has never been activated.static final StringString value for the status of a charge activation which has never been activated.static final intNumeric value for the status of a charge activation with no status.static final intNumeric value for the status of a charge activation which is suspended.static final StringString value for the status of a charge activation which is suspended. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String name, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Deprecated.Deprecated since former Transactive 3.3Returns the cancellation date of this charge activation.Returns ths list of the associated charging mappings.Returns the list of associated counters.Returns the currency code of this charge activation.Returns the description of this charge activation.Returns the effective date of this charge activation.Returns the expiration date of this charge activation.Returns the last activation date of this charge activation.Returns the main offer code of the parent charge.Returns the parameter set model of this charge activation.Returns the parameter set chronology of this charge activation.Returns the parent code of this charge activation.Returns the parent reference of this charge activation.Returns the reference of this charge activation.intReturns the status of the charge activation.static StringgetStatusStringFromValue(int status) static intgetStatusValueFromString(String statusString) Returns the subCode of this charge activation.Returns the tier table instance set of this charge activation.Returns the tier table instance set chronology of this charge activation.Returns the translation instance set of this charge activation.Returns the translation instance set chronology of this charge activation.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAccesses(Vector<AccessModel> accesses) Deprecated.Deprecated since former Transactive 3.3voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetCancellationDate(Date cancellationDate) Sets the cancellation date of this charge activation.voidsetChargingMappings(Vector<ChargingMappingModel> mappings) Sets the list of charging mappings of this charge activation.voidsetCurrencyCode(String currencyCode) Sets the currency code of this charge activation.voidsetDescription(String description) Sets the description of this charge activation.voidsetEffectiveDate(Date effectiveDate) Sets the effective date of this charge activation.voidsetExpirationDate(Date expirationDate) Sets the expiration date of this charge activation.voidsetLastActivationDate(Date lastActivationDate) Sets the last activation date of this charge activation.voidsetOfferCode(String offerCode) Sets the main offer code of the parent charge.voidsetParameterSet(ParameterSetModel parameterSet) Sets the parameter set model of this charge activation.voidsetParentCode(String parentCode) Sets the parent code of this charge activation.voidsetParentRef(String parentRef) Sets the parent reference of this charge activation.voidsetReference(String reference) Sets the reference of this charge activation.voidsetStatus(int status) Sets the status for the charge activation; Only the SAP CC system can update this information.voidsetSubCode(String subCode) Sets the subCode for this charge activation.voidsetTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet) Sets the tier table instance set of this charge activation.voidsetTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet) Sets the translation instance set of this charge activation.
-
Field Details
-
NO_STATUS
public static final int NO_STATUSNumeric value for the status of a charge activation with no status.- See Also:
-
NEVER_ACTIVATED
public static final int NEVER_ACTIVATEDNumeric value for the status of a charge activation which has never been activated.- See Also:
-
ACTIVE
public static final int ACTIVENumeric value for the status of a charge activation which is active.- See Also:
-
SUSPENDED
public static final int SUSPENDEDNumeric value for the status of a charge activation which is suspended.- See Also:
-
CANCELLED
public static final int CANCELLEDNumeric value for the status of a charge activation which is cancelled.- See Also:
-
EARLY_CANCELLED
public static final int EARLY_CANCELLEDNumeric value for the status of a charge activation which has been early cancelled.- See Also:
-
EXPIRED
public static final int EXPIREDNumeric value for the status of a charge activation which is expired.- See Also:
-
NEVER_ACTIVATED_STR
String value for the status of a charge activation which has never been activated.- See Also:
-
ACTIVE_STR
String value for the status of a charge activation which is active.- See Also:
-
SUSPENDED_STR
String value for the status of a charge activation which is suspended.- See Also:
-
CANCELLED_STR
String value for the status of a charge activation which is cancelled.- See Also:
-
EARLY_CANCELLED_STR
String value for the status of a charge activation which has been early cancelled.- See Also:
-
EXPIRED_STR
String value for the status of a charge activation which is expired.- See Also:
-
-
Constructor Details
-
ChargeActivationModel
public ChargeActivationModel()Constructs an empty charge activation.
-
-
Method Details
-
getSubCode
Returns the subCode of this charge activation.- Returns:
- This charge activation subCode.
- See Also:
-
setSubCode
Sets the subCode for this charge activation.- Parameters:
subCode- The sub-code of the charge activation.- See Also:
-
getReference
Returns the reference of this charge activation.- Returns:
- This charge activation reference.
- See Also:
-
setReference
Sets the reference of this charge activation.- Parameters:
reference- The internal reference of this charge activation.- See Also:
-
getDescription
Returns the description of this charge activation.- Returns:
- This charge activation description.
- See Also:
-
setDescription
Sets the description of this charge activation.- Parameters:
description- The description of the charge activation.- See Also:
-
getCurrencyCode
Returns the currency code of this charge activation.- Returns:
- the currency code of this charge activation, or
nullif it does not define a currency code - See Also:
-
setCurrencyCode
Sets the currency code of this charge activation.- Parameters:
currencyCode- the currency code of this charge activation, ornullif it does not define a currency code- See Also:
-
getEffectiveDate
Returns the effective date of this charge activation.- Returns:
- This charge activation effective date.
- See Also:
-
setEffectiveDate
Sets the effective date of this charge activation.- Parameters:
effectiveDate- The effective date of the charge activation.- See Also:
-
getExpirationDate
Returns the expiration date of this charge activation.- Returns:
- This charge activation expiration date.
- See Also:
-
setExpirationDate
Sets the expiration date of this charge activation. Only the server can update this information.- Parameters:
expirationDate- The expiration date of the charge activation.- See Also:
-
getLastActivationDate
Returns the last activation date of this charge activation.- Returns:
- This charge activation last activation date.
- See Also:
-
setLastActivationDate
Sets the last activation date of this charge activation.- Parameters:
lastActivationDate- The last activation date of the charge activation.- See Also:
-
getCancellationDate
Returns the cancellation date of this charge activation. The cancellation date must be after the effective date- Returns:
- This subscription cancellation date.
- See Also:
-
setCancellationDate
Sets the cancellation date of this charge activation. The cancellation date must be after the effective date- Parameters:
cancellationDate- The cancellation date of the charge activation.- See Also:
-
getCounters
Returns the list of associated counters.- Returns:
- a list of
CounterModel.
-
getParentRef
Returns the parent reference of this charge activation.- Returns:
- the parent reference of this charge activation.
-
setParentRef
Sets the parent reference of this charge activation.- Parameters:
parentRef- the parent reference of this charge activation.
-
getParentCode
Returns the parent code of this charge activation.- Returns:
- the parent code of this charge activation.
-
setParentCode
Sets the parent code of this charge activation.- Parameters:
parentCode- the parent code of this charge activation.
-
getOfferCode
Returns the main offer code of the parent charge.- Returns:
- The main offer code of the parent charge.
- See Also:
-
setOfferCode
Sets the main offer code of the parent charge.- Parameters:
offerCode- The code of the offer of the parent charge.- See Also:
-
getParameterSet
Returns the parameter set model of this charge activation.- Returns:
- the parameter set model of this charge activation.
-
setParameterSet
Sets the parameter set model of this charge activation.- Parameters:
parameterSet- the parameter set model of this charge activation.
-
getTranslationInstanceSet
Returns the translation instance set of this charge activation.- Returns:
- the translation instance set of this charge activation.
-
setTranslationInstanceSet
Sets the translation instance set of this charge activation.- Parameters:
translationInstanceSet- the translation instance set of this charge activation.
-
getTierTableInstanceSet
Returns the tier table instance set of this charge activation.- Returns:
- the tier table instance set of this charge activation.
-
setTierTableInstanceSet
Sets the tier table instance set of this charge activation.- Parameters:
tierTableInstanceSet- the tier table instance set of this charge activation.
-
getParameterSetChronology
Returns the parameter set chronology of this charge activation.- Returns:
- all the charge activation parameter set in a vector of period.
-
getTranslationInstanceSetChronology
Returns the translation instance set chronology of this charge activation.- Returns:
- all the charge activation translation instance set in a vector of period.
-
getTierTableInstanceSetChronology
Returns the tier table instance set chronology of this charge activation.- Returns:
- all the charge activation tier table instance set in a vector of period.
-
getAccesses
Deprecated.Deprecated since former Transactive 3.3Returns the list of the associated accesses. This operation is avalaible only ifpnr.compatibility.r32.accessis true in the server config file.- Returns:
- a list of
AccessModel.
-
setAccesses
Deprecated.Deprecated since former Transactive 3.3Sets the list of accesses of this charge activation. This operation is avalaible only ifpnr.compatibility.r32.accessis true in the server config file.- Parameters:
accesses- the list ofAccessModelsto be setted.
-
getChargingMappings
Returns ths list of the associated charging mappings.- Returns:
- a list of
ChargingMappingModel.
-
setChargingMappings
Sets the list of charging mappings of this charge activation.- Parameters:
mappings- The list ofChargingMappingModelto be setted
-
getStatus
public int getStatus()Returns the status of the charge activation.The status may be:
- Returns:
- The status of the charge activation
- See Also:
-
setStatus
public void setStatus(int status) Sets the status for the charge activation; Only the SAP CC system can update this information.- Parameters:
status- The status of the charge activation- See Also:
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
name- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
getStatusStringFromValue
-
getStatusValueFromString
-