1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Segments.GIN
14 import Text.Edifact.D96A.Composites (compositeC208)
15 import Text.Edifact.D96A.Simples (simple7405)
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
20 -- | Derived from this specification:
22 -- > GIN GOODS IDENTITY NUMBER
24 -- > Function: To give specific identification numbers, either as
25 -- > single numbers or ranges.
27 -- > 010 7405 IDENTITY NUMBER QUALIFIER M an..3
29 -- > 020 C208 IDENTITY NUMBER RANGE M
30 -- > 7402 Identity number M an..35
31 -- > 7402 Identity number C an..35
33 -- > 030 C208 IDENTITY NUMBER RANGE C
34 -- > 7402 Identity number M an..35
35 -- > 7402 Identity number C an..35
37 -- > 040 C208 IDENTITY NUMBER RANGE C
38 -- > 7402 Identity number M an..35
39 -- > 7402 Identity number C an..35
41 -- > 050 C208 IDENTITY NUMBER RANGE C
42 -- > 7402 Identity number M an..35
43 -- > 7402 Identity number C an..35
45 -- > 060 C208 IDENTITY NUMBER RANGE C
46 -- > 7402 Identity number M an..35
47 -- > 7402 Identity number C an..35
49 -- Dependencies: 'compositeC208', 'simple7405'.
50 segmentGIN :: Parser Value
53 [ "010" .@ mandatory simple7405
54 , "020" .@ mandatory compositeC208
55 , "030" .@ optional compositeC208
56 , "040" .@ optional compositeC208
57 , "050" .@ optional compositeC208
58 , "060" .@ optional compositeC208