{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-lead-api-v3-1-alteration-request-dto-schema.json",
  "title": "LeadApiV3_1AlterationRequestDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-leads-api-openapi.yml#/components/schemas/LeadApiV3_1AlterationRequestDto",
  "type": "object",
  "properties": {
    "checkInLocalDateTime": {
      "type": "string"
    },
    "checkOutLocalDateTime": {
      "type": "string"
    },
    "checkInLocalDate": {
      "type": "string",
      "description": "Check in date. Will apply property's default check in time. For specifying different time, use checkInLocalDateTime.",
      "format": "date"
    },
    "checkOutLocalDate": {
      "type": "string",
      "description": "Check in date. Will apply property's default check in time. For specifying different time, use checkInLocalDateTime.",
      "format": "date"
    },
    "propertyUid": {
      "type": "string",
      "description": "New property to change the lead to. Lead must meet property requirements and property availability."
    },
    "adultCount": {
      "minimum": 1,
      "type": "integer",
      "format": "int32"
    },
    "childrenCount": {
      "minimum": 0,
      "type": "integer",
      "format": "int32"
    },
    "petCount": {
      "minimum": 0,
      "type": "integer",
      "format": "int32"
    },
    "infantCount": {
      "minimum": 0,
      "type": "integer",
      "format": "int32"
    },
    "quoteOverrides": {
      "$ref": "#/$defs/QuoteOverridesApi3Dto"
    },
    "unitUid": {
      "type": "string",
      "description": "New unit to change the lead to. Unit must meet availability and turnover requirements."
    }
  },
  "$defs": {
    "PriceOverridesApi3Dto": {
      "required": [
        "netPrice"
      ],
      "type": "object",
      "properties": {
        "netPrice": {
          "type": "number"
        },
        "taxationRate": {
          "type": "number"
        }
      }
    },
    "QuoteFeeOverridesApi3Dto": {
      "type": "object",
      "properties": {
        "feeId": {
          "type": "integer",
          "format": "int32",
          "deprecated": true
        },
        "feeUid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "amountType": {
          "type": "string",
          "enum": [
            "AMOUNT",
            "TAX"
          ]
        },
        "amount": {
          "type": "number"
        },
        "taxationRate": {
          "type": "number"
        },
        "scope": {
          "type": "string",
          "enum": [
            "PER_NIGHT",
            "PER_STAY",
            "PER_GUEST_PER_NIGHT",
            "PER_GUEST",
            "PER_PET",
            "PER_PET_PER_NIGHT",
            "PERCENTAGE_OF_TOTAL",
            "PERCENTAGE_OF_RENT"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "CLEANING",
            "EARLY_ARRIVAL",
            "LATE_DEPARTURE",
            "PET",
            "TAX",
            "CUSTOM"
          ]
        },
        "isOptional": {
          "type": "boolean"
        },
        "netPrice": {
          "type": "number"
        },
        "enabled": {
          "type": "boolean"
        },
        "removed": {
          "type": "boolean"
        }
      }
    },
    "QuoteFeesOverridesApi3Dto": {
      "type": "object",
      "properties": {
        "cleaningFee": {
          "$ref": "#/$defs/PriceOverridesApi3Dto"
        },
        "otherFees": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuoteFeeOverridesApi3Dto"
          }
        }
      }
    },
    "QuoteOverridesApi3Dto": {
      "type": "object",
      "properties": {
        "rent": {
          "$ref": "#/$defs/QuoteRentOverridesApi3Dto"
        },
        "securityDeposit": {
          "type": "number"
        },
        "fees": {
          "$ref": "#/$defs/QuoteFeesOverridesApi3Dto"
        },
        "totalPrice": {
          "type": "number"
        },
        "force100PercentPaymentAtReservation": {
          "type": "boolean"
        }
      }
    },
    "QuoteRentOverridesApi3Dto": {
      "type": "object",
      "properties": {
        "rentBaseNetPrice": {
          "type": "number"
        },
        "rentNetPrice": {
          "type": "number"
        },
        "extraGuestsNetPrice": {
          "type": "number"
        },
        "taxationRate": {
          "type": "number"
        },
        "taxAmount": {
          "type": "number"
        },
        "extraGuestsBaseNetPrice": {
          "type": "number"
        }
      }
    }
  }
}