OrderItemRepositoryWriterInterface

Extends

Interface OrderItemRepositoryWriterInterface

category

System

package

Order

subpackage

Interfaces

Methods

Inserts an order item to an order by the given order ID.

insertIntoOrder(\IdType $orderId, \OrderItemInterface $orderItem) : integer

Arguments

$orderId

\IdType

ID of the order.

$orderItem

\OrderItemInterface

Order item to insert.

Response

integer

ID of inserted item.

Update the passed order item.

update(\StoredOrderItemInterface $orderItem) : \OrderItemRepositoryWriterInterface

Arguments

$orderItem

\StoredOrderItemInterface

Order item to update.

Response

\OrderItemRepositoryWriterInterface

Same instance for method chaining.