V10

class V10(base: URI) : Endpoints

The rehearsal host: /example/order/{id}/<command>, the driver's tenant and owner in its headers.

Constructors

Link copied to clipboard
constructor(base: URI)

Functions

Link copied to clipboard
fun accessState(order: OrderRef): Pair<Int, JsonNode>?

The order's version and state, its access attributes included, read by a caller of the tenant.

Link copied to clipboard
open override fun addCartItem(customer: String, body: String): Outcome
Link copied to clipboard
open override fun changeAddress(order: OrderRef, body: String): Outcome
Link copied to clipboard
open override fun createOrder(order: OrderRef, body: String): Outcome
Link copied to clipboard
open override fun orderState(order: OrderRef): Pair<Int, JsonNode>?

The order's state and version, without its access attributes (ACCESS_FIELDS): the 9.x state holds none, migrate-data compare checks them against 9.x's tags, and driver access reads them (accessState).

Link copied to clipboard
open override fun payOrder(order: OrderRef, body: String): Outcome
Link copied to clipboard
open override fun receiptOrder(order: OrderRef): Outcome
Link copied to clipboard
open override fun shipOrder(order: OrderRef): Outcome
Link copied to clipboard
fun stateStatus(order: OrderRef, region: String): Int

The status of a state read of order by a caller of region: 200 when the policy lets it read it, else 404.

Link copied to clipboard
fun streamOrders(tenant: String, region: String, limit: Int): List<String>

The aggregate ids of the first limit streams of tenant an events query by a caller of region finds.

Link copied to clipboard
fun streams(order: OrderRef, region: String): Long

How many of order's streams an events query by a caller of region finds.

Link copied to clipboard
open override fun tagOrder(order: OrderRef, region: String?, teams: List<String>): Outcome

Tags the order with region (none when null) and teams, replacing its tags, as 9.x's tags command does.