PurchaseOrder Schema
PurchaseOrder Schema / PurchaseOrderType Complex Type
In This Topic
    PurchaseOrderType Complex Type
    In This Topic
    Description
    Describes the purchase order.
    Namespace (none)
    Diagram
    item Element Sequence items Element comment Element zip Element state Element city Element street Element name Element Sequence billTo Element zip Element state Element city Element street Element name Element Sequence shipTo Element Sequence PurchaseOrderType Complex Type
    Overview
    PurchaseOrderType
    Describes the purchase order.
    orderDate optional xs:date
    The date of the order.
    Sequence
    shipTo USAddress Complex Type
    The shipping address.
    country optional xs:NMTOKEN
    The country name.
    Sequence
    name xs:string
    The name of the recipient.
    street xs:string
    The street name and house number.
    city xs:string
    The city name.
    state xs:string
    The state name.
    zip xs:decimal
    The zip code.
    billTo USAddress Complex Type
    The billing address.
    country optional xs:NMTOKEN
    The country name.
    Sequence
    name xs:string
    The name of the recipient.
    street xs:string
    The street name and house number.
    city xs:string
    The city name.
    state xs:string
    The state name.
    zip xs:decimal
    The zip code.
    comment optional xs:string
    Any comments about the order/item.
    items Items Complex Type
    The items in the order.
    Sequence
    item 0..∞
    Describes an item in the purchase order.
    Sequence
    productName xs:string
    The name of the product.
    quantity Restriction of xs:positiveInteger
    The number of units.
    USPrice xs:decimal
    The price of the item.
    comment optional xs:string
    Any comments about the order/item.
    shipDate optional xs:date
    The date the item was shipped.
    Used By
    Attributes
    NameTypeUseDefaultFixedDescription
    orderDatexs:dateoptional  The date of the order.
    Source
    <xs:complexType name="PurchaseOrderType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:annotation>
        <xs:documentation xml:lang="en">Describes the purchase order.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
        <xs:element name="shipTo" type="USAddress">
          <xs:annotation>
            <xs:documentation xml:lang="en">The shipping address.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="billTo" type="USAddress">
          <xs:annotation>
            <xs:documentation xml:lang="en">The billing address.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="comment" minOccurs="0" />
        <xs:element name="items" type="Items">
          <xs:annotation>
            <xs:documentation xml:lang="en">The items in the order.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="orderDate" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="en">The date of the order.</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
    See Also