<commit_before>﻿namespace Stripe
{
    public class StripeDisputeService : StripeService
    {
        public StripeDisputeService(string apiKey = null) : base(apiKey) { }

        public bool ExpandCharge { get; set; }
        public bool ExpandBalanceTransaction { get; set; }

        public virtual StripeDispute Update(string chargeId, StripeDisputeUpdateOptions evidence = null)
        {
            var url = string.Format("{0}/{1}/dispute",Urls.Charges, chargeId);

            url = this.ApplyAllParameters(evidence, url, true);
            
            var response = Requestor.PostString(url, ApiKey);

            return Mapper<StripeDispute>.MapFromJson(response);
        }

        public virtual StripeDispute Close(string chargeId)
        {
            var url = string.Format("{0}/{1}/dispute/close",Urls.Charges, chargeId);
            url = this.ApplyAllParameters(null, url, false);

            var response = Requestor.PostString(url, ApiKey);

            return Mapper<StripeDispute>.MapFromJson(response);
        }
    }
}<commit_msg>Fixed issue with dispute response<commit_after>﻿namespace Stripe
{
    public class StripeDisputeService : StripeService
    {
        public StripeDisputeService(string apiKey = null) : base(apiKey) { }

        public bool ExpandCharge { get; set; }
        public bool ExpandBalanceTransaction { get; set; }

        public virtual StripeDispute Update(string chargeId, StripeDisputeUpdateOptions evidence = null)
        {
            var url = string.Format("{0}/{1}/dispute",Urls.Charges, chargeId);
            
            var postData = this.ApplyAllParameters(evidence, "", false);

            //remove the ?
            postData = RemoveQuestionMark(postData);

            var response = Requestor.PostData(url, postData, ApiKey);

            return Mapper<StripeDispute>.MapFromJson(response);
        }

        public virtual StripeDispute Close(string chargeId)
        {
            var url = string.Format("{0}/{1}/dispute/close",Urls.Charges, chargeId);
            url = this.ApplyAllParameters(null, url, false);

            var response = Requestor.PostString(url, ApiKey);

            return Mapper<StripeDispute>.MapFromJson(response);
        }

        private static string RemoveQuestionMark(string source)
        {
            int index = source.IndexOf("?");
            string clean = (index < 0)
                ? source
                : source.Remove(index, "?".Length);

            return clean;
        }
    }
}
{'fraction_non_alphanumeric': 0.09932459276916965, 'fraction_numerical': 0.003575685339690107, 'mean_word_length': 2.3088042049934296, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3516697', 'n_tokens_mistral': 718, 'n_tokens_neox': 686, 'n_words': 150}