1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Segments.CPI
15 import Text.Edifact.D01B.Composites (compositeC229, compositeC231)
16 import Text.Edifact.D01B.Simples (simple4237)
18 import Text.Edifact.Parsing
19 import Text.Edifact.Types (Value)
21 -- | Derived from this specification:
23 -- > CPI CHARGE PAYMENT INSTRUCTIONS
25 -- > Function: To identify a charge.
27 -- > 010 C229 CHARGE CATEGORY C 1
28 -- > 5237 Charge category code M an..3
29 -- > 1131 Code list identification code C an..17
30 -- > 3055 Code list responsible agency code C an..3
32 -- > 020 C231 METHOD OF PAYMENT C 1
33 -- > 4215 Transport charges payment method code M an..3
34 -- > 1131 Code list identification code C an..17
35 -- > 3055 Code list responsible agency code C an..3
37 -- > 030 4237 PAYMENT ARRANGEMENT CODE C 1 an..3
39 -- Dependencies: 'compositeC229', 'compositeC231', 'simple4237'.
40 segmentCPI :: Parser Value
43 [ "010" .@ optional compositeC229
44 , "020" .@ optional compositeC231
45 , "030" .@ optional simple4237