Package-level declarations

Types

Link copied to clipboard
data class Order(val id: String = "", val userId: String = "", val items: List<OrderItem> = emptyList(), val total: Double = 0.0, val status: String = "PENDING", val paymentMethod: String = "CARD", val shippingAddress: String = "")

Representa una orden de compra realizada por un usuario.

Link copied to clipboard
data class OrderItem(val productId: String = "", val name: String = "", val price: Double = 0.0, val qty: Int = 1, val imageUrl: String = "")

Representa un ítem o producto dentro de una orden de compra.

Link copied to clipboard
data class Product(val id: String = "", val name: String = "", val description: String = "", val price: Double = 0.0, val stock: Int = 0, val imageUrl: String = "", val category: String = "", val storeName: String = "")

Representa un producto en el sistema.

Link copied to clipboard
data class User(val id: String = "", val username: String = "", val address: String = "", val email: String = "", val orders: List<String> = emptyList())

Representa un usuario registrado en el sistema.