1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Segments.GIN
14 import Text.Edifact.D01B.Composites (compositeC208)
15 import Text.Edifact.D01B.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
25 -- > as single numbers or ranges.
27 -- > 010 7405 OBJECT IDENTIFICATION CODE QUALIFIER M 1 an..3
29 -- > 020 C208 IDENTITY NUMBER RANGE M 1
30 -- > 7402 Object identifier M an..35
31 -- > 7402 Object identifier C an..35
33 -- > 030 C208 IDENTITY NUMBER RANGE C 1
34 -- > 7402 Object identifier M an..35
35 -- > 7402 Object identifier C an..35
37 -- > 040 C208 IDENTITY NUMBER RANGE C 1
38 -- > 7402 Object identifier M an..35
39 -- > 7402 Object identifier C an..35
41 -- > 050 C208 IDENTITY NUMBER RANGE C 1
42 -- > 7402 Object identifier M an..35
43 -- > 7402 Object identifier C an..35
45 -- > 060 C208 IDENTITY NUMBER RANGE C 1
46 -- > 7402 Object identifier M an..35
47 -- > 7402 Object identifier 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