Class ChargingContractItemRevisionAccountAssignmentModel

java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.contract.hci.ChargingContractItemRevisionAccountAssignmentModel
All Implemented Interfaces:
ITagNameProvider, IXMLMarshallable, XMLMarshallable

public class ChargingContractItemRevisionAccountAssignmentModel extends HCIModelAdapter
An Account Assignment is a link between an account reference and the concrete Account to use in the charging process.

Provisioning system must give back in Charging Contract Item all Account Assignments defined in the Charge Plan Class with their account id.

A ChargingContractItemAccountAssignmentModel is composed of:

  • A name, which must be the same name as the one defined in the Charge Plan Class. It uniquely identifies an Account Assignment in a Charging Contract Item.
  • A type, which must be the same type as the one defined in the Charge Plan Class. It defines if the account reference is a prepaid or postpaid account.
  • A accountId, which is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract. This account is used as the target of the account reference.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:complexType name="ChargingContractItemRevisionAccountAssignmentType">
   <xs:attribute name="name" type="xs:string"/>
   <xs:attribute name="accountId" type="xs:string"/>
 </xs:complexType>

  • Field Details

    • TAG_NAME

      public static final String TAG_NAME
      The XML tag name of the <ttAccount Assignment XML representation
      See Also:
  • Constructor Details

    • ChargingContractItemRevisionAccountAssignmentModel

      public ChargingContractItemRevisionAccountAssignmentModel()
  • Method Details

    • getName

      public String getName()
      Gets the name which uniquely identifies the ChargingContractItemAccountAssignmentModel in the Charging Contract Item.
      Returns:
      the name which uniquely identifies the ChargingContractItemAccountAssignmentModel in the Charging Contract Item.
    • setName

      public void setName(String name)
      Sets the name which uniquely identifies the ChargingContractItemAccountAssignmentModel in the Charging Contract Item.
      Parameters:
      name - the name which uniquely identifies the ChargingContractItemAccountAssignmentModel in the Charging Contract Item.
    • getAccountId

      public String getAccountId()
      Gets the accountId of the Account Assignment..
      Returns:
      the accountId which is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract.
    • setAccountId

      public void setAccountId(String accountId)
      Sets the accountId of the Account Assignment.
      Parameters:
      accountId - the accountId which is the unique account identifier of the account owned by the Subscriber Account defined in the Charging Contract.
    • getTagName

      public String getTagName()
      Description copied from interface: ITagNameProvider
      Gets the XML tag name of the HCI model.
      Returns:
      The XML tag name
    • marshalAttributes

      public void marshalAttributes(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the attributes of an object.
      Parameters:
      output - The XML output to marshal the object attributes into
    • marshalChildren

      public void marshalChildren(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the child objects of an object.
      Parameters:
      output - The XML output to marshal the child objects into
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Parameters:
      cData - The character data to be added
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Parameters:
      atts - The XML attributes of the current element