using Nop.Core.Domain.Attributes; using Nop.Core.Domain.Stores; namespace Nop.Core.Domain.Orders; /// /// Represents a checkout attribute /// public partial class CheckoutAttribute : BaseAttribute, IStoreMappingSupported { /// /// Gets or sets the text prompt /// public string TextPrompt { get; set; } /// /// Gets or sets a value indicating whether shippable products are required in order to display this attribute /// public bool ShippableProductRequired { get; set; } /// /// Gets or sets a value indicating whether the attribute is marked as tax exempt /// public bool IsTaxExempt { get; set; } /// /// Gets or sets the tax category identifier /// public int TaxCategoryId { get; set; } /// /// Gets or sets a value indicating whether the entity is limited/restricted to certain stores /// public bool LimitedToStores { get; set; } //validation fields /// /// Gets or sets the validation rule for minimum length (for textbox and multiline textbox) /// public int? ValidationMinLength { get; set; } /// /// Gets or sets the validation rule for maximum length (for textbox and multiline textbox) /// public int? ValidationMaxLength { get; set; } /// /// Gets or sets the validation rule for file allowed extensions (for file upload) /// public string ValidationFileAllowedExtensions { get; set; } /// /// Gets or sets the validation rule for file maximum size in kilobytes (for file upload) /// public int? ValidationFileMaximumSize { get; set; } /// /// Gets or sets the default value (for textbox and multiline textbox) /// public string DefaultValue { get; set; } /// /// Gets or sets a condition (depending on other attribute) when this attribute should be enabled (visible). /// public string ConditionAttributeXml { get; set; } }