using Microsoft.AspNetCore.Mvc.Rendering; using Nop.Web.Framework.Models; namespace Nop.Web.Models.ShoppingCart; public partial record EstimateShippingModel : BaseNopModel { public EstimateShippingModel() { AvailableCountries = new List(); AvailableStates = new List(); } public int RequestDelay { get; set; } public bool Enabled { get; set; } public int? CountryId { get; set; } public int? StateProvinceId { get; set; } public string ZipPostalCode { get; set; } public bool UseCity { get; set; } public string City { get; set; } public IList AvailableCountries { get; set; } public IList AvailableStates { get; set; } } public partial record EstimateShippingResultModel : BaseNopModel { public EstimateShippingResultModel() { ShippingOptions = new List(); Errors = new List(); } public IList ShippingOptions { get; set; } public bool Success => !Errors.Any(); public IList Errors { get; set; } #region Nested Classes public partial record ShippingOptionModel : BaseNopModel { public string Name { get; set; } public string ShippingRateComputationMethodSystemName { get; set; } public string Description { get; set; } public string Price { get; set; } public decimal Rate { get; set; } public string DeliveryDateFormat { get; set; } public int DisplayOrder { get; set; } public bool Selected { get; set; } } #endregion }