/// <summary> /// Get the invoice by name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingProfileName'> /// Billing Profile Id. /// </param> /// <param name='invoiceName'> /// Invoice Id. /// </param> public static Invoice Get(this IInvoicesOperations operations, string billingAccountName, string billingProfileName, string invoiceName) { return(operations.GetAsync(billingAccountName, billingProfileName, invoiceName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a named invoice resource. When getting a single invoice, the /// downloadUrl property is expanded automatically. 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. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='invoiceName'> /// The name of an invoice resource. /// </param> public static Invoice Get(this IInvoicesOperations operations, string invoiceName) { return(operations.GetAsync(invoiceName).GetAwaiter().GetResult()); }