Stock Availability

AvailabilityState

Stock availability status.

Tags
author

Jakub Jabůrek jaburek.jakub@gmail.com

Table of Contents

Methods

getInStockQuantity()  : QuantityInterface|null
Returns quantity currently in stock.
getMicrodataSchema()  : string|null
Returns schema.org URI of the availability state.
getShipmentTime()  : int|null
Returns how many hours it will take to ship out the item.
getUi()  : AvailabilityUiInterface|null
Returns availability information that can be displayed to the user.
isAvailable()  : bool
Should the item be available for ordering?
isInStock()  : bool
Is the item in stock and ready to be shipped (virtually) immediately?

Methods

getInStockQuantity()

Returns quantity currently in stock.

public getInStockQuantity() : QuantityInterface|null
APIYes
Return values
QuantityInterface|null

quantity or null if not applicable

getMicrodataSchema()

Returns schema.org URI of the availability state.

public getMicrodataSchema() : string|null
APIYes
Return values
string|null

schema.org URI or null if not applicable

getShipmentTime()

Returns how many hours it will take to ship out the item.

public getShipmentTime() : int|null
APIYes
Return values
int|null

number of hours or null if not applicable or unknown

isAvailable()

Should the item be available for ordering?

public isAvailable() : bool
APIYes
Return values
bool

true if yes, false if the customer should be forbidden from ordering it

isInStock()

Is the item in stock and ready to be shipped (virtually) immediately?

public isInStock() : bool
APIYes
Return values
bool

true if yes, false otherwise


        
On this page

Search results