{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traydstar-com/json-schema/traydstar-com-handshake-schema.json",
  "title": "Handshake",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traydstar-com-openapi.json#/components/schemas/Handshake",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "proposal_id": {
      "type": "string",
      "format": "uuid"
    },
    "party_a_id": {
      "type": "string",
      "format": "uuid"
    },
    "party_b_id": {
      "type": "string",
      "format": "uuid"
    },
    "party_a_paid": {
      "type": "boolean",
      "description": "Party A's side is settled (paid or covered)."
    },
    "party_b_paid": {
      "type": "boolean"
    },
    "party_a_completed": {
      "type": "boolean"
    },
    "party_b_completed": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING_PAYMENT",
        "ACTIVE",
        "DISPUTED",
        "COMPLETED",
        "CANCELLED"
      ]
    },
    "terms_summary": {
      "type": [
        "string",
        "null"
      ],
      "description": "Detail only."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "status"
  ]
}