line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetCharities; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2354
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. GetCharities.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::GetCharities |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::GetCharities inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
36
|
use eBay::API::XML::BaseCall; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetCharities::GetCharitiesRequestType; |
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetCharities::GetCharitiesResponseType; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
49
|
|
|
|
|
|
|
return 'GetCharities'; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetCharities::GetCharitiesRequestType'; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetCharities::GetCharitiesResponseType'; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
59
|
|
|
|
|
|
|
# input properties |
60
|
|
|
|
|
|
|
# |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setCharityDomain() |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Domain (mission area) that a nonprofit charity organization |
65
|
|
|
|
|
|
|
belongs to. Nonprofit charity organizations may belong to multiple |
66
|
|
|
|
|
|
|
mission areas. Meaning of input values differs depending on the |
67
|
|
|
|
|
|
|
site. See GetCharities in the API Developer's Guide for the meaning |
68
|
|
|
|
|
|
|
of each input/output value. CharityDomain input value must be valid for |
69
|
|
|
|
|
|
|
that SiteID. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
RequiredInput: No |
72
|
|
|
|
|
|
|
# Argument: 'xs:int' |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub setCharityDomain { |
77
|
|
|
|
|
|
|
my $self = shift; |
78
|
|
|
|
|
|
|
my $sCharityDomain = shift; |
79
|
|
|
|
|
|
|
$self->getRequestDataType()->setCharityDomain($sCharityDomain); |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 setCharityID() |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
A unique identification number assigned by eBay to registered nonprofit |
85
|
|
|
|
|
|
|
charity organizations. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
RequiredInput: No |
88
|
|
|
|
|
|
|
# Argument: 'xs:string' |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub setCharityID { |
93
|
|
|
|
|
|
|
my $self = shift; |
94
|
|
|
|
|
|
|
my $sCharityID = shift; |
95
|
|
|
|
|
|
|
$self->getRequestDataType()->setCharityID($sCharityID); |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 setCharityName() |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
A name assigned to a specified nonprofit |
101
|
|
|
|
|
|
|
organization. Accepts full charity nonprofit name |
102
|
|
|
|
|
|
|
or partial name as input. For example, enter a |
103
|
|
|
|
|
|
|
CharityName of "heart" (case-insensitive) to |
104
|
|
|
|
|
|
|
return all charity nonprofits that start with |
105
|
|
|
|
|
|
|
"heart." Use with a MatchType value of "Contains" |
106
|
|
|
|
|
|
|
to return all charity nonprofits that contain the |
107
|
|
|
|
|
|
|
string "heart." |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
MaxLength: 150 |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
RequiredInput: No |
112
|
|
|
|
|
|
|
# Argument: 'xs:string' |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
sub setCharityName { |
117
|
|
|
|
|
|
|
my $self = shift; |
118
|
|
|
|
|
|
|
my $sCharityName = shift; |
119
|
|
|
|
|
|
|
$self->getRequestDataType()->setCharityName($sCharityName); |
120
|
|
|
|
|
|
|
} |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 setCharityRegion() |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Region that the nonprofit charity organization is associated |
125
|
|
|
|
|
|
|
with. A specific nonprofit charity organization may be associated |
126
|
|
|
|
|
|
|
with only one region. Meaning of input values differs depending on |
127
|
|
|
|
|
|
|
the site. See GetCharities in the API Developer's Guide for the meaning |
128
|
|
|
|
|
|
|
of each input/output value. CharityRegion input value must be |
129
|
|
|
|
|
|
|
valid for that SiteID. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
RequiredInput: No |
132
|
|
|
|
|
|
|
# Argument: 'xs:int' |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
sub setCharityRegion { |
137
|
|
|
|
|
|
|
my $self = shift; |
138
|
|
|
|
|
|
|
my $sCharityRegion = shift; |
139
|
|
|
|
|
|
|
$self->getRequestDataType()->setCharityRegion($sCharityRegion); |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head2 setFeatured() |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Used to decide if the search is only for featured charities. |
145
|
|
|
|
|
|
|
A value of true will search for only featured charities. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
RequiredInput: No |
148
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub setFeatured { |
153
|
|
|
|
|
|
|
my $self = shift; |
154
|
|
|
|
|
|
|
my $sFeatured = shift; |
155
|
|
|
|
|
|
|
$self->getRequestDataType()->setFeatured($sFeatured); |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 setIncludeDescription() |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Used with Query to search for charity nonprofit |
161
|
|
|
|
|
|
|
organizations. A value of true will search the Mission field as |
162
|
|
|
|
|
|
|
well as the CharityName field for a string specified in Query. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
RequiredInput: No |
165
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
sub setIncludeDescription { |
170
|
|
|
|
|
|
|
my $self = shift; |
171
|
|
|
|
|
|
|
my $sIncludeDescription = shift; |
172
|
|
|
|
|
|
|
$self->getRequestDataType()->setIncludeDescription($sIncludeDescription); |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head2 setMatchType() |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Indicates the type of string matching to use when a value is submitted in |
178
|
|
|
|
|
|
|
CharityName. If no value is specified, default behavior is "StartsWith." |
179
|
|
|
|
|
|
|
Does not apply to Query. |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
RequiredInput: No |
182
|
|
|
|
|
|
|
# Argument: 'ns:StringMatchCodeType' |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=cut |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
sub setMatchType { |
187
|
|
|
|
|
|
|
my $self = shift; |
188
|
|
|
|
|
|
|
my $sMatchType = shift; |
189
|
|
|
|
|
|
|
$self->getRequestDataType()->setMatchType($sMatchType); |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=head2 setQuery() |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Accepts a case-insensitive string used to |
195
|
|
|
|
|
|
|
find a nonprofit charity organization. Default |
196
|
|
|
|
|
|
|
behavior is to search the CharityName field. Use |
197
|
|
|
|
|
|
|
with an IncludeDescription value of true to |
198
|
|
|
|
|
|
|
include the Mission field in the search. |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
MaxLength: 350 (characters) |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
RequiredInput: No |
203
|
|
|
|
|
|
|
# Argument: 'xs:string' |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=cut |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
sub setQuery { |
208
|
|
|
|
|
|
|
my $self = shift; |
209
|
|
|
|
|
|
|
my $sQuery = shift; |
210
|
|
|
|
|
|
|
$self->getRequestDataType()->setQuery($sQuery); |
211
|
|
|
|
|
|
|
} |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
# |
216
|
|
|
|
|
|
|
# output properties |
217
|
|
|
|
|
|
|
# |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=head2 getCharity() |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
Contains information about charity nonprofit organizations that |
222
|
|
|
|
|
|
|
meet the criteria specified in the request. One Charity node is |
223
|
|
|
|
|
|
|
returned for each applicable nonprofit charity organization. The |
224
|
|
|
|
|
|
|
CharityID value is returned as an id attribute of this node. If no |
225
|
|
|
|
|
|
|
nonprofit charity organization is applicable, this node is not |
226
|
|
|
|
|
|
|
returned. |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
Returned: Conditionally |
229
|
|
|
|
|
|
|
# Returns: reference to an array |
230
|
|
|
|
|
|
|
of 'ns:CharityInfoType' |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=cut |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
sub getCharity { |
235
|
|
|
|
|
|
|
my $self = shift; |
236
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCharity(); |
237
|
|
|
|
|
|
|
} |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
1; |