public function toXMLString()
 {
     $str = '';
     $str .= parent::toXMLString();
     if ($this->StartDate != null) {
         $str .= '<urn:StartDate>' . PPUtils::escapeInvalidXmlCharsRegex($this->StartDate) . '</urn:StartDate>';
     }
     if ($this->EndDate != null) {
         $str .= '<urn:EndDate>' . PPUtils::escapeInvalidXmlCharsRegex($this->EndDate) . '</urn:EndDate>';
     }
     if ($this->Payer != null) {
         $str .= '<urn:Payer>' . PPUtils::escapeInvalidXmlCharsRegex($this->Payer) . '</urn:Payer>';
     }
     if ($this->Receiver != null) {
         $str .= '<urn:Receiver>' . PPUtils::escapeInvalidXmlCharsRegex($this->Receiver) . '</urn:Receiver>';
     }
     if ($this->ReceiptID != null) {
         $str .= '<urn:ReceiptID>' . PPUtils::escapeInvalidXmlCharsRegex($this->ReceiptID) . '</urn:ReceiptID>';
     }
     if ($this->TransactionID != null) {
         $str .= '<urn:TransactionID>' . PPUtils::escapeInvalidXmlCharsRegex($this->TransactionID) . '</urn:TransactionID>';
     }
     if ($this->ProfileID != null) {
         $str .= '<urn:ProfileID>' . PPUtils::escapeInvalidXmlCharsRegex($this->ProfileID) . '</urn:ProfileID>';
     }
     if ($this->PayerName != null) {
         $str .= '<urn:PayerName>';
         $str .= $this->PayerName->toXMLString();
         $str .= '</urn:PayerName>';
     }
     if ($this->AuctionItemNumber != null) {
         $str .= '<urn:AuctionItemNumber>' . PPUtils::escapeInvalidXmlCharsRegex($this->AuctionItemNumber) . '</urn:AuctionItemNumber>';
     }
     if ($this->InvoiceID != null) {
         $str .= '<urn:InvoiceID>' . PPUtils::escapeInvalidXmlCharsRegex($this->InvoiceID) . '</urn:InvoiceID>';
     }
     if ($this->CardNumber != null) {
         $str .= '<urn:CardNumber>' . PPUtils::escapeInvalidXmlCharsRegex($this->CardNumber) . '</urn:CardNumber>';
     }
     if ($this->TransactionClass != null) {
         $str .= '<urn:TransactionClass>' . PPUtils::escapeInvalidXmlCharsRegex($this->TransactionClass) . '</urn:TransactionClass>';
     }
     if ($this->Amount != null) {
         $str .= '<urn:Amount';
         $str .= $this->Amount->toXMLString();
         $str .= '</urn:Amount>';
     }
     if ($this->CurrencyCode != null) {
         $str .= '<urn:CurrencyCode>' . PPUtils::escapeInvalidXmlCharsRegex($this->CurrencyCode) . '</urn:CurrencyCode>';
     }
     if ($this->Status != null) {
         $str .= '<urn:Status>' . PPUtils::escapeInvalidXmlCharsRegex($this->Status) . '</urn:Status>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     $str .= parent::toXMLString();
     if ($this->StartDate != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:StartDate>' . $this->StartDate . '</urn:StartDate>';
     }
     if ($this->EndDate != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:EndDate>' . $this->EndDate . '</urn:EndDate>';
     }
     if ($this->Payer != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:Payer>' . $this->Payer . '</urn:Payer>';
     }
     if ($this->Receiver != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:Receiver>' . $this->Receiver . '</urn:Receiver>';
     }
     if ($this->ReceiptID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:ReceiptID>' . $this->ReceiptID . '</urn:ReceiptID>';
     }
     if ($this->TransactionID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:TransactionID>' . $this->TransactionID . '</urn:TransactionID>';
     }
     if ($this->ProfileID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:ProfileID>' . $this->ProfileID . '</urn:ProfileID>';
     }
     if ($this->PayerName != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<urn:PayerName>';
         $str .= $this->PayerName->toXMLString();
         $str .= '</urn:PayerName>';
     }
     if ($this->AuctionItemNumber != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:AuctionItemNumber>' . $this->AuctionItemNumber . '</urn:AuctionItemNumber>';
     }
     if ($this->InvoiceID != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:InvoiceID>' . $this->InvoiceID . '</urn:InvoiceID>';
     }
     if ($this->CardNumber != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:CardNumber>' . $this->CardNumber . '</urn:CardNumber>';
     }
     if ($this->TransactionClass != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:TransactionClass>' . $this->TransactionClass . '</urn:TransactionClass>';
     }
     if ($this->Amount != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<urn:Amount';
         $str .= $this->Amount->toXMLString();
         $str .= '</urn:Amount>';
     }
     if ($this->CurrencyCode != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:CurrencyCode>' . $this->CurrencyCode . '</urn:CurrencyCode>';
     }
     if ($this->Status != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<urn:Status>' . $this->Status . '</urn:Status>';
     }
     return $str;
 }