/// <summary>
 /// Gets the most recent invoice. 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>
 public static Invoice GetLatest(this IInvoicesOperations operations)
 {
     return(operations.GetLatestAsync().GetAwaiter().GetResult());
 }