1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Segments.GID
14 import Text.Edifact.D96A.Composites (compositeC213)
15 import Text.Edifact.D96A.Simples (simple1496)
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
20 -- | Derived from this specification:
22 -- > GID GOODS ITEM DETAILS
24 -- > Function: To indicate totals of a goods item.
26 -- > 010 1496 GOODS ITEM NUMBER C n..5
28 -- > 020 C213 NUMBER AND TYPE OF PACKAGES C
29 -- > 7224 Number of packages C n..8
30 -- > 7065 Type of packages identification C an..17
31 -- > 1131 Code list qualifier C an..3
32 -- > 3055 Code list responsible agency, coded C an..3
33 -- > 7064 Type of packages C an..35
35 -- > 030 C213 NUMBER AND TYPE OF PACKAGES C
36 -- > 7224 Number of packages C n..8
37 -- > 7065 Type of packages identification C an..17
38 -- > 1131 Code list qualifier C an..3
39 -- > 3055 Code list responsible agency, coded C an..3
40 -- > 7064 Type of packages C an..35
42 -- > 040 C213 NUMBER AND TYPE OF PACKAGES C
43 -- > 7224 Number of packages C n..8
44 -- > 7065 Type of packages identification C an..17
45 -- > 1131 Code list qualifier C an..3
46 -- > 3055 Code list responsible agency, coded C an..3
47 -- > 7064 Type of packages C an..35
49 -- Dependencies: 'compositeC213', 'simple1496'.
50 segmentGID :: Parser Value
53 [ "010" .@ optional simple1496
54 , "020" .@ optional compositeC213
55 , "030" .@ optional compositeC213
56 , "040" .@ optional compositeC213