line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1388
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. SetNotificationPreferencesRequestType.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::SetNotificationPreferences::SetNotificationPreferencesRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Manages a user's notification and alerts preferences. This is part of two eBay services that |
25
|
|
|
|
|
|
|
update users about events on the eBay site: 1. the eBay Platform Notifications feature, and 2: |
26
|
|
|
|
|
|
|
the eBay Client Alerts API. Notifications and alerts are used to update production applications |
27
|
|
|
|
|
|
|
about selected events on the eBay site, helping reduce the number of times your application needs |
28
|
|
|
|
|
|
|
to retrieve certain information. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SYNOPSIS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 INHERITANCE |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesRequestType inherits from the L class |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
1
|
|
|
1
|
|
35
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ApplicationDeliveryPreferencesType; |
47
|
|
|
|
|
|
|
use eBay::API::XML::DataType::NotificationEnableArrayType; |
48
|
|
|
|
|
|
|
use eBay::API::XML::DataType::NotificationEventPropertyType; |
49
|
|
|
|
|
|
|
use eBay::API::XML::DataType::NotificationUserDataType; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ApplicationDeliveryPreferences', 'ns:ApplicationDeliveryPreferencesType', '' |
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ApplicationDeliveryPreferencesType', '1' ] |
54
|
|
|
|
|
|
|
, [ 'DeliveryURLName', 'xs:string', '', '', '' ] |
55
|
|
|
|
|
|
|
, [ 'EventProperty', 'ns:NotificationEventPropertyType', '1' |
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NotificationEventPropertyType', '1' ] |
57
|
|
|
|
|
|
|
, [ 'UserData', 'ns:NotificationUserDataType', '' |
58
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NotificationUserDataType', '1' ] |
59
|
|
|
|
|
|
|
, [ 'UserDeliveryPreferenceArray', 'ns:NotificationEnableArrayType', '' |
60
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NotificationEnableArrayType', '1' ] |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
my @gaAttributes = ( |
65
|
|
|
|
|
|
|
); |
66
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 Subroutines: |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
sub new { |
73
|
|
|
|
|
|
|
my $classname = shift; |
74
|
|
|
|
|
|
|
my %args = @_; |
75
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
76
|
|
|
|
|
|
|
return $self; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
sub isScalar { |
80
|
|
|
|
|
|
|
return 0; |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 setApplicationDeliveryPreferences() |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Specifies application-based event preferences that have been enabled, |
88
|
|
|
|
|
|
|
including the URL to which notifications should be delivered and whether |
89
|
|
|
|
|
|
|
notifications should be enabled or disabled (although the |
90
|
|
|
|
|
|
|
UserDeliveryPreferenceArray input property specifies specific |
91
|
|
|
|
|
|
|
notification subscriptions). |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
RequiredInput: No |
94
|
|
|
|
|
|
|
# Argument: 'ns:ApplicationDeliveryPreferencesType' |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
sub setApplicationDeliveryPreferences { |
99
|
|
|
|
|
|
|
my $self = shift; |
100
|
|
|
|
|
|
|
$self->{'ApplicationDeliveryPreferences'} = shift |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 getApplicationDeliveryPreferences() |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
# Returns: 'ns:ApplicationDeliveryPreferencesType' |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
sub getApplicationDeliveryPreferences { |
110
|
|
|
|
|
|
|
my $self = shift; |
111
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ApplicationDeliveryPreferences' |
112
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ApplicationDeliveryPreferencesType'); |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 setDeliveryURLName() |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
For Platform Notifications, specify the name of the delivery notification URL |
119
|
|
|
|
|
|
|
that you want to associate with the user token specified for |
120
|
|
|
|
|
|
|
the SetNotificationPreferences call. |
121
|
|
|
|
|
|
|
If, with different SetNotificationPreferences calls, you |
122
|
|
|
|
|
|
|
associate multiple URL names with a single user |
123
|
|
|
|
|
|
|
token, each subsequent URL name overwrites |
124
|
|
|
|
|
|
|
the previous name associated with the user token. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
RequiredInput: No |
127
|
|
|
|
|
|
|
# Argument: 'xs:string' |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=cut |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
sub setDeliveryURLName { |
132
|
|
|
|
|
|
|
my $self = shift; |
133
|
|
|
|
|
|
|
$self->{'DeliveryURLName'} = shift |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 getDeliveryURLName() |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
# Returns: 'xs:string' |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=cut |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
sub getDeliveryURLName { |
143
|
|
|
|
|
|
|
my $self = shift; |
144
|
|
|
|
|
|
|
return $self->{'DeliveryURLName'}; |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head2 setEventProperty() |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Characteristics or details of an event such as type, name and value. |
151
|
|
|
|
|
|
|
Currently can only be set for wireless applications. |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
RequiredInput: No |
154
|
|
|
|
|
|
|
# Argument: reference to an array |
155
|
|
|
|
|
|
|
of 'ns:NotificationEventPropertyType' |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=cut |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
sub setEventProperty { |
160
|
|
|
|
|
|
|
my $self = shift; |
161
|
|
|
|
|
|
|
$self->{'EventProperty'} = |
162
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=head2 getEventProperty() |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
# Returns: reference to an array |
168
|
|
|
|
|
|
|
of 'ns:NotificationEventPropertyType' |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=cut |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
sub getEventProperty { |
173
|
|
|
|
|
|
|
my $self = shift; |
174
|
|
|
|
|
|
|
return $self->_getDataTypeArray('EventProperty'); |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
=head2 setUserData() |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
Specifies user data for notification settings such as mobile phone number. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
RequiredInput: No |
183
|
|
|
|
|
|
|
# Argument: 'ns:NotificationUserDataType' |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=cut |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
sub setUserData { |
188
|
|
|
|
|
|
|
my $self = shift; |
189
|
|
|
|
|
|
|
$self->{'UserData'} = shift |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=head2 getUserData() |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
# Returns: 'ns:NotificationUserDataType' |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=cut |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
sub getUserData { |
199
|
|
|
|
|
|
|
my $self = shift; |
200
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'UserData' |
201
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NotificationUserDataType'); |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=head2 setUserDeliveryPreferenceArray() |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
Array of NotificationEventEnableTypes. Each NotificationEventEnableType |
208
|
|
|
|
|
|
|
contains an EventSetting and an EventType. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
RequiredInput: No |
211
|
|
|
|
|
|
|
# Argument: 'ns:NotificationEnableArrayType' |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=cut |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
sub setUserDeliveryPreferenceArray { |
216
|
|
|
|
|
|
|
my $self = shift; |
217
|
|
|
|
|
|
|
$self->{'UserDeliveryPreferenceArray'} = shift |
218
|
|
|
|
|
|
|
} |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=head2 getUserDeliveryPreferenceArray() |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
# Returns: 'ns:NotificationEnableArrayType' |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=cut |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
sub getUserDeliveryPreferenceArray { |
227
|
|
|
|
|
|
|
my $self = shift; |
228
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'UserDeliveryPreferenceArray' |
229
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::NotificationEnableArrayType'); |
230
|
|
|
|
|
|
|
} |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
## Attribute and Property lists |
237
|
|
|
|
|
|
|
sub getPropertiesList { |
238
|
|
|
|
|
|
|
my $self = shift; |
239
|
|
|
|
|
|
|
return \@gaProperties; |
240
|
|
|
|
|
|
|
} |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
sub getAttributesList { |
243
|
|
|
|
|
|
|
my $self = shift; |
244
|
|
|
|
|
|
|
return \@gaAttributes; |
245
|
|
|
|
|
|
|
} |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
1; |