]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Segments/CPI.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / CPI.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Segments.CPI
7 ( -- * Definition
8 segmentCPI
9 -- * Dependencies
10 , compositeC229
11 , compositeC231
12 , simple4237
13 ) where
14
15 import Text.Edifact.D01B.Composites (compositeC229, compositeC231)
16 import Text.Edifact.D01B.Simples (simple4237)
17
18 import Text.Edifact.Parsing
19 import Text.Edifact.Types (Value)
20
21 -- | Derived from this specification:
22 --
23 -- > CPI CHARGE PAYMENT INSTRUCTIONS
24 -- >
25 -- > Function: To identify a charge.
26 -- >
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
31 -- >
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
36 -- >
37 -- > 030 4237 PAYMENT ARRANGEMENT CODE C 1 an..3
38 --
39 -- Dependencies: 'compositeC229', 'compositeC231', 'simple4237'.
40 segmentCPI :: Parser Value
41 segmentCPI =
42 segment "CPI"
43 [ "010" .@ optional compositeC229
44 , "020" .@ optional compositeC231
45 , "030" .@ optional simple4237
46 ]