Endpoints

sealed class Endpoints

One version's routes for the example's order and cart: the 9.x example-server's (wow-webflux, the paths its OpenAPI lists) or the rehearsal host's (wow-http). Both answer a command once its events are stored.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class NineX(base: URI) : Endpoints

The 9.x example-server: /tenant/{tenant}/owner/{owner}/sales-order…, CommandResult answers.

Link copied to clipboard
class V10(base: URI) : Endpoints

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

Properties

Link copied to clipboard
val base: URI

Functions

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

The order's state and version; null when it does not exist.

Link copied to clipboard
abstract fun payOrder(order: OrderRef, body: String): Outcome
Link copied to clipboard
abstract fun receiptOrder(order: OrderRef): Outcome
Link copied to clipboard
abstract fun shipOrder(order: OrderRef): Outcome
Link copied to clipboard
abstract 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.