| eBay-API documentation | Contained in the eBay-API distribution. |
eBay::API::XML::DataType::PromotionalSaleType
Details for a single promotional sale.
eBay::API::XML::DataType::PromotionalSaleType inherits from the eBay::API::XML::BaseDataType class
Type of a promotional sale discount for items (for example, percentage). Applies to price discount sales only.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'ns:DiscountCodeType'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'ns:DiscountCodeType'
Value of a promotional sale discount for items, a percentage discount or a fixed amount reduction. Percentage discounts must be at least 5% and cannot exceed 75% of the original listing price. Fixed amount discounts will be in the currency of the original listing. Applies to price discount sales only.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'xs:double'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'xs:double'
End date of a promotional sale discount for items. Maximum listing durations vary by site from 14 days to 45 days. The minimum promotional sale duration is 1 day for most sites, but 3 days on some sites.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'xs:dateTime'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'xs:dateTime'
Unique ID of a promotional sale (discount and/or free shipping) for items. This field is an input field only for the SetPromotionalSale call and only if you are not adding a new promotional sale.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'xs:long'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'xs:long'
Items covered by a promotional sale.
# Argument: 'ns:ItemIDArrayType'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'ns:ItemIDArrayType'
Name of a promotional sale for items.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'xs:string'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'xs:string'
Start date of a promotional sale for items. Promotional sales can start immediately or be scheduled to start at a later date. Some sites require items to have been listed for a specific duration before they can be added to a promotional sale (for example, on the US site, items must have been listed for a day before they can be added to a promotional sale).
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'xs:dateTime'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'xs:dateTime'
Type of promotional sale: price discount, free shipping, or both.
Calls: SetPromotionalSale RequiredInput: Conditionally
# Argument: 'ns:PromotionalSaleTypeCodeType'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'ns:PromotionalSaleTypeCodeType'
Status of a promotional sale for items.
# Argument: 'ns:PromotionalSaleStatusCodeType'
Calls: GetPromotionalSaleDetails Returned: Conditionally
# Returns: 'ns:PromotionalSaleStatusCodeType'
| eBay-API documentation | Contained in the eBay-API distribution. |
#!/usr/bin/perl package eBay::API::XML::DataType::PromotionalSaleType; use strict; use warnings; ########################################################################## # # Module: ............... <user defined location>eBay/API/XML # File: ................. PromotionalSaleType.pm # Generated by: ......... genEBayApiDataTypes.pl # Last Generated: ....... 08/24/2008 16:44 # API Release Number: ... 579 # ##########################################################################
use eBay::API::XML::BaseDataType; our @ISA = ("eBay::API::XML::BaseDataType"); use eBay::API::XML::DataType::ItemIDArrayType; use eBay::API::XML::DataType::Enum::DiscountCodeType; use eBay::API::XML::DataType::Enum::PromotionalSaleStatusCodeType; use eBay::API::XML::DataType::Enum::PromotionalSaleTypeCodeType; my @gaProperties = ( [ 'DiscountType', 'ns:DiscountCodeType', '' ,'eBay::API::XML::DataType::Enum::DiscountCodeType', '' ] , [ 'DiscountValue', 'xs:double', '', '', '' ] , [ 'PromotionalSaleEndTime', 'xs:dateTime', '', '', '' ] , [ 'PromotionalSaleID', 'xs:long', '', '', '' ] , [ 'PromotionalSaleItemIDArray', 'ns:ItemIDArrayType', '' ,'eBay::API::XML::DataType::ItemIDArrayType', '1' ] , [ 'PromotionalSaleName', 'xs:string', '', '', '' ] , [ 'PromotionalSaleStartTime', 'xs:dateTime', '', '', '' ] , [ 'PromotionalSaleType', 'ns:PromotionalSaleTypeCodeType', '' ,'eBay::API::XML::DataType::Enum::PromotionalSaleTypeCodeType', '' ] , [ 'Status', 'ns:PromotionalSaleStatusCodeType', '' ,'eBay::API::XML::DataType::Enum::PromotionalSaleStatusCodeType', '' ] ); push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; my @gaAttributes = ( ); push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
sub new { my $classname = shift; my %args = @_; my $self = $classname->SUPER::new(%args); return $self; } sub isScalar { return 0; }
sub setDiscountType { my $self = shift; $self->{'DiscountType'} = shift }
sub getDiscountType { my $self = shift; return $self->{'DiscountType'}; }
sub setDiscountValue { my $self = shift; $self->{'DiscountValue'} = shift }
sub getDiscountValue { my $self = shift; return $self->{'DiscountValue'}; }
sub setPromotionalSaleEndTime { my $self = shift; $self->{'PromotionalSaleEndTime'} = shift }
sub getPromotionalSaleEndTime { my $self = shift; return $self->{'PromotionalSaleEndTime'}; }
sub setPromotionalSaleID { my $self = shift; $self->{'PromotionalSaleID'} = shift }
sub getPromotionalSaleID { my $self = shift; return $self->{'PromotionalSaleID'}; }
sub setPromotionalSaleItemIDArray { my $self = shift; $self->{'PromotionalSaleItemIDArray'} = shift }
sub getPromotionalSaleItemIDArray { my $self = shift; return $self->_getDataTypeInstance( 'PromotionalSaleItemIDArray' ,'eBay::API::XML::DataType::ItemIDArrayType'); }
sub setPromotionalSaleName { my $self = shift; $self->{'PromotionalSaleName'} = shift }
sub getPromotionalSaleName { my $self = shift; return $self->{'PromotionalSaleName'}; }
sub setPromotionalSaleStartTime { my $self = shift; $self->{'PromotionalSaleStartTime'} = shift }
sub getPromotionalSaleStartTime { my $self = shift; return $self->{'PromotionalSaleStartTime'}; }
sub setPromotionalSaleType { my $self = shift; $self->{'PromotionalSaleType'} = shift }
sub getPromotionalSaleType { my $self = shift; return $self->{'PromotionalSaleType'}; }
sub setStatus { my $self = shift; $self->{'Status'} = shift }
sub getStatus { my $self = shift; return $self->{'Status'}; } ## Attribute and Property lists sub getPropertiesList { my $self = shift; return \@gaProperties; } sub getAttributesList { my $self = shift; return \@gaAttributes; } 1;