Class OrderLine
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about an order line.
- Inheritance
-
Order
Line
- Inherited Members
Constructors
OrderLine(Order)
Parameters
order
Order
Fields
DisableRemoveFromCartRules
Field Value
Properties
AllowOverridePrices
Indicated whether Price is overridden and not calculated. Used to set explicit PriceInfo values.
Property Value
Attachment
Gets or sets the attachment.
Property Value
Bom
Gets or sets a value indicating whether this Order
Property Value
BomItemId
Gets or sets the BOM item ID.
Property Value
BomOrderLines
Gets or sets the BOM order lines.
Property Value
Comment
Gets or sets the comment.
Property Value
CustomerComment
Gets or sets the customer comment.
Property Value
Date
Gets or sets the date.
Property Value
DiscountId
Gets or sets the discount ID.
Property Value
DiscountPercentage
Gets or sets the line discount (%).
Property Value
- double
lineDiscount
GiftCardCode
Gets or sets encoded gift card code, orderline based on.
Property Value
Id
Gets or sets the ID.
Property Value
ListId
Gets or sets the list ID.
Property Value
Modified
Gets or sets when the order line was modified.
Property Value
Order
Gets or sets the order.
Property Value
OrderId
Gets or sets the order ID.
Property Value
OrderLineFieldValues
Gets or sets the collection of OrderLineFieldValue objects.
Property Value
OrderLineType
Gets or sets the order line type.
Property Value
PageId
Gets or sets the page ID.
Property Value
ParentLineId
Gets or sets the parent line ID.
Property Value
Points
Returns number of points of OrderLine necessary for payment.
Property Value
Price
Gets the total price of the orderline, quantity * unitprice.
Property Value
Product
Gets or sets the product.
Property Value
ProductId
Gets or sets the product ID.
Property Value
ProductName
Gets or sets the product name.
Property Value
ProductNumber
Gets or sets the product number.
Property Value
ProductVariantId
Gets or sets the product variant ID.
Property Value
ProductVariantText
Gets or sets the product variant text.
Property Value
Quantity
Gets or sets the quantity.
Property Value
Reference
Gets or sets the reference.
Property Value
ReverseChargeForVat
Gets or sets a value indicating whether the price for this Order
Property Value
- bool
true
if the price has reverse charge for VAT; otherwise,false
.
RewardId
Gets or sets the loyalty reward id.
Property Value
- int?
RewardPoints
Returns information about the points which will be rewarded to the user.
Property Value
RewardValue
Gets or sets the order line reward points.
Property Value
StockLocationId
Gets or sets the stock location.
Property Value
TotalDiscount
Gets the discount value.
Property Value
TotalPriceWithProductDiscounts
Returns the price with the product discounts applied to it.
Property Value
TotalPriceWithProductDiscountsWithoutVAT
Return the price with the product discounts applied to it without VAT.
Property Value
UnitDiscount
Returns the unit discount.
Property Value
UnitId
Gets or sets the unit ID.
Property Value
UnitPoints
Returns points cost of product unit.
Property Value
UnitPrice
Gets or sets the unit price.
Property Value
UnitPriceBeforeDiscount
Gets or sets the price per unit without discounts.
Property Value
UnitPriceDiscountPercentage
The discount percentage from the UnitPrice, used for remembering what it was when the orderline was created,
as the Discount
Property Value
UnitPriceInfoBeforeDiscount
Property Value
UnitPriceWithProductDiscount
Returns the unit price with the product discount applied to it.
Property Value
UnitRewardPoints
Returns information about the points which will be rewarded to the user for one unit of product.
Property Value
UnitRewardValue
Gets or sets unit reward points.
Property Value
Volume
Gets the volume.
Property Value
Weight
Gets the weight.
Property Value
Methods
CalculateProductDiscountPercentage()
Returns
Clone()
Clones this instance.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
GetOrderLineFieldValue(string)
Gets the OrderLineFieldValue object.
Parameters
orderLineFieldSystemName
stringSystem name of order line field
Returns
GetPriceContext()
Gets price context information for the current order line.
Returns
HasType(OrderLineType)
Determines whether this Order
Parameters
orderLineType
OrderLine Type The Order
Line to compare this OrderType Line to.
Returns
HasType(IEnumerable<OrderLineType>)
Determines whether this Order
Parameters
orderLineTypes
IEnumerable<OrderLine >Type The list of Order
Line s to compare this OrderType Line to.