OrderItemFactoryInterface

Extends

Interface OrderItemFactoryInterface

category

System

package

Order

subpackage

Interfaces

Methods

Creates an OrderItem object.

createOrderItem(\StringType $name) : \OrderItemInterface

Arguments

$name

\StringType

Order item name.

Response

\OrderItemInterface

New OrderItem instance.

Creates a StoredOrderItem object.

createStoredOrderItem(\IdType $orderItemId, \OrderItemInterface $orderItem = null) : \StoredOrderItemInterface

Arguments

$orderItemId

\IdType

ID of order item.

$orderItem

\OrderItemInterface

(optional) When provided the object values will be used for the generation of the StoredOrderItemInstance.

Response

\StoredOrderItemInterface

New StoredOrderItem instance