File Coverage

lib/eBay/API/XML/Call/RemoveFromWatchList/RemoveFromWatchListRequestType.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::RemoveFromWatchList::RemoveFromWatchListRequestType;
4              
5 1     1   2257 use strict;
  1         3  
  1         40  
6 1     1   6 use warnings;
  1         2  
  1         36  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. RemoveFromWatchListRequestType.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::RemoveFromWatchList::RemoveFromWatchListRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables a user to remove item from his or her My eBay watch list.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::Call::RemoveFromWatchList::RemoveFromWatchListRequestType inherits from the L class
36              
37             =cut
38              
39 1     1   48 use eBay::API::XML::RequestDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::RequestDataType");
41              
42             use eBay::API::XML::DataType::ItemIDType;
43              
44              
45             my @gaProperties = ( [ 'ItemID', 'ns:ItemIDType', '1'
46             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
47             , [ 'RemoveAllItems', 'xs:boolean', '', '', '' ]
48             );
49             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setItemID()
73              
74             The ID of the item to be removed from the
75             watch list. Either ItemID or RemoveAllItems must
76             be specified, but NOT both. One or more Item IDs
77             can be specified, each in it's own ItemID container.
78              
79             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
80              
81             RequiredInput: Conditionally
82             # Argument: reference to an array
83             of 'ns:ItemIDType'
84              
85             =cut
86              
87             sub setItemID {
88             my $self = shift;
89             $self->{'ItemID'} =
90             $self->convertArray_To_RefToArrayIfNeeded(@_);
91             }
92              
93             =head2 getItemID()
94              
95             # Returns: reference to an array
96             of 'ns:ItemIDType'
97              
98             =cut
99              
100             sub getItemID {
101             my $self = shift;
102             return $self->_getDataTypeArray('ItemID');
103             }
104              
105              
106             =head2 setRemoveAllItems()
107              
108             If true, then all the items in the user's
109             watch list are removed. Either ItemID or
110             RemoveAllItems must be specified, but NOT both.
111              
112             RequiredInput: Conditionally
113             # Argument: 'xs:boolean'
114              
115             =cut
116              
117             sub setRemoveAllItems {
118             my $self = shift;
119             $self->{'RemoveAllItems'} = shift
120             }
121              
122             =head2 isRemoveAllItems()
123              
124             # Returns: 'xs:boolean'
125              
126             =cut
127              
128             sub isRemoveAllItems {
129             my $self = shift;
130             return $self->{'RemoveAllItems'};
131             }
132              
133              
134              
135              
136              
137             ## Attribute and Property lists
138             sub getPropertiesList {
139             my $self = shift;
140             return \@gaProperties;
141             }
142              
143             sub getAttributesList {
144             my $self = shift;
145             return \@gaAttributes;
146             }
147              
148              
149              
150             1;