public function getParams()
    {
        $params = $this->params;

        $credential = $this->getCredential();
        if ($credential) {
            $params['affiliate_id'] = $credential->getAffiliateId();
            $params['api_id']       = $credential->getApiId();
        }

        return $params;
    }