Class DiscountGiven
- Namespace
- Dynamicweb.Ecommerce.Orders.Discounts
- Assembly
- Dynamicweb.Ecommerce.dll
Represents how much a discount have been giving in discount.
public class DiscountGiven
- Inheritance
-
DiscountGiven
- Inherited Members
Remarks
One discount will possibly have one DiscountGiven for each currency a discount has been utlilized in
Properties
Amount
Gets or sets the amount given in discount.
public double Amount { get; set; }
Property Value
- double
The amount.
CurrencyCode
Gets or sets the currency code the discount was given in.
public string CurrencyCode { get; set; }
Property Value
- string
The currency code.
DiscountId
Gets or sets the discount id of the discount that was resulting in the amount given.
public int DiscountId { get; set; }
Property Value
- int
The discount identifier.
FirstGiven
Gets or sets the date of the first time this discount was given.
public DateTime FirstGiven { get; set; }
Property Value
- DateTime
The first given date.
LastGiven
Gets or sets the date of the last time this discount was given.
public DateTime LastGiven { get; set; }
Property Value
- DateTime
The last given date.
NumberOfOrders
Gets or sets the number of orders this discount have been given on.
public int NumberOfOrders { get; set; }
Property Value
- int
The number of orders. If the same order has the same discount twice, this counts as 1
NumberOfTimes
Gets or sets the number of times this discount have been given on an order or orderline.
public int NumberOfTimes { get; set; }
Property Value
- int
The number of times. If the same order has the same discount twice, this counts as 2
OrderAmount
Gets or sets the total amount of orders with this discount.
public double OrderAmount { get; set; }
Property Value
- double
The amount of orders.
Quantity
Gets or sets the quantity this discount have been given on an order or orderline.
public double Quantity { get; set; }
Property Value
- double
The total quantity. If the same order has the same discount twice and one of them is given in the quantity of2, this counts as 3
Remarks
If one orderline has been bought more than once, and the discount was given more than once, this number will reflect that