Interface OrderItemRepositoryInterface

Interface OrderItemRepositoryInterface

Direct known implementers

OrderItemRepository

Methods summary

public addToOrder( IdType $orderId, OrderItemInterface $orderItem ) : integer

Adds an order item to the order item repository.

public store( StoredOrderItemInterface $storedOrderItem ) : OrderItemRepositoryInterface

Saves the order item in the repository.

public getItemById( IdType $orderItemId ) : StoredOrderItemInterface

Returns a stored order ID by the given order item ID.

public getItemsByOrderId( IdType $orderId ) : StoredOrderItemCollection

Returns a stored order item collection by the given order ID.

public deleteItemById( IdType $orderItemId ) : OrderItemRepositoryInterface

Deletes an order item from the repository by the given order item ID.

public deleteItemsByOrderId( IdType $orderId ) : OrderItemRepositoryInterface

Deletes order items from the repository by the given order ID.