Item

@Serializable
data class Item(val name: String, val sku: String, val price: Price, val quantity: Int, val category: List<String>? = null, val imageUrl: String) : Parcelable

An object specifying item details.

Constructors

Link copied to clipboard
constructor(name: String, sku: String, price: Price, quantity: Int, category: List<String>? = null, imageUrl: String)

Properties

Link copied to clipboard
val category: List<String>? = null

An optional list of categories the item belongs to.

Link copied to clipboard

The image of the item.

Link copied to clipboard

Human readable name of the item.

Link copied to clipboard

Price of the item.

Link copied to clipboard

Quantity of the item.

Link copied to clipboard
val sku: String

SKU identifier of the item.