public IRefundTransactionResponse Refund(string originalTransactionReference, decimal amount) { var requestDocument = _refundRequestBuilder.Build(originalTransactionReference, amount); var response = _httpClient.Post(_configuration.Host, requestDocument.ToString(SaveOptions.DisableFormatting)); return(_refundResponseParser.Parse(response)); }
private IRefundTransactionResponse RefundSingleOrRecurring(string originalTransactionReference, decimal amount, string captureMethod) { var requestDocument = _refundRequestBuilder.Build(originalTransactionReference, amount, captureMethod); var response = _httpClient.Post(_configuration.Host, requestDocument.ToString(SaveOptions.DisableFormatting)); return(_refundResponseParser.Parse(response)); }