{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-pricing-period-modification-api3-dto-schema.json",
  "title": "PricingPeriodModificationApi3Dto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-pricing-periods-api-openapi.yml#/components/schemas/PricingPeriodModificationApi3Dto",
  "required": [
    "operation",
    "pricingPeriod"
  ],
  "type": "object",
  "properties": {
    "operation": {
      "type": "string",
      "enum": [
        "REMOVE",
        "SET"
      ]
    },
    "pricingPeriod": {
      "$ref": "#/$defs/PricingPeriodSavingApi3Dto"
    }
  },
  "$defs": {
    "PricingPeriodSavingApi3Dto": {
      "required": [
        "date",
        "propertyUid"
      ],
      "type": "object",
      "properties": {
        "propertyUid": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date"
        },
        "price": {
          "type": "number"
        },
        "minimumStay": {
          "type": "integer",
          "format": "int32"
        },
        "availableForCheckIn": {
          "type": "boolean"
        },
        "availableForCheckOut": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}