/// <summary> /// Get a customer's product by name. /// <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='customerName'> /// Customer name. /// </param> /// <param name='productName'> /// Invoice Id. /// </param> public static Product GetByCustomer(this IProductsOperations operations, string billingAccountName, string customerName, string productName) { return(operations.GetByCustomerAsync(billingAccountName, customerName, productName).GetAwaiter().GetResult()); }