| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::GetWantItNowSearchResults; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 3205 | use strict; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 34 |  | 
| 6 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 31 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. GetWantItNowSearchResults.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::GetWantItNowSearchResults | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::GetWantItNowSearchResults inherits from the L class | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =cut | 
| 36 |  |  |  |  |  |  |  | 
| 37 | 1 |  |  | 1 |  | 46 | use eBay::API::XML::BaseCall; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseCall"); | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | use eBay::API::XML::Call::GetWantItNowSearchResults::GetWantItNowSearchResultsRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::GetWantItNowSearchResults::GetWantItNowSearchResultsResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'GetWantItNowSearchResults'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetWantItNowSearchResults::GetWantItNowSearchResultsRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetWantItNowSearchResults::GetWantItNowSearchResultsResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setCategoryID() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Limits the result set to just those Want It Now posts listed in the | 
| 65 |  |  |  |  |  |  | specified category. Defaults to all categories if no category ID is | 
| 66 |  |  |  |  |  |  | specified. If the specified category ID does not match an existing | 
| 67 |  |  |  |  |  |  | category for the site, an invalid-category error message is returned. | 
| 68 |  |  |  |  |  |  | Controls the set of listings to return (not the details to return for each | 
| 69 |  |  |  |  |  |  | listing). | 
| 70 |  |  |  |  |  |  | You must specify a Query and/or a CategoryID in the request. | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | MaxLength: 10 | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | RequiredInput: No | 
| 75 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | =cut | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | sub setCategoryID { | 
| 80 |  |  |  |  |  |  | my $self   = shift; | 
| 81 |  |  |  |  |  |  | my $sCategoryID = shift; | 
| 82 |  |  |  |  |  |  | $self->getRequestDataType()->setCategoryID($sCategoryID); | 
| 83 |  |  |  |  |  |  | } | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | =head2 setPagination() | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | Controls the pagination of the result set. Child elements specify the | 
| 88 |  |  |  |  |  |  | maximum number of item listings to return per call and which page of data | 
| 89 |  |  |  |  |  |  | to return. | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | RequiredInput: No | 
| 92 |  |  |  |  |  |  | #    Argument: 'ns:PaginationType' | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | =cut | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | sub setPagination { | 
| 97 |  |  |  |  |  |  | my $self   = shift; | 
| 98 |  |  |  |  |  |  | my $pPagination = shift; | 
| 99 |  |  |  |  |  |  | $self->getRequestDataType()->setPagination($pPagination); | 
| 100 |  |  |  |  |  |  | } | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | =head2 setQuery() | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | Specifies a search string. The search string consists of one or more | 
| 105 |  |  |  |  |  |  | keywords to search for in the listing title. Note that the post | 
| 106 |  |  |  |  |  |  | description will also be searched if SearchInDescription is enabled. | 
| 107 |  |  |  |  |  |  | By default, requests return a list of Want It Now posts that include all | 
| 108 |  |  |  |  |  |  | of the keywords specified in the Query. All words used in the query, | 
| 109 |  |  |  |  |  |  | including "and," "or," and "the,"  will be treated as keywords. You can, | 
| 110 |  |  |  |  |  |  | however, use modifiers and wildcards (e.g., +, -, and *) in the Query | 
| 111 |  |  |  |  |  |  | field to create more complex searches. Be careful when using spaces before | 
| 112 |  |  |  |  |  |  | or after modifiers and wildcards (+, -, or *), as the spaces can affect | 
| 113 |  |  |  |  |  |  | the query logic. | 
| 114 |  |  |  |  |  |  | See the eBay Web Services Guide for a list of valid search keyword query | 
| 115 |  |  |  |  |  |  | operators and examples. | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | MaxLength: 350 (characters) | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | RequiredInput: No | 
| 120 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | =cut | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | sub setQuery { | 
| 125 |  |  |  |  |  |  | my $self   = shift; | 
| 126 |  |  |  |  |  |  | my $sQuery = shift; | 
| 127 |  |  |  |  |  |  | $self->getRequestDataType()->setQuery($sQuery); | 
| 128 |  |  |  |  |  |  | } | 
| 129 |  |  |  |  |  |  |  | 
| 130 |  |  |  |  |  |  | =head2 setSearchInDescription() | 
| 131 |  |  |  |  |  |  |  | 
| 132 |  |  |  |  |  |  | If true, include the description field of Want It Now posts in the keyword search. Want | 
| 133 |  |  |  |  |  |  | It Now posts returned are those where specified search keywords appear in | 
| 134 |  |  |  |  |  |  | either the description or the title. This is the default behavior if SearchInDescription | 
| 135 |  |  |  |  |  |  | is not specified. If false, only the title will be searched. SearchInDescription is an | 
| 136 |  |  |  |  |  |  | optional input. | 
| 137 |  |  |  |  |  |  |  | 
| 138 |  |  |  |  |  |  | RequiredInput: No | 
| 139 |  |  |  |  |  |  | #    Argument: 'xs:boolean' | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  | =cut | 
| 142 |  |  |  |  |  |  |  | 
| 143 |  |  |  |  |  |  | sub setSearchInDescription { | 
| 144 |  |  |  |  |  |  | my $self   = shift; | 
| 145 |  |  |  |  |  |  | my $sSearchInDescription = shift; | 
| 146 |  |  |  |  |  |  | $self->getRequestDataType()->setSearchInDescription($sSearchInDescription); | 
| 147 |  |  |  |  |  |  | } | 
| 148 |  |  |  |  |  |  |  | 
| 149 |  |  |  |  |  |  | =head2 setSearchWorldwide() | 
| 150 |  |  |  |  |  |  |  | 
| 151 |  |  |  |  |  |  | If true, the search applies to all eBay sites. If false, the search is | 
| 152 |  |  |  |  |  |  | limited to the site specified in the URL query string when the call is | 
| 153 |  |  |  |  |  |  | made. | 
| 154 |  |  |  |  |  |  |  | 
| 155 |  |  |  |  |  |  | RequiredInput: No | 
| 156 |  |  |  |  |  |  | #    Argument: 'xs:boolean' | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | =cut | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | sub setSearchWorldwide { | 
| 161 |  |  |  |  |  |  | my $self   = shift; | 
| 162 |  |  |  |  |  |  | my $sSearchWorldwide = shift; | 
| 163 |  |  |  |  |  |  | $self->getRequestDataType()->setSearchWorldwide($sSearchWorldwide); | 
| 164 |  |  |  |  |  |  | } | 
| 165 |  |  |  |  |  |  |  | 
| 166 |  |  |  |  |  |  |  | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | # | 
| 169 |  |  |  |  |  |  | # output properties | 
| 170 |  |  |  |  |  |  | # | 
| 171 |  |  |  |  |  |  |  | 
| 172 |  |  |  |  |  |  | =head2 isHasMoreItems() | 
| 173 |  |  |  |  |  |  |  | 
| 174 |  |  |  |  |  |  | Indicates whether there are additional Want It Now posts that meet the | 
| 175 |  |  |  |  |  |  | search criteria. | 
| 176 |  |  |  |  |  |  |  | 
| 177 |  |  |  |  |  |  | Returned: Always | 
| 178 |  |  |  |  |  |  | #    Returns: 'xs:boolean' | 
| 179 |  |  |  |  |  |  |  | 
| 180 |  |  |  |  |  |  | =cut | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | sub isHasMoreItems { | 
| 183 |  |  |  |  |  |  | my $self = shift; | 
| 184 |  |  |  |  |  |  | return $self->getResponseDataType()->isHasMoreItems(); | 
| 185 |  |  |  |  |  |  | } | 
| 186 |  |  |  |  |  |  |  | 
| 187 |  |  |  |  |  |  | =head2 getItemsPerPage() | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  | Indicates the maximum number of Want It Now posts that can be returned in | 
| 190 |  |  |  |  |  |  | a WantItNowPostArray for a request. This value can be specified in the | 
| 191 |  |  |  |  |  |  | request by  EntriesPerPage in Pagination in the request. | 
| 192 |  |  |  |  |  |  |  | 
| 193 |  |  |  |  |  |  | Returned: Always | 
| 194 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 195 |  |  |  |  |  |  |  | 
| 196 |  |  |  |  |  |  | =cut | 
| 197 |  |  |  |  |  |  |  | 
| 198 |  |  |  |  |  |  | sub getItemsPerPage { | 
| 199 |  |  |  |  |  |  | my $self = shift; | 
| 200 |  |  |  |  |  |  | return $self->getResponseDataType()->getItemsPerPage(); | 
| 201 |  |  |  |  |  |  | } | 
| 202 |  |  |  |  |  |  |  | 
| 203 |  |  |  |  |  |  | =head2 getPageNumber() | 
| 204 |  |  |  |  |  |  |  | 
| 205 |  |  |  |  |  |  | Indicates the page of data returned by the current call. | 
| 206 |  |  |  |  |  |  |  | 
| 207 |  |  |  |  |  |  | Returned: Always | 
| 208 |  |  |  |  |  |  | #    Returns: 'xs:int' | 
| 209 |  |  |  |  |  |  |  | 
| 210 |  |  |  |  |  |  | =cut | 
| 211 |  |  |  |  |  |  |  | 
| 212 |  |  |  |  |  |  | sub getPageNumber { | 
| 213 |  |  |  |  |  |  | my $self = shift; | 
| 214 |  |  |  |  |  |  | return $self->getResponseDataType()->getPageNumber(); | 
| 215 |  |  |  |  |  |  | } | 
| 216 |  |  |  |  |  |  |  | 
| 217 |  |  |  |  |  |  | =head2 getPaginationResult() | 
| 218 |  |  |  |  |  |  |  | 
| 219 |  |  |  |  |  |  | Indicates the results of the pagination, including the total number of | 
| 220 |  |  |  |  |  |  | pages of data there are to be returned and the total number of posts there | 
| 221 |  |  |  |  |  |  | are to be returned. | 
| 222 |  |  |  |  |  |  |  | 
| 223 |  |  |  |  |  |  | Returned: Always | 
| 224 |  |  |  |  |  |  | #    Returns: 'ns:PaginationResultType' | 
| 225 |  |  |  |  |  |  |  | 
| 226 |  |  |  |  |  |  | =cut | 
| 227 |  |  |  |  |  |  |  | 
| 228 |  |  |  |  |  |  | sub getPaginationResult { | 
| 229 |  |  |  |  |  |  | my $self = shift; | 
| 230 |  |  |  |  |  |  | return $self->getResponseDataType()->getPaginationResult(); | 
| 231 |  |  |  |  |  |  | } | 
| 232 |  |  |  |  |  |  |  | 
| 233 |  |  |  |  |  |  | =head2 getWantItNowPostArray() | 
| 234 |  |  |  |  |  |  |  | 
| 235 |  |  |  |  |  |  | Contains the returned Want It Now posts, if any. The data for each post is | 
| 236 |  |  |  |  |  |  | returned in a WantItNowPostType object. | 
| 237 |  |  |  |  |  |  |  | 
| 238 |  |  |  |  |  |  | Returned: Always | 
| 239 |  |  |  |  |  |  | #    Returns: 'ns:WantItNowPostArrayType' | 
| 240 |  |  |  |  |  |  |  | 
| 241 |  |  |  |  |  |  | =cut | 
| 242 |  |  |  |  |  |  |  | 
| 243 |  |  |  |  |  |  | sub getWantItNowPostArray { | 
| 244 |  |  |  |  |  |  | my $self = shift; | 
| 245 |  |  |  |  |  |  | return $self->getResponseDataType()->getWantItNowPostArray(); | 
| 246 |  |  |  |  |  |  | } | 
| 247 |  |  |  |  |  |  |  | 
| 248 |  |  |  |  |  |  |  | 
| 249 |  |  |  |  |  |  |  | 
| 250 |  |  |  |  |  |  |  | 
| 251 |  |  |  |  |  |  |  | 
| 252 |  |  |  |  |  |  | 1; |