OrderRequest

data class OrderRequest(val productId: String, val quantity: Int)

Data class representing a request to place an order for a product from the product catalog.

Parameters

productId

ID of the product in the product catalog.

quantity

Number of items of the product in the order.

Constructors

Link copied to clipboard
constructor(productId: String, quantity: Int)

Properties

Link copied to clipboard
Link copied to clipboard