| eBay-API documentation | Contained in the eBay-API distribution. |
eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesRequestType
Retrieves all promotion rules associated with the specified item or store category.
eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesRequestType inherits from the eBay::API::XML::RequestDataType class
The unique ID of the item for which to retrieve promotion rules. Mutually exclusive with StoreCategoryID.
MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
RequiredInput: Conditionally # Argument: 'ns:ItemIDType'
# Returns: 'ns:ItemIDType'
The type of promotion. (CrossSell: items that are related to or useful in combination with this item. UpSell: items that are more expensive than or of higher quality than this item.)
RequiredInput: Yes # Argument: 'ns:PromotionMethodCodeType'
# Returns: 'ns:PromotionMethodCodeType'
The unique ID of the store category for which to retrieve promotion rules. Mutually exclusive with ItemID.
RequiredInput: Conditionally # Argument: 'xs:long'
# Returns: 'xs:long'
| eBay-API documentation | Contained in the eBay-API distribution. |
#!/usr/bin/perl package eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesRequestType; use strict; use warnings; ########################################################################## # # Module: ............... <user defined location>eBay/API/XML # File: ................. GetPromotionRulesRequestType.pm # Generated by: ......... genEBayApiDataTypes.pl # Last Generated: ....... 08/24/2008 16:44 # API Release Number: ... 579 # ##########################################################################
use eBay::API::XML::RequestDataType; our @ISA = ("eBay::API::XML::RequestDataType"); use eBay::API::XML::DataType::ItemIDType; use eBay::API::XML::DataType::Enum::PromotionMethodCodeType; my @gaProperties = ( [ 'ItemID', 'ns:ItemIDType', '' ,'eBay::API::XML::DataType::ItemIDType', '1' ] , [ 'PromotionMethod', 'ns:PromotionMethodCodeType', '' ,'eBay::API::XML::DataType::Enum::PromotionMethodCodeType', '' ] , [ 'StoreCategoryID', 'xs:long', '', '', '' ] ); push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; my @gaAttributes = ( ); push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
sub new { my $classname = shift; my %args = @_; my $self = $classname->SUPER::new(%args); return $self; } sub isScalar { return 0; }
sub setItemID { my $self = shift; $self->{'ItemID'} = shift }
sub getItemID { my $self = shift; return $self->_getDataTypeInstance( 'ItemID' ,'eBay::API::XML::DataType::ItemIDType'); }
sub setPromotionMethod { my $self = shift; $self->{'PromotionMethod'} = shift }
sub getPromotionMethod { my $self = shift; return $self->{'PromotionMethod'}; }
sub setStoreCategoryID { my $self = shift; $self->{'StoreCategoryID'} = shift }
sub getStoreCategoryID { my $self = shift; return $self->{'StoreCategoryID'}; } ## Attribute and Property lists sub getPropertiesList { my $self = shift; return \@gaProperties; } sub getAttributesList { my $self = shift; return \@gaAttributes; } 1;