public function all($priceRuleId, array $params = array())
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(DiscountCode::class, $response['discount_codes']);
    }