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.
product Id
ID of the product in the catalog.
product Info
Information describing a product.
quantity
Number of items of the product in the order.
cost
Represents a numeric value with an associated unit.
transaction Id
Unique identifier of the loyalty transaction associated with this order.
request Time
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>)