blob: c4982a6a1a8e407b2adf71cf1a89c485899285a8 (
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
47
48
49
50
51
52
|
{-# LANGUAGE OverloadedStrings #-}
---- Machine generated code.
---- Output of edi-parser-scaffolder
module Text.Edifact.D96A.Segments.CUX
( -- * Definition
segmentCUX
-- * Dependencies
, compositeC504
, simple5402
, simple6341
) where
import Text.Edifact.D96A.Composites (compositeC504)
import Text.Edifact.D96A.Simples (simple5402, simple6341)
import Text.Edifact.Parsing
import Text.Edifact.Types (Value)
-- | Derived from this specification:
--
-- > CUX CURRENCIES
-- >
-- > Function: To specify currencies used in the transaction and
-- > relevant details for the rate of exchange.
-- >
-- > 010 C504 CURRENCY DETAILS C
-- > 6347 Currency details qualifier M an..3
-- > 6345 Currency, coded C an..3
-- > 6343 Currency qualifier C an..3
-- > 6348 Currency rate base C n..4
-- >
-- > 020 C504 CURRENCY DETAILS C
-- > 6347 Currency details qualifier M an..3
-- > 6345 Currency, coded C an..3
-- > 6343 Currency qualifier C an..3
-- > 6348 Currency rate base C n..4
-- >
-- > 030 5402 RATE OF EXCHANGE C n..12
-- >
-- > 040 6341 CURRENCY MARKET EXCHANGE, CODED C an..3
--
-- Dependencies: 'compositeC504', 'simple5402', 'simple6341'.
segmentCUX :: Parser Value
segmentCUX =
segment "CUX"
[ "010" .@ optional compositeC504
, "020" .@ optional compositeC504
, "030" .@ optional simple5402
, "040" .@ optional simple6341
]
|