blob: 7325e323608fc283e35f83a1cb71755ecff49e91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{-# LANGUAGE OverloadedStrings #-}
---- Machine generated code.
---- Output of edi-parser-scaffolder
module Text.Edifact.D96A.Segments.CPI
( -- * Definition
segmentCPI
-- * Dependencies
, compositeC229
, compositeC231
, simple4237
) where
import Text.Edifact.D96A.Composites (compositeC229, compositeC231)
import Text.Edifact.D96A.Simples (simple4237)
import Text.Edifact.Parsing
import Text.Edifact.Types (Value)
-- | Derived from this specification:
--
-- > CPI CHARGE PAYMENT INSTRUCTIONS
-- >
-- > Function: To identify a charge.
-- >
-- > 010 C229 CHARGE CATEGORY C
-- > 5237 Charge category, coded M an..3
-- > 1131 Code list qualifier C an..3
-- > 3055 Code list responsible agency, coded C an..3
-- >
-- > 020 C231 METHOD OF PAYMENT C
-- > 4215 Transport charges method of payment, coded M an..3
-- > 1131 Code list qualifier C an..3
-- > 3055 Code list responsible agency, coded C an..3
-- >
-- > 030 4237 PREPAID/COLLECT INDICATOR, CODED C an..3
--
-- Dependencies: 'compositeC229', 'compositeC231', 'simple4237'.
segmentCPI :: Parser Value
segmentCPI =
segment "CPI"
[ "010" .@ optional compositeC229
, "020" .@ optional compositeC231
, "030" .@ optional simple4237
]
|