]>
Commit | Line | Data |
---|---|---|
1 | {-# LANGUAGE OverloadedStrings #-} | |
2 | ||
3 | ---- Machine generated code. | |
4 | ---- Output of edi-parser-scaffolder | |
5 | ||
6 | module Text.Edifact.D96A.Segments.TDT | |
7 | ( -- * Definition | |
8 | segmentTDT | |
9 | -- * Dependencies | |
10 | , compositeC040 | |
11 | , compositeC220 | |
12 | , compositeC222 | |
13 | , compositeC228 | |
14 | , compositeC401 | |
15 | , simple8028 | |
16 | , simple8051 | |
17 | , simple8101 | |
18 | , simple8281 | |
19 | ) where | |
20 | ||
21 | import Text.Edifact.D96A.Composites (compositeC040, compositeC220, | |
22 | compositeC222, compositeC228, | |
23 | compositeC401) | |
24 | import Text.Edifact.D96A.Simples (simple8028, simple8051, | |
25 | simple8101, simple8281) | |
26 | ||
27 | import Text.Edifact.Parsing | |
28 | import Text.Edifact.Types (Value) | |
29 | ||
30 | -- | Derived from this specification: | |
31 | -- | |
32 | -- > TDT DETAILS OF TRANSPORT | |
33 | -- > | |
34 | -- > Function: To specify the transport details such as mode of | |
35 | -- > transport, means of transport, its conveyance | |
36 | -- > reference number and the identification of the means | |
37 | -- > of transport. | |
38 | -- > The segment may be pointed to by the TPL segment. | |
39 | -- > | |
40 | -- > 010 8051 TRANSPORT STAGE QUALIFIER M an..3 | |
41 | -- > | |
42 | -- > 020 8028 CONVEYANCE REFERENCE NUMBER C an..17 | |
43 | -- > | |
44 | -- > 030 C220 MODE OF TRANSPORT C | |
45 | -- > 8067 Mode of transport, coded C an..3 | |
46 | -- > 8066 Mode of transport C an..17 | |
47 | -- > | |
48 | -- > 040 C228 TRANSPORT MEANS C | |
49 | -- > 8179 Type of means of transport identification C an..8 | |
50 | -- > 8178 Type of means of transport C an..17 | |
51 | -- > | |
52 | -- > 050 C040 CARRIER C | |
53 | -- > 3127 Carrier identification C an..17 | |
54 | -- > 1131 Code list qualifier C an..3 | |
55 | -- > 3055 Code list responsible agency, coded C an..3 | |
56 | -- > 3128 Carrier name C an..35 | |
57 | -- > | |
58 | -- > 060 8101 TRANSIT DIRECTION, CODED C an..3 | |
59 | -- > | |
60 | -- > 070 C401 EXCESS TRANSPORTATION INFORMATION C | |
61 | -- > 8457 Excess transportation reason, coded M an..3 | |
62 | -- > 8459 Excess transportation responsibility, coded M an..3 | |
63 | -- > 7130 Customer authorization number C an..17 | |
64 | -- > | |
65 | -- > 080 C222 TRANSPORT IDENTIFICATION C | |
66 | -- > 8213 Id. of means of transport identification C an..9 | |
67 | -- > 1131 Code list qualifier C an..3 | |
68 | -- > 3055 Code list responsible agency, coded C an..3 | |
69 | -- > 8212 Id. of the means of transport C an..35 | |
70 | -- > 8453 Nationality of means of transport, coded C an..3 | |
71 | -- > | |
72 | -- > 090 8281 TRANSPORT OWNERSHIP, CODED C an..3 | |
73 | -- | |
74 | -- Dependencies: 'compositeC040', 'compositeC220', 'compositeC222', 'compositeC228', 'compositeC401', 'simple8028', 'simple8051', 'simple8101', 'simple8281'. | |
75 | segmentTDT :: Parser Value | |
76 | segmentTDT = | |
77 | segment "TDT" | |
78 | [ "010" .@ mandatory simple8051 | |
79 | , "020" .@ optional simple8028 | |
80 | , "030" .@ optional compositeC220 | |
81 | , "040" .@ optional compositeC228 | |
82 | , "050" .@ optional compositeC040 | |
83 | , "060" .@ optional simple8101 | |
84 | , "070" .@ optional compositeC401 | |
85 | , "080" .@ optional compositeC222 | |
86 | , "090" .@ optional simple8281 | |
87 | ] |