public function init($arr = null)
 {
     if ($arr != null) {
         foreach ($arr as $arry) {
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'payer') {
                 $this->Payer = $arry["text"];
             }
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'payerid') {
                 $this->PayerID = $arry["text"];
             }
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'payerstatus') {
                 $this->PayerStatus = $arry["text"];
             }
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'payername') {
                     $this->PayerName = new PersonNameType();
                     $this->PayerName->init($arry["children"]);
                 }
             }
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'payercountry') {
                 $this->PayerCountry = $arry["text"];
             }
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'payerbusiness') {
                 $this->PayerBusiness = $arry["text"];
             }
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'address') {
                     $this->Address = new AddressType();
                     $this->Address->init($arry["children"]);
                 }
             }
             if ($arry != null && isset($arry['text']) && $arry['name'] == 'contactphone') {
                 $this->ContactPhone = $arry["text"];
             }
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'taxiddetails') {
                     $this->TaxIdDetails = new TaxIdDetailsType();
                     $this->TaxIdDetails->init($arry["children"]);
                 }
             }
             if (is_array($arry["children"]) && $arry["children"] != null) {
                 if ($arry["name"] == 'enhancedpayerinfo') {
                     $this->EnhancedPayerInfo = new EnhancedPayerInfoType();
                     $this->EnhancedPayerInfo->init($arry["children"]);
                 }
             }
         }
     }
 }