eBay::API::XML::DataType::UnitOfMeasurementType - eBay::API::XML::DataType::UnitOfMeasurementType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::DataType::UnitOfMeasurementType

DESCRIPTION

Top

Provides a mapping between suggested unit of measure strings and other, less popular strings.

SYNOPSIS

Top

INHERITANCE

Top

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

Subroutines:

Top

setAlternateText()

A synonym for the unit of measure (such as a fully spelled out name like "inches" instead of the standard abbreviation). This can be used to help a seller map unit names they use in their own catalog to unit names that are more popular on eBay.

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

getAlternateText()

  Calls: GeteBayDetails
  Returned: Conditionally

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

setSuggestedText()

The preferred way to specify a given unit of measure name, such as "in." (instead of "inches" or the " (double quote) symbol).

# Argument: 'xs:string'

getSuggestedText()

  Calls: GeteBayDetails
  Returned: Conditionally

# Returns: 'xs:string'


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

package eBay::API::XML::DataType::UnitOfMeasurementType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. UnitOfMeasurementType.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 = ( [ 'AlternateText', 'xs:string', '1', '', '' ]
	, [ 'SuggestedText', 'xs:string', '', '', '' ]
                    );
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 setAlternateText {
  my $self = shift;
  $self->{'AlternateText'} = 
		$self->convertArray_To_RefToArrayIfNeeded(@_);
}

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


sub setSuggestedText {
  my $self = shift;
  $self->{'SuggestedText'} = shift
}

sub getSuggestedText {
  my $self = shift;
  return $self->{'SuggestedText'};
}





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

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



1;