ProductEntity


class ProductEntity : Entity


An object representing a product entity. (e.g. grocery item, dish from a restaurant, promotion)

Summary

Nested types

Builder class for ProductEntity.

Public functions

Uri!

Returns the action link uri of the food entity.

Optional<String!>!

Returns the callout of the product entity. e.g. "Free delivery"

Optional<String!>!

Returns the fine print for the callout text e.g. "For a limited time".

(Mutable)List<DisplayTimeWindow!>!

Returns the display time window associated with the product entity.

Optional<String!>!

Returns the id of the entity.

(Mutable)List<Image!>!

Returns the poster image of the entity.

Optional<Price!>!

Returns the price of the product entity

Optional<Rating!>!

Returns the rating of the food entity.

Optional<String!>!

Returns the title of the food entity.

Public functions

getActionLinkUri

fun getActionLinkUri(): Uri!

Returns the action link uri of the food entity.

getCallout

fun getCallout(): Optional<String!>!

Returns the callout of the product entity. e.g. "Free delivery"

getCalloutFinePrint

fun getCalloutFinePrint(): Optional<String!>!

Returns the fine print for the callout text e.g. "For a limited time".

getDisplayTimeWindows

fun getDisplayTimeWindows(): (Mutable)List<DisplayTimeWindow!>!

Returns the display time window associated with the product entity.

This can be used for several usecases like offer expiry time window, preorder availability time window.

getEntityId

fun getEntityId(): Optional<String!>!

Returns the id of the entity.

getPosterImages

fun getPosterImages(): (Mutable)List<Image!>!

Returns the poster image of the entity.

getPrice

fun getPrice(): Optional<Price!>!

Returns the price of the product entity

getRating

fun getRating(): Optional<Rating!>!

Returns the rating of the food entity.

getTitle

fun getTitle(): Optional<String!>!

Returns the title of the food entity.