public function delete($priceRuleId, DiscountCode $discountCode)
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes/'.$discountCode->id.'.json';
        $this->request($endpoint, 'DELETE');
        return;
    }
public function delete($priceRuleId, DiscountCode $discountCode)
    {
        $endpoint = '/admin/price_rules/'.$priceRuleId.'/discount_codes/'.$discountCode->id.'.json';
        $this->request($endpoint, 'DELETE');
        return;
    }
public function delete ( $ priceRuleId , DiscountCode $ discountCode ) { $ endpoint = '/admin/price_rules/' . $ priceRuleId . '/discount_codes/' . $ discountCode -> id . '.json' ; $ this -> request ( $ endpoint , 'DELETE' ) ; return ; }
Delete a discount

@link   https://help.shopify.com/api/reference/discount#destroy
@param  integer $priceRuleId
@param  DiscountCode $discountCode
@return void
Delete a discount