Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class OrderExporter

The service for exporting orders.

Inheritance
System.Object
OrderExporter
Implements
Namespace: EPiServer.Commerce.ODP.Internal
Assembly: EPiServer.Commerce.ODP.dll
Version: 14.26.0
Syntax
public class OrderExporter : Object, IOrderExporter

Constructors

OrderExporter(IOrderSearchAsyncService, ODPJobOptions, ILogger<OrderExporter>, IOrderGroupCalculator, ILineItemCalculator, LocalizationService)

Default constructor

Declaration
public OrderExporter(IOrderSearchAsyncService orderSearchAsyncService, ODPJobOptions options, ILogger<OrderExporter> logger, IOrderGroupCalculator orderGroupCalculator, ILineItemCalculator lineItemCalculator, LocalizationService localizationService)
Parameters
Type Name Description
IOrderSearchAsyncService orderSearchAsyncService

The order search service

ODPJobOptions options

The options

Microsoft.Extensions.Logging.ILogger<OrderExporter> logger

The logger

IOrderGroupCalculator orderGroupCalculator

The order group calculator

ILineItemCalculator lineItemCalculator

The lineitem calculator

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service

Methods

Export(Action<String>)

Export orders to ODP.

Declaration
public ExportResult Export(Action<string> uiNotifier)
Parameters
Type Name Description
System.Action<System.String> uiNotifier

The ui notifier

Returns
Type Description
ExportResult

The number of errors

Export(DateTime, DateTime, Action<String>)

Export orders to ODP.

Declaration
public ExportResult Export(DateTime fromDate, DateTime toDate, Action<string> uiNotifier)
Parameters
Type Name Description
System.DateTime fromDate

The start date to export.

System.DateTime toDate

The end date to export.

System.Action<System.String> uiNotifier

The ui notifier

Returns
Type Description
ExportResult

The number of errors

SendDataToS3(IEnumerable<IPurchaseOrder>, MarketKey, Action<String>)

Declaration
protected virtual void SendDataToS3(IEnumerable<IPurchaseOrder> orders, MarketKey marketKey, Action<string> uiNotifier)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IPurchaseOrder> orders
MarketKey marketKey
System.Action<System.String> uiNotifier

Implements