File Coverage

lib/eBay/API/XML/Call/AddToItemDescription.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;
4              
5 1     1   2230 use strict;
  1         2  
  1         25  
6 1     1   5 use warnings;
  1         3  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddToItemDescription.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
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::AddToItemDescription inherits from the L class
34              
35             =cut
36              
37 1     1   39 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::AddToItemDescription::AddToItemDescriptionRequestType;
41             use eBay::API::XML::Call::AddToItemDescription::AddToItemDescriptionResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'AddToItemDescription';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::AddToItemDescription::AddToItemDescriptionRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::AddToItemDescription::AddToItemDescriptionResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setDescription()
63              
64             Specifies the text to append to the end of the listings description.
65             Text appended to a listing's description must abide by the rules
66             applicable to this data (such as no JavaScript) as is the case when
67             first listing the item.
68              
69             RequiredInput: Yes
70             # Argument: 'xs:string'
71              
72             =cut
73            
74             sub setDescription {
75             my $self = shift;
76             my $sDescription = shift;
77             $self->getRequestDataType()->setDescription($sDescription);
78             }
79              
80             =head2 setItemID()
81              
82             Unique item ID that identifies the target item listing, the description
83             of which is appended with the text specified in Description.
84              
85             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
86              
87             RequiredInput: Yes
88             # Argument: 'ns:ItemIDType'
89              
90             =cut
91            
92             sub setItemID {
93             my $self = shift;
94             my $pItemID = shift;
95             $self->getRequestDataType()->setItemID($pItemID);
96             }
97              
98              
99              
100             #
101             # output properties
102             #
103              
104              
105              
106              
107              
108             1;