{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aegeanbot-com/json-schema/aegeanbot-com-pricing-in-schema.json",
  "title": "PricingIn",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/app-aegeanbot-com-openapi.json#/components/schemas/PricingIn",
  "properties": {
    "months": {
      "items": {
        "$ref": "#/$defs/PricingRuleIn"
      },
      "type": "array",
      "title": "Months"
    },
    "cancellation_policy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancellation Policy"
    },
    "always_use_fallback": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Always Use Fallback"
    }
  },
  "type": "object",
  "required": [
    "months"
  ],
  "$defs": {
    "PricingRuleIn": {
      "properties": {
        "month": {
          "type": "integer",
          "title": "Month"
        },
        "is_open": {
          "type": "boolean",
          "title": "Is Open",
          "default": true
        },
        "min_stay": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Stay"
        },
        "advance_notice_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Advance Notice Days"
        },
        "base_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Base Price"
        },
        "min_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Price"
        },
        "max_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Price"
        },
        "ai_pricing": {
          "type": "boolean",
          "title": "Ai Pricing",
          "default": false
        },
        "bot_discount_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bot Discount Pct"
        }
      },
      "type": "object",
      "required": [
        "month"
      ],
      "title": "PricingRuleIn"
    }
  }
}