{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "amountSpent": {
      "properties": {
        "amount": {
          "type": "string"
        },
        "currencyCode": {
          "type": "string"
        }
      },
      "required": [
        "amount",
        "currencyCode"
      ],
      "type": "object"
    },
    "customerId": {
      "format": "uri",
      "type": "string"
    },
    "lastOrderId": {
      "format": "uri",
      "type": "string"
    },
    "numberOfOrders": {
      "type": "integer"
    },
    "occurredAt": {
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "amountSpent",
    "customerId",
    "lastOrderId",
    "numberOfOrders",
    "occurredAt"
  ],
  "type": "object"
}