Product

data class Product(val name: String?, val id: String?, val price: Double?, val quantity: Int?, val category: String?, val brand: String?, val variant: String?, val attributes: Map<String, String>)

Represents a product in a transaction.

Parameters

name

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

id

The unique identifier for the product, or null if not specified.

price

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

quantity

The quantity of the product in the transaction, or null if not specified.

category

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

brand

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

variant

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

attributes

A map of additional attributes associated with the product.

Constructors

Link copied to clipboard
constructor(name: String?, id: String?, price: Double?, quantity: Int?, category: String?, brand: String?, variant: String?, attributes: Map<String, String>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard
val name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard