eBay::API::XML::Call::GetShippingDiscountProfiles::GetShippingDiscountProfilesResponseType - eBay::API::XML::Call::GetShippingDiscountProfiles::GetShippingDiscountProfilesResponseType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::Call::GetShippingDiscountProfiles::GetShippingDiscountProfilesResponseType

DESCRIPTION

Top

Response to call of GetShippingDiscountProfiles.

SYNOPSIS

Top

INHERITANCE

Top

eBay::API::XML::Call::GetShippingDiscountProfiles::GetShippingDiscountProfilesResponseType inherits from the eBay::API::XML::ResponseDataType class

Subroutines:

Top

setCalculatedHandlingDiscount()

The data for the specific packaging/handling details for combined payment. Returned only if it has been defined.

# Argument: 'ns:CalculatedHandlingDiscountType'

getCalculatedHandlingDiscount()

  Returned: Conditionally
#    Returns: 'ns:CalculatedHandlingDiscountType'

setCalculatedShippingDiscount()

Details of an individual discount profile defined by the user for calculated shipping--one for each profile defined by the user. Empty if no shipping discount profiles were defined.

# Argument: 'ns:CalculatedShippingDiscountType'

getCalculatedShippingDiscount()

  Returned: Always
#    Returns: 'ns:CalculatedShippingDiscountType'

setCombinedDuration()

Only those items purchased within CombinedDuration days of each other can be combined into an order and benefit from any shipping discounts.

# Argument: 'ns:CombinedPaymentPeriodCodeType'

getCombinedDuration()

  Returned: Always
#    Returns: 'ns:CombinedPaymentPeriodCodeType'

setCurrencyID()

The ID of the currency to be used for shipping cost discounts and insurance for combined payment. A discount profile can only be associated with a listing if the currency ID of the profile matches the currency ID of the listing.

# Argument: 'ns:CurrencyCodeType'

getCurrencyID()

  Returned: Always
#    Returns: 'ns:CurrencyCodeType'

setFlatShippingDiscount()

Details of an individual discount profile defined by the user for flat rate shipping--one for each profile defined by the user. Empty if no shipping discount profiles were defined.

# Argument: 'ns:FlatShippingDiscountType'

getFlatShippingDiscount()

  Returned: Always
#    Returns: 'ns:FlatShippingDiscountType'

setInternationalShippingInsurance()

The data for the international insurance for combined payment. Returned only if it has been defined.

# Argument: 'ns:ShippingInsuranceType'

getInternationalShippingInsurance()

  Returned: Conditionally
#    Returns: 'ns:ShippingInsuranceType'

setPromotionalShippingDiscount()

Indicates whether the user defined a promotional discount (the discount is active as soon as it exists).

# Argument: 'xs:boolean'

isPromotionalShippingDiscount()

  Returned: Always
#    Returns: 'xs:boolean'

setPromotionalShippingDiscountDetails()

The data for the specific promotional shipping discount. Returned only if it has been defined.

# Argument: 'ns:PromotionalShippingDiscountDetailsType'

getPromotionalShippingDiscountDetails()

  Returned: Conditionally
#    Returns: 'ns:PromotionalShippingDiscountDetailsType'

setShippingInsurance()

The data for the domestic insurance for combined payment. Returned only if it has been defined.

# Argument: 'ns:ShippingInsuranceType'

getShippingInsurance()

  Returned: Conditionally
#    Returns: 'ns:ShippingInsuranceType'


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

package eBay::API::XML::Call::GetShippingDiscountProfiles::GetShippingDiscountProfilesResponseType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. GetShippingDiscountProfilesResponseType.pm
# Generated by: ......... genEBayApiDataTypes.pl
# Last Generated: ....... 08/24/2008 16:44
# API Release Number: ... 579
#
##########################################################################  

use eBay::API::XML::ResponseDataType;
our @ISA = ("eBay::API::XML::ResponseDataType");

use eBay::API::XML::DataType::CalculatedHandlingDiscountType;
use eBay::API::XML::DataType::CalculatedShippingDiscountType;
use eBay::API::XML::DataType::FlatShippingDiscountType;
use eBay::API::XML::DataType::PromotionalShippingDiscountDetailsType;
use eBay::API::XML::DataType::ShippingInsuranceType;
use eBay::API::XML::DataType::Enum::CombinedPaymentPeriodCodeType;
use eBay::API::XML::DataType::Enum::CurrencyCodeType;


