Builder

constructor(id: String, purchaseDate: Date, lineItems: List<Order.LineItem>)

Constructor.

Parameters

id

The order identifier (required).

purchaseDate

The time the purchase was made by the user (required)

lineItems

A list of the line item details that comprise the order (required)