{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/ShippingConditions/v1/schema.json",
  "title": "ShippingConditions",
  "description": "Objects Grid ShippingConditions. Where and for what a ShippingService's rate applies: destination, order value, weight, number of items. Free shipping above an amount is a second condition whose orderValue starts there, with a rate of 0. Stored inside the ShippingService. Modeled in compliance with https://schema.org/ShippingConditions.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "ShippingConditions"
      ]
    },
    "shippingDestination": {
      "description": "Where it ships to; everywhere when not given",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/DefinedRegion/v1/schema.json"
      },
      "maxItems": 50
    },
    "shippingOrigin": {
      "description": "Where it ships from",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/DefinedRegion/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "orderValue": {
      "description": "The order values it applies to: minValue and maxValue",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/MonetaryAmount/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "weight": {
      "description": "The weights it applies to: minValue and maxValue, with unitCode",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/QuantitativeValue/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "numItems": {
      "description": "The numbers of items it applies to: minValue and maxValue",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/QuantitativeValue/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "shippingRate": {
      "description": "What shipping costs under these conditions",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/MonetaryAmount/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "transitTime": {
      "description": "How long delivery takes, e.g. 1 to 3 days (unitCode DAY)",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/QuantitativeValue/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "doesNotShip": {
      "description": "True when it doesn't ship under these conditions",
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "unevaluatedProperties": false
}
