1# -*- perl -*- 2# !!! DO NOT EDIT !!! 3# This file was automatically generated. 4package Net::Amazon::Validate::ItemSearch::us::UPC; 5 6use 5.006; 7use strict; 8use warnings; 9 10sub new { 11 my ($class , %options) = @_; 12 my $self = { 13 '_default' => 'Books', 14 %options, 15 }; 16 17 push @{$self->{_options}}, 'Actor'; 18 push @{$self->{_options}}, 'Apparel'; 19 push @{$self->{_options}}, 'Artist'; 20 push @{$self->{_options}}, 'AudienceRating'; 21 push @{$self->{_options}}, 'Author'; 22 push @{$self->{_options}}, 'Automotive'; 23 push @{$self->{_options}}, 'Availability'; 24 push @{$self->{_options}}, 'Baby'; 25 push @{$self->{_options}}, 'Beauty'; 26 push @{$self->{_options}}, 'Blended'; 27 push @{$self->{_options}}, 'Books'; 28 push @{$self->{_options}}, 'Brand'; 29 push @{$self->{_options}}, 'BrowseNode'; 30 push @{$self->{_options}}, 'Browsenode'; 31 push @{$self->{_options}}, 'City'; 32 push @{$self->{_options}}, 'Classical'; 33 push @{$self->{_options}}, 'Composer'; 34 push @{$self->{_options}}, 'Condition'; 35 push @{$self->{_options}}, 'Conductor'; 36 push @{$self->{_options}}, 'Count'; 37 push @{$self->{_options}}, 'DVD'; 38 push @{$self->{_options}}, 'DigitalMusic'; 39 push @{$self->{_options}}, 'Director'; 40 push @{$self->{_options}}, 'Electronics'; 41 push @{$self->{_options}}, 'Format'; 42 push @{$self->{_options}}, 'GourmetFood'; 43 push @{$self->{_options}}, 'HealthPersonalCare'; 44 push @{$self->{_options}}, 'HomeGarden'; 45 push @{$self->{_options}}, 'Industrial'; 46 push @{$self->{_options}}, 'ItemPage'; 47 push @{$self->{_options}}, 'Jewelry'; 48 push @{$self->{_options}}, 'Keyword'; 49 push @{$self->{_options}}, 'Keywords'; 50 push @{$self->{_options}}, 'KindleStore'; 51 push @{$self->{_options}}, 'Kitchen'; 52 push @{$self->{_options}}, 'MP3Downloads'; 53 push @{$self->{_options}}, 'MPAARating'; 54 push @{$self->{_options}}, 'Magazines'; 55 push @{$self->{_options}}, 'Manufacturer'; 56 push @{$self->{_options}}, 'MaximumPrice'; 57 push @{$self->{_options}}, 'MerchantId'; 58 push @{$self->{_options}}, 'Merchants'; 59 push @{$self->{_options}}, 'MinimumPrice'; 60 push @{$self->{_options}}, 'Miscellaneous'; 61 push @{$self->{_options}}, 'Music'; 62 push @{$self->{_options}}, 'MusicLabel'; 63 push @{$self->{_options}}, 'MusicTracks'; 64 push @{$self->{_options}}, 'MusicalInstruments'; 65 push @{$self->{_options}}, 'Neighborhood'; 66 push @{$self->{_options}}, 'OfficeProducts'; 67 push @{$self->{_options}}, 'Orchestra'; 68 push @{$self->{_options}}, 'OutdoorLiving'; 69 push @{$self->{_options}}, 'PCHardware'; 70 push @{$self->{_options}}, 'Performer'; 71 push @{$self->{_options}}, 'PetSupplies'; 72 push @{$self->{_options}}, 'Photo'; 73 push @{$self->{_options}}, 'PostalCode'; 74 push @{$self->{_options}}, 'Power'; 75 push @{$self->{_options}}, 'Publisher'; 76 push @{$self->{_options}}, 'Shoes'; 77 push @{$self->{_options}}, 'SilverMerchants'; 78 push @{$self->{_options}}, 'Software'; 79 push @{$self->{_options}}, 'Sort'; 80 push @{$self->{_options}}, 'SportingGoods'; 81 push @{$self->{_options}}, 'State'; 82 push @{$self->{_options}}, 'TextStream'; 83 push @{$self->{_options}}, 'Title'; 84 push @{$self->{_options}}, 'Tools'; 85 push @{$self->{_options}}, 'Toys'; 86 push @{$self->{_options}}, 'UnboxVideo'; 87 push @{$self->{_options}}, 'VHS'; 88 push @{$self->{_options}}, 'Video'; 89 push @{$self->{_options}}, 'VideoGames'; 90 push @{$self->{_options}}, 'Watches'; 91 push @{$self->{_options}}, 'Wireless'; 92 push @{$self->{_options}}, 'WirelessAccessories'; 93 94 bless $self, $class; 95} 96 97sub user_or_default { 98 my ($self, $user) = @_; 99 if (defined $user && length($user) > 0) { 100 return $self->find_match($user); 101 } 102 return $self->default(); 103} 104 105sub default { 106 my ($self) = @_; 107 return $self->{_default}; 108} 109 110sub find_match { 111 my ($self, $value) = @_; 112 for (@{$self->{_options}}) { 113 return $_ if lc($_) eq lc($value); 114 } 115 die "$value is not a valid value for us::UPC!\n"; 116} 117 1181; 119 120__END__ 121 122=head1 NAME 123 124Net::Amazon::Validate::ItemSearch::us::UPC - valid search indicies 125for the us locale and the UPC SearchIndex. 126 127=head1 DESCRIPTION 128 129The default value is Books, unless mode is specified. 130 131The list of available values are: 132 133 Actor 134 Apparel 135 Artist 136 AudienceRating 137 Author 138 Automotive 139 Availability 140 Baby 141 Beauty 142 Blended 143 Books 144 Brand 145 BrowseNode 146 Browsenode 147 City 148 Classical 149 Composer 150 Condition 151 Conductor 152 Count 153 DVD 154 DigitalMusic 155 Director 156 Electronics 157 Format 158 GourmetFood 159 HealthPersonalCare 160 HomeGarden 161 Industrial 162 ItemPage 163 Jewelry 164 Keyword 165 Keywords 166 KindleStore 167 Kitchen 168 MP3Downloads 169 MPAARating 170 Magazines 171 Manufacturer 172 MaximumPrice 173 MerchantId 174 Merchants 175 MinimumPrice 176 Miscellaneous 177 Music 178 MusicLabel 179 MusicTracks 180 MusicalInstruments 181 Neighborhood 182 OfficeProducts 183 Orchestra 184 OutdoorLiving 185 PCHardware 186 Performer 187 PetSupplies 188 Photo 189 PostalCode 190 Power 191 Publisher 192 Shoes 193 SilverMerchants 194 Software 195 Sort 196 SportingGoods 197 State 198 TextStream 199 Title 200 Tools 201 Toys 202 UnboxVideo 203 VHS 204 Video 205 VideoGames 206 Watches 207 Wireless 208 WirelessAccessories 209 210=cut 211