public function toXMLString()
 {
     $str = '';
     if ($this->Payer != null) {
         $str .= '<ebl:Payer>' . PPUtils::escapeInvalidXmlCharsRegex($this->Payer) . '</ebl:Payer>';
     }
     if ($this->PayerID != null) {
         $str .= '<ebl:PayerID>' . PPUtils::escapeInvalidXmlCharsRegex($this->PayerID) . '</ebl:PayerID>';
     }
     if ($this->PayerStatus != null) {
         $str .= '<ebl:PayerStatus>' . PPUtils::escapeInvalidXmlCharsRegex($this->PayerStatus) . '</ebl:PayerStatus>';
     }
     if ($this->PayerName != null) {
         $str .= '<ebl:PayerName>';
         $str .= $this->PayerName->toXMLString();
         $str .= '</ebl:PayerName>';
     }
     if ($this->PayerCountry != null) {
         $str .= '<ebl:PayerCountry>' . PPUtils::escapeInvalidXmlCharsRegex($this->PayerCountry) . '</ebl:PayerCountry>';
     }
     if ($this->PayerBusiness != null) {
         $str .= '<ebl:PayerBusiness>' . PPUtils::escapeInvalidXmlCharsRegex($this->PayerBusiness) . '</ebl:PayerBusiness>';
     }
     if ($this->Address != null) {
         $str .= '<ebl:Address>';
         $str .= $this->Address->toXMLString();
         $str .= '</ebl:Address>';
     }
     if ($this->ContactPhone != null) {
         $str .= '<ebl:ContactPhone>' . PPUtils::escapeInvalidXmlCharsRegex($this->ContactPhone) . '</ebl:ContactPhone>';
     }
     if ($this->TaxIdDetails != null) {
         $str .= '<ebl:TaxIdDetails>';
         $str .= $this->TaxIdDetails->toXMLString();
         $str .= '</ebl:TaxIdDetails>';
     }
     if ($this->EnhancedPayerInfo != null) {
         $str .= '<ebl:EnhancedPayerInfo>';
         $str .= $this->EnhancedPayerInfo->toXMLString();
         $str .= '</ebl:EnhancedPayerInfo>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->Payer != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:Payer>' . $this->Payer . '</ebl:Payer>';
     }
     if ($this->PayerID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PayerID>' . $this->PayerID . '</ebl:PayerID>';
     }
     if ($this->PayerStatus != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PayerStatus>' . $this->PayerStatus . '</ebl:PayerStatus>';
     }
     if ($this->PayerName != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:PayerName>';
         $str .= $this->PayerName->toXMLString();
         $str .= '</ebl:PayerName>';
     }
     if ($this->PayerCountry != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PayerCountry>' . $this->PayerCountry . '</ebl:PayerCountry>';
     }
     if ($this->PayerBusiness != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PayerBusiness>' . $this->PayerBusiness . '</ebl:PayerBusiness>';
     }
     if ($this->Address != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:Address>';
         $str .= $this->Address->toXMLString();
         $str .= '</ebl:Address>';
     }
     if ($this->ContactPhone != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ContactPhone>' . $this->ContactPhone . '</ebl:ContactPhone>';
     }
     if ($this->TaxIdDetails != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:TaxIdDetails>';
         $str .= $this->TaxIdDetails->toXMLString();
         $str .= '</ebl:TaxIdDetails>';
     }
     if ($this->EnhancedPayerInfo != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:EnhancedPayerInfo>';
         $str .= $this->EnhancedPayerInfo->toXMLString();
         $str .= '</ebl:EnhancedPayerInfo>';
     }
     return $str;
 }