| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::DataType::AttributeSetArrayType; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 1107 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 26 |  | 
| 6 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 25 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. AttributeSetArrayType.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::AttributeSetArrayType | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | Applicable for listings that include eBay's Item Specifics or Pre-filled Item | 
| 25 |  |  |  |  |  |  | Information features. A list of attribute sets. An attribute set contains a list | 
| 26 |  |  |  |  |  |  | of attributes that describe category-specific aspects or features of an item in a | 
| 27 |  |  |  |  |  |  | standardized way. See the Developer's Guide for more information. In item-listing | 
| 28 |  |  |  |  |  |  | requests, this property is required if attributes are identified as required in | 
| 29 |  |  |  |  |  |  | the characteristics set meta-data. See the Developer's Guide for information about | 
| 30 |  |  |  |  |  |  | characteristics meta-data and how to determine when attributes are required. | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | =cut | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | eBay::API::XML::DataType::AttributeSetArrayType inherits from the L class | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =cut | 
| 44 |  |  |  |  |  |  |  | 
| 45 | 1 |  |  | 1 |  | 33 | use eBay::API::XML::BaseDataType; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseDataType"); | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | use eBay::API::XML::DataType::AttributeSetType; | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | my @gaProperties = ( [ 'AttributeSet', 'ns:AttributeSetType', '1' | 
| 52 |  |  |  |  |  |  | ,'eBay::API::XML::DataType::AttributeSetType', '1' ] | 
| 53 |  |  |  |  |  |  | ); | 
| 54 |  |  |  |  |  |  | push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | my @gaAttributes = ( | 
| 57 |  |  |  |  |  |  | ); | 
| 58 |  |  |  |  |  |  | push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | =head1 Subroutines: | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =cut | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | sub new { | 
| 65 |  |  |  |  |  |  | my $classname = shift; | 
| 66 |  |  |  |  |  |  | my %args = @_; | 
| 67 |  |  |  |  |  |  | my $self = $classname->SUPER::new(%args); | 
| 68 |  |  |  |  |  |  | return $self; | 
| 69 |  |  |  |  |  |  | } | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | sub isScalar { | 
| 72 |  |  |  |  |  |  | return 0; | 
| 73 |  |  |  |  |  |  | } | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | =head2 setAttributeSet() | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | Contains a list of attributes that describe category-specific aspects or | 
| 80 |  |  |  |  |  |  | features of an item in a standardized way. 
 For the
 | 
| 81 |  |  |  |  |  |  | AddItem family of calls and GetItem, an AttributeSetArray can contain a | 
| 82 |  |  |  |  |  |  | maximum of 2 full attribute sets (one for each category in which the item is | 
| 83 |  |  |  |  |  |  | listed) if the primary and secondary categories are mapped to different | 
| 84 |  |  |  |  |  |  | characteristic sets. If they are mapped to the same characteristic set, the | 
| 85 |  |  |  |  |  |  | AttributeSetArray can contain one full attribute set. 
 | 
| 86 |  |  |  |  |  |  | 
 | 
| 87 |  |  |  |  |  |  | An AttributeSetArray can also contain any number of additional site-wide | 
| 88 |  |  |  |  |  |  | attribute sets. In item-listing requests, AttributeSet is required if the | 
| 89 |  |  |  |  |  |  | category is mapped to a characteristic set with required attributes. On the US | 
| 90 |  |  |  |  |  |  | site, attributes are usually required for Tickets, eBay Motors vehicles, and | 
| 91 |  |  |  |  |  |  | Real Estate listings. See GetCategory2CS and GetAttributesCS. See the | 
| 92 |  |  |  |  |  |  | Developer's Guide for information about attribute meta-data and validation | 
| 93 |  |  |  |  |  |  | rules that are applicable when listing items. 
 | 
| 94 |  |  |  |  |  |  | 
 | 
