{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-core-policy-tax-mode-input-schema.json",
  "title": "CorePolicyTaxModeInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-core-accounting-api-openapi.yml#/components/schemas/CorePolicyTaxModeInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "valid_from",
    "mode"
  ],
  "properties": {
    "valid_from": {
      "type": "string",
      "format": "date",
      "description": "0001-01-01 — с начала учёта, если по юрлицу ещё нет проведённых документов"
    },
    "mode": {
      "type": "string",
      "enum": [
        "deductible",
        "non_deductible",
        "none"
      ]
    },
    "tax_currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Налоговая валюта юрлица; не передана — RUB. Меняется вместе с версией режима: с даты, по которой есть проведённые документы, — отказ 409."
    }
  }
}