Class DefaultOrderActivityService
Default implement of IOrderActivityService.
Inheritance
System.Object
DefaultOrderActivityService
Implements
Namespace: EPiServer.Commerce.Order.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class DefaultOrderActivityService : Object, IOrderActivityService
Constructors
DefaultOrderActivityService(IOrderRepository)
Declaration
public DefaultOrderActivityService(IOrderRepository orderRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| IOrderRepository | orderRepository |
Methods
Create(String, String, OrderNoteTypes, Guid, String, OrderActivityEvent)
Creates an order activity.
Declaration
public IOrderActivity Create(string noteTitle, string noteDetails, OrderNoteTypes type, Guid customerId, string channel, OrderActivityEvent eventType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | noteTitle | |
| System.String | noteDetails | |
| OrderNoteTypes | type | The order activity type. |
| System.Guid | customerId | The customer id. |
| System.String | channel | The channel of note. |
| OrderActivityEvent | eventType |
Returns
| Type | Description |
|---|---|
| IOrderActivity | An order activity. |
Get<TOrderGroup>(Int32, Int32)
Gets an order activity.
Declaration
public IOrderActivity Get<TOrderGroup>(int orderGroupId, int orderActivityId)
where TOrderGroup : class, IOrderGroup
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | orderGroupId | The order group id. |
| System.Int32 | orderActivityId | The order activity id. |
Returns
| Type | Description |
|---|---|
| IOrderActivity | An order activity |
Type Parameters
| Name | Description |
|---|---|
| TOrderGroup |