ChangeBasketItemQuantity

@Summary(value = "Change an item's quantity")
data class ChangeBasketItemQuantity(val productId: String, val quantity: Int)

Changes the quantity of productId in the basket to quantity.

Constructors

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

Properties

Link copied to clipboard
@Summary(value = "Product")
@Description(value = "The id of the product whose quantity changes; it is in the basket.")
val productId: String
Link copied to clipboard
@Summary(value = "Quantity")
@Positive
val quantity: Int