Interface IOrderFactory
Responsible for creating instances of order components.
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
[Obsolete("The interface is no longer used. Use IOrderGroupFactory instead. Will remain at least until January 2018.")]
public interface IOrderFactory
Remarks
It is recommended that you use either IOrderRepository for creating carts / Purchase orders / Payment plans, or the Create methods on IOrderGroupFactory.
Methods
CreateCardPayment()
Creates the card payment.
Declaration
ICreditCardPayment CreateCardPayment()
Returns
Type | Description |
---|---|
ICreditCardPayment |
CreateCart(Guid, String)
Creates the cart.
Declaration
[Obsolete("This method has been obsoleted. Use 'IOrderRepository.Create<ICart>' instead. Will remain at least until January 2018.")]
ICart CreateCart(Guid customerId, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerId | The customer guid |
System.String | name | The name of the order. The name is not unique for each order, instead it's suppose to differentiate orders of the same type. |
Returns
Type | Description |
---|---|
ICart | An ICart |
CreateLineItem(String)
Creates the line item.
Declaration
ILineItem CreateLineItem(string code)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | The line item code. |
Returns
Type | Description |
---|---|
ILineItem | An ILineItem |
CreateOrderAddress()
Creates the order address.
Declaration
IOrderAddress CreateOrderAddress()
Returns
Type | Description |
---|---|
IOrderAddress |
CreateOrderForm()
Creates the order form.
Declaration
IOrderForm CreateOrderForm()
Returns
Type | Description |
---|---|
IOrderForm | An IOrderForm |
CreateOrderNote()
Creates the order note.
Declaration
IOrderNote CreateOrderNote()
Returns
Type | Description |
---|---|
IOrderNote | An IOrderNote |
CreatePayment()
Creates the payment.
Declaration
IPayment CreatePayment()
Returns
Type | Description |
---|---|
IPayment | An IPayment |
CreatePaymentPlan(Guid, String)
Creates the payment plan.
Declaration
[Obsolete("This method has been obsoleted. Use 'IOrderRepository.Create<IPaymentPlan>' instead. Will remain at least until January 2018.")]
IPaymentPlan CreatePaymentPlan(Guid customerId, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerId | The customer guid |
System.String | name | The name of the order. The name is not unique for each order, instead it's suppose to differentiate orders of the same type. |
Returns
Type | Description |
---|---|
IPaymentPlan | An IPaymentPlan |
CreatePurchaseOrder(Guid)
Creates the purchase order.
Declaration
[Obsolete("This method has been obsoleted. Use 'IOrderRepository.Create<IPurchaseOrder>' instead. Will remain at least until January 2018.")]
IPurchaseOrder CreatePurchaseOrder(Guid customerId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerId | The customer guid |
Returns
Type | Description |
---|---|
IPurchaseOrder |
CreateShipment()
Creates the shipment.
Declaration
IShipment CreateShipment()
Returns
Type | Description |
---|---|
IShipment | An IShipment |
CreateTaxValue()
Creates the tax value.
Declaration
ITaxValue CreateTaxValue()
Returns
Type | Description |
---|---|
ITaxValue | An ITaxValue |