MCP Control
Заказы · Чувствительное действие

Кухонный дисплей · Принтеры

kds_printer
Упакованный заказ на стойке

Попробуйте три запроса

Подготовить
  1. Вы указываетеФилиал
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Кухонный дисплей / Принтеры». Для изменения нужны филиал, вариант операции. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
locationId
Филиал
action
Вариант операции
name
Название
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Кухонный дисплей / Принтеры» с параметром action = create. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
action
create
locationId
DEMO-101
printerId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Кухонный дисплей / Принтеры» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Register a disabled KDS CloudPRNT printer, or update one at its exact native version. Current native management authority is required. Credentials remain in the secure KDS setup UI. No printing occurs. Uses the current connection location scope. Recover uncertainty with kds_get_operation and the original requestId; do not issue a new requestId.

Параметры запроса
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
action
Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты create, update
printerId
Native printerId value; use the value and type returned by the corresponding service. необязательно · string
version
Native version value; use the value and type returned by the corresponding service. необязательно · integer · минимум 0 · максимум 9007199254740991
name
Native name value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 100
manufacturer
Native manufacturer value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "Star Micronics" · до символов 100
model
Native model value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 100
paperWidth
Native paperWidth value; use the value and type returned by the corresponding service. обязательно по схеме · number / number
enabled
Native enabled value; use the value and type returned by the corresponding service. обязательно по схеме · boolean · по умолчанию false
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа kds_printer
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "locationId": {
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,120}$",
      "description": "Native locationId value; use the value and type returned by the corresponding service."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "action": {
      "type": "string",
      "enum": [
        "create",
        "update"
      ],
      "description": "Native action value; use the value and type returned by the corresponding service."
    },
    "printerId": {
      "description": "Native printerId value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,120}$"
    },
    "version": {
      "description": "Native version value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Native name value; use the value and type returned by the corresponding service."
    },
    "manufacturer": {
      "default": "Star Micronics",
      "description": "Native manufacturer value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 100
    },
    "model": {
      "default": "",
      "description": "Native model value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 100
    },
    "paperWidth": {
      "anyOf": [
        {
          "type": "number",
          "const": 58
        },
        {
          "type": "number",
          "const": 80
        }
      ],
      "description": "Native paperWidth value; use the value and type returned by the corresponding service."
    },
    "enabled": {
      "default": false,
      "description": "Native enabled value; use the value and type returned by the corresponding service.",
      "type": "boolean"
    }
  },
  "required": [
    "locationId",
    "requestId",
    "action",
    "name",
    "manufacturer",
    "model",
    "paperWidth",
    "enabled"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}