InventoryUpdate
v0.0.1

Event raised when the inventory has been updated.
When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.

Details

This event is the final event of the ordering process. It gets raised when the shipment has been delivered.

Consumer / Producer Diagram

InventoryUpdate Schema (json)
{
  "$id": "https://example.com/AddedItemToCart.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AddedItemToCart",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "properties": {
        "correlationId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "domain": {
          "type": "string",
          "description": "The domain of the event"
        },
        "service": {
          "type": "string",
          "description": "The name of the service that triggered the event"
        }
      },
      "required": ["correlationId", "domain"]
    },
    "data": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "itemId": {
          "type": "string",
          "description": "The ID of the shopping item"
        },
        "quantity": {
          "type": "number",
          "description": "How many items the user wants to add to their shopping cart",
          "minimum": 1,
          "maximum": 1000,
          "default": 1
        }
      }
    }
  }
}
Last updated on 2024/12/1