eBay::API::XML::DataType::CartItemType - eBay::API::XML::DataType::CartItemType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::DataType::CartItemType

DESCRIPTION

Top

Details about an item in a cart.

SYNOPSIS

Top

INHERITANCE

Top

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

Subroutines:

Top

setAction()

What is to be done with the item. If the action is Delete or Update, ReferenceID must be provided. (It was returned with the item when the item was initially added to the cart.) This is only required if the parent container is submitted.

# Argument: 'ns:ModifyActionCodeType'

getAction()

# Returns: 'ns:ModifyActionCodeType'

setItem()

When used as input, this is the item to be added, removed or updated in the cart. Only ItemID and Quantity apply. This is only required as input if the parent container is submitted. When returned, this is one of the items remaining in the cart.

# Argument: 'ns:ItemType'

getItem()

# Returns: 'ns:ItemType'

setReferenceID()

An ID created by eBay and returned along with an item, if items are returned. This ID must be provided on input to SetCart along with the corresponding item when doing a Delete or Update related to that item.

# Argument: 'xs:long'

getReferenceID()

# Returns: 'xs:long'


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

package eBay::API::XML::DataType::CartItemType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. CartItemType.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::ItemType;
use eBay::API::XML::DataType::Enum::ModifyActionCodeType;


my @gaProperties = ( [ 'Action', 'ns:ModifyActionCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::ModifyActionCodeType', '' ]
	, [ 'Item', 'ns:ItemType', ''
	     ,'eBay::API::XML::DataType::ItemType', '1' ]
	, [ 'ReferenceID', 'xs:long', '', '', '' ]
                    );
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 setAction {
  my $self = shift;
  $self->{'Action'} = shift
}

sub getAction {
  my $self = shift;
  return $self->{'Action'};
}


sub setItem {
  my $self = shift;
  $self->{'Item'} = shift
}

sub getItem {
  my $self = shift;
  return $self->_getDataTypeInstance( 'Item'
		,'eBay::API::XML::DataType::ItemType');
}


sub setReferenceID {
  my $self = shift;
  $self->{'ReferenceID'} = shift
}

sub getReferenceID {
  my $self = shift;
  return $self->{'ReferenceID'};
}





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

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



1;