Class Shipping
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about a shipping method
[Serializable]
public class Shipping
- Inheritance
-
Shipping
- Inherited Members
Properties
Active
Gets or sets the value indicating whether instance is active.
public bool Active { get; set; }
Property Value
AgentCode
Gets or sets the shipping agent code.
public string AgentCode { get; set; }
Property Value
AgentServiceCode
Gets or sets the shipping agent service code.
public string AgentServiceCode { get; set; }
Property Value
AllowAnonymousUsers
Gets or sets a value indicating whether the Shipping is available to anonymous uses.
public bool AllowAnonymousUsers { get; set; }
Property Value
- bool
trueif shipping is available to anonymous users; otherwise,false.
Code
Gets or sets the shipping code.
public string Code { get; set; }
Property Value
EligibleForFreeShipping
Gets or sets a value indicating whether shipping is eligible for free.
public bool EligibleForFreeShipping { get; set; }
Property Value
FeeRulesSource
Gets or sets the source of fee rules.
public ShippingFeeRulesSources FeeRulesSource { get; set; }
Property Value
FeeSelection
Gets or sets the rule for fee selection: high or low.
public string FeeSelection { get; set; }
Property Value
FreeFeeAmount
Gets or sets the free fee amount.
public double FreeFeeAmount { get; set; }
Property Value
- double
The free fee amount.
Icon
Gets or sets the icon file name.
public string Icon { get; set; }
Property Value
Id
Gets or sets the id.
public string Id { get; set; }
Property Value
- string
The id.
LimitsUseLogic
Gets or sets the limits use logic.
public ShippingLimitsUseLogics LimitsUseLogic { get; set; }
Property Value
MaxWeight
Gets or sets the maximum order weight, in the default weight unit, allowed for this shipping method to be available.
If null - there is no maximum weight restriction.
public double? MaxWeight { get; set; }
Property Value
MinWeight
Gets or sets the minimum order weight, in the default weight unit, required for this shipping method to be available.
If null - there is no minimum weight restriction.
public double? MinWeight { get; set; }
Property Value
PriceOverMaxWeight
Gets or sets the price for over max weight.
public double PriceOverMaxWeight { get; set; }
Property Value
- double
The price over max weight.
ProductFilterMode
Gets or sets the filtering mode that determines how ProductIds and ProductGroupIds are applied. If None - product-based filtering is disabled.
public ShippingProductFilterMode ProductFilterMode { get; set; }
Property Value
ProductGroupIds
Gets or sets the collection of product group IDs that determine the availability of this shipping method. If empty - product groups filter is not applied. The filter behavior is determined by ProductFilterMode.
public IEnumerable<string> ProductGroupIds { get; set; }
Property Value
ProductIds
Gets or sets the collection of product identifiers that determine the availability of this shipping method. If empty - products filter is not applied. The filter behavior is determined by ProductFilterMode.
public IEnumerable<string> ProductIds { get; set; }
Property Value
ServiceParameters
Gets or sets the shipping service parameters.
public string ServiceParameters { get; set; }
Property Value
- string
The shipping service parameters.
ServiceSystemName
Gets or sets the shipping service SystemName.
public string ServiceSystemName { get; set; }
Property Value
- string
The shipping service SystemName.
Sorting
Sort order of current group inside parent group shipping children collection
public int Sorting { get; set; }
Property Value
TakeDiscountIntoAccount
Gets or sets a value indicating whether discounts are taken into consideration for free shipping fee.
public bool TakeDiscountIntoAccount { get; set; }
Property Value
Translations
Gets the translations
public TranslationCollection<ShippingTranslation> Translations { get; }
Property Value
UsePriceWithVat
Gets or sets the value indicating whether VAT is taken into consideration for free shipping fee.
public bool UsePriceWithVat { get; set; }
Property Value
UserGroups
Gets or sets to whom user groups the shipping is shown.
public IEnumerable<int> UserGroups { get; set; }
Property Value
Methods
Clone()
Clones this instance.
public Shipping Clone()
Returns
GetAgentName(string)
Gets the agent name of the shipping for the given language.
public string GetAgentName(string languageId)
Parameters
languageIdstring
Returns
GetAgentServiceDescription(string)
Gets the agent service description of the shipping for the given language.
public string GetAgentServiceDescription(string languageId)
Parameters
languageIdstring
Returns
GetDescription(string)
Gets the description of the shipping for the given language.
public string GetDescription(string languageId)
Parameters
languageIdstring
Returns
GetName(string)
Gets the name of the shipping for the given language.
public string GetName(string languageId)
Parameters
languageIdstring
Returns
SetAgentName(string, string)
Sets the agent name of the shipping for the given language.
public void SetAgentName(string languageId, string agentName)
Parameters
SetAgentServiceDescription(string, string)
Sets the agent service description of the shipping for the given language.
public void SetAgentServiceDescription(string languageId, string agentServiceDescription)
Parameters
SetDescription(string, string)
Sets the description of the shipping for the given language.
public void SetDescription(string languageId, string description)
Parameters
SetName(string, string)
Sets the name of the shipping for the given language.
public void SetName(string languageId, string name)