Interface IOrderProvider<T>
Provider for an IOrderGroup
Namespace: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public interface IOrderProvider<T>
where T : IOrderGroup
Type Parameters
Name | Description |
---|---|
T |
Methods
Create(Guid, String)
Creates an order for a specific customer.
Declaration
T Create(Guid customerId, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerId | The customer id. |
System.String | name | The order name. |
Returns
Type | Description |
---|---|
T | The order. |
Delete(OrderReference)
Deletes an order using an order reference.
Declaration
void Delete(OrderReference orderLink)
Parameters
Type | Name | Description |
---|---|---|
OrderReference | orderLink | The order link. |
Load(Guid, String)
Loads the orders.
Declaration
IEnumerable<T> Load(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 |
---|---|
System.Collections.Generic.IEnumerable<T> | The orders. |
Load(Int32)
Loads the order.
Declaration
T Load(int orderGroupId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | orderGroupId | The order group id |
Returns
Type | Description |
---|---|
T | The order. |
Save(T)
Persist the order group.
Declaration
OrderReference Save(T order)
Parameters
Type | Name | Description |
---|---|---|
T | order | The order group. |
Returns
Type | Description |
---|---|
OrderReference |