1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Segments.CPS
15 import Text.Edifact.D96A.Simples (simple7075, simple7164, simple7166)
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
20 -- | Derived from this specification:
22 -- > CPS CONSIGNMENT PACKING SEQUENCE
24 -- > Function: To identify the sequence in which physical packing is
25 -- > presented in the consignment, and optionally to
26 -- > identify the hierarchical relationship between packing
29 -- > 010 7164 HIERARCHICAL ID. NUMBER M an..12
31 -- > 020 7166 HIERARCHICAL PARENT ID. C an..12
33 -- > 030 7075 PACKAGING LEVEL, CODED C an..3
35 -- Dependencies: 'simple7075', 'simple7164', 'simple7166'.
36 segmentCPS :: Parser Value
39 [ "010" .@ mandatory simple7164
40 , "020" .@ optional simple7166
41 , "030" .@ optional simple7075