Class Price
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about the price.
[Serializable]
[DataContract]
public class Price
- Inheritance
-
Price
- Inherited Members
Fields
AnyVariantId
public const string AnyVariantId = "Any"
Field Value
Properties
AllowOrderDiscounts
Gets or sets the value indicating whether order discounts are allowed when calculated on this price.
[DataMember]
public bool AllowOrderDiscounts { get; set; }
Property Value
AllowOrderLineDiscounts
Gets or sets the value indicating whether order line discounts are allowed when calculating on this price. This also includes DiscountPercentage, if this is false, it will not be subtracted from the price.
[DataMember]
public bool AllowOrderLineDiscounts { get; set; }
Property Value
Amount
Gets or sets the amount.
[DataMember]
public double Amount { get; set; }
Property Value
CountryCode
Gets or sets the country id.
[DataMember]
public string? CountryCode { get; set; }
Property Value
- string
id
CurrencyCode
Gets or sets the currency code.
[DataMember]
public string? CurrencyCode { get; set; }
Property Value
CustomerDiscountGroupId
Gets or sets the customer discount group code.
public string? CustomerDiscountGroupId { get; set; }
Property Value
CustomerGroupId
Gets or sets the customer group id.
[DataMember]
public string? CustomerGroupId { get; set; }
Property Value
CustomerPriceGroupId
Gets or sets the customer price group code.
public string? CustomerPriceGroupId { get; set; }
Property Value
DiscountPercentage
Gets or sets the discount percentage
[DataMember]
public double DiscountPercentage { get; set; }
Property Value
ExternalId
Gets or sets the external id.
[DataMember]
public string? ExternalId { get; set; }
Property Value
HasValidConfiguration
Gets or sets a value indicating whether the price has a valid configuration. Invalid configurations could be price value defined when the only selection criteria is a product discount group, which is not allowed. This property is used to filter out invalid prices when searching for the best price.
public bool HasValidConfiguration { get; }
Property Value
Id
Gets or sets the price id.
[DataMember]
public string Id { get; set; }
Property Value
IsInformative
Gets or sets the value indicating whether the price is informative.
[DataMember]
public bool IsInformative { get; set; }
Property Value
- bool
trueif the price is informative; otherwise,false.
IsWithVat
Gets or sets the value indicating whether the price is with VAT.
[DataMember]
public bool IsWithVat { get; set; }
Property Value
LanguageId
Gets or sets the language id.
[DataMember]
public string? LanguageId { get; set; }
Property Value
Priority
Gets or sets the priority. When several prices match, the price with the lowest number is used: 1 is the highest priority. A priority of 0 means no priority is set.
[DataMember]
public int Priority { get; set; }
Property Value
ProductDiscountGroupId
Gets or sets the product discount group code.
public string? ProductDiscountGroupId { get; set; }
Property Value
ProductId
Gets or sets the product id.
[DataMember]
public string? ProductId { get; set; }
Property Value
Quantity
Gets or sets the quantity.
[DataMember]
public double Quantity { get; set; }
Property Value
ShopId
Gets or sets the shop id.
[DataMember]
public string? ShopId { get; set; }
Property Value
StockLocationId
Gets or sets the stock location id.
[DataMember]
public long StockLocationId { get; set; }
Property Value
UnitId
Gets or sets the unit id.
[DataMember]
public string? UnitId { get; set; }
Property Value
UserCustomerNumber
Gets or sets the user customer number.
[DataMember]
public string? UserCustomerNumber { get; set; }
Property Value
UserGroupId
Gets or sets the user group id.
[DataMember]
public string? UserGroupId { get; set; }
Property Value
UserId
Gets or sets the user id.
[DataMember]
public string? UserId { get; set; }
Property Value
ValidFrom
Gets or sets the start date.
[DataMember]
public DateTime? ValidFrom { get; set; }
Property Value
ValidTo
Gets or sets the end date.
[DataMember]
public DateTime? ValidTo { get; set; }
Property Value
VariantId
Gets or sets the variant id.
[DataMember]
public string? VariantId { get; set; }