FoodShoppingCart.Builder


class FoodShoppingCart.Builder


Builder class for FoodShoppingCart.

Summary

Public constructors

Public functions

FoodShoppingCart.Builder!

Adds the display time window for the shopping cart.

FoodShoppingCart.Builder!

Adds the display time window for the shopping cart.

FoodShoppingCart.Builder!

Add a item label in the shopping cart cluster

FoodShoppingCart.Builder!

Add a list of item labels in the shopping cart cluster

FoodShoppingCart.Builder!

Adds a poster image of the items in the shopping cart.

FoodShoppingCart.Builder!

Adds poster images of the items in the shopping cart.

FoodShoppingCart!
FoodShoppingCart.Builder!

Sets the action link uri for the shopping cart.

FoodShoppingCart.Builder!

Sets the action text of the shopping cart. e.g. "View Cart"

FoodShoppingCart.Builder!

Sets the number of items in the shopping cart.

FoodShoppingCart.Builder!

Sets the title of the shopping cart.

Public constructors

Builder

Builder()

Public functions

addAllDisplayTimeWindow

@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): FoodShoppingCart.Builder!

Adds the display time window for the shopping cart.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): FoodShoppingCart.Builder!

Adds the display time window for the shopping cart.

Optional.

addItemLabel

@CanIgnoreReturnValue
fun addItemLabel(itemLabel: String!): FoodShoppingCart.Builder!

Add a item label in the shopping cart cluster

Optional.

addItemLabels

@CanIgnoreReturnValue
fun addItemLabels(itemLabels: (Mutable)List<String!>!): FoodShoppingCart.Builder!

Add a list of item labels in the shopping cart cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): FoodShoppingCart.Builder!

Adds a poster image of the items in the shopping cart.

Optional.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): FoodShoppingCart.Builder!

Adds poster images of the items in the shopping cart.

Optional.

build

fun build(): FoodShoppingCart!

setActionLinkUri

@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): FoodShoppingCart.Builder!

Sets the action link uri for the shopping cart.

Required.

setActionText

@CanIgnoreReturnValue
fun setActionText(actionText: String!): FoodShoppingCart.Builder!

Sets the action text of the shopping cart. e.g. "View Cart"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
fun setNumberOfItems(numberOfItems: Int): FoodShoppingCart.Builder!

Sets the number of items in the shopping cart.

When set to 0, the cart is empty.

Optional.

setTitle

@CanIgnoreReturnValue
fun setTitle(title: String!): FoodShoppingCart.Builder!

Sets the title of the shopping cart.

Optional.