<schema targetNamespace="http://www.api.org/pidXML" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pidx="http://www.api.org/pidXML" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2">
<annotation>
<documentation>
<schemaName>OrderChange</schemaName>
<copyright>American Petroleum Institute (API), Petroleum Industry Data Exchange (PIDX) 2006</copyright>
<schemaVersion>1.2</schemaVersion>
<description>OrderChange element serves as the root node for PIDX transactions.</description>
</documentation>
</annotation>
<include schemaLocation="PIDXLib.xsd"/>
<element name="OrderChange">
<complexType>
<sequence>
<element ref="pidx:OrderChangeProperties"/>
<element ref="pidx:OrderChangeDetails"/>
<element ref="pidx:OrderChangeSummary"/>
</sequence>
<attribute ref="pidx:transactionPurposeIndicator" use="required"/>
<attribute ref="pidx:version" use="optional"/>
</complexType>
</element>
<element name="OrderChangeDetails">
<complexType>
<sequence>
<element ref="pidx:OrderChangeLineItem" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="OrderChangeLineItem">
<complexType>
<sequence>
<element ref="pidx:LineItemNumber"/>
<element ref="pidx:ItemDetailChangeCode"/>
<element ref="pidx:LineItemInformation"/>
<element ref="pidx:OrderQuantity"/>
<element ref="pidx:PurchaseOrderLineItemNumber" minOccurs="0"/>
<element ref="pidx:CommodityCode" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:PartnerInformation" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:JobLocationInformation" minOccurs="0"/>
<element ref="pidx:Pricing" minOccurs="0"/>
<element ref="pidx:AllowanceOrCharge" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Tax" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:LineItemTotal" minOccurs="0"/>
<element ref="pidx:ServiceDateTime" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:CountryOfOrigin" minOccurs="0"/>
<element ref="pidx:CountryOfFinalDestination" minOccurs="0"/>
<element ref="pidx:TransportInformation" minOccurs="0"/>
<element ref="pidx:PaymentTerms" minOccurs="0"/>
<element ref="pidx:CreditCardInformation" minOccurs="0"/>
<element ref="pidx:SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="pidx:PackagingCharacteristicCode" minOccurs="0"/>
<element ref="pidx:PackagingCharacteristicDescription" minOccurs="0"/>
</sequence>
<element ref="pidx:ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Attachment" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Comment" minOccurs="0"/>
<element ref="pidx:OrderChangeSubLineItem" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="OrderChangeProperties">
<complexType>
<sequence>
<element ref="pidx:OrderChangeNumber"/>
<element ref="pidx:OrderChangeDate"/>
<element ref="pidx:PurchaseOrderInformation"/>
<element ref="pidx:PartnerInformation" minOccurs="2" maxOccurs="unbounded"/>
<element ref="pidx:SequenceNumber" minOccurs="0"/>
<element ref="pidx:SpecialInvoicePreference" minOccurs="0"/>
<element ref="pidx:PrimaryCurrency" minOccurs="0"/>
<element ref="pidx:SecondCurrency" minOccurs="0"/>
<element ref="pidx:LanguageCode" minOccurs="0"/>
<element ref="pidx:JobLocationInformation" minOccurs="0"/>
<element ref="pidx:ServiceDateTime" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:CountryOfOrigin" minOccurs="0"/>
<element ref="pidx:CountryOfFinalDestination" minOccurs="0"/>
<element ref="pidx:TransportInformation" minOccurs="0"/>
<element ref="pidx:PaymentTerms" minOccurs="0"/>
<element ref="pidx:CreditCardInformation" minOccurs="0"/>
<element ref="pidx:SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Attachment" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Comment" minOccurs="0"/>
</sequence>
</complexType>
</element>
<element name="OrderChangeSubLineItem">
<complexType>
<sequence>
<element ref="pidx:SubLineItemNumber"/>
<element ref="pidx:LineItemInformation"/>
<element ref="pidx:ItemDetailChangeCode"/>
<element ref="pidx:OrderQuantity"/>
<element ref="pidx:PurchaseOrderSubLineItemNumber" minOccurs="0"/>
<element ref="pidx:CommodityCode" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:PartnerInformation" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:JobLocationInformation" minOccurs="0"/>
<element ref="pidx:Pricing" minOccurs="0"/>
<element ref="pidx:AllowanceOrCharge" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Tax" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:LineItemTotal" minOccurs="0"/>
<element ref="pidx:ServiceDateTime" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:CountryOfOrigin" minOccurs="0"/>
<element ref="pidx:CountryOfFinalDestination" minOccurs="0"/>
<element ref="pidx:TransportInformation" minOccurs="0"/>
<element ref="pidx:PaymentTerms" minOccurs="0"/>
<element ref="pidx:CreditCardInformation" minOccurs="0"/>
<element ref="pidx:SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="pidx:PackagingCharacteristicCode" minOccurs="0"/>
<element ref="pidx:PackagingCharacteristicDescription" minOccurs="0"/>
</sequence>
<element ref="pidx:ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Attachment" minOccurs="0" maxOccurs="unbounded"/>
<element ref="pidx:Comment" minOccurs="0"/>
</sequence>
</complexType>
</element>
<element name="OrderChangeSummary">
<complexType>
<sequence>
<element ref="pidx:TotalLineItems"/>
<element ref="pidx:TotalAmount" minOccurs="0"/>
</sequence>
</complexType>
</element>
</schema>
|