diff options
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/TOD.hs')
-rw-r--r-- | specification/src/Text/Edifact/D01B/Segments/TOD.hs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/TOD.hs b/specification/src/Text/Edifact/D01B/Segments/TOD.hs new file mode 100644 index 0000000..8a77d32 --- /dev/null +++ b/specification/src/Text/Edifact/D01B/Segments/TOD.hs | |||
@@ -0,0 +1,46 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D01B.Segments.TOD | ||
7 | ( -- * Definition | ||
8 | segmentTOD | ||
9 | -- * Dependencies | ||
10 | , compositeC100 | ||
11 | , simple4055 | ||
12 | , simple4215 | ||
13 | ) where | ||
14 | |||
15 | import Text.Edifact.D01B.Composites (compositeC100) | ||
16 | import Text.Edifact.D01B.Simples (simple4055, simple4215) | ||
17 | |||
18 | import Text.Edifact.Parsing | ||
19 | import Text.Edifact.Types (Value) | ||
20 | |||
21 | -- | Derived from this specification: | ||
22 | -- | ||
23 | -- > TOD TERMS OF DELIVERY OR TRANSPORT | ||
24 | -- > | ||
25 | -- > Function: To specify terms of delivery or transport. | ||
26 | -- > | ||
27 | -- > 010 4055 DELIVERY OR TRANSPORT TERMS FUNCTION CODE C 1 an..3 | ||
28 | -- > | ||
29 | -- > 020 4215 TRANSPORT CHARGES PAYMENT METHOD CODE C 1 an..3 | ||
30 | -- > | ||
31 | -- > 030 C100 TERMS OF DELIVERY OR TRANSPORT C 1 | ||
32 | -- > 4053 Delivery or transport terms description | ||
33 | -- > code C an..3 | ||
34 | -- > 1131 Code list identification code C an..17 | ||
35 | -- > 3055 Code list responsible agency code C an..3 | ||
36 | -- > 4052 Delivery or transport terms description C an..70 | ||
37 | -- > 4052 Delivery or transport terms description C an..70 | ||
38 | -- | ||
39 | -- Dependencies: 'compositeC100', 'simple4055', 'simple4215'. | ||
40 | segmentTOD :: Parser Value | ||
41 | segmentTOD = | ||
42 | segment "TOD" | ||
43 | [ "010" .@ optional simple4055 | ||
44 | , "020" .@ optional simple4215 | ||
45 | , "030" .@ optional compositeC100 | ||
46 | ] | ||