| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::DataType::NameValueListType; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 1676 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 41 |  | 
| 6 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 35 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. NameValueListType.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::NameValueListType | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | A name and corresponding value (a name/value pair). | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | =cut | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | eBay::API::XML::DataType::NameValueListType inherits from the L class | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | =cut | 
| 38 |  |  |  |  |  |  |  | 
| 39 | 1 |  |  | 1 |  | 47 | use eBay::API::XML::BaseDataType; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseDataType"); | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | use eBay::API::XML::DataType::Enum::ItemSpecificSourceCodeType; | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | my @gaProperties = ( [ 'Name', 'xs:string', '', '', '' ] | 
| 46 |  |  |  |  |  |  | , [ 'Source', 'ns:ItemSpecificSourceCodeType', '' | 
| 47 |  |  |  |  |  |  | ,'eBay::API::XML::DataType::Enum::ItemSpecificSourceCodeType', '' ] | 
| 48 |  |  |  |  |  |  | , [ 'Value', 'xs:string', '1', '', '' ] | 
| 49 |  |  |  |  |  |  | ); | 
| 50 |  |  |  |  |  |  | push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | my @gaAttributes = ( | 
| 53 |  |  |  |  |  |  | ); | 
| 54 |  |  |  |  |  |  | push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | =head1 Subroutines: | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =cut | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | sub new { | 
| 61 |  |  |  |  |  |  | my $classname = shift; | 
| 62 |  |  |  |  |  |  | my %args = @_; | 
| 63 |  |  |  |  |  |  | my $self = $classname->SUPER::new(%args); | 
| 64 |  |  |  |  |  |  | return $self; | 
| 65 |  |  |  |  |  |  | } | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | sub isScalar { | 
| 68 |  |  |  |  |  |  | return 0; | 
| 69 |  |  |  |  |  |  | } | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =head2 setName() | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | A name in a name/value pair. 
 | 
| 76 |  |  |  |  |  |  | 
 | 
| 77 |  |  |  |  |  |  | In the AddItem family of calls, this can be any name that the seller | 
| 78 |  |  |  |  |  |  | wants to use. However, to help buyers find items more easily, it is | 
| 79 |  |  |  |  |  |  | a good idea to try to use a recommended name when possible | 
| 80 |  |  |  |  |  |  | (see GetCategorySpecifics or GetItemRecommendations). | 
| 81 |  |  |  |  |  |  | You cannot specify the same name twice within the same listing. 
 | 
| 82 |  |  |  |  |  |  | 
 | 
| 83 |  |  |  |  |  |  | In the GetCategorySpecifics and GetItemRecommendations response, | 
| 84 |  |  |  |  |  |  | this is a recommended (popular) name to use for items in the | 
| 85 |  |  |  |  |  |  | specified category (e.g., "Brand" might be recommended, | 
| 86 |  |  |  |  |  |  | not "Manufacturer"). 
 | 
| 87 |  |  |  |  |  |  | 
 | 
| 88 |  |  |  |  |  |  | In the GetSearchResults response, this is an attribute name that | 
| 89 |  |  |  |  |  |  | was used in a listing. Specifically: | 
| 90 |  |  |  |  |  |  | If SearchRequest was used to perform a "Product Finder" search, | 
| 91 |  |  |  |  |  |  | this contains the name of one attribute (i.e, the name of one | 
| 92 |  |  |  |  |  |  | Item Specifics field). | 
| 93 |  |  |  |  |  |  | If IncludeCondition was true in the request, this returns the | 
| 94 |  |  |  |  |  |  | condition attribute name (e.g., "Item Condition"). 
 | 
| 95 |  |  |  |  |  |  | 
 | 
| 96 |  |  |  |  |  |  | In the GetSearchResultsExpress response, this is an | 
| 97 |  |  |  |  |  |  | attribute name that is defined for a catalog product. | 
| 98 |  |  |  |  |  |  | Only returned when ProductDetails is set to Fine. 
 | 
| 99 |  |  |  |  |  |  | 
 | 
