FoodReplaced
v1.0.0

Event event raised on food replaced (meal swapped).

Properties:

userId* :

ID of the user.

deliveryId* :

ID of the delivery which the meal belongs to.

deliveryDate* :

Date of the delivery.

actorType* :

Actor who replaced the food, either the user or by CX.

actorId* :

ID of the actor who replaced the food.

oldFoodId* :

ID of the original item.

newFoodId* :

ID of the new item.

kitchen* :

kitchen id.

FoodReplaced Schema (yml)
openapi: 3.0.0
info:
  version: "1.0.0"
  title: FoodReplaced
paths: {}
components:
  schemas:
    FoodReplaced:
      type: object
      required:
        - metadata
        - data
      properties:
        data:
          "$ref": "#/components/schemas/Data"
        metadata:
          "$ref": "#/components/schemas/Metadata"
    Data:
      type: object
      required:
        - userId
        - deliveryId
        - deliveryDate
        - actorType
        - oldFoodId
        - newFoodId
        - kitchen

      properties:
        userId:
          type: string
        deliveryId:
          type: string
        deliveryDate:
          type: string
        kitchen:
          type: string
        actorType:
          type: string
          enum:
            - USER
            - CX
        actorId:
          type: string
        oldFoodId:
          type: string
        newFoodId:
          type: string

    Metadata:
      type: object
      required:
        - serviceFunction
        - version
      properties:
        serviceFunction:
          type: string
        version:
          type: string
Edit this pageLast updated on 2024/4/2