{"asyncapi":"2.6.0","id":"urn:ord-playground:events:shipments","info":{"title":"Shipment Events","version":"1.0.0","description":"Tracking updates of shipments. `shipmentId` / `trackingNumber` join to the Shipping SOAP service, `orderId` to the Orders OData service.\n\nEvents are [CloudEvents 1.0](https://cloudevents.io) in structured JSON mode."},"servers":{"local":{"url":"events-ord.zazukoians.org","protocol":"wss","description":"Event stream of the playground"}},"defaultContentType":"application/cloudevents+json","channels":{"/ws/shipments":{"description":"Tracking updates of shipments. `shipmentId` / `trackingNumber` join to the Shipping SOAP service, `orderId` to the Orders OData service.","subscribe":{"operationId":"onShipmentsEvent","message":{"$ref":"#/components/messages/ShipmentTrackingUpdated"}},"bindings":{"ws":{"bindingVersion":"0.1.0"}}}},"components":{"messages":{"ShipmentTrackingUpdated":{"name":"ShipmentTrackingUpdated","title":"Shipment Tracking Updated","summary":"A shipment passed a new tracking checkpoint","contentType":"application/cloudevents+json","payload":{"allOf":[{"$ref":"#/components/schemas/CloudEvent"},{"type":"object","properties":{"type":{"type":"string","const":"zazuko.shop.Shipment.TrackingUpdated.v1"},"data":{"type":"object","required":["shipmentId","orderId","trackingNumber","carrier","status","location"],"properties":{"shipmentId":{"type":"string","example":"SH5007"},"orderId":{"type":"string","example":"O1007"},"trackingNumber":{"type":"string"},"carrier":{"type":"string","example":"DHL"},"status":{"type":"string","enum":["IN_TRANSIT","OUT_FOR_DELIVERY","DELIVERED"]},"location":{"type":"string","example":"Berlin Hub"}}}}}]}}},"schemas":{"OrderStatus":{"type":"string","enum":["OPEN","PROCESSING","SHIPPED","DELIVERED","CANCELLED"]},"CloudEvent":{"type":"object","required":["specversion","id","source","type","time","data"],"properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","format":"uuid"},"source":{"type":"string","example":"/ord-playground/order-events"},"type":{"type":"string"},"subject":{"type":"string","description":"ID of the business object the event is about"},"time":{"type":"string","format":"date-time"},"datacontenttype":{"type":"string","const":"application/json"},"data":{"type":"object"}}}}}}