{
  "$id": "https://schema.nfh.global/AncillaryService/v2.0",
  "x-iri": "https://schema.nfh.global/AncillaryService/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AncillaryService",
  "type": "object",
  "description": "An optional or additional service available for purchase alongside base transport, such as extra baggage or lounge access.",
  "properties": {
    "serviceCode": {
      "description": "IATA service code (e.g. BG for extra baggage)",
      "type": "string"
    },
    "serviceCategory": {
      "description": "Category of the ancillary service",
      "type": "string"
    },
    "maxQuantity": {
      "description": "Maximum quantity of this service that can be purchased",
      "type": "number"
    },
    "id": {
      "description": "Unique identifier for the offer",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the offer",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "price": {
      "description": "Price specification for this offer",
      "$ref": "https://schema.nfh.global/PriceSpecification/v2.1/schema.json"
    },
    "validity": {
      "description": "Validity period of the offer",
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "tags": {
      "description": "Tags or labels associated with the offer",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "schema-org",
    "ride-hailing"
  ]
}
