/// <summary> /// Lists the available invoices for a subscription in reverse chronological /// order beginning with the most recent invoice. In preview, invoices are /// available via this API only for invoice periods which end December 1, 2016 /// or later. This is only supported for Azure Web-Direct subscriptions. Other /// subscription types which were not purchased directly through the Azure web /// portal are not supported through this preview API. /// <see href="https://go.microsoft.com/fwlink/?linkid=842057" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// May be used to expand the downloadUrl property within a list of invoices. /// This enables download links to be generated for multiple invoices at once. /// By default, downloadURLs are not included when listing invoices. /// </param> /// <param name='filter'> /// May be used to filter invoices by invoicePeriodEndDate. The filter supports /// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support /// 'ne', 'or', or 'not'. /// </param> /// <param name='skiptoken'> /// Skiptoken is only used if a previous operation returned a partial result. /// If a previous response contains a nextLink element, the value of the /// nextLink element will include a skiptoken parameter that specifies a /// starting point to use for subsequent calls. /// </param> /// <param name='top'> /// May be used to limit the number of results to the most recent N invoices. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Invoice> > ListAsync(this IInvoicesOperations operations, string expand = default(string), string filter = default(string), string skiptoken = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(expand, filter, skiptoken, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }