/// <summary>
/// Cancels a sent invoice, by ID, and, optionally, sends a notification about the cancellation to the payer, merchant, and Cc: emails.
/// </summary>
/// <param name="apiContext">APIContext used for the API call.</param>
/// <param name="cancelNotification">CancelNotification</param>
public void Cancel(APIContext apiContext, CancelNotification cancelNotification)
{
Invoice.Cancel(apiContext, this.id, cancelNotification);
}