Class ProductAvailabilityLevels

Encapsulates the quantity of items available for each availability status.

PropertyDescription
backorder: Quantity (read-only)Returns the backorder quantity.
count: Number (read-only)Returns the number of attributes that contain non-zero quantities.
inStock: Quantity (read-only)Returns the quantity in stock.
notAvailable: Quantity (read-only)Returns the quantity that is not available.
preorder: Quantity (read-only)Returns the pre-order quantity.

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getBackorder()Returns the backorder quantity.
getCount()Returns the number of attributes that contain non-zero quantities.
getInStock()Returns the quantity in stock.
getNotAvailable()Returns the quantity that is not available.
getPreorder()Returns the pre-order quantity.

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

backorder: Quantity (read-only)

Returns the backorder quantity.


count: Number (read-only)

Returns the number of attributes that contain non-zero quantities.


inStock: Quantity (read-only)

Returns the quantity in stock.


notAvailable: Quantity (read-only)

Returns the quantity that is not available.


preorder: Quantity (read-only)

Returns the pre-order quantity.


getBackorder(): Quantity

Returns the backorder quantity.

Returns:

  • the backorder quantity.

getCount(): Number

Returns the number of attributes that contain non-zero quantities.

Returns:

  • the number of attributes that contain non-zero quantities.

getInStock(): Quantity

Returns the quantity in stock.

Returns:

  • the quantity in stock.

getNotAvailable(): Quantity

Returns the quantity that is not available.

Returns:

  • the quantity that is not available.

getPreorder(): Quantity

Returns the pre-order quantity.

Returns:

  • the pre-order quantity.