Class ProductAvailabilityLevels

Encapsulates the quantity of items available for each availability status.

Property Summary 

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.

Constructor Summary 

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

Method Summary 

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.

Methods inherited from class Object 

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

Property Details 

backorder 

backorder: Quantity (read-only)

Returns the backorder quantity.


count 

count: Number (read-only)

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


inStock 

inStock: Quantity (read-only)

Returns the quantity in stock.


notAvailable 

notAvailable: Quantity (read-only)

Returns the quantity that is not available.


preorder 

preorder: Quantity (read-only)

Returns the pre-order quantity.


Method Details 

getBackorder() 

getBackorder(): Quantity

Returns the backorder quantity.

Returns:

  • the backorder quantity.

getCount() 

getCount(): Number

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

Returns:

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

getInStock() 

getInStock(): Quantity

Returns the quantity in stock.

Returns:

  • the quantity in stock.

getNotAvailable() 

getNotAvailable(): Quantity

Returns the quantity that is not available.

Returns:

  • the quantity that is not available.

getPreorder() 

getPreorder(): Quantity

Returns the pre-order quantity.

Returns:

  • the pre-order quantity.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!