ProductItem

data class ProductItem(val category: Category?, val price: Price?, val productInfo: ProductInfo?, val quantity: Int)

Represents an item in a transaction, including its category, price, and product details.

Parameters

category

The Category of the product, or null if not specified.

price

The Price of the product, or null if not specified.

productInfo

The ProductInfo containing details about the product, or null if not specified.

quantity

The quantity of the product in the transaction.

Constructors

Link copied to clipboard
constructor(category: Category?, price: Price?, productInfo: ProductInfo?, quantity: Int)

Properties

Link copied to clipboard
@SerializedName(value = "category")
val category: Category?
Link copied to clipboard
@SerializedName(value = "price")
val price: Price?
Link copied to clipboard
@SerializedName(value = "productInfo")
val productInfo: ProductInfo?
Link copied to clipboard
@SerializedName(value = "quantity")
val quantity: Int