]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D96A/Composites/C402.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D96A / Composites / C402.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D96A.Composites.C402
7 ( -- * Definition
8 compositeC402
9 -- * Dependencies
10 , simple7064
11 , simple7077
12 , simple7143
13 ) where
14
15 import Text.Edifact.D96A.Simples (simple7064, simple7077, simple7143)
16
17 import Text.Edifact.Parsing
18 import Text.Edifact.Types (Value)
19
20 -- | Derived from this specification:
21 --
22 -- > C402 PACKAGE TYPE IDENTIFICATION
23 -- >
24 -- > Desc: Identification of the form in which goods are described.
25 -- >
26 -- > 010 7077 Item description type, coded M an..3
27 -- > 020 7064 Type of packages M an..35
28 -- > 030 7143 Item number type, coded C an..3
29 -- > 040 7064 Type of packages C an..35
30 -- > 050 7143 Item number type, coded C an..3
31 --
32 -- Dependencies: 'simple7064', 'simple7077', 'simple7143'.
33 compositeC402 :: Parser Value
34 compositeC402 =
35 composite "C402"
36 [ "010" .@ mandatory simple7077
37 , "020" .@ mandatory simple7064
38 , "030" .@ optional simple7143
39 , "040" .@ optional simple7064
40 , "050" .@ optional simple7143
41 ]