Class OrderGroupFactory

This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.

Responsible for creating implementations of order group components.

Inheritance
System.Object
OrderGroupFactory
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Orders.Internal
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class OrderGroupFactory : IOrderGroupFactory

Constructors

OrderGroupFactory(IEnumerable<IOrderGroupBuilder>)

Initializes an instance of OrderGroupFactory with a collection of IOrderGroupBuilder.

Declaration
public OrderGroupFactory(IEnumerable<IOrderGroupBuilder> builders)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IOrderGroupBuilder> builders

The collection of IOrderGroupBuilder.

Methods

BuilderFor(IOrderGroup)

Retrieves the IOrderGroupBuilder implementation for the specific order group.

Declaration
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public ITaxValue CreateTaxValue(IOrderGroup orderGroup)
Parameters
Type Name Description
IOrderGroup orderGroup

The order group to create object for.

Returns
Type Description
ITaxValue

An ITaxValue

Implements