{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/australia-post/main/json-schema/australia-post-presentation-catalogue-schema.json",
  "title": "PresentationCatalogue",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/australia-post-postage-api-openapi.yml#/components/schemas/PresentationCatalogue",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Item"
      }
    },
    "contentDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentDetails"
      }
    }
  },
  "$defs": {
    "Attribute": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "ContentDetails": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "details": {
          "type": "string"
        }
      }
    },
    "Item": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "Service",
            "Product",
            "ProductGroup",
            "Feature",
            "Price",
            "DeliveryEstimate",
            "Callout",
            "Reference"
          ]
        },
        "code": {
          "type": "string"
        },
        "parent": {
          "type": "string"
        },
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attribute"
          }
        },
        "availability": {
          "type": "string",
          "enum": [
            "INCLUDED",
            "INCLUDED_PRICE_ITEM",
            "NOT_AVAILABLE",
            "EXTRA",
            "FORMULA",
            "NOTE"
          ]
        },
        "groupIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}