File Coverage

blib/lib/Business/EDI/CodeList/MessageVersionNumber.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 2 0.0
total 8 10 80.0


line stmt bran cond sub pod time code
1             package Business::EDI::CodeList::MessageVersionNumber;
2              
3 7     7   40 use base 'Business::EDI::CodeList';
  7         16  
  7         1415  
4             my $VERSION = 0.02;
5 19     19 0 67 sub list_number {return "0052";}
6             my $usage = 'B';
7              
8             # 0052 Message version number
9             # Desc: Version number of a message type.
10             # Repr: an..3
11              
12             my %code_hash = (
13             '1' => [ 'Status 1 version',
14             'Message approved and issued as a status 1 (trial) message. (Valid for directories published after March 1990 and prior to March 1993).' ],
15             '2' => [ 'Status 2 version',
16             'Message approved and issued as a status 2 (formal recommendation) message. (Valid for directories published after March 1990 and prior to March 1993).' ],
17             '4' => [ 'Service message, version 4',
18             'Service messages approved and issued as a part of ISO 9735/Version 4, for use with that version of the syntax.' ],
19             '1.' => [ 'For earlier versions of the UN/EDIFACT CONTRL message,',
20             'each published by the UN as a stand-alone message, the version number to be used is specified in the message documentation.' ],
21             '88' => [ '1988 version',
22             'Message approved and issued in the 1988 release of the UNTDID (United Nations Trade Data Interchange Directory) as a status 2 (formal recommendation) message.' ],
23             '89' => [ '1989 version',
24             'Message approved and issued in the 1989 release of the UNTDID (United Nations Trade Data Interchange Directory) as a status 2 (formal recommendation) message.' ],
25             '90' => [ '1990 version',
26             'Message approved and issued in the 1990 release of the UNTDID (United Nations Trade Data Interchange Directory) as a status 2 (formal recommendation) message.' ],
27             'D' => [ 'Draft version/UN/EDIFACT Directory',
28             'Message approved and issued as a draft message (Valid for directories published after March 1993 and prior to March 1997). Message approved as a standard message (Valid for directories published after March 1997).' ],
29             'S' => [ 'Standard version',
30             'Message approved and issued as a standard message. (Valid for directories published after March 1993 and prior to March 1997).' ],
31             );
32 19     19 0 63 sub get_codes { return \%code_hash; }
33              
34             1;