| 100 |  |  |  |  |  |  | In the GetProducts response, this is an attribute | 
| 101 |  |  |  |  |  |  | name that is defined for a catalog product. | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | Calls: AddItem | 
| 104 |  |  |  |  |  |  | AddLiveAuctionItem | 
| 105 |  |  |  |  |  |  | RelistItem | 
| 106 |  |  |  |  |  |  | ReviseItem | 
| 107 |  |  |  |  |  |  | ReviseLiveAuctionItem | 
| 108 |  |  |  |  |  |  | VerifyAddItem | 
| 109 |  |  |  |  |  |  | RequiredInput: No | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 112 |  |  |  |  |  |  |  | 
| 113 |  |  |  |  |  |  | =cut | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | sub setName { | 
| 116 |  |  |  |  |  |  | my $self = shift; | 
| 117 |  |  |  |  |  |  | $self->{'Name'} = shift | 
| 118 |  |  |  |  |  |  | } | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | =head2 getName() | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | Calls: GetCategorySpecifics | 
| 123 |  |  |  |  |  |  | GetItemRecommendations | 
| 124 |  |  |  |  |  |  | Returned: Conditionally | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | Calls: GetItem | 
| 127 |  |  |  |  |  |  | Returned: Conditionally | 
| 128 |  |  |  |  |  |  | Details: DetailLevel: none, ItemReturnDescription, | 
| 129 |  |  |  |  |  |  | ItemReturnAttributes, ReturnAll | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | Calls: GetSearchResults | 
| 132 |  |  |  |  |  |  | Returned: Conditionally | 
| 133 |  |  |  |  |  |  | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | 
| 134 |  |  |  |  |  |  | GranularityLevel: Coarse | 
| 135 |  |  |  |  |  |  |  | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | Calls: GetProducts | 
| 138 |  |  |  |  |  |  | Returned: Conditionally | 
| 139 |  |  |  |  |  |  |  | 
| 140 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | =cut | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | sub getName { | 
| 145 |  |  |  |  |  |  | my $self = shift; | 
| 146 |  |  |  |  |  |  | return $self->{'Name'}; | 
| 147 |  |  |  |  |  |  | } | 
| 148 |  |  |  |  |  |  |  | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | =head2 setSource() | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | The origin of this Item Specific. Only returned if the source is not | 
| 153 |  |  |  |  |  |  | custom Item Specifics. 
 | 
| 154 |  |  |  |  |  |  | 
 | 
| 155 |  |  |  |  |  |  | This information is intended for future use, for applications that also | 
| 156 |  |  |  |  |  |  | read data from Item.AttributeSetArray. | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | #    Argument: 'ns:ItemSpecificSourceCodeType' | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | =cut | 
| 161 |  |  |  |  |  |  |  | 
| 162 |  |  |  |  |  |  | sub setSource { | 
| 163 |  |  |  |  |  |  | my $self = shift; | 
| 164 |  |  |  |  |  |  | $self->{'Source'} = shift | 
| 165 |  |  |  |  |  |  | } | 
| 166 |  |  |  |  |  |  |  | 
| 167 |  |  |  |  |  |  | =head2 getSource() | 
| 168 |  |  |  |  |  |  |  | 
| 169 |  |  |  |  |  |  | #    Returns: 'ns:ItemSpecificSourceCodeType' | 
| 170 |  |  |  |  |  |  |  | 
| 171 |  |  |  |  |  |  | =cut | 
| 172 |  |  |  |  |  |  |  | 
| 173 |  |  |  |  |  |  | sub getSource { | 
| 174 |  |  |  |  |  |  | my $self = shift; | 
| 175 |  |  |  |  |  |  | return $self->{'Source'}; | 
| 176 |  |  |  |  |  |  | } | 
| 177 |  |  |  |  |  |  |  | 
| 178 |  |  |  |  |  |  |  | 
| 179 |  |  |  |  |  |  | =head2 setValue() | 
| 180 |  |  |  |  |  |  |  | 
| 181 |  |  |  |  |  |  | A value associated with the name. 
 | 
| 182 |  |  |  |  |  |  | 
 | 
| 183 |  |  |  |  |  |  | In the GetCategorySpecifics and GetItemRecommendations response, | 
| 184 |  |  |  |  |  |  | the most highly recommended values are returned first. For these calls, | 
| 185 |  |  |  |  |  |  | Value is only returned when recommended values are available. 
 | 
| 186 |  |  |  |  |  |  | 
 | 
| 187 |  |  |  |  |  |  | In the AddItem family of calls, you can only specify one value per | 
| 188 |  |  |  |  |  |  | Item Specific. (If you specify multiple values, eBay only stores the | 
| 189 |  |  |  |  |  |  | first one.) 
 | 
| 190 |  |  |  |  |  |  | 
 | 
| 191 |  |  |  |  |  |  | In the GetSearchResults response, if SearchRequest was used to perform | 
| 192 |  |  |  |  |  |  | a "Product Finder" search, this contains the | 
| 193 |  |  |  |  |  |  | value of one attribute. | 
| 194 |  |  |  |  |  |  | If IncludeCondition was true in the request, this returns the | 
| 195 |  |  |  |  |  |  | condition attribute value (e.g., "New"). 
 | 
| 196 |  |  |  |  |  |  | 
 | 
