File Coverage

lib/eBay/API/XML/Call/SetPictureManagerDetails/SetPictureManagerDetailsRequestType.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::SetPictureManagerDetails::SetPictureManagerDetailsRequestType;
4              
5 1     1   1935 use strict;
  1         3  
  1         31  
6 1     1   4 use warnings;
  1         2  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetPictureManagerDetailsRequestType.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::SetPictureManagerDetails::SetPictureManagerDetailsRequestType
21              
22             =head1 DESCRIPTION
23              
24             Creates, updates, or deletes Picture Manager account settings, folders, or pictures.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::Call::SetPictureManagerDetails::SetPictureManagerDetailsRequestType inherits from the L class
36              
37             =cut
38              
39 1     1   38 use eBay::API::XML::RequestDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::RequestDataType");
41              
42             use eBay::API::XML::DataType::PictureManagerDetailsType;
43             use eBay::API::XML::DataType::Enum::PictureManagerActionCodeType;
44              
45              
46             my @gaProperties = ( [ 'Action', 'ns:PictureManagerActionCodeType', ''
47             ,'eBay::API::XML::DataType::Enum::PictureManagerActionCodeType', '' ]
48             , [ 'PictureManagerDetails', 'ns:PictureManagerDetailsType', ''
49             ,'eBay::API::XML::DataType::PictureManagerDetailsType', '1' ]
50             );
51             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setAction()
75              
76             Specifies the action to take on the setting, folder, or picture.
77             The values Add and Delete apply only to folders.
78              
79             RequiredInput: Yes
80             # Argument: 'ns:PictureManagerActionCodeType'
81              
82             =cut
83              
84             sub setAction {
85             my $self = shift;
86             $self->{'Action'} = shift
87             }
88              
89             =head2 getAction()
90              
91             # Returns: 'ns:PictureManagerActionCodeType'
92              
93             =cut
94              
95             sub getAction {
96             my $self = shift;
97             return $self->{'Action'};
98             }
99              
100              
101             =head2 setPictureManagerDetails()
102              
103             Specifies the setting or folder to create, update, or delete, or the
104             picture to update. You cannot upload or delete pictures using
105             SetPictureManagerDetails; you must use the eBay site.
106              
107             RequiredInput: Yes
108             # Argument: 'ns:PictureManagerDetailsType'
109              
110             =cut
111              
112             sub setPictureManagerDetails {
113             my $self = shift;
114             $self->{'PictureManagerDetails'} = shift
115             }
116              
117             =head2 getPictureManagerDetails()
118              
119             # Returns: 'ns:PictureManagerDetailsType'
120              
121             =cut
122              
123             sub getPictureManagerDetails {
124             my $self = shift;
125             return $self->_getDataTypeInstance( 'PictureManagerDetails'
126             ,'eBay::API::XML::DataType::PictureManagerDetailsType');
127             }
128              
129              
130              
131              
132              
133             ## Attribute and Property lists
134             sub getPropertiesList {
135             my $self = shift;
136             return \@gaProperties;
137             }
138              
139             sub getAttributesList {
140             my $self = shift;
141             return \@gaAttributes;
142             }
143              
144              
145              
146             1;