/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static Payment GetPayment(this IPaymentGateway operations, string id = default(string)) { return(operations.GetPaymentAsync(id).GetAwaiter().GetResult()); }