November Happy Hour will be moved to Thursday December 5th.

Interface IOrderGroupFactory

Responsible for creating instances of order group components.

Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public interface IOrderGroupFactory

Methods

BuilderFor(IOrderGroup)

Retrieves the IOrderGroupBuilder implementation for the specific order group.

Declaration
IOrderGroupBuilder BuilderFor(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to get a builder implementation for.

Returns
Type Description
IOrderGroupBuilder

A builder that can be used to create sub-objects for orderGroup.

CreateCardPayment(IOrderGroup)

Creates the card payment.

Declaration
ICreditCardPayment CreateCardPayment(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
ICreditCardPayment

An ICreditCardPayment

CreateLineItem(String, IOrderGroup)

Creates the line item.

Declaration
ILineItem CreateLineItem(string code, IOrderGroup orderGroup)
Parameters
Type Name Description
System.String code

The line item code.

IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
ILineItem

An ILineItem

CreateOrderAddress(IOrderGroup)

Creates the order address.

Declaration
IOrderAddress CreateOrderAddress(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
IOrderAddress

An IOrderAddress

CreateOrderForm(IOrderGroup)

Creates the order form.

Declaration
IOrderForm CreateOrderForm(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
IOrderForm

An IOrderForm

CreateOrderNote(IOrderGroup)

Creates the order note.

Declaration
IOrderNote CreateOrderNote(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
IOrderNote

An IOrderNote

CreatePayment(IOrderGroup)

Creates the payment.

Declaration
IPayment CreatePayment(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
IPayment

An IPayment

CreatePayment(IOrderGroup, Type)

Creates the payment with a specified payment implementation.

Declaration
IPayment CreatePayment(IOrderGroup orderGroup, Type paymentType)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

System.Type paymentType

The payment implementation type.

Returns
Type Description
IPayment

An IPayment.

CreateShipment(IOrderGroup)

Creates the shipment.

Declaration
IShipment CreateShipment(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
IShipment

An IShipment

CreateTaxValue(IOrderGroup)

Creates the tax value.

Declaration
ITaxValue CreateTaxValue(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
ITaxValue

An ITaxValue