diff options
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/CPI.hs')
-rw-r--r-- | specification/src/Text/Edifact/D96A/Segments/CPI.hs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/CPI.hs b/specification/src/Text/Edifact/D96A/Segments/CPI.hs new file mode 100644 index 0000000..7325e32 --- /dev/null +++ b/specification/src/Text/Edifact/D96A/Segments/CPI.hs | |||
@@ -0,0 +1,46 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D96A.Segments.CPI | ||
7 | ( -- * Definition | ||
8 | segmentCPI | ||
9 | -- * Dependencies | ||
10 | , compositeC229 | ||
11 | , compositeC231 | ||
12 | , simple4237 | ||
13 | ) where | ||
14 | |||
15 | import Text.Edifact.D96A.Composites (compositeC229, compositeC231) | ||
16 | import Text.Edifact.D96A.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 | ||
28 | -- > 5237 Charge category, coded M an..3 | ||
29 | -- > 1131 Code list qualifier C an..3 | ||
30 | -- > 3055 Code list responsible agency, coded C an..3 | ||
31 | -- > | ||
32 | -- > 020 C231 METHOD OF PAYMENT C | ||
33 | -- > 4215 Transport charges method of payment, coded M an..3 | ||
34 | -- > 1131 Code list qualifier C an..3 | ||
35 | -- > 3055 Code list responsible agency, coded C an..3 | ||
36 | -- > | ||
37 | -- > 030 4237 PREPAID/COLLECT INDICATOR, CODED C 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 | ] | ||