aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/GIN.hs
blob: a349490f1f0f33f5f7a1a145cd76b033f8ea21b7 (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
53
54
55
56
57
58
59
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Segments.GIN
  ( -- * Definition
    segmentGIN
    -- * Dependencies
  , compositeC208
  , simple7405
  ) where

import           Text.Edifact.D96A.Composites (compositeC208)
import           Text.Edifact.D96A.Simples    (simple7405)

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

-- | Derived from this specification:
--
-- >       GIN    GOODS IDENTITY NUMBER
-- >
-- >       Function: To give specific identification numbers, either as
-- >                 single numbers or ranges.
-- >
-- > 010   7405  IDENTITY NUMBER QUALIFIER                      M  an..3
-- >
-- > 020   C208  IDENTITY NUMBER RANGE                          M
-- >       7402   Identity number                               M  an..35
-- >       7402   Identity number                               C  an..35
-- >
-- > 030   C208  IDENTITY NUMBER RANGE                          C
-- >       7402   Identity number                               M  an..35
-- >       7402   Identity number                               C  an..35
-- >
-- > 040   C208  IDENTITY NUMBER RANGE                          C
-- >       7402   Identity number                               M  an..35
-- >       7402   Identity number                               C  an..35
-- >
-- > 050   C208  IDENTITY NUMBER RANGE                          C
-- >       7402   Identity number                               M  an..35
-- >       7402   Identity number                               C  an..35
-- >
-- > 060   C208  IDENTITY NUMBER RANGE                          C
-- >       7402   Identity number                               M  an..35
-- >       7402   Identity number                               C  an..35
--
-- Dependencies: 'compositeC208', 'simple7405'.
segmentGIN :: Parser Value
segmentGIN =
  segment "GIN"
    [ "010" .@ mandatory simple7405
    , "020" .@ mandatory compositeC208
    , "030" .@ optional  compositeC208
    , "040" .@ optional  compositeC208
    , "050" .@ optional  compositeC208
    , "060" .@ optional  compositeC208
    ]