Created
April 29, 2020 11:20
-
-
Save cjmamo/6b6a4698f2e791246b452aa5a142a71e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmEdiFmt="http://www.ibm.com/dfdl/EDI/Format"> | |
<xsd:import namespace="http://www.ibm.com/dfdl/EDI/Format" | |
schemaLocation="/EDIFACT-Common/IBM_EDI_Format.dfdl.xsd"/> | |
<xsd:annotation> | |
<xsd:appinfo source="http://www.ogf.org/dfdl/"> | |
<dfdl:format ref="ibmEdiFmt:EDIFormat"/> | |
</xsd:appinfo> | |
</xsd:annotation> | |
<xsd:element name="Order"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:sequence dfdl:initiatedContent="yes"> | |
<xsd:element dfdl:initiator="HDR" dfdl:ref="ibmEdiFmt:EDISegmentFormat" name="header"> | |
<xsd:complexType> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentSequenceFormat"> | |
<xsd:element name="order-id" type="xsd:string"/> | |
<xsd:element name="status-code" type="xsd:string"/> | |
<xsd:element name="net-amount" type="xsd:string"/> | |
<xsd:element name="total-amount" type="xsd:string"/> | |
<xsd:element name="tax" type="xsd:string"/> | |
<xsd:element name="date" type="xsd:string"/> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element dfdl:initiator="CUS" dfdl:ref="ibmEdiFmt:EDISegmentFormat" name="customer-details"> | |
<xsd:complexType> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentSequenceFormat"> | |
<xsd:element name="username" type="xsd:string"/> | |
<xsd:element name="name"> | |
<xsd:complexType> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDICompositeSequenceFormat"> | |
<xsd:element name="firstname" type="xsd:string"/> | |
<xsd:element name="lastname" type="xsd:string"/> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element name="state" type="xsd:string"/> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:element dfdl:initiator="ORD" name="order-item" maxOccurs="unbounded"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentFormat"> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentSequenceFormat"> | |
<xsd:element name="position" type="xsd:string"/> | |
<xsd:element name="quantity" type="xsd:string"/> | |
<xsd:element name="product-id" type="xsd:string"/> | |
<xsd:element name="title" type="xsd:string"/> | |
<xsd:element name="price" type="xsd:string"/> | |
</xsd:sequence> | |
</xsd:sequence> | |
<xsd:element dfdl:initiator="QTY" dfdl:ref="ibmEdiFmt:EDISegmentFormat" name="quantity"> | |
<xsd:complexType> | |
<xsd:sequence dfdl:ref="ibmEdiFmt:EDISegmentSequenceFormat"> | |
<xsd:element name="amount" type="xsd:integer" dfdl:textNumberPattern=""/> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:sequence> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:element> | |
</xsd:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment