{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scoala-ro/json-schema/scoala-ro-package-schema.json",
  "title": "Package",
  "description": "Pachet de abonament.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scoala-ro-openapi.json#/components/schemas/Package",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "parameter": {
      "type": "string"
    },
    "shortTitle": {
      "type": "string"
    },
    "longTitle": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "price": {
      "type": "number"
    },
    "listPrice": {
      "type": [
        "number",
        "null"
      ]
    },
    "discountedPrice": {
      "type": "number"
    },
    "firstMonthPrice": {
      "type": [
        "number",
        "null"
      ]
    },
    "firstMonthAfterTrialPrice": {
      "type": [
        "number",
        "null"
      ]
    },
    "trialDays": {
      "type": [
        "integer",
        "null"
      ]
    },
    "couponDiscountMonths": {
      "type": [
        "integer",
        "null"
      ]
    },
    "badgeContent": {
      "type": [
        "string",
        "null"
      ]
    },
    "priceNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "secondPriceNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "period": {
      "type": [
        "string",
        "null"
      ]
    },
    "benefits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer"
          },
          "BenefitText": {
            "type": "string"
          }
        }
      }
    }
  }
}