| eBay-API documentation | Contained in the eBay-API distribution. |
eBay::API::XML::Call::SetPromotionalSale::SetPromotionalSaleRequestType
Creates or modifies a promotional sale. This call is part of the Promotional Price Display feature, which enables sellers to apply discounts and/or free shipping across many listings. Promotional sales apply to single and multi-quantity Store Inventory format, regular fixed-price format, auction, and auction/BIN formats. Auction and auction/BIN format listings can be added to free shipping sales only.
eBay::API::XML::Call::SetPromotionalSale::SetPromotionalSaleRequestType inherits from the eBay::API::XML::RequestDataType class
Specifies adding, removing, or modifying promotional sales.
RequiredInput: Yes # Argument: 'ns:ModifyActionCodeType'
# Returns: 'ns:ModifyActionCodeType'
Specifies details about the promotional sale.
RequiredInput: Yes # Argument: 'ns:PromotionalSaleType'
# Returns: 'ns:PromotionalSaleType'
| eBay-API documentation | Contained in the eBay-API distribution. |
#!/usr/bin/perl package eBay::API::XML::Call::SetPromotionalSale::SetPromotionalSaleRequestType; use strict; use warnings; ########################################################################## # # Module: ............... <user defined location>eBay/API/XML # File: ................. SetPromotionalSaleRequestType.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::PromotionalSaleType; use eBay::API::XML::DataType::Enum::ModifyActionCodeType; my @gaProperties = ( [ 'Action', 'ns:ModifyActionCodeType', '' ,'eBay::API::XML::DataType::Enum::ModifyActionCodeType', '' ] , [ 'PromotionalSaleDetails', 'ns:PromotionalSaleType', '' ,'eBay::API::XML::DataType::PromotionalSaleType', '1' ] ); 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 setAction { my $self = shift; $self->{'Action'} = shift }
sub getAction { my $self = shift; return $self->{'Action'}; }
sub setPromotionalSaleDetails { my $self = shift; $self->{'PromotionalSaleDetails'} = shift }
sub getPromotionalSaleDetails { my $self = shift; return $self->_getDataTypeInstance( 'PromotionalSaleDetails' ,'eBay::API::XML::DataType::PromotionalSaleType'); } ## Attribute and Property lists sub getPropertiesList { my $self = shift; return \@gaProperties; } sub getAttributesList { my $self = shift; return \@gaAttributes; } 1;