OrderLevelDiscountAmount Property

Gets or sets the order-based discount amount for a line item.

Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property OrderLevelDiscountAmount As Decimal
'Usage
Dim instance As LineItem
Dim value As Decimal

value = instance.OrderLevelDiscountAmount

instance.OrderLevelDiscountAmount = value
public decimal OrderLevelDiscountAmount { get; set; }
public:
property Decimal OrderLevelDiscountAmount {
    Decimal get ();
    void set (Decimal value);
}
public function get OrderLevelDiscountAmount () : decimal
public function set OrderLevelDiscountAmount (value : decimal)

Property Value

Type: System..::.Decimal
The sum of all per-order line item discount amounts. Cannot be less than zero.

Exceptions

Exception Condition
ArgumentException

The value being set is less than zero. Assign OrderLevelDiscountAmount a value greater than or equal to zero to prevent this exception.

Remarks

The total discounted amount being applied to the line item based on predefined OrderGroup level discounts. This is not the new price of the item. This is simply the amount discounted by the OrderLevelDiscountApply component in the basket pipeline.

Permissions

See Also

Reference

LineItem Class

LineItem Members

Microsoft.CommerceServer.Runtime.Orders Namespace