public function get($priceRuleId, $discountCodeId)
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes/'.$discountCodeId.'.json';
        $response = $this->request($endpoint);
        return $this->createObject(DiscountCode::class, $response['discount_code']);
    }
public function get($priceRuleId, $discountCodeId)
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes/'.$discountCodeId.'.json';
        $response = $this->request($endpoint);
        return $this->createObject(DiscountCode::class, $response['discount_code']);
    }
public function get ( $ priceRuleId , $ discountCodeId ) { $ endpoint = '/admin/price_rules/' . $ priceRuleId . '/discount_codes/' . $ discountCodeId . '.json' ; $ response = $ this -> request ( $ endpoint ) ; return $ this -> createObject ( DiscountCode :: class , $ response [ 'discount_code' ] ) ; }
Receive a single discount

@link   https://help.shopify.com/api/reference/discount#show
@param  integer $priceRuleId
@param  integer $discountCodeId
@return DiscountCode
Receive a single discount