/// <summary>
 /// Lists the Payment Methods by billing profile Id.
 /// <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'>
 /// billing Account Id.
 /// </param>
 /// <param name='billingProfileName'>
 /// Billing Profile Id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PaymentMethod> > ListByBillingProfileAsync(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists the Payment Methods by billing profile Id.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </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>
 public static IPage <PaymentMethod> ListByBillingProfileName(this IPaymentMethodsOperations operations, string billingAccountName, string billingProfileName)
 {
     return(operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists the Payment Methods by billing profile Id.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <PaymentMethod> ListByBillingProfileNameNext(this IPaymentMethodsOperations operations, string nextPageLink)
 {
     return(operations.ListByBillingProfileNameNextAsync(nextPageLink).GetAwaiter().GetResult());
 }