File Coverage

lib/eBay/API/XML/DataType/SearchStoreFilterType.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::DataType::SearchStoreFilterType;
4              
5 1     1   1048 use strict;
  1         2  
  1         25  
6 1     1   4 use warnings;
  1         2  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SearchStoreFilterType.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::DataType::SearchStoreFilterType
21              
22             =head1 DESCRIPTION
23              
24             One of the data filters used when searching for items using
25             GetSearchResults. Allows filtering based on an item's appearing in a
26             specific eBay Store.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::SearchStoreFilterType inherits from the L class
38              
39             =cut
40              
41 1     1   42 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::Enum::StoreSearchCodeType;
45              
46              
47             my @gaProperties = ( [ 'StoreName', 'xs:string', '', '', '' ]
48             , [ 'StoreSearch', 'ns:StoreSearchCodeType', ''
49             ,'eBay::API::XML::DataType::Enum::StoreSearchCodeType', '' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::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 setStoreName()
75              
76             The name of the eBay Store in which the item is listed.
77             The name of the store is case sensitive.
78              
79             Calls: GetSearchResults
80             RequiredInput: No
81              
82             # Argument: 'xs:string'
83              
84             =cut
85              
86             sub setStoreName {
87             my $self = shift;
88             $self->{'StoreName'} = shift
89             }
90              
91             =head2 getStoreName()
92              
93             # Returns: 'xs:string'
94              
95             =cut
96              
97             sub getStoreName {
98             my $self = shift;
99             return $self->{'StoreName'};
100             }
101              
102              
103             =head2 setStoreSearch()
104              
105             Specifies the type of store search used in the filtering: one eBay Store (name
106             specified in StoreName) or all eBay stores, and also by listing type. Possible
107             values are enumerated in the StoreSearchCodeType code list.
108              
109             Calls: GetSearchResults
110             RequiredInput: No
111              
112             # Argument: 'ns:StoreSearchCodeType'
113              
114             =cut
115              
116             sub setStoreSearch {
117             my $self = shift;
118             $self->{'StoreSearch'} = shift
119             }
120              
121             =head2 getStoreSearch()
122              
123             # Returns: 'ns:StoreSearchCodeType'
124              
125             =cut
126              
127             sub getStoreSearch {
128             my $self = shift;
129             return $self->{'StoreSearch'};
130             }
131              
132              
133              
134              
135              
136             ## Attribute and Property lists
137             sub getPropertiesList {
138             my $self = shift;
139             return \@gaProperties;
140             }
141              
142             sub getAttributesList {
143             my $self = shift;
144             return \@gaAttributes;
145             }
146              
147              
148              
149             1;