/**
  * @inheritdoc
  * @return ProcessResponse instance, that describes payment process result
  */
 public static function initializeByString($string)
 {
     $Response = json_decode($string);
     $Result = new ProcessResponse();
     $Result->id = (string) $Response->id;
     $Result->success = (bool) $Response->success;
     $Result->Card = CardResponse::initializeByObject($Response->card);
     if (isset($Response->permanentToken)) {
         $Result->permanentToken = (string) $Response->permanentToken;
     }
     if (isset($Response->recurring)) {
         $Result->Recurring = RecurringResponse::initializeByObject($Response->recurring);
     }
     if (isset($Response->acs)) {
         $Result->AccessControlServer = AccessControlServerResponse::initializeByObject($Response->acs);
     }
     return $Result;
 }
 /**
  * @inheritdoc
  * @return AuthenticateResponse instance, that describes card authentication data
  */
 public static function initializeByString($string)
 {
     $Response = json_decode($string);
     $Result = new AuthenticateResponse();
     $Result->id = $Response->id;
     $Result->success = (bool) $Response->success;
     $Result->Card = CardResponse::initializeByObject($Response->card);
     if (isset($Response->permanentToken)) {
         $Result->permanentToken = (string) $Response->permanentToken;
     }
     if (isset($Response->recurring)) {
         $Result->Recurring = RecurringResponse::initializeByObject($Response->recurring);
     }
     return $Result;
 }