Skip to content

Commit

Permalink
updated order-service.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Botty committed Sep 25, 2024
1 parent 205fdea commit 3f1e885
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .build/src/json/components/order-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"distanceFromUs" : "OWNED"
} ],
"dependencies" : [ {
"id" : "order-database",
"type" : "DATABASE",
"distanceFromUs" : "OWNED"
}, {
"id" : "inventory-service",
"type" : "BACKEND",
"distanceFromUs" : "OWNED",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 3f1e885

Please sign in to comment.