{
  "$id": "https://schema.nfh.global/Fare/v2.0",
  "x-iri": "https://schema.nfh.global/Fare/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Fare",
  "type": "object",
  "description": "The monetary cost of travel for a specific journey or service, calculated based on applicable fare rules and passenger categories.",
  "properties": {
    "fareId": {
      "description": "Unique identifier for the fare",
      "type": "string"
    },
    "amount": {
      "description": "Total fare amount",
      "type": "number"
    },
    "currency": {
      "description": "ISO 4217 currency code",
      "type": "string"
    },
    "fareAttributes": {
      "description": "Transfer permissions, agency, and transfer limit",
      "type": "string"
    },
    "fareRules": {
      "description": "Leg rules that determine when this fare applies",
      "$ref": "https://schema.nfh.global/FareLegRule/v2.0/schema.json"
    },
    "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"
  ]
}
