MCP Control
Заказы · Изменение

Текущие · Заказы · Возобновление · Заметки · Операция

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

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

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Текущие / Заказы / Возобновление / Заметки / Операция». Для изменения нужны исходные данные. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
original
Исходные данные
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
Выполни согласованное действие «Текущие / Заказы / Возобновление / Заметки / Операция» с проверенными значениями. Покажи результат этой попытки.
Параметры примера
requestId
Ключ операции
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Текущие / Заказы / Возобновление / Заметки / Операция» по исходному ответу. Покажи заказ, appliedFromRevision. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

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

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

Explicitly resume an uncertain native order-note patch using unchanged original arguments. The original atomic receipt prevents duplicate history events. A concurrent order change conflicts before any patch.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
original
Exact original active_order_update_notes arguments; preserve its requestId. обязательно по схеме · object
Что вернёт команда
orderId
Canonical active Firestore order ID from active_orders_search/get, not a display number. обязательно по схеме · string
appliedFromRevision
Exact Firestore revision from active_order_notes_context; detects changes even if a native writer did not increment version. обязательно по схеме · string
version
Native version after this exact commit. Read notes context again before another edit. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
values
Exact committed patch; omitted comments were preserved. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа active_order_resume_notes_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "$ref": "#/$defs/_mcp0"
    },
    "original": {
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
          "description": "Canonical active Firestore order ID from active_orders_search/get, not a display number."
        },
        "expectedRevision": {
          "type": "string",
          "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
          "description": "Exact Firestore revision from active_order_notes_context; detects changes even if a native writer did not increment version."
        },
        "values": {
          "type": "object",
          "properties": {
            "comment": {
              "description": "Native order.Comment. Empty string explicitly clears this field.",
              "type": "string",
              "maxLength": 4000
            },
            "customerComment": {
              "description": "Native order.CommentClient. Omission preserves the existing customer note.",
              "type": "string",
              "maxLength": 4000
            },
            "productionComment": {
              "description": "Native order.CommentForProduction. This stores text; it does not submit to production or send a message.",
              "type": "string",
              "maxLength": 4000
            }
          },
          "additionalProperties": false,
          "description": "Only explicitly supplied native comment fields change. Null, items, prices, payments, status and inventory fields are not accepted."
        },
        "requestId": {
          "$ref": "#/$defs/_mcp0"
        }
      },
      "required": [
        "orderId",
        "expectedRevision",
        "values",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original active_order_update_notes arguments; preserve its requestId."
    }
  },
  "required": [
    "requestId",
    "original"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for exactly this patch; reuse unchanged after a lost response."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Canonical active Firestore order ID from active_orders_search/get, not a display number."
    },
    "appliedFromRevision": {
      "type": "string",
      "pattern": "^fsv1:\\d{1,12}:\\d{1,9}$",
      "description": "Exact Firestore revision from active_order_notes_context; detects changes even if a native writer did not increment version."
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native version after this exact commit. Read notes context again before another edit."
    },
    "values": {
      "type": "object",
      "properties": {
        "comment": {
          "description": "Native order.Comment. Empty string explicitly clears this field.",
          "type": "string",
          "maxLength": 4000
        },
        "customerComment": {
          "description": "Native order.CommentClient. Omission preserves the existing customer note.",
          "type": "string",
          "maxLength": 4000
        },
        "productionComment": {
          "description": "Native order.CommentForProduction. This stores text; it does not submit to production or send a message.",
          "type": "string",
          "maxLength": 4000
        }
      },
      "additionalProperties": false,
      "description": "Exact committed patch; omitted comments were preserved."
    }
  },
  "required": [
    "orderId",
    "appliedFromRevision",
    "version",
    "values"
  ],
  "additionalProperties": false
}