eBay::API::XML::DataType::CalculatedShippingPreferencesType - eBay::API::XML::DataType::CalculatedShippingPreferencesType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::DataType::CalculatedShippingPreferencesType

DESCRIPTION

Top

Calculated shipping preferences for the user.

SYNOPSIS

Top

INHERITANCE

Top

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

Subroutines:

Top

setCalculatedShippingAmountForEntireOrder()

The calculated shipping amount for the entire order.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:AmountType'

getCalculatedShippingAmountForEntireOrder()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:AmountType'

setCalculatedShippingChargeOption()

Specifies whether to charge the actual shipping and handling cost for the entire order or for each item.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:CalculatedShippingChargeOptionCodeType'

getCalculatedShippingChargeOption()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:CalculatedShippingChargeOptionCodeType'

setCalculatedShippingRateOption()

Specifies whether to calculate the actual rate shipping based on the combined item weight or the individual item weight.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:CalculatedShippingRateOptionCodeType'

getCalculatedShippingRateOption()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:CalculatedShippingRateOptionCodeType'

setInsuranceOption()

Whether the seller offers shipping insurance and, if so, whether the insurance is optional or required. Flat and calculated shipping.

  Calls: SetUserPreferences
  RequiredInput: No
  AllValuesExcept: NotOfferedOnSite

# Argument: 'ns:InsuranceOptionCodeType'

getInsuranceOption()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:InsuranceOptionCodeType'


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

package eBay::API::XML::DataType::CalculatedShippingPreferencesType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. CalculatedShippingPreferencesType.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::AmountType;
use eBay::API::XML::DataType::Enum::CalculatedShippingChargeOptionCodeType;
use eBay::API::XML::DataType::Enum::CalculatedShippingRateOptionCodeType;
use eBay::API::XML::DataType::Enum::InsuranceOptionCodeType;


my @gaProperties = ( [ 'CalculatedShippingAmountForEntireOrder', 'ns:AmountType', ''
	     ,'eBay::API::XML::DataType::AmountType', '1' ]
	, [ 'CalculatedShippingChargeOption', 'ns:CalculatedShippingChargeOptionCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::CalculatedShippingChargeOptionCodeType', '' ]
	, [ 'CalculatedShippingRateOption', 'ns:CalculatedShippingRateOptionCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::CalculatedShippingRateOptionCodeType', '' ]
	, [ 'InsuranceOption', 'ns:InsuranceOptionCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::InsuranceOptionCodeType', '' ]
                    );
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 setCalculatedShippingAmountForEntireOrder {
  my $self = shift;
  $self->{'CalculatedShippingAmountForEntireOrder'} = shift
}

sub getCalculatedShippingAmountForEntireOrder {
  my $self = shift;
  return $self->_getDataTypeInstance( 'CalculatedShippingAmountForEntireOrder'
		,'eBay::API::XML::DataType::AmountType');
}


sub setCalculatedShippingChargeOption {
  my $self = shift;
  $self->{'CalculatedShippingChargeOption'} = shift
}

sub getCalculatedShippingChargeOption {
  my $self = shift;
  return $self->{'CalculatedShippingChargeOption'};
}


sub setCalculatedShippingRateOption {
  my $self = shift;
  $self->{'CalculatedShippingRateOption'} = shift
}

sub getCalculatedShippingRateOption {
  my $self = shift;
  return $self->{'CalculatedShippingRateOption'};
}


sub setInsuranceOption {
  my $self = shift;
  $self->{'InsuranceOption'} = shift
}

sub getInsuranceOption {
  my $self = shift;
  return $self->{'InsuranceOption'};
}





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

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



1;