aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/PRI.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/PRI.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Segments/PRI.hs42
1 files changed, 42 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/PRI.hs b/specification/src/Text/Edifact/D96A/Segments/PRI.hs
new file mode 100644
index 0000000..09c4834
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Segments/PRI.hs
@@ -0,0 +1,42 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Segments.PRI
7 ( -- * Definition
8 segmentPRI
9 -- * Dependencies
10 , compositeC509
11 , simple5213
12 ) where
13
14import Text.Edifact.D96A.Composites (compositeC509)
15import Text.Edifact.D96A.Simples (simple5213)
16
17import Text.Edifact.Parsing
18import Text.Edifact.Types (Value)
19
20-- | Derived from this specification:
21--
22-- > PRI PRICE DETAILS
23-- >
24-- > Function: To specify price information.
25-- >
26-- > 010 C509 PRICE INFORMATION C
27-- > 5125 Price qualifier M an..3
28-- > 5118 Price C n..15
29-- > 5375 Price type, coded C an..3
30-- > 5387 Price type qualifier C an..3
31-- > 5284 Unit price basis C n..9
32-- > 6411 Measure unit qualifier C an..3
33-- >
34-- > 020 5213 SUB-LINE PRICE CHANGE, CODED C an..3
35--
36-- Dependencies: 'compositeC509', 'simple5213'.
37segmentPRI :: Parser Value
38segmentPRI =
39 segment "PRI"
40 [ "010" .@ optional compositeC509
41 , "020" .@ optional simple5213
42 ]