Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

TaxRateResult.cs

namespace Nop.Services.Tax;

/// 
/// Represents a result of tax rate calculation
/// 
public partial class TaxRateResult
{
    public TaxRateResult()
    {
        Errors = new List();
    }

    /// 
    /// Gets or sets a tax rate
    /// 
    public decimal TaxRate { get; set; }

    /// 
    /// Gets or sets errors
    /// 
    public IList Errors { get; set; }

    /// 
    /// Gets a value indicating whether request has been completed successfully
    /// 
    public bool Success => !Errors.Any();

    /// 
    /// Add error
    /// 
    /// Error
    public void AddError(string error)
    {
        Errors.Add(error);
    }
}