/// <summary>
/// Marks the status of a specified invoice, by ID, as paid. Include a payment detail object that defines the payment method and other details in the JSON request body.
/// </summary>
/// <param name="apiContext">APIContext used for the API call.</param>
/// <param name="paymentDetail">PaymentDetail</param>
public void RecordPayment(APIContext apiContext, PaymentDetail paymentDetail)
{
Invoice.RecordPayment(apiContext, this.id, paymentDetail);
}