/// <summary> /// Gets an invoice by subscription ID and invoice ID. /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='invoiceName'> /// The ID that uniquely identifies an invoice. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Invoice> GetBySubscriptionAndInvoiceIdAsync(this IInvoicesOperations operations, string invoiceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetBySubscriptionAndInvoiceIdWithHttpMessagesAsync(invoiceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }