protected function checkResponse(Response $response)
 {
     if (!$response->isSuccess()) {
         $msg = 'Bad response. ' . $response->getApiCode() . ': ' . $response->getApiCodeDescription();
         throw new \Exception($msg . print_r($response->getUserMessages()));
     }
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(Payload $payload)
 {
     parent::__construct($payload);
     $this->user = isset($payload[static::FIELD_USER]) ? $payload[static::FIELD_USER] : [];
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(Payload $payload)
 {
     parent::__construct($payload);
     $this->ftdUsersList = isset($payload[static::FIELD_FTD_USERS_LIST]) ? $payload[static::FIELD_FTD_USERS_LIST] : [];
 }