{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/askedthrice-com/json-schema/askedthrice-com-scan-allowance-schema.json",
  "title": "ScanAllowance",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/askedthrice-com-openapi.json#/components/schemas/ScanAllowance",
  "type": "object",
  "required": [
    "signedIn",
    "pass",
    "balance",
    "currency",
    "packs"
  ],
  "properties": {
    "signedIn": {
      "type": "boolean"
    },
    "pass": {
      "type": "boolean",
      "description": "True when the account holds the lifetime pass, which scans without charging."
    },
    "balance": {
      "type": "integer",
      "description": "Scans left on the account."
    },
    "currency": {
      "type": "string",
      "enum": [
        "ars",
        "usd"
      ]
    },
    "packs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Pack"
      }
    }
  },
  "$defs": {
    "Pack": {
      "type": "object",
      "title": "Pack",
      "required": [
        "scans",
        "price"
      ],
      "properties": {
        "scans": {
          "type": "integer",
          "enum": [
            1,
            5
          ]
        },
        "price": {
          "type": "string",
          "description": "Formatted price with its currency code, e.g. `USD 15` or `ARS 19.000`."
        }
      }
    }
  }
}