| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::SMSSubscriptionType; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1511
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
39
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
35
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. SMSSubscriptionType.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::SMSSubscriptionType |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
User data related to notifications. Note that SMS is currently reserved for future use. |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::SMSSubscriptionType inherits from the L class |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
|
38
|
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
48
|
use eBay::API::XML::BaseDataType; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemIDType; |
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SMSSubscriptionErrorCodeCodeType; |
|
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SMSSubscriptionUserStatusCodeType; |
|
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::WirelessCarrierIDCodeType; |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my @gaProperties = ( [ 'CarrierID', 'ns:WirelessCarrierIDCodeType', '' |
|
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::WirelessCarrierIDCodeType', '' ] |
|
50
|
|
|
|
|
|
|
, [ 'ErrorCode', 'ns:SMSSubscriptionErrorCodeCodeType', '' |
|
51
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SMSSubscriptionErrorCodeCodeType', '' ] |
|
52
|
|
|
|
|
|
|
, [ 'ItemToUnsubscribe', 'ns:ItemIDType', '' |
|
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType', '1' ] |
|
54
|
|
|
|
|
|
|
, [ 'SMSPhone', 'xs:string', '', '', '' ] |
|
55
|
|
|
|
|
|
|
, [ 'UserStatus', 'ns:SMSSubscriptionUserStatusCodeType', '' |
|
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SMSSubscriptionUserStatusCodeType', '' ] |
|
57
|
|
|
|
|
|
|
); |
|
58
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
my @gaAttributes = ( |
|
61
|
|
|
|
|
|
|
); |
|
62
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 Subroutines: |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub new { |
|
69
|
|
|
|
|
|
|
my $classname = shift; |
|
70
|
|
|
|
|
|
|
my %args = @_; |
|
71
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
|
72
|
|
|
|
|
|
|
return $self; |
|
73
|
|
|
|
|
|
|
} |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub isScalar { |
|
76
|
|
|
|
|
|
|
return 0; |
|
77
|
|
|
|
|
|
|
} |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 setCarrierID() |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
The wireless carrier ID. |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Calls: SetNotificationPreferences |
|
86
|
|
|
|
|
|
|
RequiredInput: No |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
# Argument: 'ns:WirelessCarrierIDCodeType' |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub setCarrierID { |
|
93
|
|
|
|
|
|
|
my $self = shift; |
|
94
|
|
|
|
|
|
|
$self->{'CarrierID'} = shift |
|
95
|
|
|
|
|
|
|
} |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 getCarrierID() |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Calls: GetNotificationPreferences |
|
100
|
|
|
|
|
|
|
Returned: Conditionally |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
# Returns: 'ns:WirelessCarrierIDCodeType' |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
sub getCarrierID { |
|
107
|
|
|
|
|
|
|
my $self = shift; |
|
108
|
|
|
|
|
|
|
return $self->{'CarrierID'}; |
|
109
|
|
|
|
|
|
|
} |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 setErrorCode() |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Reason for SMS subscription error (postback from thired-party integrator). |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Calls: SetNotificationPreferences |
|
117
|
|
|
|
|
|
|
RequiredInput: No |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
# Argument: 'ns:SMSSubscriptionErrorCodeCodeType' |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
sub setErrorCode { |
|
124
|
|
|
|
|
|
|
my $self = shift; |
|
125
|
|
|
|
|
|
|
$self->{'ErrorCode'} = shift |
|
126
|
|
|
|
|
|
|
} |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 getErrorCode() |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Calls: GetNotificationPreferences |
|
131
|
|
|
|
|
|
|
Returned: Conditionally |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
# Returns: 'ns:SMSSubscriptionErrorCodeCodeType' |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
|
136
|
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
sub getErrorCode { |
|
138
|
|
|
|
|
|
|
my $self = shift; |
|
139
|
|
|
|
|
|
|
return $self->{'ErrorCode'}; |
|
140
|
|
|
|
|
|
|
} |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head2 setItemToUnsubscribe() |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
ID of item to unsubscribe from SMS notification. |
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Calls: SetNotificationPreferences |
|
148
|
|
|
|
|
|
|
RequiredInput: No |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
# Argument: 'ns:ItemIDType' |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=cut |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
sub setItemToUnsubscribe { |
|
155
|
|
|
|
|
|
|
my $self = shift; |
|
156
|
|
|
|
|
|
|
$self->{'ItemToUnsubscribe'} = shift |
|
157
|
|
|
|
|
|
|
} |
|
158
|
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head2 getItemToUnsubscribe() |
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Calls: GetNotificationPreferences |
|
162
|
|
|
|
|
|
|
Returned: Conditionally |
|
163
|
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
# Returns: 'ns:ItemIDType' |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
|
167
|
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getItemToUnsubscribe { |
|
169
|
|
|
|
|
|
|
my $self = shift; |
|
170
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'ItemToUnsubscribe' |
|
171
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemIDType'); |
|
172
|
|
|
|
|
|
|
} |
|
173
|
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 setSMSPhone() |
|
176
|
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
The wireless phone number to be used for receiving SMS messages. |
|
178
|
|
|
|
|
|
|
Max length of phone number varies by country. |
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
MaxLength: varies by country |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Calls: SetNotificationPreferences |
|
183
|
|
|
|
|
|
|
RequiredInput: No |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
186
|
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=cut |
|
188
|
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
sub setSMSPhone { |
|
190
|
|
|
|
|
|
|
my $self = shift; |
|
191
|
|
|
|
|
|
|
$self->{'SMSPhone'} = shift |
|
192
|
|
|
|
|
|
|
} |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head2 getSMSPhone() |
|
195
|
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Calls: GetNotificationPreferences |
|
197
|
|
|
|
|
|
|
Returned: Conditionally |
|
198
|
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
200
|
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=cut |
|
202
|
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
sub getSMSPhone { |
|
204
|
|
|
|
|
|
|
my $self = shift; |
|
205
|
|
|
|
|
|
|
return $self->{'SMSPhone'}; |
|
206
|
|
|
|
|
|
|
} |
|
207
|
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=head2 setUserStatus() |
|
210
|
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
Registered/Unregistered/Pending. |
|
212
|
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
Calls: SetNotificationPreferences |
|
214
|
|
|
|
|
|
|
RequiredInput: No |
|
215
|
|
|
|
|
|
|
AllValuesExcept: Failed, Pending, Registered, Unregistered |
|
216
|
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
# Argument: 'ns:SMSSubscriptionUserStatusCodeType' |
|
218
|
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=cut |
|
220
|
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
sub setUserStatus { |
|
222
|
|
|
|
|
|
|
my $self = shift; |
|
223
|
|
|
|
|
|
|
$self->{'UserStatus'} = shift |
|
224
|
|
|
|
|
|
|
} |
|
225
|
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=head2 getUserStatus() |
|
227
|
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
Calls: GetNotificationPreferences |
|
229
|
|
|
|
|
|
|
Returned: Conditionally |
|
230
|
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
# Returns: 'ns:SMSSubscriptionUserStatusCodeType' |
|
232
|
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
=cut |
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
sub getUserStatus { |
|
236
|
|
|
|
|
|
|
my $self = shift; |
|
237
|
|
|
|
|
|
|
return $self->{'UserStatus'}; |
|
238
|
|
|
|
|
|
|
} |
|
239
|
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
## Attribute and Property lists |
|
245
|
|
|
|
|
|
|
sub getPropertiesList { |
|
246
|
|
|
|
|
|
|
my $self = shift; |
|
247
|
|
|
|
|
|
|
return \@gaProperties; |
|
248
|
|
|
|
|
|
|
} |
|
249
|
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
sub getAttributesList { |
|
251
|
|
|
|
|
|
|
my $self = shift; |
|
252
|
|
|
|
|
|
|
return \@gaAttributes; |
|
253
|
|
|
|
|
|
|
} |
|
254
|
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
1; |