1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Composites.C203
17 import Text.Edifact.D01B.Simples (simple1131, simple3055, simple5242,
18 simple5243, simple5275)
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
23 -- | Derived from this specification:
25 -- > C203 RATE/TARIFF CLASS
27 -- > Desc: Identification of the applicable rate/tariff class.
29 -- > 010 5243 Rate or tariff class description code M an..9
30 -- > 020 1131 Code list identification code C an..17
31 -- > 030 3055 Code list responsible agency code C an..3
32 -- > 040 5242 Rate or tariff class description C an..35
33 -- > 050 5275 Supplementary rate or tariff code C an..6
34 -- > 060 1131 Code list identification code C an..17
35 -- > 070 3055 Code list responsible agency code C an..3
36 -- > 080 5275 Supplementary rate or tariff code C an..6
37 -- > 090 1131 Code list identification code C an..17
38 -- > 100 3055 Code list responsible agency code C an..3
40 -- Dependencies: 'simple1131', 'simple3055', 'simple5242', 'simple5243', 'simple5275'.
41 compositeC203 :: Parser Value
44 [ "010" .@ mandatory simple5243
45 , "020" .@ optional simple1131
46 , "030" .@ optional simple3055
47 , "040" .@ optional simple5242
48 , "050" .@ optional simple5275
49 , "060" .@ optional simple1131
50 , "070" .@ optional simple3055
51 , "080" .@ optional simple5275
52 , "090" .@ optional simple1131
53 , "100" .@ optional simple3055