| 197 |  |  |  |  |  |  | In the GetSearchResultsExpress response, this is only returned when | 
| 198 |  |  |  |  |  |  | ProductDetails is set to Fine. | 
| 199 |  |  |  |  |  |  |  | 
| 200 |  |  |  |  |  |  | Calls: AddItem | 
| 201 |  |  |  |  |  |  | AddLiveAuctionItem | 
| 202 |  |  |  |  |  |  | RelistItem | 
| 203 |  |  |  |  |  |  | ReviseItem | 
| 204 |  |  |  |  |  |  | ReviseLiveAuctionItem | 
| 205 |  |  |  |  |  |  | VerifyAddItem | 
| 206 |  |  |  |  |  |  | RequiredInput: No | 
| 207 |  |  |  |  |  |  | MaxLength: 50 (see GeteBayDetails) | 
| 208 |  |  |  |  |  |  |  | 
| 209 |  |  |  |  |  |  | #    Argument: reference to an array | 
| 210 |  |  |  |  |  |  | of 'xs:string' | 
| 211 |  |  |  |  |  |  |  | 
| 212 |  |  |  |  |  |  | =cut | 
| 213 |  |  |  |  |  |  |  | 
| 214 |  |  |  |  |  |  | sub setValue { | 
| 215 |  |  |  |  |  |  | my $self = shift; | 
| 216 |  |  |  |  |  |  | $self->{'Value'} = | 
| 217 |  |  |  |  |  |  | $self->convertArray_To_RefToArrayIfNeeded(@_); | 
| 218 |  |  |  |  |  |  | } | 
| 219 |  |  |  |  |  |  |  | 
| 220 |  |  |  |  |  |  | =head2 getValue() | 
| 221 |  |  |  |  |  |  |  | 
| 222 |  |  |  |  |  |  | Calls: GetItemRecommendations | 
| 223 |  |  |  |  |  |  | Returned: Conditionally | 
| 224 |  |  |  |  |  |  | MaxLength: 50 (see GeteBayDetails) | 
| 225 |  |  |  |  |  |  |  | 
| 226 |  |  |  |  |  |  | Calls: GetItem | 
| 227 |  |  |  |  |  |  | Returned: Conditionally | 
| 228 |  |  |  |  |  |  | Details: DetailLevel: none, ItemReturnDescription, | 
| 229 |  |  |  |  |  |  | ItemReturnAttributes, ReturnAll | 
| 230 |  |  |  |  |  |  | MaxLength: 50 (see GeteBayDetails) | 
| 231 |  |  |  |  |  |  |  | 
| 232 |  |  |  |  |  |  | Calls: GetSearchResults | 
| 233 |  |  |  |  |  |  | Returned: Conditionally | 
| 234 |  |  |  |  |  |  | Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll | 
| 235 |  |  |  |  |  |  | GranularityLevel: Coarse | 
| 236 |  |  |  |  |  |  |  | 
| 237 |  |  |  |  |  |  |  | 
| 238 |  |  |  |  |  |  | Calls: GetProducts | 
| 239 |  |  |  |  |  |  | Returned: Conditionally | 
| 240 |  |  |  |  |  |  |  | 
| 241 |  |  |  |  |  |  | #    Returns: reference to an array | 
| 242 |  |  |  |  |  |  | of 'xs:string' | 
| 243 |  |  |  |  |  |  |  | 
| 244 |  |  |  |  |  |  | =cut | 
| 245 |  |  |  |  |  |  |  | 
| 246 |  |  |  |  |  |  | sub getValue { | 
| 247 |  |  |  |  |  |  | my $self = shift; | 
| 248 |  |  |  |  |  |  | return $self->_getDataTypeArray('Value'); | 
| 249 |  |  |  |  |  |  | } | 
| 250 |  |  |  |  |  |  |  | 
| 251 |  |  |  |  |  |  |  | 
| 252 |  |  |  |  |  |  |  | 
| 253 |  |  |  |  |  |  |  | 
| 254 |  |  |  |  |  |  |  | 
| 255 |  |  |  |  |  |  | ##  Attribute and Property lists | 
| 256 |  |  |  |  |  |  | sub getPropertiesList { | 
| 257 |  |  |  |  |  |  | my $self = shift; | 
| 258 |  |  |  |  |  |  | return \@gaProperties; | 
| 259 |  |  |  |  |  |  | } | 
| 260 |  |  |  |  |  |  |  | 
| 261 |  |  |  |  |  |  | sub getAttributesList { | 
| 262 |  |  |  |  |  |  | my $self = shift; | 
| 263 |  |  |  |  |  |  | return \@gaAttributes; | 
| 264 |  |  |  |  |  |  | } | 
| 265 |  |  |  |  |  |  |  | 
| 266 |  |  |  |  |  |  |  | 
| 267 |  |  |  |  |  |  |  | 
| 268 |  |  |  |  |  |  | 1; |