public function toXMLString()
 {
     $str = '';
     if ($this->ExternalBuyerId != null) {
         $str .= '<ebl:ExternalBuyerId>' . PPUtils::escapeInvalidXmlCharsRegex($this->ExternalBuyerId) . '</ebl:ExternalBuyerId>';
     }
     if ($this->IncentiveCodes != null) {
         for ($i = 0; $i < count($this->IncentiveCodes); $i++) {
             $str .= '<ebl:IncentiveCodes>' . PPUtils::escapeInvalidXmlCharsRegex($this->IncentiveCodes[$i]) . '</ebl:IncentiveCodes>';
         }
     }
     if ($this->ApplyIndication != null) {
         for ($i = 0; $i < count($this->ApplyIndication); $i++) {
             $str .= '<ebl:ApplyIndication>';
             $str .= $this->ApplyIndication[$i]->toXMLString();
             $str .= '</ebl:ApplyIndication>';
         }
     }
     if ($this->Buckets != null) {
         for ($i = 0; $i < count($this->Buckets); $i++) {
             $str .= '<ebl:Buckets>';
             $str .= $this->Buckets[$i]->toXMLString();
             $str .= '</ebl:Buckets>';
         }
     }
     if ($this->CartTotalAmt != null) {
         $str .= '<ebl:CartTotalAmt';
         $str .= $this->CartTotalAmt->toXMLString();
         $str .= '</ebl:CartTotalAmt>';
     }
     if ($this->RequestDetails != null) {
         $str .= '<ebl:RequestDetails>';
         $str .= $this->RequestDetails->toXMLString();
         $str .= '</ebl:RequestDetails>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->ExternalBuyerId != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ExternalBuyerId>' . $this->ExternalBuyerId . '</ebl:ExternalBuyerId>';
     }
     if ($this->IncentiveCodes != null) {
         for ($i = 0; $i < count($this->IncentiveCodes); $i++) {
             //property is collection
             //not a complex member
             //prop is not a value
             $str .= '<ebl:IncentiveCodes>' . $this->IncentiveCodes[$i] . '</ebl:IncentiveCodes>';
         }
     }
     if ($this->ApplyIndication != null) {
         for ($i = 0; $i < count($this->ApplyIndication); $i++) {
             //property is collection
             //prop.complex
             //does not contain attribute or is attribute
             $str .= '<ebl:ApplyIndication>';
             $str .= $this->ApplyIndication[$i]->toXMLString();
             $str .= '</ebl:ApplyIndication>';
         }
     }
     if ($this->Buckets != null) {
         for ($i = 0; $i < count($this->Buckets); $i++) {
             //property is collection
             //prop.complex
             //does not contain attribute or is attribute
             $str .= '<ebl:Buckets>';
             $str .= $this->Buckets[$i]->toXMLString();
             $str .= '</ebl:Buckets>';
         }
     }
     if ($this->CartTotalAmt != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:CartTotalAmt';
         $str .= $this->CartTotalAmt->toXMLString();
         $str .= '</ebl:CartTotalAmt>';
     }
     if ($this->RequestDetails != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:RequestDetails>';
         $str .= $this->RequestDetails->toXMLString();
         $str .= '</ebl:RequestDetails>';
     }
     return $str;
 }