com.highdeal.pnr.tif
Class SubsReflect

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

public class SubsReflect
extends java.lang.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 Summary
SubsReflect()
          Builds an empty subscription reflect.
SubsReflect(java.lang.String subscriberAccountReference, java.lang.String subscriberAccountCode, java.lang.String serviceProvider, java.lang.String subscriptionCode, java.util.Date exportDate, java.util.List<SubsReflectDetail> details)
          Initializes a subscription reflect.
SubsReflect(SubscriberAccountModel suacModel, java.lang.String subscriptionCode, java.util.Date exportDate, java.util.List<SubsReflectDetail> details)
          Initializes a subscription reflect.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String tagName, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 void addDetail(java.lang.String name, java.lang.Object value)
          Add a subscription detail to the subscription reflect
 void addDetail(java.lang.String name, java.lang.Object value, java.lang.String caCode, java.lang.Long caOid)
          Add a charge detail to the subscription reflect.
 java.util.Date getExportDate()
          Gets the export date.
 java.lang.String getServiceProvider()
          Returns the service provider of the subscription reflect.
 java.lang.String getSubscriberAccountCode()
          Returns the subscriber account code of the subscription reflect.
 java.lang.String getSubscriberAccountReference()
          Returns the subscriber account reference of the subscription reflect.
 java.lang.String getSubscriptionCode()
          Gets the subscription code of the subscription reflect.
 java.util.List<SubsReflectDetail> getSubsReflectDetails()
          Returns the list of subsReflect
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setExportDate(java.util.Date exportDate)
          Sets the date.
 void setServiceProvider(java.lang.String serviceProvider)
          Sets the service provider of the subscription reflect.
 void setSubscriberAccountCode(java.lang.String subscriberAccountCode)
          Sets the subscriber account code of the subscription reflect.
 void setSubscriberAccountReference(java.lang.String subscriberAccountReference)
          Sets the subscriber account reference of the subscription reflect.
 void setSubscriptionCode(java.lang.String code)
          Sets the subscription code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsReflect

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


SubsReflect

public SubsReflect(java.lang.String subscriberAccountReference,
                   java.lang.String subscriberAccountCode,
                   java.lang.String serviceProvider,
                   java.lang.String subscriptionCode,
                   java.util.Date exportDate,
                   java.util.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,
                   java.lang.String subscriptionCode,
                   java.util.Date exportDate,
                   java.util.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 Detail

getSubscriptionCode

public java.lang.String getSubscriptionCode()
Gets the subscription code of the subscription reflect.

Returns:
the subscription code.

setSubscriptionCode

public void setSubscriptionCode(java.lang.String code)
Sets the subscription code.

Parameters:
code - the subscription code of the reflect.

getExportDate

public java.util.Date getExportDate()
Gets the export date.

Returns:
the export date.

setExportDate

public void setExportDate(java.util.Date exportDate)
Sets the date.

Parameters:
exportDate - the subscription export date.

getSubscriberAccountCode

public java.lang.String getSubscriberAccountCode()
Returns the subscriber account code of the subscription reflect.

Returns:
the subscriber account code.

setSubscriberAccountCode

public void setSubscriberAccountCode(java.lang.String subscriberAccountCode)
Sets the subscriber account code of the subscription reflect.

Parameters:
subscriberAccountCode - the subscriber account code of the subscription reflect.

getSubscriberAccountReference

public java.lang.String getSubscriberAccountReference()
Returns the subscriber account reference of the subscription reflect.

Returns:
the subscriber account reference.

setSubscriberAccountReference

public void setSubscriberAccountReference(java.lang.String subscriberAccountReference)
Sets the subscriber account reference of the subscription reflect.

Parameters:
subscriberAccountReference - the subscriber account reference of the subscription reflect.

getServiceProvider

public java.lang.String getServiceProvider()
Returns the service provider of the subscription reflect.

Returns:
the serviceProvider

setServiceProvider

public void setServiceProvider(java.lang.String serviceProvider)
Sets the service provider of the subscription reflect.

Parameters:
serviceProvider - the serviceProvider to set

getSubsReflectDetails

public java.util.List<SubsReflectDetail> getSubsReflectDetails()
Returns the list of subsReflect

Returns:
the subsReflectDetails

addDetail

public void addDetail(java.lang.String name,
                      java.lang.Object value,
                      java.lang.String caCode,
                      java.lang.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(java.lang.String name,
                      java.lang.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(java.lang.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(java.lang.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

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)