STRCart

data class STRCart(items: List<STRCartItem>, totalPrice: Float, oldTotalPrice: Float?, currency: String)

This class represent Cart of Storyly

Constructors

STRCart
Link copied to clipboard
fun STRCart(items: List<STRCartItem>, totalPrice: Float, oldTotalPrice: Float?, currency: String)

Properties

currency
Link copied to clipboard
val currency: String

A String value representing the currency of total prices

items
Link copied to clipboard
val items: List<STRCartItem>

List of STRCartItem objects representing the items added to the cart

oldTotalPrice
Link copied to clipboard
val oldTotalPrice: Float?

A floating-point value representing the old total price of all the items in the cart

totalPrice
Link copied to clipboard
val totalPrice: Float

A floating-point value indicating the current total price of all the items in the cart.