{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loyaltyvip-com/json-schema/loyaltyvip-com-trip-schema.json",
  "title": "Trip",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loyaltyvip-com-openapi.yml#/components/schemas/Trip",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "casino_name": {
      "type": "string"
    },
    "property": {
      "type": [
        "string",
        "null"
      ]
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "end_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "coin_in": {
      "type": "number",
      "description": "Total coin-in across the trip's sessions (derived)."
    },
    "coin_out": {
      "type": "number",
      "description": "Total coin-out across the trip's sessions (derived)."
    },
    "theo": {
      "type": "number",
      "description": "Total theoretical loss across the trip's sessions (derived)."
    },
    "win_loss": {
      "type": "number",
      "description": "coin_out - coin_in across the trip's sessions (derived)."
    },
    "created_at": {
      "type": "string"
    }
  }
}