Try your search with a different keyword or use * as a wildcard.
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;
namespace Nop.Plugin.Pickup.PickupInStore.Models;
public record StorePickupPointModel : BaseNopEntityModel
{
public StorePickupPointModel()
{
Address = new AddressModel();
AvailableStores = new List();
}
public AddressModel Address { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.Name")]
public string Name { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.Description")]
public string Description { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.PickupFee")]
public decimal PickupFee { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.OpeningHours")]
public string OpeningHours { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.DisplayOrder")]
public int DisplayOrder { get; set; }
public List AvailableStores { get; set; }
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.Store")]
public int StoreId { get; set; }
public string StoreName { get; set; }
[DataType(DataType.Text)]
[DisplayFormat(DataFormatString = "{0:F8}", ApplyFormatInEditMode = true)]
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.Latitude")]
public decimal? Latitude { get; set; }
[DataType(DataType.Text)]
[DisplayFormat(DataFormatString = "{0:F8}", ApplyFormatInEditMode = true)]
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.Longitude")]
public decimal? Longitude { get; set; }
[UIHint("Int32Nullable")]
[NopResourceDisplayName("Plugins.Pickup.PickupInStore.Fields.TransitDays")]
public int? TransitDays { get; set; }
}
public class AddressModel
{
public AddressModel()
{
AvailableCountries = new List();
AvailableStates = new List();
}
[NopResourceDisplayName("Admin.Address.Fields.Country")]
public int? CountryId { get; set; }
public IList AvailableCountries { get; set; }
[NopResourceDisplayName("Admin.Address.Fields.StateProvince")]
public int? StateProvinceId { get; set; }
public IList AvailableStates { get; set; }
[NopResourceDisplayName("Admin.Address.Fields.County")]
public string County { get; set; }
[NopResourceDisplayName("Admin.Address.Fields.City")]
public string City { get; set; }
[NopResourceDisplayName("Admin.Address.Fields.Address1")]
public string Address1 { get; set; }
[NopResourceDisplayName("Admin.Address.Fields.ZipPostalCode")]
public string ZipPostalCode { get; set; }
}