Returns the custom attributes for this object. The returned object is used for retrieving and storing attribute
values. See CustomAttributes for a detailed example of the syntax for working with custom
attributes.
When using Omnichannel Inventory (OCI), this class doesn't support custom attributes. If OCI is enabled, then
attempting to set or modify a custom attribute value throws an UnsupportedOperationException.
This is only relevant when On Order Inventory is turned on for the related inventory list. On Order is a bucket
of inventory used for the time between order creation and order export to external (warehouse) systems. On Order
value is increased when an order is created. It will be decreased and with that turnover will be increased when
the order is exported, see getTurnover(). Notice that Order.setExportStatus(Number) and
OrderItem.allocateInventory(Boolean) will decrease the On Order value. On order will be included
in the ATS calculation, see getATS().
When using OCI, always returns zero. OCI doesn't support On Order inventory.
Returns the sum of all inventory transactions (decrements and increments) recorded after the allocation reset
date. If the total decremented quantity is greater than the total incremented quantity, then this value is
negative.
When using OCI, returns the total reserved quantity, including order, basket, and temporary reservations.
Returns the meta data of this object. If no meta data is available the method returns null. The returned
ObjectTypeDefinition can be used to retrieve the metadata for any of the custom attributes.
When using Omnichannel Inventory (OCI), this class doesn't support custom attributes. If OCI is enabled, then
attempting to set or modify a custom attribute value throws an UnsupportedOperationException.
Returns:
the meta data of this object. If no meta data is available the method returns null.
Returns the custom attributes for this object. The returned object is used for retrieving and storing attribute
values. See CustomAttributes for a detailed example of the syntax for working with custom
attributes.
When using Omnichannel Inventory (OCI), this class doesn't support custom attributes. If OCI is enabled, then
attempting to set or modify a custom attribute value throws an UnsupportedOperationException.
This is only relevant when On Order Inventory is turned on for the related inventory list. On Order is a bucket
of inventory used for the time between order creation and order export to external (warehouse) systems. On Order
value is increased when an order is created. It will be decreased and with that turnover will be increased when
the order is exported, see getTurnover(). Notice that Order.setExportStatus(Number) and
OrderItem.allocateInventory(Boolean) will decrease the On Order value. On order will be included
in the ATS calculation, see getATS().
When using OCI, always returns zero. OCI doesn't support On Order inventory.
Returns the sum of all inventory transactions (decrements and increments) recorded after the allocation reset
date. If the total decremented quantity is greater than the total incremented quantity, then this value is
negative.
When using OCI, returns the total reserved quantity, including order, basket, and temporary reservations.
Sets the allocation quantity. This also updates the allocation reset date.
Any final reservations made prior to the allocation reset date will be considered as expired and will therefore
no longer be considered for ATS.
When using OCI, throws an IllegalStateException.
This method must not be called within a storefront request.
Parameters:
quantity - the allocation quantity to set (must be greater than or equal to zero).
allocationResetDate - the date allocation quantity was effectively calculated <li>the reset date must not be older than 48 hours</li> <li>the reset date must not be older than the prior reset date. see getAllocationResetDate()</li> </ul>
The method is used to set whether the product is backorderable. Setting the backorderable flag to true will clear
the preorderable flag. If the record's preorderable flag is set to true, calling this method with
backorderableFlag==false will have no effect.
When using OCI, throws an IllegalStateException.
This method should not be called within a storefront request.
This method must not be called within a storefront request when the API version is 21.7 or later.
Parameters:
backorderableFlag - the flag to set backorderable status.
The method is used to set whether the product is preorderable. Setting the preorderable flag to true will clear
the backorderable flag. If the record's backorderable flag is set to true, calling this method with
preorderableFlag==false will have no effect.
When using OCI, throws an IllegalStateException.
This method should not be called within a storefront request.
This method must not be called within a storefront request when the API version is 21.7 or later.
Parameters:
preorderableFlag - the flag to set preorderable status.