| 95 |  |  |  |  |  |  | In GetItem, the Half.com item condition may be returned once in an | 
| 96 |  |  |  |  |  |  | AttributeSet node with Half.com IDs and values, and once in a separate | 
| 97 |  |  |  |  |  |  | AttributeSet node with a site-wide eBay item condition. The Half.com IDs are | 
| 98 |  |  |  |  |  |  | not necessarily returned in GetAttributesCS, so you can use the eBay.com data | 
| 99 |  |  |  |  |  |  | instead. Half.com listings may also return an AttributeSet node with other | 
| 100 |  |  |  |  |  |  | eBay attributes. | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | Calls: AddItem | 
| 103 |  |  |  |  |  |  | AddLiveAuctionItem | 
| 104 |  |  |  |  |  |  | GetItemRecommendations | 
| 105 |  |  |  |  |  |  | VerifyAddItem | 
| 106 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | Calls: GetSearchResults | 
| 109 |  |  |  |  |  |  | RelistItem | 
| 110 |  |  |  |  |  |  | ReviseItem | 
| 111 |  |  |  |  |  |  | ReviseLiveAuctionItem | 
| 112 |  |  |  |  |  |  | RequiredInput: No | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | #    Argument: reference to an array | 
| 115 |  |  |  |  |  |  | of 'ns:AttributeSetType' | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | =cut | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | sub setAttributeSet { | 
| 120 |  |  |  |  |  |  | my $self = shift; | 
| 121 |  |  |  |  |  |  | $self->{'AttributeSet'} = | 
| 122 |  |  |  |  |  |  | $self->convertArray_To_RefToArrayIfNeeded(@_); | 
| 123 |  |  |  |  |  |  | } | 
| 124 |  |  |  |  |  |  |  | 
| 125 |  |  |  |  |  |  | =head2 getAttributeSet() | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | Calls: GetCategoryListings | 
| 128 |  |  |  |  |  |  | GetItemRecommendations | 
| 129 |  |  |  |  |  |  | Returned: Conditionally | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | Calls: GetSearchResults | 
| 132 |  |  |  |  |  |  | GetProducts | 
| 133 |  |  |  |  |  |  | Returned: Conditionally | 
| 134 |  |  |  |  |  |  | Details: DetailLevel: none, ItemReturnAttributes, ItemReturnCategories, ReturnAll | 
| 135 |  |  |  |  |  |  | GranularityLevel: Coarse | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  |  | 
| 138 |  |  |  |  |  |  | Calls: GetItem | 
| 139 |  |  |  |  |  |  | Returned: Conditionally | 
| 140 |  |  |  |  |  |  | Details: DetailLevel: ItemReturnAttributes, ReturnAll | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | #    Returns: reference to an array | 
| 143 |  |  |  |  |  |  | of 'ns:AttributeSetType' | 
| 144 |  |  |  |  |  |  |  | 
| 145 |  |  |  |  |  |  | =cut | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  | sub getAttributeSet { | 
| 148 |  |  |  |  |  |  | my $self = shift; | 
| 149 |  |  |  |  |  |  | return $self->_getDataTypeArray('AttributeSet'); | 
| 150 |  |  |  |  |  |  | } | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  |  | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  |  | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | ##  Attribute and Property lists | 
| 157 |  |  |  |  |  |  | sub getPropertiesList { | 
| 158 |  |  |  |  |  |  | my $self = shift; | 
| 159 |  |  |  |  |  |  | return \@gaProperties; | 
| 160 |  |  |  |  |  |  | } | 
| 161 |  |  |  |  |  |  |  | 
| 162 |  |  |  |  |  |  | sub getAttributesList { | 
| 163 |  |  |  |  |  |  | my $self = shift; | 
| 164 |  |  |  |  |  |  | return \@gaAttributes; | 
| 165 |  |  |  |  |  |  | } | 
| 166 |  |  |  |  |  |  |  | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  |  | 
| 169 |  |  |  |  |  |  | 1; |