File Coverage

lib/eBay/API/XML/Call/GetDescriptionTemplates/GetDescriptionTemplatesRequestType.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::GetDescriptionTemplates::GetDescriptionTemplatesRequestType;
4              
5 1     1   1567 use strict;
  1         3  
  1         37  
6 1     1   6 use warnings;
  1         2  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetDescriptionTemplatesRequestType.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::GetDescriptionTemplates::GetDescriptionTemplatesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Request for DescriptionTemplates.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::Call::GetDescriptionTemplates::GetDescriptionTemplatesRequestType inherits from the L class
36              
37             =cut
38              
39 1     1   41 use eBay::API::XML::RequestDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::RequestDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'CategoryID', 'xs:string', '', '', '' ]
45             , [ 'LastModifiedTime', 'xs:dateTime', '', '', '' ]
46             , [ 'MotorVehicles', 'xs:boolean', '', '', '' ]
47             );
48             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
49              
50             my @gaAttributes = (
51             );
52             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
53              
54             =head1 Subroutines:
55              
56             =cut
57              
58             sub new {
59             my $classname = shift;
60             my %args = @_;
61             my $self = $classname->SUPER::new(%args);
62             return $self;
63             }
64              
65             sub isScalar {
66             return 0;
67             }
68              
69              
70              
71             =head2 setCategoryID()
72              
73             The category for which to retrieve templates. Enter any
74             category ID, including Motors vehicle categories. This
75             is ignored if you also send MotorVehicles.
76              
77             MaxLength: 10
78              
79             RequiredInput: No
80             # Argument: 'xs:string'
81              
82             =cut
83              
84             sub setCategoryID {
85             my $self = shift;
86             $self->{'CategoryID'} = shift
87             }
88              
89             =head2 getCategoryID()
90              
91             # Returns: 'xs:string'
92              
93             =cut
94              
95             sub getCategoryID {
96             my $self = shift;
97             return $self->{'CategoryID'};
98             }
99              
100              
101             =head2 setLastModifiedTime()
102              
103             If specified, only those templates modified on or after the
104             specified date are returned. If not specified, all templates are returned.
105              
106             RequiredInput: No
107             # Argument: 'xs:dateTime'
108              
109             =cut
110              
111             sub setLastModifiedTime {
112             my $self = shift;
113             $self->{'LastModifiedTime'} = shift
114             }
115              
116             =head2 getLastModifiedTime()
117              
118             # Returns: 'xs:dateTime'
119              
120             =cut
121              
122             sub getLastModifiedTime {
123             my $self = shift;
124             return $self->{'LastModifiedTime'};
125             }
126              
127              
128             =head2 setMotorVehicles()
129              
130             Indicates whether to retrieve templates for motor vehicle
131             categories for eBay Motors (site 100). If true, templates
132             are returned for motor vehicle categories. If false,
133             templates are returned for non-motor vehicle categories
134             such as Parts and Accessories. If included as an input field (whether true or false), this overrides any value provided for CategoryID.
135              
136             RequiredInput: No
137             # Argument: 'xs:boolean'
138              
139             =cut
140              
141             sub setMotorVehicles {
142             my $self = shift;
143             $self->{'MotorVehicles'} = shift
144             }
145              
146             =head2 isMotorVehicles()
147              
148             # Returns: 'xs:boolean'
149              
150             =cut
151              
152             sub isMotorVehicles {
153             my $self = shift;
154             return $self->{'MotorVehicles'};
155             }
156              
157              
158              
159              
160              
161             ## Attribute and Property lists
162             sub getPropertiesList {
163             my $self = shift;
164             return \@gaProperties;
165             }
166              
167             sub getAttributesList {
168             my $self = shift;
169             return \@gaAttributes;
170             }
171              
172              
173              
174             1;