Skip to main content

Variable: intelligentSearchAvailability

const intelligentSearchAvailability: ProductAvailabilityReader<Product>

Defined in: hydration/intelligentSearch/availability.ts:19

Implementation of ProductAvailabilityReader for Intelligent Search (IS) products.

Reads AvailableQuantity from the commercial offer of the offer's SKU and seller: available when above 0. Undefined when the product doesn't have that SKU or seller, or when AvailableQuantity isn't a number. IS still sends a price for an unavailable SKU.

Param​

Product object from Intelligent Search

Param​

Offer object containing SKU and seller information

Returns​

Whether the offer can be bought, if the product says