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.
perpetual
:
boolean
Determines if the product is perpetually in stock.
The quantity of items that are reserved.
Note that for products with high velocity and concurrency, the return value is extremely volatile and the
retrieval will be expensive.
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.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
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 quantity of items that are reserved.
Note that for products with high velocity and concurrency, the return value is extremely volatile and the
retrieval will be expensive.
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 turnover or quantity N/A if not available.
isBackorderable
isBackorderable()
:
boolean
Determines if the product is backorderable.
When using OCI, returns true if the product has at least one Future quantity in OCI.
Returns:
true if the product is backorderable.
isPerpetual
isPerpetual()
:
boolean
Determines if the product is perpetually in stock.
Sets the allocation quantity. This also updates the allocation reset date.
All final reservations will be considered as expired and will therefore no longer be considered for ATS.
When using OCI, throws an IllegalStateException.
This method should not be called within a storefront request.
API Versioned:
No longer available as of version 21.7.
Parameters:
quantity
-
the allocation quantity to set (must be greater than or equal to zero).
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
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.
Sets the date that the item is expected to be in stock.
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:
inStockDate
-
the date that the item is expected to be in stock.
setPerpetual
setPerpetual(perpetualFlag
:
boolean)
:
void
Sets if the product is perpetually in stock.
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:
perpetualFlag
-
true to set the product perpetually in stock.
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.
Sets the quantity of items that are allocated for sale, beyond the initial stock allocation.
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.