aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/TMD.hs
blob: df7157ab0c7db1d47039911277a59a58e68fa6b5 (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.TMD
  ( -- * Definition
    segmentTMD
    -- * Dependencies
  , compositeC219
  , simple8332
  , simple8341
  ) where

import           Text.Edifact.D96A.Composites (compositeC219)
import           Text.Edifact.D96A.Simples    (simple8332, simple8341)

import           Text.Edifact.Parsing
import           Text.Edifact.Types           (Value)

-- | Derived from this specification:
--
-- >     | TMD    TRANSPORT MOVEMENT DETAILS
-- >
-- >     | Function: To specify operational transport movement details for
-- >                 a goods item or equipment (which may differ from the
-- >                 contractual conditions).
-- >
-- > 010   C219  MOVEMENT TYPE                                  C
-- >       8335   Movement type, coded                          C  an..3
-- >       8334   Movement type                                 C  an..35
-- >
-- > 020   8332  EQUIPMENT PLAN                                 C  an..26
-- >
-- > 030   8341  HAULAGE ARRANGEMENTS, CODED                    C  an..3
--
-- Dependencies: 'compositeC219', 'simple8332', 'simple8341'.
segmentTMD :: Parser Value
segmentTMD =
  segment "TMD"
    [ "010" .@ optional  compositeC219
    , "020" .@ optional  simple8332
    , "030" .@ optional  simple8341
    ]