line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ASQPreferencesType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1110
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ASQPreferencesType.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::DataType::ASQPreferencesType |
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 reset |
26
|
|
|
|
|
|
|
the custom subjects to the default values. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 INHERITANCE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
eBay::API::XML::DataType::ASQPreferencesType inherits from the L class |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ResetDefaultSubjects', 'xs:boolean', '', '', '' ] |
47
|
|
|
|
|
|
|
, [ 'Subject', 'xs:string', '1', '', '' ] |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
my @gaAttributes = ( |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 Subroutines: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub new { |
60
|
|
|
|
|
|
|
my $classname = shift; |
61
|
|
|
|
|
|
|
my %args = @_; |
62
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
63
|
|
|
|
|
|
|
return $self; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub isScalar { |
67
|
|
|
|
|
|
|
return 0; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 setResetDefaultSubjects() |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Used to reset custom subjects to their default values. For |
75
|
|
|
|
|
|
|
SetMessagePreferences, either ResetDefaultSubjects or Subject |
76
|
|
|
|
|
|
|
is required in the request, but not both. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Calls: SetMessagePreferences |
79
|
|
|
|
|
|
|
RequiredInput: Conditionally |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub setResetDefaultSubjects { |
86
|
|
|
|
|
|
|
my $self = shift; |
87
|
|
|
|
|
|
|
$self->{'ResetDefaultSubjects'} = shift |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 isResetDefaultSubjects() |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub isResetDefaultSubjects { |
97
|
|
|
|
|
|
|
my $self = shift; |
98
|
|
|
|
|
|
|
return $self->{'ResetDefaultSubjects'}; |
99
|
|
|
|
|
|
|
} |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 setSubject() |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Contains the ASQ subjects to display on the seller's |
105
|
|
|
|
|
|
|
Ask a Question page, with one subject per Subject node up to a |
106
|
|
|
|
|
|
|
maximum of nine. The tenth subject, "General question about |
107
|
|
|
|
|
|
|
this item," cannot be edited. An error wil be returned if subjects are duplicated. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
For SetMessagePreferences, either ResetDefaultSubjects or |
110
|
|
|
|
|
|
|
Subject is required in the request, but not both. Subjects are |
111
|
|
|
|
|
|
|
displayed on the ASQ drop-down list in same order as the |
112
|
|
|
|
|
|
|
request. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Note that the default ASQ subjects will display in the site's |
115
|
|
|
|
|
|
|
language if retrieved from a site other than the seller's own. |
116
|
|
|
|
|
|
|
For example, if if a US seller sells on the DE and the FR |
117
|
|
|
|
|
|
|
sites, the default subjects will display in German and French |
118
|
|
|
|
|
|
|
respectively. However, if the seller adds custom questions, |
119
|
|
|
|
|
|
|
all questions will display only in the seller's language. In |
120
|
|
|
|
|
|
|
the example case, FR and DE buyers would see custom subjects |
121
|
|
|
|
|
|
|
in English only. Use ResetDefaultSubjects to restore the |
122
|
|
|
|
|
|
|
default subjects and the default language display behavior. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
MaxLength: 60 |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Calls: SetMessagePreferences |
127
|
|
|
|
|
|
|
RequiredInput: Conditionally |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
# Argument: reference to an array |
130
|
|
|
|
|
|
|
of 'xs:string' |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=cut |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
sub setSubject { |
135
|
|
|
|
|
|
|
my $self = shift; |
136
|
|
|
|
|
|
|
$self->{'Subject'} = |
137
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
138
|
|
|
|
|
|
|
} |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 getSubject() |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Calls: GetMessagePreferences |
143
|
|
|
|
|
|
|
Returned: Conditionally |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
# Returns: reference to an array |
146
|
|
|
|
|
|
|
of 'xs:string' |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=cut |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
sub getSubject { |
151
|
|
|
|
|
|
|
my $self = shift; |
152
|
|
|
|
|
|
|
return $self->_getDataTypeArray('Subject'); |
153
|
|
|
|
|
|
|
} |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
## Attribute and Property lists |
160
|
|
|
|
|
|
|
sub getPropertiesList { |
161
|
|
|
|
|
|
|
my $self = shift; |
162
|
|
|
|
|
|
|
return \@gaProperties; |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
sub getAttributesList { |
166
|
|
|
|
|
|
|
my $self = shift; |
167
|
|
|
|
|
|
|
return \@gaAttributes; |
168
|
|
|
|
|
|
|
} |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
1; |