STRCartItem

data class STRCartItem(item: STRProductItem, quantity: Int, totalPrice: Float?, oldTotalPrice: Float?)

This class represents an individual item in the shopping cart

Constructors

STRCartItem
Link copied to clipboard
fun STRCartItem(item: STRProductItem, quantity: Int, totalPrice: Float?, oldTotalPrice: Float?)

Properties

item
Link copied to clipboard
val item: STRProductItem

An list of type STRProductItem representing the product associated with this cart item

oldTotalPrice
Link copied to clipboard
val oldTotalPrice: Float?

An integer value representing the old total price of this item

quantity
Link copied to clipboard
val quantity: Int

An integer value indicating the quantity of this item added to the cart

totalPrice
Link copied to clipboard
val totalPrice: Float?

An integer value representing the current total price of this item