diff options
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Composites/C213.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Composites/C213.hs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Composites/C213.hs b/specification/src/Text/Edifact/D96A/Composites/C213.hs new file mode 100644 index 0000000..cf3fc36 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Composites/C213.hs | |||
@@ -0,0 +1,44 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Composites.C213 | ||
7 | ( -- * Definition | ||
8 | compositeC213 | ||
9 | -- * Dependencies | ||
10 | , simple1131 | ||
11 | , simple3055 | ||
12 | , simple7064 | ||
13 | , simple7065 | ||
14 | , simple7224 | ||
15 | ) where | ||
16 | |||
17 | import Text.Edifact.D96A.Simples (simple1131, simple3055, simple7064, | ||
18 | simple7065, simple7224) | ||
19 | |||
20 | import Text.Edifact.Parsing | ||
21 | import Text.Edifact.Types (Value) | ||
22 | |||
23 | -- | Derived from this specification: | ||
24 | -- | ||
25 | -- > C213 NUMBER AND TYPE OF PACKAGES | ||
26 | -- > | ||
27 | -- > Desc: Number and type of individual parts of a shipment. | ||
28 | -- > | ||
29 | -- > 010 7224 Number of packages C n..8 | ||
30 | -- > 020 7065 Type of packages identification C an..17 | ||
31 | -- > 030 1131 Code list qualifier C an..3 | ||
32 | -- > 040 3055 Code list responsible agency, coded C an..3 | ||
33 | -- > 050 7064 Type of packages C an..35 | ||
34 | -- | ||
35 | -- Dependencies: 'simple1131', 'simple3055', 'simple7064', 'simple7065', 'simple7224'. | ||
36 | compositeC213 :: Parser Value | ||
37 | compositeC213 = | ||
38 | composite "C213" | ||
39 | [ "010" .@ optional simple7224 | ||
40 | , "020" .@ optional simple7065 | ||
41 | , "030" .@ optional simple1131 | ||
42 | , "040" .@ optional simple3055 | ||
43 | , "050" .@ optional simple7064 | ||
44 | ] | ||