| 1 | # -*- perl -*- | ||
| 2 | # !!! DO NOT EDIT !!! | ||
| 3 | # This file was automatically generated. | ||
| 4 | package Net::Amazon::Validate::Type::SellerLookup; | ||
| 5 | |||
| 6 | use 5.006; | ||
| 7 | use strict; | ||
| 8 | use warnings; | ||
| 9 | |||
| 10 | use constant RESPONSEGROUP_VALID_VALUES => { | ||
| 11 | 'Seller' => 1, | ||
| 12 | }; | ||
| 13 | |||
| 14 | sub new { | ||
| 15 | my ($class , %options) = @_; | ||
| 16 | my $self = { | ||
| 17 | %options, | ||
| 18 | }; | ||
| 19 | bless $self, $class; | ||
| 20 | } | ||
| 21 | |||
| 22 | sub assert { | ||
| 23 | my ($self, $value, $name, $href) = @_; | ||
| 24 | die "Unknown type in Net::Amazon::Request constructor: $value" unless defined $href->{$value}; | ||
| 25 | } | ||
| 26 | |||
| 27 | sub validate { | ||
| 28 | my ($self, $value, $name, $href) = @_; | ||
| 29 | if ( ref ($value) eq 'ARRAY' ) { | ||
| 30 | $self->assert($_, $name, $href) for (@$value); | ||
| 31 | } else { | ||
| 32 | $self->assert($value, $name, $href); | ||
| 33 | } | ||
| 34 | } | ||
| 35 | |||
| 36 | sub ResponseGroup { | ||
| 37 | my ($self, $value) = @_; | ||
| 38 | $self->validate($value, "ResponseGroup", (RESPONSEGROUP_VALID_VALUES)); | ||
| 39 | } | ||
| 40 | |||
| 41 | 1; |