Try your search with a different keyword or use * as a wildcard.
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Core.Domain.Catalog;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;
namespace Nop.Web.Areas.Admin.Models.Orders;
///
/// Represents a checkout attribute model
///
public partial record CheckoutAttributeModel : BaseNopEntityModel,
ILocalizedModel, IStoreMappingSupportedModel
{
#region Ctor
public CheckoutAttributeModel()
{
Locales = new List();
AvailableTaxCategories = new List();
ConditionModel = new ConditionModel();
SelectedStoreIds = new List();
AvailableStores = new List();
CheckoutAttributeValueSearchModel = new CheckoutAttributeValueSearchModel();
}
#endregion
#region Properties
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.Name")]
public string Name { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.TextPrompt")]
public string TextPrompt { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.IsRequired")]
public bool IsRequired { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.ShippableProductRequired")]
public bool ShippableProductRequired { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.IsTaxExempt")]
public bool IsTaxExempt { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.TaxCategory")]
public int TaxCategoryId { get; set; }
public IList AvailableTaxCategories { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.AttributeControlType")]
public int AttributeControlTypeId { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.AttributeControlType")]
public string AttributeControlTypeName { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.DisplayOrder")]
public int DisplayOrder { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.MinLength")]
[UIHint("Int32Nullable")]
public int? ValidationMinLength { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.MaxLength")]
[UIHint("Int32Nullable")]
public int? ValidationMaxLength { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.FileAllowedExtensions")]
public string ValidationFileAllowedExtensions { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.FileMaximumSize")]
[UIHint("Int32Nullable")]
public int? ValidationFileMaximumSize { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.DefaultValue")]
public string DefaultValue { get; set; }
public IList Locales { get; set; }
//condition
public bool ConditionAllowed { get; set; }
public ConditionModel ConditionModel { get; set; }
//store mapping
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.LimitedToStores")]
public IList SelectedStoreIds { get; set; }
public IList AvailableStores { get; set; }
public CheckoutAttributeValueSearchModel CheckoutAttributeValueSearchModel { get; set; }
#endregion
}
public partial record ConditionModel : BaseNopEntityModel
{
public ConditionModel()
{
ConditionAttributes = new List();
}
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Condition.EnableCondition")]
public bool EnableCondition { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Condition.Attributes")]
public int SelectedAttributeId { get; set; }
public IList ConditionAttributes { get; set; }
}
public partial record AttributeConditionModel : BaseNopEntityModel
{
public string Name { get; set; }
public AttributeControlType AttributeControlType { get; set; }
public IList Values { get; set; }
public string SelectedValueId { get; set; }
}
public partial record CheckoutAttributeLocalizedModel : ILocalizedLocaleModel
{
public int LanguageId { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.Name")]
public string Name { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.TextPrompt")]
public string TextPrompt { get; set; }
[NopResourceDisplayName("Admin.Catalog.Attributes.CheckoutAttributes.Fields.DefaultValue")]
public string DefaultValue { get; set; }
}