Order

data class Order(val id: String, val productId: String, val productInfo: ProductInfo, val quantity: Int, val cost: ValueInUnits, val transactionId: String, val requestTime: Calendar, val rewards: List<ProductRewardReference>)

Data class representing an order placed for products from the store. May possibly result in multiple associated rewards.

Parameters

id

Unique identifier of the order.

productId

ID of the product in the catalog.

productInfo

Information describing a product.

quantity

Number of items of the product in the order.

cost

Represents a numeric value with an associated unit.

transactionId

Unique identifier of the loyalty transaction associated with this order.

requestTime

Timestamp when the order was placed in the form of Calendar.

rewards

References to rewards associated with this order.

Constructors

Link copied to clipboard
constructor(id: String, productId: String, productInfo: ProductInfo, quantity: Int, cost: ValueInUnits, transactionId: String, requestTime: Calendar, rewards: List<ProductRewardReference>)

Properties

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