File Coverage

lib/eBay/API/XML/Call/UploadSiteHostedPictures.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::UploadSiteHostedPictures;
4              
5 1     1   3490 use strict;
  1         2  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         27  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. UploadSiteHostedPictures.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::UploadSiteHostedPictures
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::UploadSiteHostedPictures inherits from the L class
34              
35             =cut
36              
37 1     1   33 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::UploadSiteHostedPictures::UploadSiteHostedPicturesRequestType;
41             use eBay::API::XML::Call::UploadSiteHostedPictures::UploadSiteHostedPicturesResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'UploadSiteHostedPictures';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::UploadSiteHostedPictures::UploadSiteHostedPicturesRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::UploadSiteHostedPictures::UploadSiteHostedPicturesResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setPictureData()
63              
64             An optional reference ID to the binary attachment.
65             The PictureData field does not contain the binary attachment.
66             The binary attachment is image data,
67             including headers, from a JPG, GIF, PNG, BMP, or TIF format image file.
68             The binary attachment must be sent as a MIME attachment,
69             in your POST request, after the XML input.
70              
71             RequiredInput: No
72             # Argument: 'ns:Base64BinaryType'
73              
74             =cut
75            
76             sub setPictureData {
77             my $self = shift;
78             my $pPictureData = shift;
79             $self->getRequestDataType()->setPictureData($pPictureData);
80             }
81              
82             =head2 setPictureName()
83              
84             A name you provide for the picture.
85             Returned as SiteHostedPictureDetails.PictureName in the call response.
86              
87             RequiredInput: No
88             # Argument: 'xs:string'
89              
90             =cut
91            
92             sub setPictureName {
93             my $self = shift;
94             my $sPictureName = shift;
95             $self->getRequestDataType()->setPictureName($sPictureName);
96             }
97              
98             =head2 setPictureSet()
99              
100             The image sizes that will be generated.
101              
102             RequiredInput: No
103             AllValuesExcept: Large
104             Default: Standard
105             # Argument: 'ns:PictureSetCodeType'
106              
107             =cut
108            
109             sub setPictureSet {
110             my $self = shift;
111             my $sPictureSet = shift;
112             $self->getRequestDataType()->setPictureSet($sPictureSet);
113             }
114              
115             =head2 setPictureSystemVersion()
116              
117             Specifies the picture system version. Only version 2 is valid.
118             Available to support future changes in the picture system version.
119              
120             RequiredInput: No
121             Default: 2
122             # Argument: 'xs:int'
123              
124             =cut
125            
126             sub setPictureSystemVersion {
127             my $self = shift;
128             my $sPictureSystemVersion = shift;
129             $self->getRequestDataType()->setPictureSystemVersion($sPictureSystemVersion);
130             }
131              
132             =head2 setPictureUploadPolicy()
133              
134             When the My Picture Uploads feature is available (see the Trading API Release Notes), applications
135             (including non-listing apps, such as photo-editors and digital-camera software) will be able to use
136             the PictureUploadPolicy field to specify that an uploaded picture is available to a seller on the eBay site. When you use PictureUploadPolicy, you are specifying that the picture you uploaded (and its URL) is stored for 48 hours on the eBay site. (If, within 48 hours, the picture is associated with an item,
137             then it persists on the eBay site for the same time length as other pictures uploaded using
138             the UploadSiteHostedPictures call).
139             As a result of the storage on the eBay site, the picture is available to the seller on
140             the My Picture Uploads tab within the Sell Your Item (SYI) pages.
141             A maximum of 25 URLs can be stored.
142              
143             RequiredInput: No
144             # Argument: 'ns:PictureUploadPolicyCodeType'
145              
146             =cut
147            
148             sub setPictureUploadPolicy {
149             my $self = shift;
150             my $sPictureUploadPolicy = shift;
151             $self->getRequestDataType()->setPictureUploadPolicy($sPictureUploadPolicy);
152             }
153              
154              
155              
156             #
157             # output properties
158             #
159              
160             =head2 getPictureSystemVersion()
161              
162             Specifies the picture system version that was used to upload pictures.
163             Only version 2 is valid.
164              
165             Returned: Always
166             # Returns: 'xs:int'
167              
168             =cut
169            
170             sub getPictureSystemVersion {
171             my $self = shift;
172             return $self->getResponseDataType()->getPictureSystemVersion();
173             }
174              
175             =head2 getSiteHostedPictureDetails()
176              
177             Contains information about an UploadSiteHostedPictures upload,
178             including the URL of the uploaded picture.
179              
180             Returned: Always
181             # Returns: 'ns:SiteHostedPictureDetailsType'
182              
183             =cut
184            
185             sub getSiteHostedPictureDetails {
186             my $self = shift;
187             return $self->getResponseDataType()->getSiteHostedPictureDetails();
188             }
189              
190              
191              
192              
193              
194             1;