<!--
Copyright © 2004 Chemical Industry Data Exchange. All rights reserved.
This schema and its use are subject to the statement appearing on
Page 1 of the Chem eStandards v4.0 Introduction, and to the license
agreement available during the Chem eStandards download process.
-->
<xsd:schema targetNamespace="urn:cidx:names:specification:ces:schema:all:4:0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:cidx:names:specification:ces:schema:all:4:0">
<xsd:include schemaLocation="CIDX_CeS_v4.0_CommonComponents.xsd"/>
<xsd:element name="ActualValue" type="ActualValueType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The calculated value of a distance, weight, volume or service from origin to destination.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="ActualValueType">
<xsd:sequence>
<xsd:element ref="Measurement"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BillTo" type="BillToType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The party that will receive the invoice for a delivery or service. The "bill to" may or may not be the payer an additional data element has been created "payer"</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="BillToType">
<xsd:sequence>
<xsd:element ref="PartnerInformation"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BorderCrossingPoint" type="BorderCrossingPointType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines a location where a carrier exits and enters another country for use in developing a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="BorderCrossingPointType">
<xsd:sequence>
<xsd:element ref="BorderExit"/>
<xsd:element ref="BorderEntry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BorderEntry" type="BorderEntryType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Location where a carrier enters a country for use in developing a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="BorderEntryType">
<xsd:sequence>
<xsd:element ref="CityName"/>
<xsd:element ref="County" minOccurs="0"/>
<xsd:element ref="StateOrProvince" minOccurs="0"/>
<xsd:element ref="PostalCountry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BorderExit" type="BorderExitType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Location where a carrier exits a country for use in developing a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="BorderExitType">
<xsd:sequence>
<xsd:element ref="CityName"/>
<xsd:element ref="County" minOccurs="0"/>
<xsd:element ref="StateOrProvince" minOccurs="0"/>
<xsd:element ref="PostalCountry"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Bureau" type="BureauType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The governing body for a tariff, such as a railroad</Description>
<SampleData>BLCQX</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="BureauType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="CarrierReferenceInformation" type="CarrierReferenceInformationType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Reference information assigned by the carrier to assist or track a shipment by the carrier.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="CarrierReferenceInformationType">
<xsd:sequence>
<xsd:element ref="DocumentReference"/>
</xsd:sequence>
<xsd:attribute name="ReferenceType" type="cidxListReferenceType" use="required"/>
</xsd:complexType>
<xsd:element name="County" type="CountyType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Name of the regional jurisdiction that the city resides in.</Description>
<SampleData>Bay
Cameron</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="CountyType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="DistanceBasis" type="DistanceBasisType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines the origins, destinations and points in between used to develop a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="DistanceBasisType">
<xsd:sequence>
<xsd:element ref="ShipFrom"/>
<xsd:element ref="ShipTo"/>
<xsd:element ref="BorderCrossingPoint" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBill" type="FreightBillType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description/>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillType">
<xsd:sequence>
<xsd:element ref="Header"/>
<xsd:element ref="FreightBillBody"/>
</xsd:sequence>
<xsd:attribute name="Version" type="cidxToken" use="required" fixed="4.0"/>
</xsd:complexType>
<xsd:element name="FreightBillBody" type="FreightBillBodyType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The body structure of the FreightBill message.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillBodyType">
<xsd:sequence>
<xsd:element ref="FreightBillProperties"/>
<xsd:element ref="FreightBillPartners"/>
<xsd:element ref="FreightBillDetails"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillDateTime" type="FreightBillDateTimeType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The date and optionally, time) placed on the bill for goods or services. For a VAT invoice, it is defined as the date on which the supply of goods/services was made/completed, for VAT purposes, or the date on which any payment on account was made, where this date can be determined and differs from the date of issue of the freight bill.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillDateTimeType">
<xsd:sequence>
<xsd:element ref="DateTime"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillDetails" type="FreightBillDetailsType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The details structure of the freight bill message</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillDetailsType">
<xsd:sequence>
<xsd:element ref="EquipmentDetails" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="FreightBillLineItem" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillIssueDate" type="FreightBillIssueDateType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The date and optionally, time) that the invoice was issued, where this differs from the FreightBillDateTime.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillIssueDateType">
<xsd:sequence>
<xsd:element ref="DateTime"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillLineItem" type="FreightBillLineItemType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Line item detail that makes up total invoice.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillLineItemType">
<xsd:sequence>
<xsd:element ref="LineNumber"/>
<xsd:element ref="EquipmentDetailsLineNumber" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="LadingIdentification" maxOccurs="unbounded"/>
<xsd:element ref="ProductIdentification"/>
<xsd:element ref="ProductQuantity"/>
<xsd:element ref="ShipDate" minOccurs="0"/>
<xsd:element ref="PurchaseOrderInformation" minOccurs="0"/>
<xsd:element ref="ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="DeliveryTerms" minOccurs="0"/>
<xsd:element ref="ShipmentMethodOfPaymentCode" minOccurs="0"/>
<xsd:element ref="CarrierReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="SpecialHandlingInformation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="TariffIdentification" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="FreightCharge" minOccurs="0"/>
<xsd:element ref="DistanceBasis" minOccurs="0"/>
<xsd:element ref="RateBasis" minOccurs="0"/>
<xsd:element ref="LineItemTaxableTotal" minOccurs="0"/>
<xsd:element ref="LineItemTotal"/>
<xsd:element ref="ShippingServiceLevelCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillNumber" type="FreightBillNumberType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Unique identifying number assigned by issuer for a given freight bill transaction.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillNumberType">
<xsd:sequence>
<xsd:element ref="DocumentIdentifier"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillPartners" type="FreightBillPartnersType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The partners structure of the freight bill message.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillPartnersType">
<xsd:sequence>
<xsd:element ref="BillTo"/>
<xsd:element ref="OtherPartner" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillProperties" type="FreightBillPropertiesType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The properties structure of the freight bill message.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillPropertiesType">
<xsd:sequence>
<xsd:element ref="FreightBillNumber"/>
<xsd:element ref="FreightBillDateTime"/>
<xsd:element ref="FreightBillIssueDate" minOccurs="0"/>
<xsd:element ref="ReverseChargeFlag" minOccurs="0"/>
<xsd:element ref="FreightBillType"/>
<xsd:element ref="FreightBillStatus"/>
<xsd:element ref="TransportMethodCode"/>
<xsd:element ref="ShipmentMethodOfPaymentCode" minOccurs="0"/>
<xsd:element ref="LoadTenderInformation"/>
<xsd:element ref="MarketPlaceInformation" minOccurs="0"/>
<xsd:element ref="ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ShipDate" minOccurs="0"/>
<xsd:element ref="LanguageCode" minOccurs="0"/>
<xsd:element ref="PrimaryCurrency"/>
<xsd:element ref="SecondCurrency" minOccurs="0"/>
<xsd:element ref="CurrencyRate" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="RoutingInstructions" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="RequestedDocument" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="DeliveryTerms" minOccurs="0"/>
<xsd:element ref="OtherPartner" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="FreightBillTotals"/>
<xsd:element ref="PaymentTerms" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillStatus" type="FreightBillStatusType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>This element identifies to the recipient the nature of the message - if this has been sent before and if so, what should the recipient do with this message.</Description>
<SampleData>Original</SampleData>
<CodeListName>CIDX FreightBillStatus</CodeListName>
<CodeList>Cancel
Change
Original
Replace</CodeList>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="FreightBillStatusType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="FreightBillTotal" type="FreightBillTotalType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Total amount payable including tax and related charges.</Description>
<SampleData>3593.88
12432.01</SampleData>
<Synonyms>InvoiceTotal</Synonyms>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillTotalType">
<xsd:sequence>
<xsd:element ref="MonetaryAmount"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillTotals" type="FreightBillTotalsType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Amount of freight bill including charges, less allowances before terms discount if discount is applicable.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightBillTotalsType">
<xsd:sequence>
<xsd:element ref="TotalLineItems" minOccurs="0"/>
<xsd:element ref="LineItemTotalAmount" minOccurs="0"/>
<xsd:element ref="FreightBillTotal"/>
<xsd:element ref="TaxOrDutyTotals" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="FreightBillType" type="FreightBillTypeType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Financial Classification of Invoice</Description>
<SampleData>BalanceDue</SampleData>
<CodeListName>CIDX FreightBillType</CodeListName>
<CodeList>Debit
Credit
BalanceDue</CodeList>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="FreightBillTypeType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="FreightCharge" type="FreightChargeType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Monetary amount for the freight portion of the line item total.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="FreightChargeType">
<xsd:sequence>
<xsd:element ref="MonetaryAmount"/>
<xsd:element ref="TaxOrDuty" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateBasis" type="RateBasisType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines the parameters used to develop a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateBasisType">
<xsd:sequence>
<xsd:element ref="RateUnitPrice"/>
<xsd:element ref="RateDistance" minOccurs="0"/>
<xsd:element ref="RateWeight" minOccurs="0"/>
<xsd:element ref="RateVolume" minOccurs="0"/>
<xsd:element ref="RateService" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateBasisType" type="RateBasisTypeType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines the type of rate basis used to determine charged value for a line haul charge.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateBasisTypeType">
<xsd:sequence>
<xsd:element ref="ActualValue"/>
<xsd:element ref="RatedValue"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateDistance" type="RateDistanceType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The determination of charged value for distance from origin to destination.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateDistanceType">
<xsd:sequence>
<xsd:element ref="RateBasisType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RatedValue" type="RatedValueType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The minimum value of a distance, weight, volume or service from origin to destination that will be charged..</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RatedValueType">
<xsd:sequence>
<xsd:element ref="Measurement"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateService" type="RateServiceType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The determination of charged value for special handling from origin to destination.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateServiceType">
<xsd:sequence>
<xsd:element ref="RateBasisType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateUnitPrice" type="RateUnitPriceType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines the cost per unit (mile, cwt, etc.) of the distance, quantity, volume or service element.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateUnitPriceType">
<xsd:sequence>
<xsd:element ref="Measurement"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateVolume" type="RateVolumeType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The determination of charged value for volume from origin to destination.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateVolumeType">
<xsd:sequence>
<xsd:element ref="RateBasisType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="RateWeight" type="RateWeightType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The determination of charged value for weight from origin to destination.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="RateWeightType">
<xsd:sequence>
<xsd:element ref="RateBasisType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SpecialHandlingInformation" type="SpecialHandlingInformationType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Amount charged for special handling and accessorial charges related to their transport</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="SpecialHandlingInformationType">
<xsd:sequence>
<xsd:element ref="AllowancesChargeCode"/>
<xsd:element ref="MonetaryAmount"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Tariff" type="TariffType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The publication number assigned by a tariff bureau.</Description>
<SampleData>A398</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="TariffType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="TariffIdentification" type="TariffIdentificationType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>The tariff governing the rate applied to the shipment.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="TariffIdentificationType">
<xsd:sequence>
<xsd:element ref="Bureau"/>
<xsd:element ref="Tariff"/>
<xsd:element ref="TariffSection"/>
<xsd:element ref="TariffItem"/>
<xsd:element ref="TariffSubItem" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="TariffItem" type="TariffItemType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>A sub-section within a section of a tariff.</Description>
<SampleData>CIRCL-28D</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="TariffItemType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="TariffSection" type="TariffSectionType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>A sub-section within a tariff</Description>
<SampleData>CSXT</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="TariffSectionType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="TariffSubItem" type="TariffSubItemType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>A sequential number within an item.</Description>
<SampleData>4</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="TariffSubItemType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
</xsd:schema>
|