-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy path02_Green_to_Pink_receipt.xml
executable file
·145 lines (142 loc) · 6.25 KB
/
02_Green_to_Pink_receipt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="UTF-8"?>
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaVersion="0" creationDate="2001-12-17T09:30:47Z" xsi:schemaLocation="urn:epcglobal:epcis:xsd:1 http://www.gs1si.org/BMS/epcis/1_2/EPCglobal-epcis-1_2.xsd">
<EPCISHeader>
<sbdh:StandardBusinessDocumentHeader>
<sbdh:HeaderVersion>1.0</sbdh:HeaderVersion>
<sbdh:Sender>
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Pink</sbdh:Identifier>
<sbdh:ContactInformation>
<sbdh:Contact>Betty Johnson</sbdh:Contact>
<sbdh:EmailAddress>betty@pink.com</sbdh:EmailAddress>
</sbdh:ContactInformation>
</sbdh:Sender>
<sbdh:Receiver>
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Green</sbdh:Identifier> <!-- Creator PROVIDER_ID-->
<sbdh:ContactInformation>
<sbdh:Contact>Abraham Smith</sbdh:Contact>
<sbdh:EmailAddress>abraham_Smith@green.com</sbdh:EmailAddress>
</sbdh:ContactInformation>
</sbdh:Receiver>
<sbdh:DocumentIdentification>
<sbdh:Standard>GS1</sbdh:Standard>
<sbdh:TypeVersion>V1.3</sbdh:TypeVersion> <!-- Document version-->
<sbdh:InstanceIdentifier>100002</sbdh:InstanceIdentifier> <!-- UNIQUE IDENTIFIER OF DOCUMENT - PRIMARY KEY IN ERP -->
<sbdh:Type>Shipment</sbdh:Type> <!-- DEFINED IN SCHEMA Example; order, invoice, debitCreditAdvice -->
<sbdh:CreationDateAndTime>2018-01-02T11:32:52Z</sbdh:CreationDateAndTime>
</sbdh:DocumentIdentification>
<sbdh:BusinessScope>
<sbdh:Scope>
<sbdh:Type>BusinessProcess</sbdh:Type>
<sbdh:InstanceIdentifier>Receipt/version2-251</sbdh:InstanceIdentifier>
<sbdh:Identifier>EDI-Receipt</sbdh:Identifier>
</sbdh:Scope>
</sbdh:BusinessScope>
</sbdh:StandardBusinessDocumentHeader>
<extension>
<EPCISMasterData>
<VocabularyList>
<Vocabulary type="urn:ot:object:actor">
<VocabularyElementList>
<VocabularyElement id="urn:ot:object:actor:id:Company_Green">
<attribute id="urn:ot:object:actor:name">Green</attribute>
<attribute id="urn:ot:object:actor:category">Company producer</attribute>
<attribute id="urn:ot:object:actor:wallet">0xBbAaAd7BD40602B78C0649032D2532dEFa23A4C0</attribute>
</VocabularyElement>
<VocabularyElement id="urn:ot:object:actor:id:Company_Pink">
<attribute id="urn:ot:object:actor:name">Pink</attribute>
<attribute id="urn:ot:object:actor:category">Company</attribute>
<attribute id="urn:ot:object:actor:wallet">0xFfDDAd7BD40602B78C0649032D2532dEFa23A4C0</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:location">
<VocabularyElementList>
<VocabularyElement id="urn:epc:id:sgln:Building_Green">
<attribute id="urn:ot:object:location:category">Building</attribute>
<attribute id="urn:ot:object:location:description">Producer Warehouses</attribute>
<extension>
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Green</attribute>
</extension>
</VocabularyElement>
<VocabularyElement id="urn:epc:id:sgln:Building_Pink">
<attribute id="urn:ot:object:location:category">Building</attribute>
<attribute id="urn:ot:object:location:description">Pink distributor warehouse</attribute>
<children>
<id>urn:epc:id:sgln:Building_Pink_V3</id>
<id>urn:epc:id:sgln:Building_Pink_V4</id>
</children>
<extension>
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Pink</attribute>
</extension>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:product">
<VocabularyElementList>
<VocabularyElement id="urn:ot:object:product:id:Product_1">
<attribute id="urn:ot:object:product:category">Beverage</attribute>
<attribute id="urn:ot:object:product:description">Wine Pallet</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:batch">
<VocabularyElementList>
<VocabularyElement id="urn:epc:id:sgtin:Batch_1">
<attribute id="urn:ot:object:product:batch:productId">urn:ot:object:product:id:Product_1</attribute>
<attribute id="urn:ot:object:product:batch:productionDate">2017-31-12T00:01:54Z</attribute>
<attribute id="urn:ot:object:product:batch:expirationDate">2020-31-12T00:01:54Z</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
</VocabularyList>
</EPCISMasterData>
</extension>
</EPCISHeader>
<EPCISBody>
<EventList>
<ObjectEvent>
<!-- Transport Shipment-->
<eventTime>2018-01-02T11:00:00.000-04:00</eventTime>
<eventTimeZoneOffset>-04:00</eventTimeZoneOffset>
<epcList>
<epc>urn:epc:id:sgtin:Batch_1</epc>
</epcList>
<action>OBSERVE</action>
<bizStep>urn:epcglobal:cbv:bizstep:receiving</bizStep>
<disposition>urn:epcglobal:cbv:disp:active</disposition>
<readPoint>
<id>urn:epc:id:sgln:Building_Pink_V3</id>
</readPoint>
<bizLocation>
<id>urn:epc:id:sgln:Building_Pink</id>
</bizLocation>
<bizTransactionList>
<bizTransaction>
connectionId:0x611d771aAfaa3D6Fb66c4a81D97768300a6882D5
</bizTransaction>
</bizTransactionList>
<extension>
<quantityList>
<quantityElement>
<epcClass>urn:epc:id:sgtin:Batch_1</epcClass>
<quantity>10</quantity>
<uom>KG</uom>
</quantityElement>
</quantityList>
<extension>
<documentId>1</documentId>
<OTEventClass>urn:ot:event:Transport</OTEventClass>
<OTEventClass>urn:ot:event:Ownership</OTEventClass>
<OTEventType>Sales</OTEventType>
<sourceList>
<source type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Green</source>
</sourceList>
<destinationList>
<destination type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Pink</destination>
</destinationList>
</extension>
</extension>
</ObjectEvent>
</EventList>
</EPCISBody>
</epcis:EPCISDocument>