Class PinterestAvailability

Represents a row in the Pinterest availability feed export file.

Property Summary 

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

Constructor Summary 

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

Method Summary 

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.

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 

ID 

ID: String (read-only)

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


availability 

availability: String

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


Method Details 

getAvailability() 

getAvailability(): String

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


getID() 

getID(): String

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

Returns:

  • product ID

setAvailability(String) 

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