diff options
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Composites/C203.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Composites/C203.hs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Composites/C203.hs b/specification/src/Text/Edifact/D96A/Composites/C203.hs new file mode 100644 index 0000000..d188bf1 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Composites/C203.hs | |||
@@ -0,0 +1,56 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Composites.C203 | ||
7 | ( -- * Definition | ||
8 | compositeC203 | ||
9 | -- * Dependencies | ||
10 | , simple1131 | ||
11 | , simple3055 | ||
12 | , simple5242 | ||
13 | , simple5243 | ||
14 | , simple5275 | ||
15 | ) where | ||
16 | |||
17 | import Text.Edifact.D96A.Simples (simple1131, simple3055, simple5242, | ||
18 | simple5243, simple5275) | ||
19 | |||
20 | import Text.Edifact.Parsing | ||
21 | import Text.Edifact.Types (Value) | ||
22 | |||
23 | -- | Derived from this specification: | ||
24 | -- | ||
25 | -- > C203 RATE/TARIFF CLASS | ||
26 | -- > | ||
27 | -- > Desc: Identification of the applicable rate/tariff class. | ||
28 | -- > | ||
29 | -- > 010 5243 Rate/tariff class identification M an..9 | ||
30 | -- > 020 1131 Code list qualifier C an..3 | ||
31 | -- > 030 3055 Code list responsible agency, coded C an..3 | ||
32 | -- > 040 5242 Rate/tariff class C an..35 | ||
33 | -- > 050 5275 Supplementary rate/tariff basis C an..6 | ||
34 | -- > identification | ||
35 | -- > 060 1131 Code list qualifier C an..3 | ||
36 | -- > 070 3055 Code list responsible agency, coded C an..3 | ||
37 | -- > 080 5275 Supplementary rate/tariff basis C an..6 | ||
38 | -- > identification | ||
39 | -- > 090 1131 Code list qualifier C an..3 | ||
40 | -- > 100 3055 Code list responsible agency, coded C an..3 | ||
41 | -- | ||
42 | -- Dependencies: 'simple1131', 'simple3055', 'simple5242', 'simple5243', 'simple5275'. | ||
43 | compositeC203 :: Parser Value | ||
44 | compositeC203 = | ||
45 | composite "C203" | ||
46 | [ "010" .@ mandatory simple5243 | ||
47 | , "020" .@ optional simple1131 | ||
48 | , "030" .@ optional simple3055 | ||
49 | , "040" .@ optional simple5242 | ||
50 | , "050" .@ optional simple5275 | ||
51 | , "060" .@ optional simple1131 | ||
52 | , "070" .@ optional simple3055 | ||
53 | , "080" .@ optional simple5275 | ||
54 | , "090" .@ optional simple1131 | ||
55 | , "100" .@ optional simple3055 | ||
56 | ] | ||