aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Composites/C537.hs
blob: 2836432c729435783e3b2f77c6d9c78c18a79701 (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
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D01B.Composites.C537
  ( -- * Definition
    compositeC537
    -- * Dependencies
  , simple1131
  , simple3055
  , simple4219
  ) where

import           Text.Edifact.D01B.Simples (simple1131, simple3055, simple4219)

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

-- | Derived from this specification:
--
-- >        C537 TRANSPORT PRIORITY
-- >
-- >        Desc: To indicate the priority of requested transport
-- >              service.
-- >
-- > 010    4219  Transport service priority code           M      an..3
-- > 020    1131  Code list identification code             C      an..17
-- > 030    3055  Code list responsible agency code         C      an..3
--
-- Dependencies: 'simple1131', 'simple3055', 'simple4219'.
compositeC537 :: Parser Value
compositeC537 =
  composite "C537"
    [ "010" .@ mandatory simple4219
    , "020" .@ optional  simple1131
    , "030" .@ optional  simple3055
    ]