CartProduct

data class CartProduct(val productId: String? = null, val name: String? = null, val brand: String? = null, val price: Double? = null, val category: String? = null)

A product in a cart. Supply productId to have the catalog fill the rest.

Constructors

Link copied to clipboard
constructor(productId: String? = null, name: String? = null, brand: String? = null, price: Double? = null, category: String? = null)

Properties

Link copied to clipboard
val brand: String? = null

Brand, for products not in a catalog.

Link copied to clipboard
val category: String? = null

Category, for products not in a catalog.

Link copied to clipboard
val name: String? = null

Product name, for products not in a catalog.

Link copied to clipboard
val price: Double? = null

Price, for products not in a catalog.

Link copied to clipboard
val productId: String? = null

Catalog product id; when set, the backend hydrates the other fields.