Package com.highdeal.pnr.tif
Class SubsReflect
java.lang.Object
com.highdeal.pnr.tif.SubsReflect
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionBuilds an empty subscription reflect.SubsReflect(SubscriberAccountModel suacModel, String subscriptionCode, Date exportDate, List<SubsReflectDetail> details) Initializes a subscription reflect.SubsReflect(String subscriberAccountReference, String subscriberAccountCode, String serviceProvider, String subscriptionCode, Date exportDate, List<SubsReflectDetail> details) Initializes a subscription reflect. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidAdd a subscription detail to the subscription reflectvoidAdd a charge detail to the subscription reflect.Gets the export date.Returns the service provider of the subscription reflect.Returns the subscriber account code of the subscription reflect.Returns the subscriber account reference of the subscription reflect.Gets the subscription code of the subscription reflect.Returns the list ofsubsReflectvoidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetExportDate(Date exportDate) Sets the date.voidsetServiceProvider(String serviceProvider) Sets the service provider of the subscription reflect.voidsetSubscriberAccountCode(String subscriberAccountCode) Sets the subscriber account code of the subscription reflect.voidsetSubscriberAccountReference(String subscriberAccountReference) Sets the subscriber account reference of the subscription reflect.voidsetSubscriptionCode(String code) Sets the subscription code.
-
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 accountsubscriberAccountCode- the code of the subscriber account owner of the charged accountserviceProvider- the service provider of the subscriber account owner of the charged accountsubscriptionCode- the exported subscription codeexportDate- the date when the subscription is exporteddetails- a list ofSubsReflectDetail
-
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 accountsubscriptionCode- the exported subscription codeexportDate- the date when the subscription is exporteddetails- a list ofSubsReflectDetail
-
-
Method Details
-
getSubscriptionCode
Gets the subscription code of the subscription reflect.- Returns:
- the subscription code.
-
setSubscriptionCode
Sets the subscription code.- Parameters:
code- the subscription code of the reflect.
-
getExportDate
Gets the export date.- Returns:
- the export date.
-
setExportDate
Sets the date.- Parameters:
exportDate- the subscription export date.
-
getSubscriberAccountCode
Returns the subscriber account code of the subscription reflect.- Returns:
- the subscriber account code.
-
setSubscriberAccountCode
Sets the subscriber account code of the subscription reflect.- Parameters:
subscriberAccountCode- the subscriber account code of the subscription reflect.
-
getSubscriberAccountReference
Returns the subscriber account reference of the subscription reflect.- Returns:
- the subscriber account reference.
-
setSubscriberAccountReference
Sets the subscriber account reference of the subscription reflect.- Parameters:
subscriberAccountReference- the subscriber account reference of the subscription reflect.
-
getServiceProvider
Returns the service provider of the subscription reflect.- Returns:
- the serviceProvider
-
setServiceProvider
Sets the service provider of the subscription reflect.- Parameters:
serviceProvider- the serviceProvider to set
-
getSubsReflectDetails
Returns the list ofsubsReflect- Returns:
- the subsReflectDetails
-
addDetail
Add a charge detail to the subscription reflect.- Parameters:
name- the name of the detailvalue- theObjectvalue of the detail.caCode- the charge activation code of the detail.caOid- the charge activation id of the detail.
-
addDetail
Add a subscription detail to the subscription reflect- Parameters:
name- the name of the detail.value- theObjectvalue of the detail.
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
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:
tagName- The name of tag for the childchild- The child 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
-