Try our conversational search powered by Generative AI!

Class SerializableCartBuilder

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

Create sub-components for IOrderGroup.

Inheritance
System.Object
SerializableCartBuilder
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.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class SerializableCartBuilder : IOrderGroupBuilder

Constructors

SerializableCartBuilder()

Declaration
public SerializableCartBuilder()

Properties

ForType

The type(s) of order group that this builder will work with.

Declaration
public Type[] ForType { get; }
Property Value
Type Description
System.Type[]

SortOrder

The sort order of the builder.

Declaration
public int SortOrder { get; }
Property Value
Type Description
System.Int32
Remarks

In case there are multiple registered builders for a type in ForType, the one which has the highest sort order value will be chosen.

Methods

CreateCardPayment()

Creates the card payment.

Declaration
public ICreditCardPayment CreateCardPayment()
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 parent order group.

Returns
Type Description
ILineItem

An ILineItem

CreateOrderAddress()

Creates the order address.

Declaration
public IOrderAddress CreateOrderAddress()
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 parent order group.

Returns
Type Description
IOrderForm

An IOrderForm

CreateOrderNote()

Creates the order note.

Declaration
public IOrderNote CreateOrderNote()
Returns
Type Description
IOrderNote

An IOrderNote

CreatePayment()

Creates the payment.

Declaration
public IPayment CreatePayment()
Returns
Type Description
IPayment

An IPayment

CreatePayment(Type)

Creates the payment with a specified implementation.

Declaration
public IPayment CreatePayment(Type paymentType)
Parameters
Type Name Description
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 parent order group.

Returns
Type Description
IShipment

An IShipment

CreateTaxValue()

Creates the tax value.

Declaration
public ITaxValue CreateTaxValue()
Returns
Type Description
ITaxValue

An ITaxValue

Implements