diff --git a/.build/src/json/components/order-service.json b/.build/src/json/components/order-service.json index 68efc9c..c395f7d 100644 --- a/.build/src/json/components/order-service.json +++ b/.build/src/json/components/order-service.json @@ -8,6 +8,10 @@ "distanceFromUs" : "OWNED" } ], "dependencies" : [ { + "id" : "order-database", + "type" : "DATABASE", + "distanceFromUs" : "OWNED" + }, { "id" : "inventory-service", "type" : "BACKEND", "distanceFromUs" : "OWNED", @@ -28,16 +32,12 @@ "method" : "POST", "path" : "/payments" } ] - }, { - "id" : "order-database", - "type" : "DATABASE", - "distanceFromUs" : "OWNED" } ], "events" : [ { - "name" : "Order Canceled", - "type" : "order.canceled", - "description" : "Emitted whenever an order is canceled.", - "example" : "{\n \"id\" : \"4c97c099-0c00-4e56-841d-fbfe81770936\",\n \"timestamp\" : \"2024-07-22T12:34:56.789Z\",\n \"order\" : {\n \"orderId\" : \"a64914f7-7404-4e85-8e1a-778068fae307\",\n \"customerId\" : \"ed2a43d7-e49b-408d-8b5f-e2e2305954c2\",\n \"status\" : \"PROCESSING\"\n }\n}", + "name" : "Order Placed", + "type" : "order.placed", + "description" : "Emitted whenever a new order is placed.", + "example" : "{\n \"id\" : \"3d6fd447-a311-4028-8248-356e3621d450\",\n \"timestamp\" : \"2024-07-22T12:34:56.789Z\",\n \"order\" : {\n \"orderId\" : \"a64914f7-7404-4e85-8e1a-778068fae307\",\n \"customerId\" : \"ed2a43d7-e49b-408d-8b5f-e2e2305954c2\",\n \"status\" : \"PLACED\"\n }\n}", "fields" : [ { "property" : "id", "type" : "UUID4", @@ -69,10 +69,10 @@ "description" : "The status of the order. Might have one of the following values: PLACED, PROCESSING, COMPLETED, CANCELLED" } ] }, { - "name" : "Order Placed", - "type" : "order.placed", - "description" : "Emitted whenever a new order is placed.", - "example" : "{\n \"id\" : \"3d6fd447-a311-4028-8248-356e3621d450\",\n \"timestamp\" : \"2024-07-22T12:34:56.789Z\",\n \"order\" : {\n \"orderId\" : \"a64914f7-7404-4e85-8e1a-778068fae307\",\n \"customerId\" : \"ed2a43d7-e49b-408d-8b5f-e2e2305954c2\",\n \"status\" : \"PLACED\"\n }\n}", + "name" : "Order Canceled", + "type" : "order.canceled", + "description" : "Emitted whenever an order is canceled.", + "example" : "{\n \"id\" : \"4c97c099-0c00-4e56-841d-fbfe81770936\",\n \"timestamp\" : \"2024-07-22T12:34:56.789Z\",\n \"order\" : {\n \"orderId\" : \"a64914f7-7404-4e85-8e1a-778068fae307\",\n \"customerId\" : \"ed2a43d7-e49b-408d-8b5f-e2e2305954c2\",\n \"status\" : \"PROCESSING\"\n }\n}", "fields" : [ { "property" : "id", "type" : "UUID4",