/// <summary> /// Lists all invoice sections for a user which he has access to. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='expand'> /// May be used to expand the billingProfiles. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <InvoiceSectionListResult> ListAsync(this IInvoiceSectionsByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all invoice sections for a user which he has access to. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='expand'> /// May be used to expand the billingProfiles. /// </param> public static InvoiceSectionListResult List(this IInvoiceSectionsByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string)) { return(operations.ListAsync(billingAccountName, expand).GetAwaiter().GetResult()); }