HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Change default implementation

Describes how to update the dependency container to use your new classes in Optimizely Customized Commerce.

When working with the Optimizely Customized Commerce order system, update the dependency container to replace implementations to use your new classes. See Dependency injection for information.

ClassDescription
IOrderRepositoryThe default implementation for IOrderRepository is architected so that it does not need to be replaced to provide custom implementations for different order types. Instead, register implementations for ICartProvider, IPurchaseOrderProvider, and IPaymentPlanProvider to change the behavior of IOrderRepository.
IOrderEventsListen to and act on order repository events.
ICartProviderChange the default implementation of loading and persistence of shopping carts.
IPurchaseOrderProviderChange the default implementation of loading and persistence of purchase orders.
IPaymentPlanProviderChange the default implementation of loading and persistence of payment plans.
IOrderGroupFactoryCreate implementations of the order system object abstractions. You almost certainly need to change the default implementation if you create a custom order provider, which uses different objects for persistence.
IOrderGroupBuilderCreate sub-components  of an order group object abstraction. Each builder is registered to create sub-components for specified types of IOrderGroup. If you create a custom order group, you might need to create a custom order group builder as well, which is registered for the custom group type.
IFulfillmentWarehouseProcessorDetermine a shipment's default warehouse. You need to change the default implementation if you have multiple fulfillment warehouses, because the default implementation only supports one fulfillment warehouse.
IInventoryProcessorAdjust inventory. You need to change the default implementation if you integrate with another system for inventory checks.
ILineItemValidatorDetermine if a line item is valid in terms of active status and availability dates on the entry itself and the catalog. You need to change the default implementation if you have other criteria that determine if a line item is valid.
IPlacedPriceProcessorGet the currently-placed price for an line item, and update it if necessary. You need to change the default implementation if you have additional pricing rules outside of what is implemented in the configured pricing provider.
IPaymentProcessorProcess payments on an order. You need to change the default implementation if you are not using configured payment providers to handle payments.