blob: 8a77d32d2584065c28bdb3400330a348470408d8 (
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.D01B.Segments.TOD
( -- * Definition
segmentTOD
-- * Dependencies
, compositeC100
, simple4055
, simple4215
) where
import Text.Edifact.D01B.Composites (compositeC100)
import Text.Edifact.D01B.Simples (simple4055, simple4215)
import Text.Edifact.Parsing
import Text.Edifact.Types (Value)
-- | Derived from this specification:
--
-- > TOD TERMS OF DELIVERY OR TRANSPORT
-- >
-- > Function: To specify terms of delivery or transport.
-- >
-- > 010 4055 DELIVERY OR TRANSPORT TERMS FUNCTION CODE C 1 an..3
-- >
-- > 020 4215 TRANSPORT CHARGES PAYMENT METHOD CODE C 1 an..3
-- >
-- > 030 C100 TERMS OF DELIVERY OR TRANSPORT C 1
-- > 4053 Delivery or transport terms description
-- > code C an..3
-- > 1131 Code list identification code C an..17
-- > 3055 Code list responsible agency code C an..3
-- > 4052 Delivery or transport terms description C an..70
-- > 4052 Delivery or transport terms description C an..70
--
-- Dependencies: 'compositeC100', 'simple4055', 'simple4215'.
segmentTOD :: Parser Value
segmentTOD =
segment "TOD"
[ "010" .@ optional simple4055
, "020" .@ optional simple4215
, "030" .@ optional compositeC100
]
|