{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-authority-snapshot-info-doc-ok-response-schema.json",
  "title": "AuthoritySnapshotInfoDocOkResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-authorities-api-openapi.yml#/components/schemas/AuthoritySnapshotInfoDocOkResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "readOnly": true
    },
    "result": {
      "$ref": "#/$defs/AuthoritySnapshotInfoDoc"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddressCms": {
      "type": "object",
      "properties": {
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "AuthoritySnapshotInfoDoc": {
      "type": "object",
      "properties": {
        "ospsUrl": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/GeometryOspFeatureCollection"
          },
          "description": "Provides the URL where you can fetch the OSPs as a list of FeatureCollections by Zone ID"
        },
        "zonesUrl": {
          "$ref": "#/$defs/PolygonZoneFeatureCollection"
        },
        "setsUrl": {
          "$ref": "#/$defs/SetCollection"
        },
        "mtfsUrl": {
          "$ref": "#/$defs/MFeatureCollection"
        }
      },
      "additionalProperties": false
    },
    "Crs": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "properties": {
          "$ref": "#/$defs/CrsProperties"
        }
      },
      "additionalProperties": false
    },
    "CrsProperties": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "DaySpecificRestrictionExceptionCms": {
      "type": "object",
      "properties": {
        "publicHolidayOrNamedDayId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Reference to the applicable day defined on the Ylp.Reference.Contracts.Model.Country"
        },
        "restrictionExceptionTypeId": {
          "type": "integer",
          "description": "Type of exception that applies. See the reference API for more information",
          "format": "int32"
        },
        "operatingHours": {
          "$ref": "#/$defs/OperatingHoursCms"
        }
      },
      "additionalProperties": false
    },
    "ElectricConnectionCms": {
      "type": "object",
      "properties": {
        "type": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "quantity": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "ElectricPointCms": {
      "type": "object",
      "properties": {
        "manufacturer": {
          "type": [
            "string",
            "null"
          ]
        },
        "manufacturerContactNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "chargeFee": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "electricConnections": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ElectricConnectionCms"
          }
        }
      },
      "additionalProperties": false
    },
    "EmissionsBandCms": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier",
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Band name"
        },
        "emissions": {
          "$ref": "#/$defs/Int32Range"
        },
        "fuelTypes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/FuelTypeCms"
          },
          "description": "List of applicable fuel types\n\n*Petrol (1)\n*Diesel (2)\n*Hybrid (3)\n*Electric (4)\n*HydrogenFuelCell (5)\n*LPG (6)\n"
        },
        "registrationYears": {
          "$ref": "#/$defs/Int32Range"
        }
      },
      "additionalProperties": false
    },
    "EmissionsBandSet": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "formattedName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "emissionsBands": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmissionsBandCms"
          }
        }
      },
      "additionalProperties": false
    },
    "ExceptionsCms": {
      "type": "object",
      "properties": {
        "allHolidaysRestrictionExceptionTypeId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The exception type that applies on every public holiday",
          "format": "int32"
        },
        "allHolidaysOperatingHours": {
          "$ref": "#/$defs/OperatingHoursCms"
        },
        "daySpecificRestrictionExceptions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/DaySpecificRestrictionExceptionCms"
          },
          "description": "A list of Ylp.Cms.Core.Domain.Model.DaySpecificRestrictionExceptionCms for specific days"
        }
      },
      "additionalProperties": false
    },
    "ExceptionsSet": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "formattedName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "exceptions": {
          "$ref": "#/$defs/ExceptionsCms"
        }
      },
      "additionalProperties": false
    },
    "ExemptionCms": {
      "type": "object",
      "properties": {
        "exemptionTypeId": {
          "type": "integer",
          "description": "The type of the exemption. See the reference API for more information",
          "format": "int32"
        },
        "parkingEntitlementTypeId": {
          "type": "integer",
          "description": "The entitlement one must have to be eligible for this exemption. See the reference API for more information",
          "format": "int32"
        },
        "exemptionTimeTypeId": {
          "type": "integer",
          "description": "Time when the exemption is applicable. See the reference API for more information",
          "format": "int32"
        },
        "exemptionApplies": {
          "type": "boolean",
          "description": "Whether the exemption is in effect (this can be used to override a different exemption)"
        },
        "maxStay": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The maximum stay duration when eligible for this exemption",
          "format": "int32"
        },
        "noReturn": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The time before you can return to the same place after having reached the max stay duration",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "ExemptionsSet": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "formattedName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "exemptions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ExemptionCms"
          }
        }
      },
      "additionalProperties": false
    },
    "FuelTypeCms": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "type": "integer",
      "description": "\n\n*Petrol (1)\n*Diesel (2)\n*Hybrid (3)\n*Electric (4)\n*HydrogenFuelCell (5)\n*LPG (6)\n",
      "format": "int32"
    },
    "Geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "crs": {
          "$ref": "#/$defs/Crs"
        }
      },
      "additionalProperties": false
    },
    "GeometryOspFeature": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "geometry": {
          "$ref": "#/$defs/Geometry"
        },
        "properties": {
          "$ref": "#/$defs/Osp"
        }
      },
      "additionalProperties": false
    },
    "GeometryOspFeatureCollection": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/GeometryOspFeature"
          }
        },
        "properties": {}
      },
      "additionalProperties": false
    },
    "HoursCms": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "description": "ISO-8601 time pattern, extended as required to accommodate nanoseconds."
        },
        "end": {
          "type": "string",
          "description": "ISO-8601 time pattern, extended as required to accommodate nanoseconds."
        }
      },
      "additionalProperties": false
    },
    "Int32Range": {
      "type": "object",
      "properties": {
        "min": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "max": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "LatLng": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "LinkedEntitlementSet": {
      "type": "object",
      "properties": {
        "setGuid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the applicable set."
        },
        "parkingEntitlementTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "The entitlement IDs to which this set applies. See the reference API for more information."
        }
      },
      "additionalProperties": false,
      "description": "A SetId and a list of EntitlementTypeIds linked to a particular restriction type on an OSP or Zone entity."
    },
    "LinkedSet": {
      "type": "object",
      "properties": {
        "setGuid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the applicable set."
        }
      },
      "additionalProperties": false,
      "description": "A SetId linked to a particular restriction type on an OSP or Zone entity. The set cannot support Entitlements."
    },
    "MFeature": {
      "type": "object",
      "properties": {
        "geoType": {
          "type": [
            "string",
            "null"
          ]
        },
        "featureId": {
          "type": "string",
          "format": "uuid"
        },
        "featureType": {
          "$ref": "#/$defs/MovingTrafficFeatureType"
        },
        "authorityId": {
          "type": "string",
          "format": "uuid"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "streetName": {
          "type": [
            "string",
            "null"
          ]
        },
        "guid": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "MFeatureCollection": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MFeature"
          }
        },
        "properties": {}
      },
      "additionalProperties": false
    },
    "MonthAndDayCms": {
      "type": "object",
      "properties": {
        "month": {
          "type": "integer",
          "format": "int32"
        },
        "day": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "MovingTrafficFeatureType": {
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22
      ],
      "type": "integer",
      "description": "\n\n*WeightLimitEnvironmental (0)\n*HeightLimit (1)\n*WidthLimit (2)\n*LengthLimit (3)\n*SpeedLimit (4)\n*ProhibitedTurn (5)\n*ProhibitedEntry (6)\n*PrescribedTurn (7)\n*OneWay (8)\n*CycleLane (9)\n*BusLane (10)\n*YellowBoxJunction (11)\n*PlayStreetZone (12)\n*PedestrianZone (13)\n*PedestrianAndCycleZone (14)\n*SpeedLimitZone (15)\n*ProhibitedAccess (16)\n*ProhibitedOvertaking (17)\n*BusGate (18)\n*WeightLimitStructural (19)\n*HighOccupancyVehicleLane (20)\n*Route (21)\n*Greenway (22)\n",
      "format": "int32"
    },
    "NoteCms": {
      "type": "object",
      "properties": {
        "noteVisibilityTypeId": {
          "type": "integer",
          "description": "See the Reference API for more information on types of visibility for notes.",
          "format": "int32"
        },
        "appliesToRestrictionTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "priority": {
          "type": "integer",
          "format": "int32"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "telephone": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "OperatingHoursCms": {
      "type": "object",
      "properties": {
        "standardDays": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/RuleCms"
          },
          "description": "List of Ylp.Cms.Core.Domain.Model.RuleCms applicable on normal days"
        },
        "eventDays": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/RuleCms"
          },
          "description": "List of Ylp.Cms.Core.Domain.Model.RuleCms applicable on event days in an associated venue"
        }
      },
      "additionalProperties": false
    },
    "OperatingHoursSet": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "formattedName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "operatingHours": {
          "$ref": "#/$defs/OperatingHoursCms"
        }
      },
      "additionalProperties": false
    },
    "Osp": {
      "type": "object",
      "properties": {
        "onStreetParkingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the OSP"
        },
        "zoneId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the zone this OSP belongs to"
        },
        "authorityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the authority this OSP belongs to"
        },
        "address": {
          "$ref": "#/$defs/AddressCms"
        },
        "length": {
          "type": [
            "number",
            "null"
          ],
          "description": "Length in meters of the OSP. Can be null",
          "format": "double"
        },
        "bays": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of bays that are in this OSP",
          "format": "int32"
        },
        "restrictionTypeDetails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SetRestrictionDetail"
          },
          "description": "Information about which set of restrictions apply to this OSP"
        },
        "notes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/NoteCms"
          },
          "description": "List of free text information about this OSP"
        },
        "electricPoint": {
          "$ref": "#/$defs/ElectricPointCms"
        },
        "venueId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The venue to which this OSP is linked to. This determines when an OSP should follow the event day restriction instead of standard operating hours"
        },
        "sourceTag": {
          "type": [
            "string",
            "null"
          ],
          "description": "Internal tracking ID"
        },
        "sensorIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "List of sensors that are linked to the OSP (obsolete)"
        },
        "centroid": {
          "$ref": "#/$defs/LatLng"
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "linkedOspIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "IDs of any OSPs that are 'linked' to this one. When calculating parking availability and cost, the restrictions of any linked OSPs should\nbe taken into account as well as the restrictions of this OSP. Used for scenarios where multiple OSPs apply to the same section of kerb."
        }
      },
      "additionalProperties": false
    },
    "Polygon": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "crs": {
          "$ref": "#/$defs/Crs"
        },
        "coordinates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          }
        }
      },
      "additionalProperties": false
    },
    "PolygonZoneFeature": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "geometry": {
          "$ref": "#/$defs/Polygon"
        },
        "properties": {
          "$ref": "#/$defs/Zone"
        }
      },
      "additionalProperties": false
    },
    "PolygonZoneFeatureCollection": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "features": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PolygonZoneFeature"
          }
        },
        "properties": {}
      },
      "additionalProperties": false
    },
    "RuleCms": {
      "type": "object",
      "properties": {
        "ruleTime": {
          "$ref": "#/$defs/RuleTimeCms"
        },
        "parkingEntitlementTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Determines who this rule applies to. See the reference API for more information"
        },
        "maxStay": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Maximum stay duration in minutes.",
          "format": "int32"
        },
        "minStay": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Minimum stay duration in minutes.",
          "format": "int32"
        },
        "noReturn": {
          "type": [
            "integer",
            "null"
          ],
          "description": "No return duration in minutes.",
          "format": "int32"
        },
        "noReturnUntil": {
          "type": [
            "string",
            "null"
          ],
          "description": "No return duration in minutes."
        }
      },
      "additionalProperties": false
    },
    "RuleTimeCms": {
      "type": "object",
      "properties": {
        "months": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "days": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Applicable Days"
        },
        "weekNumbers": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "Week number to apply Days"
        },
        "hours": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HoursCms"
          }
        },
        "firstDate": {
          "$ref": "#/$defs/MonthAndDayCms"
        },
        "lastDate": {
          "$ref": "#/$defs/MonthAndDayCms"
        }
      },
      "additionalProperties": false
    },
    "SetCollection": {
      "type": "object",
      "properties": {
        "operatingHoursSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/OperatingHoursSet"
          }
        },
        "exemptionsSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ExemptionsSet"
          }
        },
        "exceptionsSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ExceptionsSet"
          }
        },
        "tariffSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/TariffSet"
          }
        },
        "emissionsBandSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmissionsBandSet"
          }
        },
        "isEmpty": {
          "type": "boolean",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "SetRestrictionDetail": {
      "type": "object",
      "properties": {
        "restrictionTypeId": {
          "type": "integer",
          "description": "Type of the bay this restriction applies to. See the reference API for more information",
          "format": "int32"
        },
        "operatingHoursSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/LinkedEntitlementSet"
          },
          "description": "Indicates the hours of operation when the restriction is in effect."
        },
        "exceptionsSet": {
          "$ref": "#/$defs/LinkedSet"
        },
        "locationNumber": {
          "type": [
            "string",
            "null"
          ],
          "description": "Used in conjunction with the payment provider on the authority to determine how the charge the user"
        },
        "terminalIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The IDs of the payment terminals available at this OSP."
        },
        "exemptionsSet": {
          "$ref": "#/$defs/LinkedSet"
        },
        "tariffsSet": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/LinkedEntitlementSet"
          },
          "description": "Indicates the applicable tariffs in the case of restrictions that can have a tariff"
        }
      },
      "additionalProperties": false
    },
    "SurchargeType": {
      "enum": [
        0,
        1
      ],
      "type": "integer",
      "description": "\n\n*Flat (0)\n*Percentage (1)\n",
      "format": "int32"
    },
    "TariffDetailCms": {
      "type": "object",
      "properties": {
        "price": {
          "type": "integer",
          "description": "The price in pence charged for parking for the indicated\nYlp.Cms.Core.Domain.Model.TariffDetailCms.Duration.",
          "format": "int32"
        },
        "surchargeDetail": {
          "$ref": "#/$defs/TariffDetailSurchargeCms"
        },
        "emissionsAdjustments": {
          "$ref": "#/$defs/TariffEmissionsAdjustmentSetCms"
        },
        "duration": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The duration in minutes for which you can park if you pay\nYlp.Cms.Core.Domain.Model.TariffDetailCms.Price. Null if there is a fixed charge regardless\nof duration.",
          "format": "int32"
        },
        "minimumPriceIncrement": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The smallest unit by which the price can increment. If null, then\nthe minimum increment will be the same as Ylp.Cms.Core.Domain.Model.TariffDetailCms.Price.",
          "format": "int32"
        },
        "singlePaymentCanCrossMidnight": {
          "type": "boolean",
          "description": "Indicates whether a payment of one minimum increment is allowed\nto cross over midnight."
        },
        "from": {
          "type": "integer",
          "description": "The offset in minutes into a parking session from which this rate\napplies.",
          "format": "int32"
        },
        "upTo": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Set on variable rate tariffs to indicate the maximum stay length\nfor which this entry applies.",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "One entry in the tariff details in a\nYlp.Cms.Core.Domain.Model.TariffForTimesAndDatesCms."
    },
    "TariffDetailSurchargeCms": {
      "type": "object",
      "properties": {
        "surchargeType": {
          "type": "integer",
          "description": "Required property that determines how surcharge is calculated",
          "format": "int32"
        },
        "surchargeTypeEnum": {
          "$ref": "#/$defs/SurchargeType"
        },
        "value": {
          "type": [
            "integer",
            "null"
          ],
          "description": "",
          "format": "int32"
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "Additional of Surcharge including Rules"
        },
        "ruleType": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "TariffEmissionsAdjustmentCms": {
      "type": "object",
      "properties": {
        "emissionsBandId": {
          "type": "string",
          "description": "Identifier of the corresponding Ylp.Cms.Core.Domain.Model.EmissionsBandCms.",
          "format": "uuid"
        },
        "amount": {
          "type": "integer",
          "description": "Amout in pence by which to adjust the price. A positive value represents a surcharge, a negative value represents a discount.",
          "format": "int32"
        },
        "surchargeDetail": {
          "$ref": "#/$defs/TariffDetailSurchargeCms"
        }
      },
      "additionalProperties": false,
      "description": "An adjustment to a tariff for vehicles that fall into a specified Ylp.Cms.Core.Domain.Model.EmissionsBandCms."
    },
    "TariffEmissionsAdjustmentSetCms": {
      "type": "object",
      "properties": {
        "emissionsBandSetId": {
          "type": "string",
          "description": "Identifier of the corresponding Ylp.Cms.Core.Domain.Model.Sets.EmissionsBandSet.",
          "format": "uuid"
        },
        "adjustments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/TariffEmissionsAdjustmentCms"
          },
          "description": "The adjustments to apply to the tariff. There should be one entry for each band in the corresponding Ylp.Cms.Core.Domain.Model.Sets.EmissionsBandSet."
        }
      },
      "additionalProperties": false,
      "description": "A set of adjustments to the price defined in a Ylp.Cms.Core.Domain.Model.TariffDetailCms according to the bands defined in a Ylp.Cms.Core.Domain.Model.Sets.EmissionsBandSet."
    },
    "TariffForTimesAndDatesCms": {
      "type": "object",
      "properties": {
        "setName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the tariff set to which this tariff belongs."
        },
        "parkingEntitlementTypeIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "The payment types for which these tariff details apply."
        },
        "details": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/TariffDetailCms"
          },
          "description": "The details of the tariff that applies for the entitlement types\nand dates indicated by this entry."
        },
        "timeFrom": {
          "type": [
            "string",
            "null"
          ],
          "description": "For tariffs that vary by time of day, this indicates the\n(inclusive) start time from which these particular tariff details\napply."
        },
        "timeTo": {
          "type": [
            "string",
            "null"
          ],
          "description": "For tariffs that vary by time of day, this indicates the\n(exclusive) end time to which these particular tariff details\napply."
        },
        "firstDate": {
          "$ref": "#/$defs/MonthAndDayCms"
        },
        "lastDate": {
          "$ref": "#/$defs/MonthAndDayCms"
        },
        "months": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "The months of the year on which these details apply."
        },
        "days": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "The days of the week (1 = Mon, 7 = Sun) on which these details\napply."
        },
        "timeType": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Indicates the Type of Tariff",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "Contains tariff details applicable to a particular set of dates and\ntimes, and for a particular set of entitlement types."
    },
    "TariffSet": {
      "type": "object",
      "properties": {
        "guid": {
          "type": "string",
          "format": "uuid"
        },
        "setId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "formattedName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "tariffs": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/TariffForTimesAndDatesCms"
          }
        }
      },
      "additionalProperties": false
    },
    "Zone": {
      "type": "object",
      "properties": {
        "zoneId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the zone"
        },
        "authorityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the authority this zone belongs to"
        },
        "parentZoneId": {
          "type": [
            "string",
            "null"
          ],
          "description": "GUID of the zone in which this zone is contained (can be null)"
        },
        "type": {
          "$ref": "#/$defs/ZoneType"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the zone"
        },
        "restrictionTypeDetails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZoneSetRestrictionDetail"
          },
          "description": "Default restrictions that apply in this zone"
        },
        "notes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/NoteCms"
          },
          "description": "Free text notes applicable to this zone"
        },
        "venueId": {
          "type": [
            "string",
            "null"
          ],
          "description": "VenueID to which this zone is associated. This will influence when event day operating hours are in effect"
        },
        "sourceTag": {
          "type": [
            "string",
            "null"
          ],
          "description": "Internal tracking code"
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "ZoneSetRestrictionDetail": {
      "type": "object",
      "properties": {
        "restrictionTypeId": {
          "type": "integer",
          "description": "Type of the bay this restriction applies to. See the reference API for more information",
          "format": "int32"
        },
        "operatingHoursSets": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/LinkedEntitlementSet"
          },
          "description": "Indicates the hours of operation when the restriction is in effect."
        },
        "exceptionsSet": {
          "$ref": "#/$defs/LinkedSet"
        }
      },
      "additionalProperties": false
    },
    "ZoneType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        7,
        8,
        9,
        10,
        11,
        12
      ],
      "type": "integer",
      "description": "Known zone types.\n\n*ControlledParkingZone (1) - An ordinary zone in which authority-defined restrictions are in place.\n*RestrictedParkingZone (2) - A zone in which parking is never allowed.\n*FreeParking (3) - A zone in which parking is always allowed.\n*Private (4) - A region not under authority control (such as a shopping centre).\n*CongestionCharge (5) - A region in which congestion charges apply.\n*Container (7) - A zone that exists to contain OSPs that don't really belong in a zone.\n*ResidentsParkingScheme (8) - Same structure as a controlled parking zone\n*PermitParkingArea (9) - Area of residential streets where parking is reserved for permit holders Gn++n++ a sign at the entrance to the street will show that parking is for permit holders only. \nPPAs may not have signs or bay markings within them. Sometimes there may be small plates to remind motorists of the controls in place\n*PedestrianZone (10) - Area where no parking is allowed\n*PedestrianAndCycleZone (11) - Area where no parking is allowed\n*Estate (12) - A housing estate under authority control.\n",
      "format": "int32"
    }
  }
}