public function toXMLString()
 {
     $str = '';
     if ($this->CreditCardNumberType != null) {
         $str .= '<ebl:CreditCardNumberType>';
         $str .= $this->CreditCardNumberType->toXMLString();
         $str .= '</ebl:CreditCardNumberType>';
     }
     if ($this->ExpMonth != null) {
         $str .= '<ebl:ExpMonth>' . PPUtils::escapeInvalidXmlCharsRegex($this->ExpMonth) . '</ebl:ExpMonth>';
     }
     if ($this->ExpYear != null) {
         $str .= '<ebl:ExpYear>' . PPUtils::escapeInvalidXmlCharsRegex($this->ExpYear) . '</ebl:ExpYear>';
     }
     if ($this->CardOwnerName != null) {
         $str .= '<ebl:CardOwnerName>';
         $str .= $this->CardOwnerName->toXMLString();
         $str .= '</ebl:CardOwnerName>';
     }
     if ($this->BillingAddress != null) {
         $str .= '<ebl:BillingAddress>';
         $str .= $this->BillingAddress->toXMLString();
         $str .= '</ebl:BillingAddress>';
     }
     if ($this->CVV2 != null) {
         $str .= '<ebl:CVV2>' . PPUtils::escapeInvalidXmlCharsRegex($this->CVV2) . '</ebl:CVV2>';
     }
     if ($this->StartMonth != null) {
         $str .= '<ebl:StartMonth>' . PPUtils::escapeInvalidXmlCharsRegex($this->StartMonth) . '</ebl:StartMonth>';
     }
     if ($this->StartYear != null) {
         $str .= '<ebl:StartYear>' . PPUtils::escapeInvalidXmlCharsRegex($this->StartYear) . '</ebl:StartYear>';
     }
     if ($this->IssueNumber != null) {
         $str .= '<ebl:IssueNumber>' . PPUtils::escapeInvalidXmlCharsRegex($this->IssueNumber) . '</ebl:IssueNumber>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->CreditCardNumberType != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:CreditCardNumberType>';
         $str .= $this->CreditCardNumberType->toXMLString();
         $str .= '</ebl:CreditCardNumberType>';
     }
     if ($this->ExpMonth != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ExpMonth>' . $this->ExpMonth . '</ebl:ExpMonth>';
     }
     if ($this->ExpYear != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ExpYear>' . $this->ExpYear . '</ebl:ExpYear>';
     }
     if ($this->CardOwnerName != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:CardOwnerName>';
         $str .= $this->CardOwnerName->toXMLString();
         $str .= '</ebl:CardOwnerName>';
     }
     if ($this->BillingAddress != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:BillingAddress>';
         $str .= $this->BillingAddress->toXMLString();
         $str .= '</ebl:BillingAddress>';
     }
     if ($this->CVV2 != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:CVV2>' . $this->CVV2 . '</ebl:CVV2>';
     }
     if ($this->StartMonth != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:StartMonth>' . $this->StartMonth . '</ebl:StartMonth>';
     }
     if ($this->StartYear != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:StartYear>' . $this->StartYear . '</ebl:StartYear>';
     }
     if ($this->IssueNumber != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:IssueNumber>' . $this->IssueNumber . '</ebl:IssueNumber>';
     }
     return $str;
 }