my @gaProperties = ( [ 'CalculatedHandlingDiscount', 'ns:CalculatedHandlingDiscountType', ''
	     ,'eBay::API::XML::DataType::CalculatedHandlingDiscountType', '1' ]
	, [ 'CalculatedShippingDiscount', 'ns:CalculatedShippingDiscountType', ''
	     ,'eBay::API::XML::DataType::CalculatedShippingDiscountType', '1' ]
	, [ 'CombinedDuration', 'ns:CombinedPaymentPeriodCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::CombinedPaymentPeriodCodeType', '' ]
	, [ 'CurrencyID', 'ns:CurrencyCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::CurrencyCodeType', '' ]
	, [ 'FlatShippingDiscount', 'ns:FlatShippingDiscountType', ''
	     ,'eBay::API::XML::DataType::FlatShippingDiscountType', '1' ]
	, [ 'InternationalShippingInsurance', 'ns:ShippingInsuranceType', ''
	     ,'eBay::API::XML::DataType::ShippingInsuranceType', '1' ]
	, [ 'PromotionalShippingDiscount', 'xs:boolean', '', '', '' ]
	, [ 'PromotionalShippingDiscountDetails', 'ns:PromotionalShippingDiscountDetailsType', ''
	     ,'eBay::API::XML::DataType::PromotionalShippingDiscountDetailsType', '1' ]
	, [ 'ShippingInsurance', 'ns:ShippingInsuranceType', ''
	     ,'eBay::API::XML::DataType::ShippingInsuranceType', '1' ]
                    );
push @gaProperties, @{eBay::API::XML::ResponseDataType::getPropertiesList()};

my @gaAttributes = ( 
                    );
push @gaAttributes, @{eBay::API::XML::ResponseDataType::getAttributesList()};

sub new {
  my $classname = shift;
  my %args = @_;
  my $self = $classname->SUPER::new(%args);
  return $self;
}

sub isScalar {
   return 0; 
}



sub setCalculatedHandlingDiscount {
  my $self = shift;
  $self->{'CalculatedHandlingDiscount'} = shift
}

sub getCalculatedHandlingDiscount {
  my $self = shift;
  return $self->_getDataTypeInstance( 'CalculatedHandlingDiscount'
		,'eBay::API::XML::DataType::CalculatedHandlingDiscountType');
}


sub setCalculatedShippingDiscount {
  my $self = shift;
  $self->{'CalculatedShippingDiscount'} = shift
}

sub getCalculatedShippingDiscount {
  my $self = shift;
  return $self->_getDataTypeInstance( 'CalculatedShippingDiscount'
		,'eBay::API::XML::DataType::CalculatedShippingDiscountType');
}


sub setCombinedDuration {
  my $self = shift;
  $self->{'CombinedDuration'} = shift
}

sub getCombinedDuration {
  my $self = shift;
  return $self->{'CombinedDuration'};
}


sub setCurrencyID {
  my $self = shift;
  $self->{'CurrencyID'} = shift
}

sub getCurrencyID {
  my $self = shift;
  return $self->{'CurrencyID'};
}


sub setFlatShippingDiscount {
  my $self = shift;
  $self->{'FlatShippingDiscount'} = shift
}

sub getFlatShippingDiscount {
  my $self = shift;
  return $self->_getDataTypeInstance( 'FlatShippingDiscount'
		,'eBay::API::XML::DataType::FlatShippingDiscountType');
}


sub setInternationalShippingInsurance {
  my $self = shift;
  $self->{'InternationalShippingInsurance'} = shift
}

sub getInternationalShippingInsurance {
  my $self = shift;
  return $self->_getDataTypeInstance( 'InternationalShippingInsurance'
		,'eBay::API::XML::DataType::ShippingInsuranceType');
}


sub setPromotionalShippingDiscount {
  my $self = shift;
  $self->{'PromotionalShippingDiscount'} = shift
}

sub isPromotionalShippingDiscount {
  my $self = shift;
  return $self->{'PromotionalShippingDiscount'};
}


sub setPromotionalShippingDiscountDetails {
  my $self = shift;
  $self->{'PromotionalShippingDiscountDetails'} = shift
}

sub getPromotionalShippingDiscountDetails {
  my $self = shift;
  return $self->_getDataTypeInstance( 'PromotionalShippingDiscountDetails'
		,'eBay::API::XML::DataType::PromotionalShippingDiscountDetailsType');
}


sub setShippingInsurance {
  my $self = shift;
  $self->{'ShippingInsurance'} = shift
}

sub getShippingInsurance {
  my $self = shift;
  return $self->_getDataTypeInstance( 'ShippingInsurance'
		,'eBay::API::XML::DataType::ShippingInsuranceType');
}





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

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



1;