title: Kiosk
type: object
x-tags:
  - Models
description: Represents a physical kiosk.
properties:
  uuid:
    type: string
    description: The kiosk's unique identifier.
    format: uuid
    readOnly: true
  device_name:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    example: Front Counter Kiosk
    description: The merchant-specified display name of this kiosk.
  app_version:
    type: string
    description: The currently-installed application version.
    pattern: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
    example: 1.0.1
  hardware_profile:
    $ref: ./HardwareProfile.yaml
  outlet:
    oneOf:
      - type: 'null'
      - type: object
        properties:
          uuid:
            type: string
            format: uuid
            description: The unique identifier of the outlet linked to this kiosk.
          name:
            type: string
            description: The name of the outlet linked to this kiosk.
            minLength: 1
            maxLength: 255
            example: Barry's Burgers
          locality:
            type:
              - string
              - 'null'
            description: The locality of the outlet linked to this kiosk.
            minLength: 1
            maxLength: 255
            example: Downtown One
    description: The core attributes of the outlet linked to this kiosk (if any).
  created_at:
    type: string
    format: date-time
    description: The date-time that the kiosk was first activated.
    readOnly: true
