context commerce.orders {
  uses commerce.money
  consumes commerce.payment

  exports opaque      { Order }
  exports transparent { OrderError }

  type Order = {
    total:  Money,
    authId: AuthId,
  }

  type OrderError = enum {
    EmptyCart,
    TooManyItems,
  }
}
