Table of Contents

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

string

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

bool

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

bool

Amount

Gets or sets the amount.

[DataMember]
public double Amount { get; set; }

Property Value

double

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

string

CustomerDiscountGroupId

Gets or sets the customer discount group code.

public string? CustomerDiscountGroupId { get; set; }

Property Value

string

CustomerGroupId

Gets or sets the customer group id.

[DataMember]
public string? CustomerGroupId { get; set; }

Property Value

string

CustomerPriceGroupId

Gets or sets the customer price group code.

public string? CustomerPriceGroupId { get; set; }

Property Value

string

DiscountPercentage

Gets or sets the discount percentage

[DataMember]
public double DiscountPercentage { get; set; }

Property Value

double

ExternalId

Gets or sets the external id.

[DataMember]
public string? ExternalId { get; set; }

Property Value

string

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

bool

Id

Gets or sets the price id.

[DataMember]
public string Id { get; set; }

Property Value

string

IsInformative

Gets or sets the value indicating whether the price is informative.

[DataMember]
public bool IsInformative { get; set; }

Property Value

bool

true if 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

bool

LanguageId

Gets or sets the language id.

[DataMember]
public string? LanguageId { get; set; }

Property Value

string

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

int

ProductDiscountGroupId

Gets or sets the product discount group code.

public string? ProductDiscountGroupId { get; set; }

Property Value

string

ProductId

Gets or sets the product id.

[DataMember]
public string? ProductId { get; set; }

Property Value

string

Quantity

Gets or sets the quantity.

[DataMember]
public double Quantity { get; set; }

Property Value

double

ShopId

Gets or sets the shop id.

[DataMember]
public string? ShopId { get; set; }

Property Value

string

StockLocationId

Gets or sets the stock location id.

[DataMember]
public long StockLocationId { get; set; }

Property Value

long

UnitId

Gets or sets the unit id.

[DataMember]
public string? UnitId { get; set; }

Property Value

string

UserCustomerNumber

Gets or sets the user customer number.

[DataMember]
public string? UserCustomerNumber { get; set; }

Property Value

string

UserGroupId

Gets or sets the user group id.

[DataMember]
public string? UserGroupId { get; set; }

Property Value

string

UserId

Gets or sets the user id.

[DataMember]
public string? UserId { get; set; }

Property Value

string

ValidFrom

Gets or sets the start date.

[DataMember]
public DateTime? ValidFrom { get; set; }

Property Value

DateTime?

ValidTo

Gets or sets the end date.

[DataMember]
public DateTime? ValidTo { get; set; }

Property Value

DateTime?

VariantId

Gets or sets the variant id.

[DataMember]
public string? VariantId { get; set; }

Property Value

string
To top