Webiant Logo Webiant Logo
  1. No results found.

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

Currency.cs

using Nop.Core.Domain.Localization;
using Nop.Core.Domain.Stores;

namespace Nop.Core.Domain.Directory;

/// 
/// Represents a currency
/// 
public partial class Currency : BaseEntity, ILocalizedEntity, IStoreMappingSupported
{
    /// 
    /// Gets or sets the name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets the currency code
    /// 
    public string CurrencyCode { get; set; }

    /// 
    /// Gets or sets the rate
    /// 
    public decimal Rate { get; set; }

    /// 
    /// Gets or sets the display locale
    /// 
    public string DisplayLocale { get; set; }

    /// 
    /// Gets or sets the custom formatting
    /// 
    public string CustomFormatting { get; set; }

    /// 
    /// Gets or sets a value indicating whether the entity is limited/restricted to certain stores
    /// 
    public bool LimitedToStores { get; set; }

    /// 
    /// Gets or sets a value indicating whether the entity is published
    /// 
    public bool Published { get; set; }

    /// 
    /// Gets or sets the display order
    /// 
    public int DisplayOrder { get; set; }

    /// 
    /// Gets or sets the date and time of instance creation
    /// 
    public DateTime CreatedOnUtc { get; set; }

    /// 
    /// Gets or sets the date and time of instance update
    /// 
    public DateTime UpdatedOnUtc { get; set; }

    /// 
    /// Gets or sets the rounding type identifier
    /// 
    public int RoundingTypeId { get; set; }

    /// 
    /// Gets or sets the rounding type
    /// 
    public RoundingType RoundingType
    {
        get => (RoundingType)RoundingTypeId;
        set => RoundingTypeId = (int)value;
    }
}