/// <summary> /// Gets a URL to download an invoice. The operation is supported for billing /// accounts with agreement type Microsoft Partner Agreement or Microsoft /// Customer Agreement. /// <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='billingAccountName'> /// The ID that uniquely identifies a billing account. /// </param> /// <param name='invoiceName'> /// The ID that uniquely identifies an invoice. /// </param> /// <param name='downloadToken'> /// Download token with document source and document ID. /// </param> public static DownloadUrl DownloadInvoice(this IInvoicesOperations operations, string billingAccountName, string invoiceName, string downloadToken) { return(operations.DownloadInvoiceAsync(billingAccountName, invoiceName, downloadToken).GetAwaiter().GetResult()); }