File Coverage

lib/eBay/API/XML/DataType/ReasonCodeDetailType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::ReasonCodeDetailType;
4              
5 1     1   1202 use strict;
  1         2  
  1         28  
6 1     1   5 use warnings;
  1         2  
  1         29  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ReasonCodeDetailType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::DataType::ReasonCodeDetailType
21              
22             =head1 DESCRIPTION
23              
24             A container for VeRO reason code details.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ReasonCodeDetailType inherits from the L class
36              
37             =cut
38              
39 1     1   38 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'BriefText', 'xs:string', '', '', '' ]
45             , [ 'DetailedText', 'xs:string', '', '', '' ]
46             );
47             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
48              
49             my @gaAttributes = ( [ 'codeID', 'xs:long', '', '', '' ]
50             );
51             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
52              
53             =head1 Subroutines:
54              
55             =cut
56              
57             sub new {
58             my $classname = shift;
59             my %args = @_;
60             my $self = $classname->SUPER::new(%args);
61             return $self;
62             }
63              
64             sub isScalar {
65             return 0;
66             }
67              
68              
69              
70             =head2 setBriefText()
71              
72             The short description of the infringement associated with the reason code ID.
73              
74             # Argument: 'xs:string'
75              
76             =cut
77              
78             sub setBriefText {
79             my $self = shift;
80             $self->{'BriefText'} = shift
81             }
82              
83             =head2 getBriefText()
84              
85             Calls: GetVeROReasonCodeDetails
86             Returned: Always
87              
88             # Returns: 'xs:string'
89              
90             =cut
91              
92             sub getBriefText {
93             my $self = shift;
94             return $self->{'BriefText'};
95             }
96              
97              
98             =head2 setDetailedText()
99              
100             The long description of the infringement associated with the reason code ID.
101              
102             # Argument: 'xs:string'
103              
104             =cut
105              
106             sub setDetailedText {
107             my $self = shift;
108             $self->{'DetailedText'} = shift
109             }
110              
111             =head2 getDetailedText()
112              
113             Calls: GetVeROReasonCodeDetails
114             Returned: Always
115              
116             # Returns: 'xs:string'
117              
118             =cut
119              
120             sub getDetailedText {
121             my $self = shift;
122             return $self->{'DetailedText'};
123             }
124              
125              
126              
127              
128             =head2 setCodeID()
129              
130             A unique identifier assigned to a reason code.
131              
132             Max: Default: Min:
133             # Argument: 'xs:long'
134              
135             =cut
136              
137             sub setCodeID {
138             my $self = shift;
139             $self->{'codeID'} = shift
140             }
141              
142             =head2 getCodeID()
143              
144             Calls: GetVeROReasonCodeDetails
145             Returned: Always
146              
147             # Returns: 'xs:long'
148              
149             =cut
150              
151             sub getCodeID {
152             my $self = shift;
153             return $self->{'codeID'};
154             }
155              
156              
157              
158             ## Attribute and Property lists
159             sub getPropertiesList {
160             my $self = shift;
161             return \@gaProperties;
162             }
163              
164             sub getAttributesList {
165             my $self = shift;
166             return \@gaAttributes;
167             }
168              
169              
170              
171             1;