]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Segments/TOD.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / TOD.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Segments.TOD
7 ( -- * Definition
8 segmentTOD
9 -- * Dependencies
10 , compositeC100
11 , simple4055
12 , simple4215
13 ) where
14
15 import Text.Edifact.D01B.Composites (compositeC100)
16 import Text.Edifact.D01B.Simples (simple4055, simple4215)
17
18 import Text.Edifact.Parsing
19 import Text.Edifact.Types (Value)
20
21 -- | Derived from this specification:
22 --
23 -- > TOD TERMS OF DELIVERY OR TRANSPORT
24 -- >
25 -- > Function: To specify terms of delivery or transport.
26 -- >
27 -- > 010 4055 DELIVERY OR TRANSPORT TERMS FUNCTION CODE C 1 an..3
28 -- >
29 -- > 020 4215 TRANSPORT CHARGES PAYMENT METHOD CODE C 1 an..3
30 -- >
31 -- > 030 C100 TERMS OF DELIVERY OR TRANSPORT C 1
32 -- > 4053 Delivery or transport terms description
33 -- > code C an..3
34 -- > 1131 Code list identification code C an..17
35 -- > 3055 Code list responsible agency code C an..3
36 -- > 4052 Delivery or transport terms description C an..70
37 -- > 4052 Delivery or transport terms description C an..70
38 --
39 -- Dependencies: 'compositeC100', 'simple4055', 'simple4215'.
40 segmentTOD :: Parser Value
41 segmentTOD =
42 segment "TOD"
43 [ "010" .@ optional simple4055
44 , "020" .@ optional simple4215
45 , "030" .@ optional compositeC100
46 ]