1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D96A.Composites.C203
17 import Text.Edifact.D96A.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/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
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
39 -- > 090 1131 Code list qualifier C an..3
40 -- > 100 3055 Code list responsible agency, coded C an..3
42 -- Dependencies: 'simple1131', 'simple3055', 'simple5242', 'simple5243', 'simple5275'.
43 compositeC203 :: Parser Value
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