openapi: 3.0.3

info:
  title: P2RX Receiver Models
  description: Models for the P2RX receiver objects
  version: 1.0.0

paths: { }

components:
  schemas:
    Message:
      type: object
      properties:
        sender:
          type: string
          description: Identifier of the sender
        message_type:
          type: string
          description: Type of the message
          enum:
            - RX_AVAILABLE
            - RX_CANCELLED
            - RX_UPDATED
            - RX_TRANSFERRED
        message_object_id:
          type: string
          description: Unique identifier for the message object
        virtual_pharmacy:
          type: string
          description: Identifier (slug) of the virtual pharmacy

    AsynchronousResponse:
      type: object
      properties:
        status:
          type: string
        status_description:
          type: string
          description: Description of the status
        message_id:
          type: string

    Version:
      type: object
      properties:
        version:
          type: string