/// <summary>
/// Marks the status of an invoice, by ID, as refunded. In the JSON request body, include a payment detail object that defines the payment method and other details.
/// </summary>
/// <param name="apiContext">APIContext used for the API call.</param>
/// <param name="refundDetail">RefundDetail</param>
public void RecordRefund(APIContext apiContext, RefundDetail refundDetail)
{
Invoice.RecordRefund(apiContext, this.id, refundDetail);
}