Class PinterestAvailability

Represents a row in the Pinterest availability feed export file.

PropertyDescription
ID: String (read-only)Returns the ID of the Pinterest product.
availability: StringReturns the availability of the Pinterest product.

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

MethodDescription
getAvailability()Returns the availability of the Pinterest product.
getID()Returns the ID of the Pinterest product.
setAvailability(String)Sets the availability of the Pinterest product.

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

ID: String (read-only)

Returns the ID of the Pinterest product. This is the same as the ID of the Demandware product.


availability: String

Returns the availability of the Pinterest product. Possible values are PinterestProduct.AVAILABILITY_IN_STOCK or PinterestProduct.AVAILABILITY_OUT_OF_STOCK.


getAvailability(): String

Returns the availability of the Pinterest product. Possible values are PinterestProduct.AVAILABILITY_IN_STOCK or PinterestProduct.AVAILABILITY_OUT_OF_STOCK.


getID(): String

Returns the ID of the Pinterest product. This is the same as the ID of the Demandware product.

Returns:

  • product ID

setAvailability(availability: String): void

Sets the availability of the Pinterest product. Possible values are PinterestProduct.AVAILABILITY_IN_STOCK or PinterestProduct.AVAILABILITY_OUT_OF_STOCK.

Parameters:

  • availability - the availability status to set for this product