{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listings-api/json-schema/listings-api-location-summary-type-schema.json",
  "title": "LocationSummaryType",
  "description": "Summary view of a business location.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listings-api-locations-api-openapi.yml#/components/schemas/LocationSummaryType",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "databaseId": {
      "type": "integer",
      "format": "int32"
    },
    "storeId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "street": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "stateIso": {
      "type": "string"
    },
    "countryIso": {
      "type": "string"
    },
    "postalCode": {
      "type": "string"
    },
    "latitude": {
      "type": "number",
      "format": "float"
    },
    "longitude": {
      "type": "number",
      "format": "float"
    },
    "phone": {
      "type": "string"
    },
    "website": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/LocationStatusType"
    },
    "primaryGbpSiteCategoryId": {
      "type": "string"
    },
    "additionalGbpSiteCategoryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "serviceArea": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServiceAreaType"
      }
    },
    "placeActionLinks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlaceActionLinkType"
      }
    },
    "discoveredPlaceActionLinks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlaceActionLinkType"
      }
    }
  },
  "required": [
    "id",
    "name"
  ],
  "$defs": {
    "LocationStatusType": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "ARCHIVED",
        "PENDING",
        "TEMPORARILY_CLOSED",
        "SCHEDULED_FOR_ARCHIVE"
      ],
      "description": "Lifecycle states of a location."
    },
    "PlaceActionLinkType": {
      "type": "object",
      "description": "A Google place action link (ordering, delivery, takeout, reservation, appointment, etc.).",
      "properties": {
        "placeActionType": {
          "type": "string"
        },
        "uri": {
          "type": "string"
        },
        "isPreferred": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "providerType": {
          "type": "string"
        },
        "isEditable": {
          "type": "boolean"
        },
        "submissionStatus": {
          "type": "string"
        },
        "submissionMessage": {
          "type": "string"
        },
        "submissionCode": {
          "type": "string"
        },
        "lastSubmittedAt": {
          "type": "string"
        }
      },
      "required": [
        "placeActionType",
        "uri"
      ]
    },
    "PlaceInfoType": {
      "type": "object",
      "properties": {
        "placeId": {
          "type": "string"
        },
        "placeName": {
          "type": "string"
        }
      },
      "required": [
        "placeId"
      ]
    },
    "ServiceAreaType": {
      "type": "object",
      "properties": {
        "businessType": {
          "type": "string"
        },
        "regionCode": {
          "type": "string"
        },
        "placeInfos": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlaceInfoType"
          }
        }
      }
    }
  }
}