Class SubsReflect

java.lang.Object
com.highdeal.pnr.tif.SubsReflect
All Implemented Interfaces:
XMLMarshallable

public class SubsReflect extends Object implements XMLMarshallable
This class represents a subscription reflect.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="subsReflect">
   <xs:complexType>
    <xs:sequence>
      <xs:element name="detail" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="subscriberAccount" type="xs:string"/>
    <xs:attribute name="serviceProvider" type="xs:string"/>
    <xs:attribute name="subscriptionCode" type="xs:string"/>
    <xs:attribute name="exportDate" type="xs:dateTime"/>
   </xs:complexType>
  </xs:element>

  • Constructor Details

    • SubsReflect

      public SubsReflect()
      Builds an empty subscription reflect. For internal use only.
    • SubsReflect

      public SubsReflect(String subscriberAccountReference, String subscriberAccountCode, String serviceProvider, String subscriptionCode, Date exportDate, List<SubsReflectDetail> details)
      Initializes a subscription reflect.
      Parameters:
      subscriberAccountReference - the reference of the subscriber account owner of the charged account
      subscriberAccountCode - the code of the subscriber account owner of the charged account
      serviceProvider - the service provider of the subscriber account owner of the charged account
      subscriptionCode - the exported subscription code
      exportDate - the date when the subscription is exported
      details - a list of SubsReflectDetail
    • SubsReflect

      public SubsReflect(SubscriberAccountModel suacModel, String subscriptionCode, Date exportDate, List<SubsReflectDetail> details)
      Initializes a subscription reflect.
      Parameters:
      suacModel - the subscriber account owner of the charged account
      subscriptionCode - the exported subscription code
      exportDate - the date when the subscription is exported
      details - a list of SubsReflectDetail
  • Method Details

    • getSubscriptionCode

      public String getSubscriptionCode()
      Gets the subscription code of the subscription reflect.
      Returns:
      the subscription code.
    • setSubscriptionCode

      public void setSubscriptionCode(String code)
      Sets the subscription code.
      Parameters:
      code - the subscription code of the reflect.
    • getExportDate

      public Date getExportDate()
      Gets the export date.
      Returns:
      the export date.
    • setExportDate

      public void setExportDate(Date exportDate)
      Sets the date.
      Parameters:
      exportDate - the subscription export date.
    • getSubscriberAccountCode

      public String getSubscriberAccountCode()
      Returns the subscriber account code of the subscription reflect.
      Returns:
      the subscriber account code.
    • setSubscriberAccountCode

      public void setSubscriberAccountCode(String subscriberAccountCode)
      Sets the subscriber account code of the subscription reflect.
      Parameters:
      subscriberAccountCode - the subscriber account code of the subscription reflect.
    • getSubscriberAccountReference

      public String getSubscriberAccountReference()
      Returns the subscriber account reference of the subscription reflect.
      Returns:
      the subscriber account reference.
    • setSubscriberAccountReference

      public void setSubscriberAccountReference(String subscriberAccountReference)
      Sets the subscriber account reference of the subscription reflect.
      Parameters:
      subscriberAccountReference - the subscriber account reference of the subscription reflect.
    • getServiceProvider

      public String getServiceProvider()
      Returns the service provider of the subscription reflect.
      Returns:
      the serviceProvider
    • setServiceProvider

      public void setServiceProvider(String serviceProvider)
      Sets the service provider of the subscription reflect.
      Parameters:
      serviceProvider - the serviceProvider to set
    • getSubsReflectDetails

      public List<SubsReflectDetail> getSubsReflectDetails()
      Returns the list of subsReflect
      Returns:
      the subsReflectDetails
    • addDetail

      public void addDetail(String name, Object value, String caCode, Long caOid)
      Add a charge detail to the subscription reflect.
      Parameters:
      name - the name of the detail
      value - the Object value of the detail.
      caCode - the charge activation code of the detail.
      caOid - the charge activation id of the detail.
    • addDetail

      public void addDetail(String name, Object value)
      Add a subscription detail to the subscription reflect
      Parameters:
      name - the name of the detail.
      value - the Object value of the detail.
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data 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.
      Specified by:
      setAttributes in interface XMLMarshallable
      Parameters:
      atts - The XML attributes of the current element
    • 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.
      Specified by:
      addChild in interface XMLMarshallable
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface XMLMarshallable
      Parameters:
      output - The XML output to marshal the object into