{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-agreement-acceptance-response-schema.json",
  "title": "AgreementAcceptanceResponse",
  "description": "Acceptance record",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-agreements-api-openapi.yml#/components/schemas/AgreementAcceptanceResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "customer_id": {
      "type": "string",
      "format": "uuid",
      "title": "Customer Id"
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Id"
    },
    "license_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "License Id"
    },
    "agreement_version_id": {
      "type": "string",
      "format": "uuid",
      "title": "Agreement Version Id"
    },
    "accepted_at": {
      "type": "string",
      "format": "date-time",
      "title": "Accepted At"
    },
    "accepted_ip": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted Ip"
    },
    "accepted_user_agent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted User Agent"
    },
    "accepted_locale": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted Locale"
    },
    "accepted_via": {
      "type": "string",
      "title": "Accepted Via"
    },
    "evidence": {
      "type": "object",
      "title": "Evidence"
    }
  },
  "type": "object",
  "required": [
    "id",
    "customer_id",
    "company_id",
    "license_id",
    "agreement_version_id",
    "accepted_at",
    "accepted_ip",
    "accepted_user_agent",
    "accepted_locale",
    "accepted_via",
    "evidence"
  ]
}