eBay::API::XML::DataType::SellerPaymentPreferencesType - eBay::API::XML::DataType::SellerPaymentPreferencesType documentation


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

Index


Code Index:

NAME

Top

eBay::API::XML::DataType::SellerPaymentPreferencesType

DESCRIPTION

Top

Defines the values that make up the seller's preferences.

SYNOPSIS

Top

INHERITANCE

Top

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

Subroutines:

Top

setAlwaysUseThisPaymentAddress()

Indicates whether the seller wants all transactions with eBay to use the address specified in SellerPaymentAddress.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'xs:boolean'

isAlwaysUseThisPaymentAddress()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'xs:boolean'

setDefaultPayPalEmailAddress()

Specifies the default email address the seller uses for receiving PayPal payments.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'xs:string'

getDefaultPayPalEmailAddress()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'xs:string'

setDisplayPayNowButton()

Determines whether the Pay Now button should always be displayed for the user's listings.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:DisplayPayNowButtonCodeType'

getDisplayPayNowButton()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:DisplayPayNowButtonCodeType'

setPayPalAlwaysOn()

Indicates whether PayPal is always accepted for the seller's listings.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'xs:boolean'

isPayPalAlwaysOn()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'xs:boolean'

setPayPalPreferred()

Specifies whether a seller wants to let buyers know that PayPal payments are preferred.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'xs:boolean'

isPayPalPreferred()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'xs:boolean'

setSellerPaymentAddress()

Specifies the address the seller uses to receive payments from buyers.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:AddressType'

getSellerPaymentAddress()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:AddressType'

setUPSRateOption()

Specifies the type of United Postal Service rates to use.

  Calls: SetUserPreferences
  RequiredInput: No

# Argument: 'ns:UPSRateOptionCodeType'

getUPSRateOption()

  Calls: GetUserPreferences
  Returned: Conditionally

# Returns: 'ns:UPSRateOptionCodeType'


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

package eBay::API::XML::DataType::SellerPaymentPreferencesType;

use strict;
use warnings;  

##########################################################################
#
# Module: ............... <user defined location>eBay/API/XML
# File: ................. SellerPaymentPreferencesType.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::AddressType;
use eBay::API::XML::DataType::Enum::DisplayPayNowButtonCodeType;
use eBay::API::XML::DataType::Enum::UPSRateOptionCodeType;


my @gaProperties = ( [ 'AlwaysUseThisPaymentAddress', 'xs:boolean', '', '', '' ]
	, [ 'DefaultPayPalEmailAddress', 'xs:string', '', '', '' ]
	, [ 'DisplayPayNowButton', 'ns:DisplayPayNowButtonCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::DisplayPayNowButtonCodeType', '' ]
	, [ 'PayPalAlwaysOn', 'xs:boolean', '', '', '' ]
	, [ 'PayPalPreferred', 'xs:boolean', '', '', '' ]
	, [ 'SellerPaymentAddress', 'ns:AddressType', ''
	     ,'eBay::API::XML::DataType::AddressType', '1' ]
	, [ 'UPSRateOption', 'ns:UPSRateOptionCodeType', ''
	     ,'eBay::API::XML::DataType::Enum::UPSRateOptionCodeType', '' ]
                    );
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 setAlwaysUseThisPaymentAddress {
  my $self = shift;
  $self->{'AlwaysUseThisPaymentAddress'} = shift
}

sub isAlwaysUseThisPaymentAddress {
  my $self = shift;
  return $self->{'AlwaysUseThisPaymentAddress'};
}


sub setDefaultPayPalEmailAddress {
  my $self = shift;
  $self->{'DefaultPayPalEmailAddress'} = shift
}

sub getDefaultPayPalEmailAddress {
  my $self = shift;
  return $self->{'DefaultPayPalEmailAddress'};
}


sub setDisplayPayNowButton {
  my $self = shift;
  $self->{'DisplayPayNowButton'} = shift
}

sub getDisplayPayNowButton {
  my $self = shift;
  return $self->{'DisplayPayNowButton'};
}


sub setPayPalAlwaysOn {
  my $self = shift;
  $self->{'PayPalAlwaysOn'} = shift
}

sub isPayPalAlwaysOn {
  my $self = shift;
  return $self->{'PayPalAlwaysOn'};
}


sub setPayPalPreferred {
  my $self = shift;
  $self->{'PayPalPreferred'} = shift
}

sub isPayPalPreferred {
  my $self = shift;
  return $self->{'PayPalPreferred'};
}


sub setSellerPaymentAddress {
  my $self = shift;
  $self->{'SellerPaymentAddress'} = shift
}

sub getSellerPaymentAddress {
  my $self = shift;
  return $self->_getDataTypeInstance( 'SellerPaymentAddress'
		,'eBay::API::XML::DataType::AddressType');
}


sub setUPSRateOption {
  my $self = shift;
  $self->{'UPSRateOption'} = shift
}

sub getUPSRateOption {
  my $self = shift;
  return $self->{'UPSRateOption'};
}





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

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



1;