Class ShipmentDiscount

Shipment Discount, contains information about specific shipment discount.

Inheritance
System.Object
ShipmentDiscount
Implements
System.ICloneable
System.Runtime.Serialization.ISerializable
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class ShipmentDiscount : Discount, IStorageObject, ICloneable, ISerializable

Constructors

ShipmentDiscount()

Initializes a new instance of the ShipmentDiscount class.

Declaration
public ShipmentDiscount()

ShipmentDiscount(SerializationInfo, StreamingContext)

Initializes a new instance of the ShipmentDiscount class.

Declaration
protected ShipmentDiscount(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The info.

System.Runtime.Serialization.StreamingContext context

The context.

Properties

Parent

Gets the Shipment discount belongs to.

Declaration
public Shipment Parent { get; }
Property Value
Type Description
Shipment

The parent.

ShipmentDiscountId

Gets or sets the shipment discount id.

Declaration
public int ShipmentDiscountId { get; set; }
Property Value
Type Description
System.Int32

The shipment discount id.

ShipmentId

Gets or sets the shipment id.

Declaration
public int ShipmentId { get; set; }
Property Value
Type Description
System.Int32

The shipment id.

Methods

AcceptChanges()

Accepts the changes.

Declaration
public override void AcceptChanges()
Overrides

CreateParameters(DataCommand)

Creates the parameters.

Declaration
protected override void CreateParameters(DataCommand command)
Parameters
Type Name Description
DataCommand command

The command.

Overrides

OnSaved(DataResult)

Called when [saved].

Declaration
protected override void OnSaved(DataResult result)
Parameters
Type Name Description
DataResult result

The result.

Overrides

SetParent(Shipment)

Sets the parent shipment.

Declaration
public void SetParent(Shipment shipment)
Parameters
Type Name Description
Shipment shipment

The shipment.

Implements

System.ICloneable
System.Runtime.Serialization.ISerializable