{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:Demand",
  "title": "Demand",
  "description": "A demand entity represents the public, not necessarily binding, not necessarily exclusive, announcement by an organization or person to seek a certain type of goods or services. For describing demand using this type, the very same properties used for Offer apply.",
  "type": "object",
  "allOf": [
    {
      "description": "A utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.",
      "$ref": "schema:Intangible"
    }
  ],
  "properties": {
    "acceptedPaymentMethod": {
      "description": "The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.",
      "anyOf": [
        { "type": "string" },
        { "$ref": "schema:LoanOrCredit" },
        { "$ref": "schema:PaymentMethod" }
      ]
    },
    "advanceBookingRequirement": {
      "description": "The amount of time that is required between accepting the offer and the actual usage of the resource or service.",
      "$ref": "schema:QuantitativeValue"
    },
    "areaServed": {
      "description": "The geographic area where a service or offered item is provided.",
      "anyOf": [
        { "type": "string" },
        { "$ref": "schema:AdministrativeArea" },
        { "$ref": "schema:GeoShape" },
        { "$ref": "schema:Place" }
      ]
    },
    "asin": {
      "description": "An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article).\n\nNote also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details.\nASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.",
      "oneOf": [
        {
          "anyOf": [{ "type": "string", "format": "uri" }, { "type": "string" }]
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              { "type": "string", "format": "uri" },
              { "type": "string" }
            ]
          }
        }
      ]
    },
    "availability": {
      "description": "The availability of this item—for example In stock, Out of stock, Pre-order, etc.",
      "$ref": "schema:ItemAvailability"
    },
    "availabilityEnds": {
      "description": "The end of the availability of the product or service included in the offer.",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" },
        { "type": "string", "format": "time" }
      ]
    },
    "availabilityStarts": {
      "description": "The beginning of the availability of the product or service included in the offer.",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" },
        { "type": "string", "format": "time" }
      ]
    },
    "availableAtOrFrom": {
      "description": "The place(s) from which the offer can be obtained (e.g. store locations).",
      "$ref": "schema:Place"
    },
    "availableDeliveryMethod": {
      "description": "The delivery method(s) available for this offer.",
      "$ref": "schema:DeliveryMethod"
    },
    "businessFunction": {
      "description": "The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.",
      "$ref": "schema:BusinessFunction"
    },
    "deliveryLeadTime": {
      "description": "The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.",
      "$ref": "schema:QuantitativeValue"
    },
    "eligibleCustomerType": {
      "description": "The type(s) of customers for which the given offer is valid.",
      "$ref": "schema:BusinessEntityType"
    },
    "eligibleDuration": {
      "description": "The duration for which the given offer is valid.",
      "$ref": "schema:QuantitativeValue"
    },
    "eligibleQuantity": {
      "description": "The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.",
      "$ref": "schema:QuantitativeValue"
    },
    "eligibleRegion": {
      "description": "The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\\n\\nSee also [[ineligibleRegion]].\n    ",
      "anyOf": [
        { "type": "string" },
        { "$ref": "schema:GeoShape" },
        { "$ref": "schema:Place" }
      ]
    },
    "eligibleTransactionVolume": {
      "description": "The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.",
      "$ref": "schema:PriceSpecification"
    },
    "gtin": {
      "description": "A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes.\n\nA correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a \"GS1 Digital Link\" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties.\n\nThe GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) expresses GTINs as URLs (URIs, IRIs, etc.).\nDigital Links should be populated into the [[hasGS1DigitalLink]] attribute.\n\nNote also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.",
      "oneOf": [
        {
          "anyOf": [{ "type": "string", "format": "uri" }, { "type": "string" }]
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              { "type": "string", "format": "uri" },
              { "type": "string" }
            ]
          }
        }
      ]
    },
    "gtin12": {
      "description": "The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.",
      "type": "string"
    },
    "gtin13": {
      "description": "The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.",
      "type": "string"
    },
    "gtin14": {
      "description": "The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.",
      "type": "string"
    },
    "gtin8": {
      "description": "The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.",
      "type": "string"
    },
    "includesObject": {
      "description": "This links to a node or nodes indicating the exact quantity of the products included in  an [[Offer]] or [[ProductCollection]].",
      "oneOf": [
        { "$ref": "schema:TypeAndQuantityNode" },
        { "type": "array", "items": { "$ref": "schema:TypeAndQuantityNode" } }
      ]
    },
    "ineligibleRegion": {
      "description": "The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\\n\\nSee also [[eligibleRegion]].\n      ",
      "anyOf": [
        { "type": "string" },
        { "$ref": "schema:GeoShape" },
        { "$ref": "schema:Place" }
      ]
    },
    "inventoryLevel": {
      "description": "The current approximate inventory level for the item or items.",
      "$ref": "schema:QuantitativeValue"
    },
    "itemCondition": {
      "description": "A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.",
      "oneOf": [
        { "$ref": "schema:OfferItemCondition" },
        { "type": "array", "items": { "$ref": "schema:OfferItemCondition" } }
      ]
    },
    "itemOffered": {
      "description": "An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.",
      "anyOf": [
        { "$ref": "schema:AggregateOffer" },
        { "$ref": "schema:CreativeWork" },
        { "$ref": "schema:Event" },
        { "$ref": "schema:MenuItem" },
        { "$ref": "schema:Product" },
        { "$ref": "schema:Service" },
        { "$ref": "schema:Trip" }
      ]
    },
    "mpn": {
      "description": "The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.",
      "type": "string"
    },
    "priceSpecification": {
      "description": "One or more detailed price specifications, indicating the unit price and delivery or payment charges.",
      "oneOf": [
        { "$ref": "schema:PriceSpecification" },
        { "type": "array", "items": { "$ref": "schema:PriceSpecification" } }
      ]
    },
    "seller": {
      "description": "An entity which offers (sells / leases / lends / loans) the services / goods.  A seller may also be a provider.",
      "anyOf": [{ "$ref": "schema:Organization" }, { "$ref": "schema:Person" }]
    },
    "serialNumber": {
      "description": "The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer.",
      "type": "string"
    },
    "sku": {
      "description": "The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.",
      "type": "string"
    },
    "validFrom": {
      "description": "The date when the item becomes valid.",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" }
      ]
    },
    "validThrough": {
      "description": "The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" }
      ]
    },
    "warranty": {
      "description": "The warranty promise(s) included in the offer.",
      "$ref": "schema:WarrantyPromise"
    }
  }
}
