<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="InventoryAvailabilityResponse">
    <xsd:annotation>
      <xsd:documentation>This is the root element of the schema.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Response" type="ResponseType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>This element group is for basic response information from a web service host.</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="ItemResponse" type="ItemResponseType" maxOccurs="unbounded">
          <xsd:annotation>
            <xsd:documentation>This element is for specific information about the product (Line Item) ordered. It must be repeated for every product.</xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="ItemResponseType">
    <xsd:annotation>
      <xsd:documentation>This element is for specific response information about the product (Line Item) in the original message. It must be repeated for every product.</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="LineNumber" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>This element is for use in identifying which line of the original message is being responded to.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Status" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for indicating the status of this line item alone. If the SubmitStatus element in the response group above has been used to show the status of all line items, this element should not be used.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Note" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for explaining the status of this line item alone, or for providing other human readable information unique to it.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="ProductID">
        <xsd:annotation>
          <xsd:documentation>This element is for the product Id  which was assigned by the manufacturer of the item.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:simpleContent>
            <xsd:extension base="xsd:string">
              <xsd:attribute name="Substituted" type="xsd:string">
                <xsd:annotation>
                  <xsd:documentation>This attribute is to be used to signify the part number in this element is that of a part substituted for the item originally requested.</xsd:documentation>
                </xsd:annotation>
              </xsd:attribute>
              <xsd:attribute name="Supercedes" type="xsd:string">
                <xsd:annotation>
                  <xsd:documentation>This attribute is to be used to signify that the part number in this element is that of a part that supercedes the item originally requested.</xsd:documentation>
                </xsd:annotation>
              </xsd:attribute>
            </xsd:extension>
          </xsd:simpleContent>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="PartManufacturer" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>This element is for specifying the manufacturer of the item.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Description" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for a text description of the part or product.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Quantity">
        <xsd:annotation>
          <xsd:documentation>This element is for the quantity of this item specified in the original message (ie .. PO or Inquiry).</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:simpleContent>
            <xsd:extension base="xsd:int">
              <xsd:attribute name="Measure" type="xsd:string" use="required">
                <xsd:annotation>
                  <xsd:documentation>This attribute is for specifying the unit of measure based on a code list.</xsd:documentation>
                </xsd:annotation>
              </xsd:attribute>
            </xsd:extension>
          </xsd:simpleContent>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="AvailableQuantity">
        <xsd:annotation>
          <xsd:documentation>This element is for specifying a quantity of this item immediately available.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:simpleContent>
            <xsd:extension base="xsd:int">
              <xsd:attribute name="Measure" type="xsd:string" use="required">
                <xsd:annotation>
                  <xsd:documentation>This attribute is for specifying the unit of measure based on a code list.</xsd:documentation>
                </xsd:annotation>
              </xsd:attribute>
            </xsd:extension>
          </xsd:simpleContent>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="RemainderDisposition" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for a disposition with regard to any remainder quantity not immediately available.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="EstimatedAvailableDate" type="xsd:date" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for an estimated date when the remainder quantity will be available.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="UnitCost" type="xsd:decimal" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for the actual unit cost specified by the seller.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="UnitList" type="xsd:decimal" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for the manufacturer&apos;s list price.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:complexType name="ResponseType">
    <xsd:annotation>
      <xsd:documentation>This element group is for basic response information from a web service host.</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="SubmitId" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>This element is for the SubmitId that was provided in the original message. It is the number the submitter&apos;s system assigned.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="RecipientId" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for the internal Id assigned to the original message by the web service host. It is used to advise the original submitter how the host is identifying the original message within its system.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="SubmitStatus" type="xsd:string">
        <xsd:annotation>
          <xsd:documentation>This element is for advising the submitter of the status of the original message.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:element name="Note" type="xsd:string" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>This element is for free text which will provide whatever additional information the web service host chooses to provide.</xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>

