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

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

module Text.Edifact.D01B.Composites.C516
  ( -- * Definition
    compositeC516
    -- * Dependencies
  , simple4405
  , simple5004
  , simple5025
  , simple6343
  , simple6345
  ) where

import           Text.Edifact.D01B.Simples (simple4405, simple5004, simple5025,
                                            simple6343, simple6345)

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

-- | Derived from this specification:
--
-- >        C516 MONETARY AMOUNT
-- >
-- >        Desc: Amount of goods or services stated as a monetary
-- >              amount in a specified currency.
-- >
-- > 010    5025  Monetary amount type code qualifier       M      an..3
-- > 020    5004  Monetary amount                           C      n..35
-- > 030    6345  Currency identification code              C      an..3
-- > 040    6343  Currency type code qualifier              C      an..3
-- > 050    4405  Status description code                   C      an..3
--
-- Dependencies: 'simple4405', 'simple5004', 'simple5025', 'simple6343', 'simple6345'.
compositeC516 :: Parser Value
compositeC516 =
  composite "C516"
    [ "010" .@ mandatory simple5025
    , "020" .@ optional  simple5004
    , "030" .@ optional  simple6345
    , "040" .@ optional  simple6343
    , "050" .@ optional  simple4405
    ]