{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fairly-gg/json-schema/fairly-gg-api-response-of-iread-only-list-of-subscription-summary-model-schema.json",
  "title": "ApiResponseOfIReadOnlyListOfSubscriptionSummaryModel",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fairly-gg-api-openapi.json#/components/schemas/ApiResponseOfIReadOnlyListOfSubscriptionSummaryModel",
  "required": [
    "data",
    "fetched_at",
    "data_age_seconds",
    "stale"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/SubscriptionSummaryModel"
      }
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time"
    },
    "data_age_seconds": {
      "type": "integer",
      "format": "int64"
    },
    "stale": {
      "type": "boolean"
    },
    "region": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Region"
        }
      ]
    },
    "currency": {
      "type": [
        "null",
        "string"
      ]
    },
    "region_fallback": {
      "type": [
        "null",
        "boolean"
      ]
    },
    "attribution": {
      "type": "string"
    }
  },
  "$defs": {
    "Money": {
      "required": [
        "amount",
        "currency",
        "formatted"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string",
          "description": "USD, EUR, GBP or TRY."
        },
        "formatted": {
          "type": "string",
          "description": "Display text, e.g. \"€9.99\"."
        }
      }
    },
    "Region": {
      "enum": [
        "tr",
        "us",
        "eu",
        "gb",
        null
      ]
    },
    "SubscriptionSummaryModel": {
      "required": [
        "code",
        "name",
        "monthly_price",
        "catalog_count",
        "new_this_week",
        "leaving_soon"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "monthly_price": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/Money"
            }
          ]
        },
        "catalog_count": {
          "type": "integer",
          "format": "int32"
        },
        "new_this_week": {
          "type": "integer",
          "format": "int32"
        },
        "leaving_soon": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}