The order-item provides an item-level status and
type, methods for accessing and creating associated items,
and methods used to allocate inventory for shipping-order creation.
Order post-processing APIs (gillian) are now inactive by default and will throw
an exception if accessed. Activation needs preliminary approval by Product Management.
Please contact support in this case. Existing customers using these APIs are not
affected by this change and can use the APIs until further notice.
The itemID used to identify the OrderItem. Note this is
not a UUID, it is created internally when the OrderItem
instance is created, and is typically used within export files to
identify the item.
The last added non-cancelled shipping order item if one exists, otherwise null.
Multiple shipping order items that are not in status ShippingOrderItem.STATUS_CANCELLED
can exist for one OrderItem, for example if the OrderItem has been split for shipping purposes.
The method returns null if no non-cancelled shipping order item exists.
Returns a collection of the ShippingOrderItems created for this item.
ShippingOrder items represents the whole or part of this item which could
be delivered, and belong to a shipping order.
Note that the cancelled shipping order items are returned too.
This method is equivalent to getShippingOrderItems(Boolean)
called with parameter true.
Returns the split source item associated with this item, if existing. Inverse relation to getSplitItems().
A split source item is associated after the successful creation of a split item with a quantity less than the existing quantity of the item to split.
For details see getSplitItems().
Please note that this method is disabled by default. Please contact support for enabling it.
Attempts to allocate inventory for the item and returns the quantity that could be allocated or null
if no allocation was possible.
All option product line items are allocated with
their parent. Note that for items with option product line items no partial allocation is possible. That means
the partialAllocation parameter will in this case always be considered as false
Parameters:
partialAllocation - <li>true accept a partial allocation as a result. Partial allocation is only possible when no option product line items are included,</li> <li>false only full allocation will be used, partial allocation will be released automatically</li> </ul>
The itemID used to identify the OrderItem. Note this is
not a UUID, it is created internally when the OrderItem
instance is created, and is typically used within export files to
identify the item.
The last added non-cancelled shipping order item if one exists, otherwise null.
Multiple shipping order items that are not in status ShippingOrderItem.STATUS_CANCELLED
can exist for one OrderItem, for example if the OrderItem has been split for shipping purposes.
The method returns null if no non-cancelled shipping order item exists.
Returns:
the last not cancelled shipping order item or null
Returns a collection of the ShippingOrderItems created for this item.
ShippingOrder items represents the whole or part of this item which could
be delivered, and belong to a shipping order.
Note that the cancelled shipping order items are returned too.
This method is equivalent to getShippingOrderItems(Boolean)
called with parameter true.
Returns:
collection of the shipping order items created for this item
Returns a collection of the ShippingOrderItems created for this item.
ShippingOrder items represent the whole or part of this item which could
be delivered, and belong to a shipping order.
Depending on the includeCancelled parameter the cancelled shipping order
items will be returned or not.
Parameters:
includeCancelled - <li>true all shipping order items, including the cancelled, created for this item will be returned</li> <li>false only non-cancelled shipping order items created for this item will be returned</li> </ul>
Returns:
collection of the shipping order items created for this item
Returns the split source item associated with this item, if existing. Inverse relation to getSplitItems().
A split source item is associated after the successful creation of a split item with a quantity less than the existing quantity of the item to split.
For details see getSplitItems().
Set the status of the order item, use one of the values documented in getStatus().
If the order item has a related shipping order item (see getShippingOrderItem()) the status of the
shipping order item will be adjusted to the same status. Setting the status of an order item might also change
the status of the related order. The following rules apply in top-down order: