{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-clinic-controller-clinic-schema.json",
  "title": "RESTCollectionModelBase_OpenApiClinicController.Clinic",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-clinic-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiClinicController.Clinic",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiClinicController.Clinic"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiClinicController.Clinic": {
      "description": "Clinic REST model.",
      "type": "object",
      "properties": {
        "clinicAddress": {
          "$ref": "#/$defs/OpenApiClinicController.ClinicAddress",
          "description": "The related ClinicAddress entity."
        },
        "clinicSetting": {
          "$ref": "#/$defs/OpenApiClinicController.ClinicSetting",
          "description": "The clinic setting, contains additional clinic info"
        },
        "email": {
          "description": "The clinic's email address.",
          "type": "string"
        },
        "fax": {
          "description": "The clinic's fax number.",
          "type": "string"
        },
        "groupId": {
          "format": "uuid",
          "description": "Unique identifier of the related Group entity.",
          "type": "string"
        },
        "info": {
          "description": "The clinic additional information.",
          "type": "string"
        },
        "name": {
          "description": "The clinic name.",
          "type": "string"
        },
        "phone": {
          "description": "The clinic's phone number.",
          "type": "string"
        },
        "smsNumber": {
          "description": "The clinic's SMS number.",
          "type": "string"
        },
        "taxRate": {
          "format": "double",
          "description": "Represents the tax rate applied to the clinic's services.",
          "type": "number"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClinicController.ClinicAddress": {
      "description": "ClinicAddress REST model.",
      "type": "object",
      "properties": {
        "address1": {
          "description": "Address Line 1 should include the most essential details to identify a location clearly (e.g. street and number).",
          "type": "string"
        },
        "address2": {
          "description": "Address Line 2 should be used to capture additional information that doesn't fit into Address Line 1. This line is essential for adding specific details to ensure accurate delivery or location identification (e.g. apt Apt 12C).",
          "type": "string"
        },
        "city": {
          "description": "Name of the city where the clinic is located.",
          "type": "string"
        },
        "clinicId": {
          "description": "Unique identifier of the clinic associated with this address.",
          "type": "string"
        },
        "state": {
          "description": "Name  of the state, province, or region.",
          "type": "string"
        },
        "zipCode": {
          "description": "ZIP or postal code of the clinic's location.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClinicController.ClinicSetting": {
      "description": "Clinic Setting REST model, contains additional clinic info",
      "type": "object",
      "properties": {
        "clinicId": {
          "description": "Unique identifier of the related Clinic entity",
          "type": "string"
        },
        "country": {
          "$ref": "#/$defs/OpenApiClinicController.Country",
          "description": "Information of The country that the Clinic comes from."
        },
        "currency": {
          "$ref": "#/$defs/OpenApiClinicController.Currency",
          "description": "The currency that the Clinic uses"
        },
        "isBoardingOverlapEnabled": {
          "description": "If this value is set to true, the clinic can have overlapping boardings. If set to false, the clinic cannot have overlapping boardings.",
          "type": "boolean"
        },
        "isInventoryEnabled": {
          "description": "Value indicating whether clinic has is inventory enabled.",
          "type": "boolean"
        },
        "isInventoryTrackingEnabled": {
          "description": "Value indicating whether clinic has inventory tracking enabled.",
          "type": "boolean"
        },
        "isScheduleTemplateEnabled": {
          "description": "Flag indicating whether clinic has schedule template enabled. If this flag is set to true, ScheduleTemplateAppointment endpoint can be used.",
          "type": "boolean"
        },
        "isTemplatesDefinedByDay": {
          "description": "Gets or sets a value indicating whether this instance is templates defined by day.",
          "type": "boolean"
        },
        "taxRateTypeId": {
          "format": "uuid",
          "description": "Unique identifier of the related TaxRateType entity.",
          "type": "string"
        },
        "temperatureUnit": {
          "$ref": "#/$defs/OpenApiClinicController.TemperatureUnit",
          "description": "The temperature unit that is set as default for the Clinic."
        },
        "timeZone": {
          "description": "The Clinic's time zone.",
          "type": "string"
        },
        "website": {
          "description": "The Clinic's website.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClinicController.Country": {
      "description": "Country REST model",
      "type": "object",
      "properties": {
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClinicController.Currency": {
      "description": "Currency REST model",
      "type": "object",
      "properties": {
        "code": {
          "description": "The currency code, (e.g \"USD\")",
          "type": "string"
        },
        "currencyName": {
          "description": "The currency name.",
          "type": "string"
        },
        "description": {
          "description": "The currency description.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClinicController.TemperatureUnit": {
      "description": "Temperature Unit REST model",
      "type": "object",
      "properties": {
        "abrv": {
          "description": "Short unique identifier for the lookup.",
          "type": "string"
        },
        "description": {
          "description": "The description of the lookup entry.",
          "type": "string"
        },
        "name": {
          "description": "The name of the lookup entry.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    }
  }
}