public function toXMLString()
 {
     $str = '';
     if ($this->ReferenceID != null) {
         $str .= '<ebl:ReferenceID>' . PPUtils::escapeInvalidXmlCharsRegex($this->ReferenceID) . '</ebl:ReferenceID>';
     }
     if ($this->PaymentAction != null) {
         $str .= '<ebl:PaymentAction>' . PPUtils::escapeInvalidXmlCharsRegex($this->PaymentAction) . '</ebl:PaymentAction>';
     }
     if ($this->PaymentType != null) {
         $str .= '<ebl:PaymentType>' . PPUtils::escapeInvalidXmlCharsRegex($this->PaymentType) . '</ebl:PaymentType>';
     }
     if ($this->PaymentDetails != null) {
         $str .= '<ebl:PaymentDetails>';
         $str .= $this->PaymentDetails->toXMLString();
         $str .= '</ebl:PaymentDetails>';
     }
     if ($this->CreditCard != null) {
         $str .= '<ebl:CreditCard>';
         $str .= $this->CreditCard->toXMLString();
         $str .= '</ebl:CreditCard>';
     }
     if ($this->IPAddress != null) {
         $str .= '<ebl:IPAddress>' . PPUtils::escapeInvalidXmlCharsRegex($this->IPAddress) . '</ebl:IPAddress>';
     }
     if ($this->MerchantSessionId != null) {
         $str .= '<ebl:MerchantSessionId>' . PPUtils::escapeInvalidXmlCharsRegex($this->MerchantSessionId) . '</ebl:MerchantSessionId>';
     }
     if ($this->ReqConfirmShipping != null) {
         $str .= '<ebl:ReqConfirmShipping>' . PPUtils::escapeInvalidXmlCharsRegex($this->ReqConfirmShipping) . '</ebl:ReqConfirmShipping>';
     }
     if ($this->SoftDescriptor != null) {
         $str .= '<ebl:SoftDescriptor>' . PPUtils::escapeInvalidXmlCharsRegex($this->SoftDescriptor) . '</ebl:SoftDescriptor>';
     }
     if ($this->SenderDetails != null) {
         $str .= '<ebl:SenderDetails>';
         $str .= $this->SenderDetails->toXMLString();
         $str .= '</ebl:SenderDetails>';
     }
     if ($this->MsgSubID != null) {
         $str .= '<ebl:MsgSubID>' . PPUtils::escapeInvalidXmlCharsRegex($this->MsgSubID) . '</ebl:MsgSubID>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->ReferenceID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ReferenceID>' . $this->ReferenceID . '</ebl:ReferenceID>';
     }
     if ($this->PaymentAction != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PaymentAction>' . $this->PaymentAction . '</ebl:PaymentAction>';
     }
     if ($this->PaymentType != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PaymentType>' . $this->PaymentType . '</ebl:PaymentType>';
     }
     if ($this->PaymentDetails != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:PaymentDetails>';
         $str .= $this->PaymentDetails->toXMLString();
         $str .= '</ebl:PaymentDetails>';
     }
     if ($this->CreditCard != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:CreditCard>';
         $str .= $this->CreditCard->toXMLString();
         $str .= '</ebl:CreditCard>';
     }
     if ($this->IPAddress != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:IPAddress>' . $this->IPAddress . '</ebl:IPAddress>';
     }
     if ($this->MerchantSessionId != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:MerchantSessionId>' . $this->MerchantSessionId . '</ebl:MerchantSessionId>';
     }
     if ($this->ReqConfirmShipping != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ReqConfirmShipping>' . $this->ReqConfirmShipping . '</ebl:ReqConfirmShipping>';
     }
     if ($this->SoftDescriptor != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:SoftDescriptor>' . $this->SoftDescriptor . '</ebl:SoftDescriptor>';
     }
     if ($this->SenderDetails != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:SenderDetails>';
         $str .= $this->SenderDetails->toXMLString();
         $str .= '</ebl:SenderDetails>';
     }
     if ($this->MsgSubID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:MsgSubID>' . $this->MsgSubID . '</ebl:MsgSubID>';
     }
     return $str;
 }