Improve documentation of Refund API in Greenfield (#4372)

This commit is contained in:
Nicolas Dorier
2022-11-28 20:58:18 +09:00
committed by GitHub
parent 3370240541
commit ddcfa735e0
5 changed files with 115 additions and 48 deletions

View File

@@ -132,13 +132,12 @@ namespace BTCPayServer.Client
public virtual async Task<PullPaymentData> RefundInvoice(
string storeId,
string invoiceId,
string paymentMethod,
RefundInvoiceRequest request,
CancellationToken token = default
)
{
var response = await _httpClient.SendAsync(
CreateHttpRequest($"api/v1/stores/{storeId}/invoices/{invoiceId}/payment-methods/{paymentMethod}/refund", bodyPayload: request,
CreateHttpRequest($"api/v1/stores/{storeId}/invoices/{invoiceId}/refund", bodyPayload: request,
method: HttpMethod.Post), token);
return await HandleResponse<PullPaymentData>(response);
}