blob: cdd22fdd25d5811816c55a527f5cddeadcfab094 (
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
|
{-# LANGUAGE OverloadedStrings #-}
---- Machine generated code.
---- Output of edi-parser-scaffolder
module Text.Edifact.D96A.Segments.CNI
( -- * Definition
segmentCNI
-- * Dependencies
, compositeC503
, simple1312
, simple1490
) where
import Text.Edifact.D96A.Composites (compositeC503)
import Text.Edifact.D96A.Simples (simple1312, simple1490)
import Text.Edifact.Parsing
import Text.Edifact.Types (Value)
-- | Derived from this specification:
--
-- > CNI CONSIGNMENT INFORMATION
-- >
-- > Function: To identify one consignment.
-- >
-- > 010 1490 CONSOLIDATION ITEM NUMBER C n..4
-- >
-- > 020 C503 DOCUMENT/MESSAGE DETAILS C
-- > 1004 Document/message number C an..35
-- > 1373 Document/message status, coded C an..3
-- > 1366 Document/message source C an..35
-- > 3453 Language, coded C an..3
-- >
-- > 030 1312 CONSIGNMENT LOAD SEQUENCE NUMBER C n..4
--
-- Dependencies: 'compositeC503', 'simple1312', 'simple1490'.
segmentCNI :: Parser Value
segmentCNI =
segment "CNI"
[ "010" .@ optional simple1490
, "020" .@ optional compositeC503
, "030" .@ optional simple1312
]
|