Webiant Logo Webiant Logo
  1. No results found.

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

UPSShippingModel.cs

using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Plugin.Shipping.UPS.Models;

public record UPSShippingModel : BaseNopModel
{
    #region Ctor

    public UPSShippingModel()
    {
        CarrierServices = new List();
        AvailableCarrierServices = new List();
        AvailableCustomerClassifications = new List();
        AvailablePickupTypes = new List();
        AvailablePackagingTypes = new List();
        AvaliablePackingTypes = new List();
        AvaliableWeightTypes = new List();
        AvaliableDimensionsTypes = new List();
    }

    #endregion

    #region Properties

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.AccountNumber")]
    public string AccountNumber { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.ClientId")]
    public string ClientId { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.ClientSecret")]
    public string ClientSecret { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.UseSandbox")]
    public bool UseSandbox { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.AdditionalHandlingCharge")]
    public decimal AdditionalHandlingCharge { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.InsurePackage")]
    public bool InsurePackage { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.CustomerClassification")]
    public int CustomerClassification { get; set; }
    public IList AvailableCustomerClassifications { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.PickupType")]
    public int PickupType { get; set; }
    public IList AvailablePickupTypes { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.PackagingType")]
    public int PackagingType { get; set; }
    public IList AvailablePackagingTypes { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.AvailableCarrierServices")]
    public IList AvailableCarrierServices { get; set; }
    public IList CarrierServices { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.SaturdayDeliveryEnabled")]
    public bool SaturdayDeliveryEnabled { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.PassDimensions")]
    public bool PassDimensions { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.PackingPackageVolume")]
    public int PackingPackageVolume { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.PackingType")]
    public int PackingType { get; set; }
    public IList AvaliablePackingTypes { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.Tracing")]
    public bool Tracing { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.WeightType")]
    public string WeightType { get; set; }
    public IList AvaliableWeightTypes { get; set; }

    [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.DimensionsType")]
    public string DimensionsType { get; set; }
    public IList AvaliableDimensionsTypes { get; set; }

    #endregion
}