/// <summary>
 /// List of invoices for a billing profile.
 /// </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='periodStartDate'>
 /// Invoice period start date.
 /// </param>
 /// <param name='periodEndDate'>
 /// Invoice period end date.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <InvoiceListResult> ListAsync(this IInvoicesByBillingProfileOperations operations, string billingAccountName, string billingProfileName, string periodStartDate, string periodEndDate, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, billingProfileName, periodStartDate, periodEndDate, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// List of invoices for a billing profile.
 /// </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='periodStartDate'>
 /// Invoice period start date.
 /// </param>
 /// <param name='periodEndDate'>
 /// Invoice period end date.
 /// </param>
 public static InvoiceListResult List(this IInvoicesByBillingProfileOperations operations, string billingAccountName, string billingProfileName, string periodStartDate, string periodEndDate)
 {
     return(operations.ListAsync(billingAccountName, billingProfileName, periodStartDate, periodEndDate).GetAwaiter().GetResult());
 }