Builder

open class Builder

Builder class for tracking a customer Order.

Constructors

Link copied to clipboard
constructor(id: String, purchaseDate: Date, lineItems: List<Order.LineItem>)
Constructor.

Functions

Link copied to clipboard
open fun build(): Order
Builds and returns an Order Object
Link copied to clipboard
open fun setCurrencyCode(currencyCode: String): Order.Builder
The ISO 4217 currency code.
Link copied to clipboard
The customer related to the order
Link copied to clipboard
open fun setCustomerOrderId(customerOrderId: String): Order.Builder
The customer-facing order id