eBay::API::XML::Call::GetPromotionRules - eBay::API::XML::Call::GetPromotionRules documentation


eBay-API documentation Contained in the eBay-API distribution.

Index


Code Index:

NAME

Top

eBay::API::XML::Call::GetPromotionRules

DESCRIPTION

Top

SYNOPSIS

Top

INHERITANCE

Top

eBay::API::XML::Call::GetPromotionRules inherits from the eBay::API::XML::BaseCall class

Subroutines:

Top

setItemID()

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'

setPromotionMethod()

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'

setStoreCategoryID()

The unique ID of the store category for which to retrieve promotion rules. Mutually exclusive with ItemID.

  RequiredInput: Conditionally
#    Argument: 'xs:long'

getPromotionRuleArray()

An array of promotion rules associated with the item or store category specified in the request.

  Returned: Always
#    Returns: 'ns:PromotionRuleArrayType'


eBay-API documentation Contained in the eBay-API distribution.
#!/usr/bin/perl

package eBay::API::XML::Call::GetPromotionRules;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. GetPromotionRules.pm
# Generated by: ......... genEBayApiDataTypes.pl
# Last Generated: ....... 08/24/2008 16:44
# API Release Number: ... 579
#
##########################################################################  

use eBay::API::XML::BaseCall;
our @ISA = ("eBay::API::XML::BaseCall");

use eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesRequestType;
use eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesResponseType;


sub getApiCallName {
   return 'GetPromotionRules';
}
sub getRequestDataTypeFullPackage {
   return 'eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesRequestType';
}
sub getResponseDataTypeFullPackage {
   return 'eBay::API::XML::Call::GetPromotionRules::GetPromotionRulesResponseType';
}

#
# input properties
#

       
sub setItemID {
   my $self   = shift;
   my $pItemID = shift;
   $self->getRequestDataType()->setItemID($pItemID);
}

       
sub setPromotionMethod {
   my $self   = shift;
   my $sPromotionMethod = shift;
   $self->getRequestDataType()->setPromotionMethod($sPromotionMethod);
}

       
sub setStoreCategoryID {
   my $self   = shift;
   my $sStoreCategoryID = shift;
   $self->getRequestDataType()->setStoreCategoryID($sStoreCategoryID);
}



#
# output properties
#

       
sub getPromotionRuleArray {
   my $self = shift;
   return $self->getResponseDataType()->getPromotionRuleArray();
}





1;