File Coverage

lib/eBay/API/XML/Call/SetMessagePreferences/SetMessagePreferencesRequestType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::Call::SetMessagePreferences::SetMessagePreferencesRequestType;
4              
5 1     1   1536 use strict;
  1         1021  
  1         36  
6 1     1   6 use warnings;
  1         2  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetMessagePreferencesRequestType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::Call::SetMessagePreferences::SetMessagePreferencesRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables a seller to add custom Ask Seller a Question (ASQ)
25             subjects to display on the seller's Ask a Question page, or
26             reset custom subjects to their default values.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::Call::SetMessagePreferences::SetMessagePreferencesRequestType inherits from the L class
38              
39             =cut
40              
41 1     1   42 use eBay::API::XML::RequestDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::RequestDataType");
43              
44             use eBay::API::XML::DataType::ASQPreferencesType;
45              
46              
47             my @gaProperties = ( [ 'ASQPreferences', 'ns:ASQPreferencesType', ''
48             ,'eBay::API::XML::DataType::ASQPreferencesType', '1' ]
49             );
50             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
51              
52             my @gaAttributes = (
53             );
54             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
55              
56             =head1 Subroutines:
57              
58             =cut
59              
60             sub new {
61             my $classname = shift;
62             my %args = @_;
63             my $self = $classname->SUPER::new(%args);
64             return $self;
65             }
66              
67             sub isScalar {
68             return 0;
69             }
70              
71              
72              
73             =head2 setASQPreferences()
74              
75             Contains custom ASQ subjects or a flag to reset those
76             subjects to their default values.
77              
78             RequiredInput: No
79             # Argument: 'ns:ASQPreferencesType'
80              
81             =cut
82              
83             sub setASQPreferences {
84             my $self = shift;
85             $self->{'ASQPreferences'} = shift
86             }
87              
88             =head2 getASQPreferences()
89              
90             # Returns: 'ns:ASQPreferencesType'
91              
92             =cut
93              
94             sub getASQPreferences {
95             my $self = shift;
96             return $self->_getDataTypeInstance( 'ASQPreferences'
97             ,'eBay::API::XML::DataType::ASQPreferencesType');
98             }
99              
100              
101              
102              
103              
104             ## Attribute and Property lists
105             sub getPropertiesList {
106             my $self = shift;
107             return \@gaProperties;
108             }
109              
110             sub getAttributesList {
111             my $self = shift;
112             return \@gaAttributes;
113             }
114              
115              
116              
117             1;