All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.v2.1.system_pricing_plans.system_pricing_plans.json Maven / Gradle / Ivy

There is a newer version: 3.1.5
Show newest version
{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id":
    "https://github.com/NABSA/gbfs/blob/v2.1/gbfs.md#system_pricing_plansjson",
  "description": "Describes the pricing schemes of the system.",
  "type": "object",
  "properties": {
    "last_updated": {
      "description":
        "Last time the data in the feed was updated in POSIX time.",
      "type": "integer",
      "minimum": 1450155600
    },
    "ttl": {
      "description":
        "Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).",
      "type": "integer",
      "minimum": 0
    },
    "version": {
      "description":
        "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
      "type": "string",
      "const": "2.1"
    },
    "data": {
      "description":
        "Array that contains one object per plan as defined below.",
      "type": "object",
      "properties": {
        "plans": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "plan_id": {
                "description": "Identifier of a pricing plan in the system.",
                "type": "string"
              },
              "url": {
                "description":
                  "URL where the customer can learn more about this pricing plan.",
                "type": "string",
                "format": "uri"
              },
              "name": {
                "description": "Name of this pricing plan.",
                "type": "string"
              },
              "currency": {
                "description":
                  "Currency used to pay the fare in ISO 4217 code.",
                "type": "string",
                "pattern": "^\\w{3}$"
              },
              "price": {
                "description": "Fare price.",
                "type": "number",
                "minimum": 0
              },
              "is_taxable": {
                "description":
                  "Will additional tax be added to the base price?",
                "type": "boolean"
              },
              "description": {
                "description":
                  "Customer-readable description of the pricing plan.",
                "type": "string"
              }
            },
            "required": [
              "plan_id",
              "name",
              "currency",
              "price",
              "is_taxable",
              "description"
            ]
          }
        }
      },
      "required": ["plans"]
    }
  },
  "required": ["last_updated", "ttl", "version", "data"]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy