eBay::API::XML::DataType::ListingDurationDefinitionType - eBay::API::XML::DataType::ListingDurationDefinitionType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::DataType::ListingDurationDefinitionType

DESCRIPTION

Top

A container node for a set of durations that apply to a certain listing type.

SYNOPSIS

Top

INHERITANCE

Top

eBay::API::XML::DataType::ListingDurationDefinitionType inherits from the eBay::API::XML::BaseDataType class

Subroutines:

Top

setDuration()

Specifies the length of time an auction can be open, in days. The allowed durations vary according to the type of listing. The value GTC means Good Til Canceled.

# Argument: reference to an array of 'xs:token'

getDuration()

  Calls: GetCategoryFeatures
  Returned: Conditionally
  Details: DetailLevel: ReturnAll

# Returns: reference to an array of 'xs:token'

setDurationSetID()

Identifies the type of listing to which the set of durations applies. The durationSetID value corresponds to the listing types returned in Category.ListingDuration (also in the call response).

# Argument: 'xs:int'

getDurationSetID()

  Calls: GetCategoryFeatures
  Returned: Conditionally
  Details: DetailLevel: ReturnAll

# Returns: 'xs:int'


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

package eBay::API::XML::DataType::ListingDurationDefinitionType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. ListingDurationDefinitionType.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");



my @gaProperties = ( [ 'Duration', 'xs:token', '1', '', '' ]
                    );
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};

my @gaAttributes = ( [ 'durationSetID', 'xs:int', '', '', '' ]
                    );
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 setDuration {
  my $self = shift;
  $self->{'Duration'} = 
		$self->convertArray_To_RefToArrayIfNeeded(@_);
}

sub getDuration {
  my $self = shift;
  return $self->_getDataTypeArray('Duration');
}




sub setDurationSetID {
  my $self = shift;
  $self->{'durationSetID'} = shift
}

sub getDurationSetID {
  my $self = shift;
  return $self->{'durationSetID'};
}



##  Attribute and Property lists
sub getPropertiesList {
   my $self = shift;
   return \@gaProperties;
}

sub getAttributesList {
   my $self = shift;
   return \@gaAttributes;
}



1;