DefaultDeliveryBuilder Class |
Namespace: CMS.Ecommerce
public class DefaultDeliveryBuilder : IDeliveryBuilder
The DefaultDeliveryBuilder type exposes the following members.
Name | Description | |
---|---|---|
DefaultDeliveryBuilder |
Name | Description | |
---|---|---|
AddContainerToCustomData |
Adds the data container to the custom data of the constructed Delivery.
| |
AddItem |
Adds a cart item to the constructed Delivery.
| |
AddItems |
Adds cart items selected by the itemSelector predicate to the constructed Delivery.
| |
BuildDelivery |
Creates a new Delivery object based on builder settings.
| |
CreateDeliveryItem |
Creates a new DeliveryItem object for the given shopping cart item.
| |
EnsureDefaultValues |
Sets the shipping date of the delivery to now when no specific date was set.
Override this method to ensure the default data in the constructed Delivery | |
GetItemCustomDataContainers |
Override this method to populate the supplied list with the custom data containers.
| |
InitCustomData |
Override this method to add custom data to the constructed Delivery.
| |
InitItemCustomData |
Adds custom data to the constructed DeliveryItem.
| |
SetCustomData |
Sets custom data under the given key.
| |
SetDeliveryAddress |
Sets an address to which the currently constructed Delivery will be shipped.
| |
SetFromCart |
Sets the currently constructed Delivery according to the supplied shopping cart.
| |
SetShippingDate |
Sets the date of shipping.
| |
SetShippingOption |
Sets the shipping option used for the currently constructed Delivery.
| |
SetWeight |
Sets weight of the package with the whole Delivery.
|
[assembly:RegisterImplementation(typeof(IDeliveryBuilder), typeof(MyDeliveryBuilder))] public class MyDeliveryBuilder : DefaultDeliveryBuilder { ... }