File Coverage

lib/eBay/API/XML/Call/AddToItemDescription/AddToItemDescriptionRequestType.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::Call::AddToItemDescription::AddToItemDescriptionRequestType;
4              
5 1     1   1413 use strict;
  1         2  
  1         25  
6 1     1   5 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddToItemDescriptionRequestType.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::Call::AddToItemDescription::AddToItemDescriptionRequestType
21              
22             =head1 DESCRIPTION
23              
24             Appends a horizontal rule, then a message about what time the
25             addition was made by the seller, and then the seller-specified text.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::Call::AddToItemDescription::AddToItemDescriptionRequestType inherits from the L class
37              
38             =cut
39              
40 1     1   34 use eBay::API::XML::RequestDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::RequestDataType");
42              
43             use eBay::API::XML::DataType::ItemIDType;
44              
45              
46             my @gaProperties = ( [ 'Description', 'xs:string', '', '', '' ]
47             , [ 'ItemID', 'ns:ItemIDType', ''
48             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
49             );
50             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
51              
52             my @gaAttributes = (
53             );
54             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
55              
56             =head1 Subroutines:
57              
58             =cut
59              
60             sub new {
61             my $classname = shift;
62             my %args = @_;
63             my $self = $classname->SUPER::new(%args);
64             return $self;
65             }
66              
67             sub isScalar {
68             return 0;
69             }
70              
71              
72              
73             =head2 setDescription()
74              
75             Specifies the text to append to the end of the listings description.
76             Text appended to a listing's description must abide by the rules
77             applicable to this data (such as no JavaScript) as is the case when
78             first listing the item.
79              
80             RequiredInput: Yes
81             # Argument: 'xs:string'
82              
83             =cut
84              
85             sub setDescription {
86             my $self = shift;
87             $self->{'Description'} = shift
88             }
89              
90             =head2 getDescription()
91              
92             # Returns: 'xs:string'
93              
94             =cut
95              
96             sub getDescription {
97             my $self = shift;
98             return $self->{'Description'};
99             }
100              
101              
102             =head2 setItemID()
103              
104             Unique item ID that identifies the target item listing, the description
105             of which is appended with the text specified in Description.
106              
107             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
108              
109             RequiredInput: Yes
110             # Argument: 'ns:ItemIDType'
111              
112             =cut
113              
114             sub setItemID {
115             my $self = shift;
116             $self->{'ItemID'} = shift
117             }
118              
119             =head2 getItemID()
120              
121             # Returns: 'ns:ItemIDType'
122              
123             =cut
124              
125             sub getItemID {
126             my $self = shift;
127             return $self->_getDataTypeInstance( 'ItemID'
128             ,'eBay::API::XML::DataType::ItemIDType');
129             }
130              
131              
132              
133              
134              
135             ## Attribute and Property lists
136             sub getPropertiesList {
137             my $self = shift;
138             return \@gaProperties;
139             }
140              
141             sub getAttributesList {
142             my $self = shift;
143             return \@gaAttributes;
144             }
145              
146              
147              
148             1;