Salesforce/Constants.pm

filter: Statementstmt 45.4% 10 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 40.0% 12 / 30 CC 3 SCAR 17.9
CC
3
Cov
45%
register_types
12.0
type
2.0
register_type
2.0
CRAP 6.0
« Salesforce/Deserializer.pm ↑ Summary Salesforce/Serializer.pm »
1 package WWW::Salesforce::Constants;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '0.303';
7 2 $VERSION = eval $VERSION;
8  
9 #thanks to Jun Shimizu and Garth Webb
10 2 our %TYPES = (
11 'account' => {
12 'accountnumber' => 'xsd:string',
13 'active__c' => 'xsd:string',
14 'annualrevenue' => 'xsd:double',
15 'billingcity' => 'xsd:string',
16 'billingcountry' => 'xsd:string',
17 'billingpostalcode' => 'xsd:string',
18 'billingstate' => 'xsd:string',
19 'billingstreet' => 'xsd:string',
20 'createdbyid' => 'xsd:string',
21 'createddate' => 'xsd:dateTime',
22 'customerpriority__c' => 'xsd:string',
23 'description' => 'xsd:string',
24 'fax' => 'xsd:string',
25 'industry' => 'xsd:string',
26 'lastmodifiedbyid' => 'xsd:string',
27 'lastmodifieddate' => 'xsd:dateTime',
28 'name' => 'xsd:string',
29 'numberofemployees' => 'xsd:int',
30 'numberoflocations__c' => 'xsd:double',
31 'ownerid' => 'xsd:string',
32 'ownership' => 'xsd:string',
33 'parentid' => 'xsd:string',
34 'phone' => 'xsd:string',
35 'rating' => 'xsd:string',
36 'slaexpirationdate__c' => 'xsd:date',
37 'slaserialnumber__c' => 'xsd:string',
38 'sla__c' => 'xsd:string',
39 'shippingcity' => 'xsd:string',
40 'shippingcountry' => 'xsd:string',
41 'shippingpostalcode' => 'xsd:string',
42 'shippingstate' => 'xsd:string',
43 'shippingstreet' => 'xsd:string',
44 'sic' => 'xsd:string',
45 'site' => 'xsd:string',
46 'systemmodstamp' => 'xsd:dateTime',
47 'tickersymbol' => 'xsd:string',
48 'type' => 'xsd:string',
49 'upsellopportunity__c' => 'xsd:string',
50 'website' => 'xsd:string',
51 },
52 'accountcontactrole' => {
53 'accountid' => 'xsd:string',
54 'contactid' => 'xsd:string',
55 'createdbyid' => 'xsd:string',
56 'createddate' => 'xsd:dateTime',
57 'isprimary' => 'xsd:boolean',
58 'lastmodifiedbyid' => 'xsd:string',
59 'lastmodifieddate' => 'xsd:dateTime',
60 'role' => 'xsd:string',
61 'systemmodstamp' => 'xsd:dateTime',
62 },
63 'accountpartner' => {
64 'accountfromid' => 'xsd:string',
65 'accounttoid' => 'xsd:string',
66 'createdbyid' => 'xsd:string',
67 'createddate' => 'xsd:dateTime',
68 'isprimary' => 'xsd:boolean',
69 'lastmodifiedbyid' => 'xsd:string',
70 'lastmodifieddate' => 'xsd:dateTime',
71 'opportunityid' => 'xsd:string',
72 'role' => 'xsd:string',
73 'systemmodstamp' => 'xsd:dateTime',
74 },
75 'accountshare' => {
76 'accountaccesslevel' => 'xsd:string',
77 'accountid' => 'xsd:string',
78 'caseaccesslevel' => 'xsd:string',
79 'lastmodifiedbyid' => 'xsd:string',
80 'lastmodifieddate' => 'xsd:dateTime',
81 'opportunityaccesslevel' => 'xsd:string',
82 'rowcause' => 'xsd:string',
83 'userorgroupid' => 'xsd:string',
84 },
85 'approval' => {
86 'approvecomment' => 'xsd:string',
87 'createdbyid' => 'xsd:string',
88 'createddate' => 'xsd:dateTime',
89 'lastmodifiedbyid' => 'xsd:string',
90 'lastmodifieddate' => 'xsd:dateTime',
91 'ownerid' => 'xsd:string',
92 'parentid' => 'xsd:string',
93 'requestcomment' => 'xsd:string',
94 'status' => 'xsd:string',
95 'systemmodstamp' => 'xsd:dateTime',
96 },
97 'asset' => {
98 'accountid' => 'xsd:string',
99 'contactid' => 'xsd:string',
100 'createdbyid' => 'xsd:string',
101 'createddate' => 'xsd:dateTime',
102 'description' => 'xsd:string',
103 'installdate' => 'xsd:date',
104 'iscompetitorproduct' => 'xsd:boolean',
105 'lastmodifiedbyid' => 'xsd:string',
106 'lastmodifieddate' => 'xsd:dateTime',
107 'name' => 'xsd:string',
108 'price' => 'xsd:double',
109 'product2id' => 'xsd:string',
110 'purchasedate' => 'xsd:date',
111 'quantity' => 'xsd:double',
112 'serialnumber' => 'xsd:string',
113 'status' => 'xsd:string',
114 'systemmodstamp' => 'xsd:dateTime',
115 'usageenddate' => 'xsd:date',
116 },
117 'assignmentrule' => {
118 'active' => 'xsd:boolean',
119 'createdbyid' => 'xsd:string',
120 'createddate' => 'xsd:dateTime',
121 'lastmodifiedbyid' => 'xsd:string',
122 'lastmodifieddate' => 'xsd:dateTime',
123 'name' => 'xsd:string',
124 'ruletype' => 'xsd:string',
125 'systemmodstamp' => 'xsd:dateTime',
126 },
127 'attachment' => {
128 'body' => 'xsd:base64Binary',
129 'bodylength' => 'xsd:int',
130 'contenttype' => 'xsd:string',
131 'createdbyid' => 'xsd:string',
132 'createddate' => 'xsd:dateTime',
133 'isprivate' => 'xsd:boolean',
134 'lastmodifiedbyid' => 'xsd:string',
135 'lastmodifieddate' => 'xsd:dateTime',
136 'name' => 'xsd:string',
137 'ownerid' => 'xsd:string',
138 'parentid' => 'xsd:string',
139 'systemmodstamp' => 'xsd:dateTime',
140 },
141 'businesshours' => {
142 'createdbyid' => 'xsd:string',
143 'createddate' => 'xsd:dateTime',
144 'fridayend' => 'xsd:string',
145 'fridaystart' => 'xsd:string',
146 'lastmodifiedbyid' => 'xsd:string',
147 'lastmodifieddate' => 'xsd:dateTime',
148 'mondayend' => 'xsd:string',
149 'mondaystart' => 'xsd:string',
150 'saturdayend' => 'xsd:string',
151 'saturdaystart' => 'xsd:string',
152 'sundayend' => 'xsd:string',
153 'sundaystart' => 'xsd:string',
154 'systemmodstamp' => 'xsd:dateTime',
155 'thursdayend' => 'xsd:string',
156 'thursdaystart' => 'xsd:string',
157 'tuesdayend' => 'xsd:string',
158 'tuesdaystart' => 'xsd:string',
159 'wednesdayend' => 'xsd:string',
160 'wednesdaystart' => 'xsd:string',
161 },
162 'businessprocess' => {
163 'createdbyid' => 'xsd:string',
164 'createddate' => 'xsd:dateTime',
165 'description' => 'xsd:string',
166 'isactive' => 'xsd:boolean',
167 'lastmodifiedbyid' => 'xsd:string',
168 'lastmodifieddate' => 'xsd:dateTime',
169 'name' => 'xsd:string',
170 'systemmodstamp' => 'xsd:dateTime',
171 'tableenumorid' => 'xsd:string',
172 },
173 'campaign' => {
174 'actualcost' => 'xsd:double',
175 'amountallopportunities' => 'xsd:double',
176 'amountwonopportunities' => 'xsd:double',
177 'budgetedcost' => 'xsd:double',
178 'createdbyid' => 'xsd:string',
179 'createddate' => 'xsd:dateTime',
180 'description' => 'xsd:string',
181 'enddate' => 'xsd:date',
182 'expectedresponse' => 'xsd:double',
183 'expectedrevenue' => 'xsd:double',
184 'field1__c' => 'xsd:string',
185 'isactive' => 'xsd:boolean',
186 'lastmodifiedbyid' => 'xsd:string',
187 'lastmodifieddate' => 'xsd:dateTime',
188 'name' => 'xsd:string',
189 'numberofcontacts' => 'xsd:int',
190 'numberofconvertedleads' => 'xsd:int',
191 'numberofleads' => 'xsd:int',
192 'numberofopportunities' => 'xsd:int',
193 'numberofresponses' => 'xsd:int',
194 'numberofwonopportunities' => 'xsd:int',
195 'numbersent' => 'xsd:double',
196 'ownerid' => 'xsd:string',
197 'startdate' => 'xsd:date',
198 'status' => 'xsd:string',
199 'systemmodstamp' => 'xsd:dateTime',
200 'type' => 'xsd:string',
201 },
202 'campaignmember' => {
203 'campaignid' => 'xsd:string',
204 'contactid' => 'xsd:string',
205 'createdbyid' => 'xsd:string',
206 'createddate' => 'xsd:dateTime',
207 'firstrespondeddate' => 'xsd:date',
208 'hasresponded' => 'xsd:boolean',
209 'lastmodifiedbyid' => 'xsd:string',
210 'lastmodifieddate' => 'xsd:dateTime',
211 'leadid' => 'xsd:string',
212 'status' => 'xsd:string',
213 'systemmodstamp' => 'xsd:dateTime',
214 },
215 'case' => {
216 'assetid' => 'xsd:string',
217 'casenumber' => 'xsd:string',
218 'closeddate' => 'xsd:dateTime',
219 'contactid' => 'xsd:string',
220 'createdbyid' => 'xsd:string',
221 'createddate' => 'xsd:dateTime',
222 'description' => 'xsd:string',
223 'engineeringreqnumber__c' => 'xsd:string',
224 'isclosed' => 'xsd:boolean',
225 'isescalated' => 'xsd:boolean',
226 'lastmodifiedbyid' => 'xsd:string',
227 'lastmodifieddate' => 'xsd:dateTime',
228 'origin' => 'xsd:string',
229 'ownerid' => 'xsd:string',
230 'potentialliability__c' => 'xsd:string',
231 'priority' => 'xsd:string',
232 'product__c' => 'xsd:string',
233 'reason' => 'xsd:string',
234 'slaviolation__c' => 'xsd:string',
235 'status' => 'xsd:string',
236 'subject' => 'xsd:string',
237 'suppliedcompany' => 'xsd:string',
238 'suppliedemail' => 'xsd:string',
239 'suppliedname' => 'xsd:string',
240 'suppliedphone' => 'xsd:string',
241 'systemmodstamp' => 'xsd:dateTime',
242 'type' => 'xsd:string',
243 },
244 'casecomment' => {
245 'commentbody' => 'xsd:string',
246 'createdbyid' => 'xsd:string',
247 'createddate' => 'xsd:dateTime',
248 'ispublished' => 'xsd:boolean',
249 'parentid' => 'xsd:string',
250 'systemmodstamp' => 'xsd:dateTime',
251 },
252 'casehistory' => {
253 'caseid' => 'xsd:string',
254 'createdbyid' => 'xsd:string',
255 'createddate' => 'xsd:dateTime',
256 'field' => 'xsd:string',
257 'newvalue' => 'xsd:anytype',
258 'oldvalue' => 'xsd:anytype',
259 },
260 'caseshare' => {
261 'caseaccesslevel' => 'xsd:string',
262 'caseid' => 'xsd:string',
263 'lastmodifiedbyid' => 'xsd:string',
264 'lastmodifieddate' => 'xsd:dateTime',
265 'rowcause' => 'xsd:string',
266 'userorgroupid' => 'xsd:string',
267 },
268 'casesolution' => {
269 'caseid' => 'xsd:string',
270 'createdbyid' => 'xsd:string',
271 'createddate' => 'xsd:dateTime',
272 'solutionid' => 'xsd:string',
273 'systemmodstamp' => 'xsd:dateTime',
274 },
275 'casestatus' => {
276 'createdbyid' => 'xsd:string',
277 'createddate' => 'xsd:dateTime',
278 'isclosed' => 'xsd:boolean',
279 'isdefault' => 'xsd:boolean',
280 'lastmodifiedbyid' => 'xsd:string',
281 'lastmodifieddate' => 'xsd:dateTime',
282 'masterlabel' => 'xsd:string',
283 'sortorder' => 'xsd:int',
284 'systemmodstamp' => 'xsd:dateTime',
285 },
286 'contact' => {
287 'accountid' => 'xsd:string',
288 'assistantname' => 'xsd:string',
289 'assistantphone' => 'xsd:string',
290 'birthdate' => 'xsd:date',
291 'createdbyid' => 'xsd:string',
292 'createddate' => 'xsd:dateTime',
293 'department' => 'xsd:string',
294 'description' => 'xsd:string',
295 'email' => 'xsd:string',
296 'fax' => 'xsd:string',
297 'firstname' => 'xsd:string',
298 'homephone' => 'xsd:string',
299 'languages__c' => 'xsd:string',
300 'lastcurequestdate' => 'xsd:dateTime',
301 'lastcuupdatedate' => 'xsd:dateTime',
302 'lastmodifiedbyid' => 'xsd:string',
303 'lastmodifieddate' => 'xsd:dateTime',
304 'lastname' => 'xsd:string',
305 'leadsource' => 'xsd:string',
306 'level__c' => 'xsd:string',
307 'mailingcity' => 'xsd:string',
308 'mailingcountry' => 'xsd:string',
309 'mailingpostalcode' => 'xsd:string',
310 'mailingstate' => 'xsd:string',
311 'mailingstreet' => 'xsd:string',
312 'mobilephone' => 'xsd:string',
313 'othercity' => 'xsd:string',
314 'othercountry' => 'xsd:string',
315 'otherphone' => 'xsd:string',
316 'otherpostalcode' => 'xsd:string',
317 'otherstate' => 'xsd:string',
318 'otherstreet' => 'xsd:string',
319 'ownerid' => 'xsd:string',
320 'phone' => 'xsd:string',
321 'reportstoid' => 'xsd:string',
322 'salutation' => 'xsd:string',
323 'systemmodstamp' => 'xsd:dateTime',
324 'title' => 'xsd:string',
325 },
326 'contract' => {
327 'accountid' => 'xsd:string',
328 'activatedbyid' => 'xsd:string',
329 'activateddate' => 'xsd:dateTime',
330 'billingcity' => 'xsd:string',
331 'billingcountry' => 'xsd:string',
332 'billingpostalcode' => 'xsd:string',
333 'billingstate' => 'xsd:string',
334 'billingstreet' => 'xsd:string',
335 'companysigneddate' => 'xsd:date',
336 'companysignedid' => 'xsd:string',
337 'contractnumber' => 'xsd:string',
338 'contractterm' => 'xsd:int',
339 'createdbyid' => 'xsd:string',
340 'createddate' => 'xsd:dateTime',
341 'customersigneddate' => 'xsd:date',
342 'customersignedid' => 'xsd:string',
343 'customersignedtitle' => 'xsd:string',
344 'description' => 'xsd:string',
345 'enddate' => 'xsd:date',
346 'lastapproveddate' => 'xsd:dateTime',
347 'lastmodifiedbyid' => 'xsd:string',
348 'lastmodifieddate' => 'xsd:dateTime',
349 'ownerexpirationnotice' => 'xsd:string',
350 'ownerid' => 'xsd:string',
351 'specialterms' => 'xsd:string',
352 'startdate' => 'xsd:date',
353 'status' => 'xsd:string',
354 'statuscode' => 'xsd:string',
355 'systemmodstamp' => 'xsd:dateTime',
356 },
357 'contractcontactrole' => {
358 'contactid' => 'xsd:string',
359 'contractid' => 'xsd:string',
360 'createdbyid' => 'xsd:string',
361 'createddate' => 'xsd:dateTime',
362 'isprimary' => 'xsd:boolean',
363 'lastmodifiedbyid' => 'xsd:string',
364 'lastmodifieddate' => 'xsd:dateTime',
365 'role' => 'xsd:string',
366 'systemmodstamp' => 'xsd:dateTime',
367 },
368 'contractstatus' => {
369 'createdbyid' => 'xsd:string',
370 'createddate' => 'xsd:dateTime',
371 'isdefault' => 'xsd:boolean',
372 'lastmodifiedbyid' => 'xsd:string',
373 'lastmodifieddate' => 'xsd:dateTime',
374 'masterlabel' => 'xsd:string',
375 'sortorder' => 'xsd:int',
376 'statuscode' => 'xsd:string',
377 'systemmodstamp' => 'xsd:dateTime',
378 },
379 'customobject1__c' => {
380 'contact__c' => 'xsd:string',
381 'createdbyid' => 'xsd:string',
382 'createddate' => 'xsd:dateTime',
383 'field1__c' => 'xsd:string',
384 'lastmodifiedbyid' => 'xsd:string',
385 'lastmodifieddate' => 'xsd:dateTime',
386 'lead__c' => 'xsd:string',
387 'name' => 'xsd:string',
388 'ownerid' => 'xsd:string',
389 'systemmodstamp' => 'xsd:dateTime',
390 },
391 'customer__c' => {
392 'createdbyid' => 'xsd:string',
393 'createddate' => 'xsd:dateTime',
394 'lastmodifiedbyid' => 'xsd:string',
395 'lastmodifieddate' => 'xsd:dateTime',
396 'name' => 'xsd:string',
397 'ownerid' => 'xsd:string',
398 'systemmodstamp' => 'xsd:dateTime',
399 },
400 'document' => {
401 'authorid' => 'xsd:string',
402 'body' => 'xsd:base64Binary',
403 'bodylength' => 'xsd:int',
404 'contenttype' => 'xsd:string',
405 'createdbyid' => 'xsd:string',
406 'createddate' => 'xsd:dateTime',
407 'description' => 'xsd:string',
408 'folderid' => 'xsd:string',
409 'isinternaluseonly' => 'xsd:boolean',
410 'ispublic' => 'xsd:boolean',
411 'keywords' => 'xsd:string',
412 'lastmodifiedbyid' => 'xsd:string',
413 'lastmodifieddate' => 'xsd:dateTime',
414 'name' => 'xsd:string',
415 'systemmodstamp' => 'xsd:dateTime',
416 'type' => 'xsd:string',
417 'url' => 'xsd:string',
418 },
419 'entityhistory' => {
420 'createdbyid' => 'xsd:string',
421 'createddate' => 'xsd:dateTime',
422 'fieldname' => 'xsd:string',
423 'newvalue' => 'xsd:anytype',
424 'oldvalue' => 'xsd:anytype',
425 'parentid' => 'xsd:string',
426 'parentsobjecttype' => 'xsd:string',
427 },
428 'event' => {
429 'accountid' => 'xsd:string',
430 'activitydate' => 'xsd:date',
431 'activitydateTime' => 'xsd:dateTime',
432 'createdbyid' => 'xsd:string',
433 'createddate' => 'xsd:dateTime',
434 'description' => 'xsd:string',
435 'durationinminutes' => 'xsd:int',
436 'isalldayevent' => 'xsd:boolean',
437 'ischild' => 'xsd:boolean',
438 'isgroupevent' => 'xsd:boolean',
439 'isprivate' => 'xsd:boolean',
440 'isrecurrence' => 'xsd:boolean',
441 'lastmodifiedbyid' => 'xsd:string',
442 'lastmodifieddate' => 'xsd:dateTime',
443 'location' => 'xsd:string',
444 'ownerid' => 'xsd:string',
445 'recurrenceactivityid' => 'xsd:string',
446 'recurrencedayofmonth' => 'xsd:int',
447 'recurrencedayofweekmask' => 'xsd:int',
448 'recurrenceenddateonly' => 'xsd:date',
449 'recurrenceinstance' => 'xsd:string',
450 'recurrenceinterval' => 'xsd:int',
451 'recurrencemonthofyear' => 'xsd:string',
452 'recurrencestartdateTime' => 'xsd:dateTime',
453 'recurrencetimezonesidkey' => 'xsd:string',
454 'recurrencetype' => 'xsd:string',
455 'showas' => 'xsd:string',
456 'subject' => 'xsd:string',
457 'systemmodstamp' => 'xsd:dateTime',
458 'whatid' => 'xsd:string',
459 'whoid' => 'xsd:string',
460 },
461 'eventattendee' => {
462 'attendeeid' => 'xsd:string',
463 'createdbyid' => 'xsd:string',
464 'createddate' => 'xsd:dateTime',
465 'eventid' => 'xsd:string',
466 'lastmodifiedbyid' => 'xsd:string',
467 'lastmodifieddate' => 'xsd:dateTime',
468 'respondeddate' => 'xsd:dateTime',
469 'response' => 'xsd:string',
470 'status' => 'xsd:string',
471 'systemmodstamp' => 'xsd:dateTime',
472 },
473 'fiscalyearsettings' => {
474 'isstandardyear' => 'xsd:boolean',
475 'name' => 'xsd:string',
476 'periodid' => 'xsd:string',
477 'periodlabelscheme' => 'xsd:string',
478 'periodprefix' => 'xsd:string',
479 'quarterlabelscheme' => 'xsd:string',
480 'quarterprefix' => 'xsd:string',
481 'systemmodstamp' => 'xsd:dateTime',
482 'weeklabelscheme' => 'xsd:string',
483 'yeartype' => 'xsd:string',
484 },
485 'folder' => {
486 'accesstype' => 'xsd:string',
487 'createdbyid' => 'xsd:string',
488 'createddate' => 'xsd:dateTime',
489 'isreadonly' => 'xsd:boolean',
490 'lastmodifiedbyid' => 'xsd:string',
491 'lastmodifieddate' => 'xsd:dateTime',
492 'name' => 'xsd:string',
493 'systemmodstamp' => 'xsd:dateTime',
494 'type' => 'xsd:string',
495 },
496 'group' => {
497 'createdbyid' => 'xsd:string',
498 'createddate' => 'xsd:dateTime',
499 'email' => 'xsd:string',
500 'lastmodifiedbyid' => 'xsd:string',
501 'lastmodifieddate' => 'xsd:dateTime',
502 'name' => 'xsd:string',
503 'ownerid' => 'xsd:string',
504 'relatedid' => 'xsd:string',
505 'systemmodstamp' => 'xsd:dateTime',
506 'type' => 'xsd:string',
507 },
508 'groupmember' => {
509 'groupid' => 'xsd:string',
510 'systemmodstamp' => 'xsd:dateTime',
511 'userorgroupid' => 'xsd:string',
512 },
513 'lead' => {
514 'annualrevenue' => 'xsd:double',
515 'city' => 'xsd:string',
516 'company' => 'xsd:string',
517 'convertedaccountid' => 'xsd:string',
518 'convertedcontactid' => 'xsd:string',
519 'converteddate' => 'xsd:date',
520 'convertedopportunityid' => 'xsd:string',
521 'country' => 'xsd:string',
522 'createdbyid' => 'xsd:string',
523 'createddate' => 'xsd:dateTime',
524 'currentgenerators__c' => 'xsd:string',
525 'description' => 'xsd:string',
526 'email' => 'xsd:string',
527 'fax' => 'xsd:string',
528 'field1__c' => 'xsd:date',
529 'firstname' => 'xsd:string',
530 'industry' => 'xsd:string',
531 'isconverted' => 'xsd:boolean',
532 'isunreadbyowner' => 'xsd:boolean',
533 'lastmodifiedbyid' => 'xsd:string',
534 'lastmodifieddate' => 'xsd:dateTime',
535 'lastname' => 'xsd:string',
536 'leadsource' => 'xsd:string',
537 'mobilephone' => 'xsd:string',
538 'numberofemployees' => 'xsd:int',
539 'numberoflocations__c' => 'xsd:double',
540 'ownerid' => 'xsd:string',
541 'phone' => 'xsd:string',
542 'postalcode' => 'xsd:string',
543 'primary__c' => 'xsd:string',
544 'productinterest__c' => 'xsd:string',
545 'rating' => 'xsd:string',
546 'siccode__c' => 'xsd:string',
547 'salutation' => 'xsd:string',
548 'state' => 'xsd:string',
549 'status' => 'xsd:string',
550 'street' => 'xsd:string',
551 'systemmodstamp' => 'xsd:dateTime',
552 'title' => 'xsd:string',
553 'website' => 'xsd:string',
554 },
555 'leadshare' => {
556 'lastmodifiedbyid' => 'xsd:string',
557 'lastmodifieddate' => 'xsd:dateTime',
558 'leadaccesslevel' => 'xsd:string',
559 'leadid' => 'xsd:string',
560 'rowcause' => 'xsd:string',
561 'userorgroupid' => 'xsd:string',
562 },
563 'leadstatus' => {
564 'createdbyid' => 'xsd:string',
565 'createddate' => 'xsd:dateTime',
566 'isconverted' => 'xsd:boolean',
567 'isdefault' => 'xsd:boolean',
568 'lastmodifiedbyid' => 'xsd:string',
569 'lastmodifieddate' => 'xsd:dateTime',
570 'masterlabel' => 'xsd:string',
571 'sortorder' => 'xsd:int',
572 'systemmodstamp' => 'xsd:dateTime',
573 },
574 'mailmergetemplate' => {
575 'body' => 'xsd:base64Binary',
576 'bodylength' => 'xsd:int',
577 'createdbyid' => 'xsd:string',
578 'createddate' => 'xsd:dateTime',
579 'description' => 'xsd:string',
580 'filename' => 'xsd:string',
581 'lastmodifiedbyid' => 'xsd:string',
582 'lastmodifieddate' => 'xsd:dateTime',
583 'lastuseddate' => 'xsd:dateTime',
584 'name' => 'xsd:string',
585 'systemmodstamp' => 'xsd:dateTime',
586 },
587 'note' => {
588 'body' => 'xsd:string',
589 'createdbyid' => 'xsd:string',
590 'createddate' => 'xsd:dateTime',
591 'isprivate' => 'xsd:boolean',
592 'lastmodifiedbyid' => 'xsd:string',
593 'lastmodifieddate' => 'xsd:dateTime',
594 'ownerid' => 'xsd:string',
595 'parentid' => 'xsd:string',
596 'systemmodstamp' => 'xsd:dateTime',
597 'title' => 'xsd:string',
598 },
599 'opportunity' => {
600 'accountid' => 'xsd:string',
601 'amount' => 'xsd:double',
602 'campaignid' => 'xsd:string',
603 'closedate' => 'xsd:date',
604 'createdbyid' => 'xsd:string',
605 'createddate' => 'xsd:dateTime',
606 'currentgenerators__c' => 'xsd:string',
607 'deliveryinstallationstatus__c' => 'xsd:string',
608 'description' => 'xsd:string',
609 'expectedrevenue' => 'xsd:double',
610 'forecastcategory' => 'xsd:string',
611 'hasopportunitylineitem' => 'xsd:boolean',
612 'isclosed' => 'xsd:boolean',
613 'isprivate' => 'xsd:boolean',
614 'iswon' => 'xsd:boolean',
615 'lastmodifiedbyid' => 'xsd:string',
616 'lastmodifieddate' => 'xsd:dateTime',
617 'leadsource' => 'xsd:string',
618 'maincompetitors__c' => 'xsd:string',
619 'name' => 'xsd:string',
620 'nextstep' => 'xsd:string',
621 'ordernumber__c' => 'xsd:string',
622 'ownerid' => 'xsd:string',
623 'pricebook2id' => 'xsd:string',
624 'pricebookid' => 'xsd:string',
625 'probability' => 'xsd:double',
626 'stagename' => 'xsd:string',
627 'systemmodstamp' => 'xsd:dateTime',
628 'totalopportunityquantity' => 'xsd:double',
629 'trackingnumber__c' => 'xsd:string',
630 'type' => 'xsd:string',
631 },
632 'opportunitycompetitor' => {
633 'competitorname' => 'xsd:string',
634 'createdbyid' => 'xsd:string',
635 'createddate' => 'xsd:dateTime',
636 'lastmodifiedbyid' => 'xsd:string',
637 'lastmodifieddate' => 'xsd:dateTime',
638 'opportunityid' => 'xsd:string',
639 'strengths' => 'xsd:string',
640 'systemmodstamp' => 'xsd:dateTime',
641 'weaknesses' => 'xsd:string',
642 },
643 'opportunitycontactrole' => {
644 'contactid' => 'xsd:string',
645 'createdbyid' => 'xsd:string',
646 'createddate' => 'xsd:dateTime',
647 'isprimary' => 'xsd:boolean',
648 'lastmodifiedbyid' => 'xsd:string',
649 'lastmodifieddate' => 'xsd:dateTime',
650 'opportunityid' => 'xsd:string',
651 'role' => 'xsd:string',
652 'systemmodstamp' => 'xsd:dateTime',
653 },
654 'opportunityhistory' => {
655 'amount' => 'xsd:double',
656 'closedate' => 'xsd:date',
657 'createdbyid' => 'xsd:string',
658 'createddate' => 'xsd:dateTime',
659 'expectedrevenue' => 'xsd:double',
660 'forecastcategory' => 'xsd:string',
661 'opportunityid' => 'xsd:string',
662 'probability' => 'xsd:double',
663 'stagename' => 'xsd:string',
664 },
665 'opportunitylineitem' => {
666 'createdbyid' => 'xsd:string',
667 'createddate' => 'xsd:dateTime',
668 'description' => 'xsd:string',
669 'lastmodifiedbyid' => 'xsd:string',
670 'lastmodifieddate' => 'xsd:dateTime',
671 'listprice' => 'xsd:double',
672 'opportunityid' => 'xsd:string',
673 'pricebookentryid' => 'xsd:string',
674 'productid' => 'xsd:string',
675 'quantity' => 'xsd:double',
676 'servicedate' => 'xsd:date',
677 'sortorder' => 'xsd:int',
678 'systemmodstamp' => 'xsd:dateTime',
679 'totalprice' => 'xsd:double',
680 'unitprice' => 'xsd:double',
681 },
682 'opportunitypartner' => {
683 'accounttoid' => 'xsd:string',
684 'createdbyid' => 'xsd:string',
685 'createddate' => 'xsd:dateTime',
686 'isprimary' => 'xsd:boolean',
687 'lastmodifiedbyid' => 'xsd:string',
688 'lastmodifieddate' => 'xsd:dateTime',
689 'opportunityid' => 'xsd:string',
690 'role' => 'xsd:string',
691 'systemmodstamp' => 'xsd:dateTime',
692 },
693 'opportunityshare' => {
694 'lastmodifiedbyid' => 'xsd:string',
695 'lastmodifieddate' => 'xsd:dateTime',
696 'opportunityaccesslevel' => 'xsd:string',
697 'opportunityid' => 'xsd:string',
698 'rowcause' => 'xsd:string',
699 'userorgroupid' => 'xsd:string',
700 },
701 'opportunitystage' => {
702 'createdbyid' => 'xsd:string',
703 'createddate' => 'xsd:dateTime',
704 'defaultprobability' => 'xsd:double',
705 'description' => 'xsd:string',
706 'forecastcategory' => 'xsd:string',
707 'isactive' => 'xsd:boolean',
708 'isclosed' => 'xsd:boolean',
709 'iswon' => 'xsd:boolean',
710 'lastmodifiedbyid' => 'xsd:string',
711 'lastmodifieddate' => 'xsd:dateTime',
712 'masterlabel' => 'xsd:string',
713 'sortorder' => 'xsd:int',
714 'systemmodstamp' => 'xsd:dateTime',
715 },
716 'organization' => {
717 'city' => 'xsd:string',
718 'compliancebccemail' => 'xsd:string',
719 'country' => 'xsd:string',
720 'createdbyid' => 'xsd:string',
721 'createddate' => 'xsd:dateTime',
722 'defaultaccountandcontactaccess' => 'xsd:string',
723 'defaultcalendaraccess' => 'xsd:string',
724 'defaultcaseaccess' => 'xsd:string',
725 'defaultleadaccess' => 'xsd:string',
726 'defaultlocalesidkey' => 'xsd:string',
727 'defaultopportunityaccess' => 'xsd:string',
728 'defaultpricebookaccess' => 'xsd:string',
729 'division' => 'xsd:string',
730 'fax' => 'xsd:string',
731 'fiscalyearstartmonth' => 'xsd:int',
732 'languagelocalekey' => 'xsd:string',
733 'lastmodifiedbyid' => 'xsd:string',
734 'lastmodifieddate' => 'xsd:dateTime',
735 'maxactionsperrule' => 'xsd:int',
736 'maxrulesperentity' => 'xsd:int',
737 'name' => 'xsd:string',
738 'phone' => 'xsd:string',
739 'postalcode' => 'xsd:string',
740 'primarycontact' => 'xsd:string',
741 'receivesadmininfoemails' => 'xsd:boolean',
742 'receivesinfoemails' => 'xsd:boolean',
743 'state' => 'xsd:string',
744 'street' => 'xsd:string',
745 'systemmodstamp' => 'xsd:dateTime',
746 'uiskin' => 'xsd:string',
747 'usesstartdateasfiscalyearname' => 'xsd:boolean',
748 'webtocasedefaultorigin' => 'xsd:string',
749 },
750 'partner' => {
751 'accountfromid' => 'xsd:string',
752 'accounttoid' => 'xsd:string',
753 'createdbyid' => 'xsd:string',
754 'createddate' => 'xsd:dateTime',
755 'isprimary' => 'xsd:boolean',
756 'lastmodifiedbyid' => 'xsd:string',
757 'lastmodifieddate' => 'xsd:dateTime',
758 'opportunityid' => 'xsd:string',
759 'role' => 'xsd:string',
760 'systemmodstamp' => 'xsd:dateTime',
761 },
762 'partnerrole' => {
763 'createdbyid' => 'xsd:string',
764 'createddate' => 'xsd:dateTime',
765 'lastmodifiedbyid' => 'xsd:string',
766 'lastmodifieddate' => 'xsd:dateTime',
767 'masterlabel' => 'xsd:string',
768 'reverserole' => 'xsd:string',
769 'sortorder' => 'xsd:int',
770 'systemmodstamp' => 'xsd:dateTime',
771 },
772 'period' => {
773 'enddate' => 'xsd:date',
774 'isforecastperiod' => 'xsd:boolean',
775 'number' => 'xsd:int',
776 'periodlabel' => 'xsd:string',
777 'quarterlabel' => 'xsd:string',
778 'startdate' => 'xsd:date',
779 'systemmodstamp' => 'xsd:dateTime',
780 'type' => 'xsd:string',
781 },
782 'pricebook' => {
783 'isactive' => 'xsd:boolean',
784 'lastmodifieddate' => 'xsd:dateTime',
785 'name' => 'xsd:string',
786 'systemmodstamp' => 'xsd:dateTime',
787 },
788 'pricebook2' => {
789 'createdbyid' => 'xsd:string',
790 'createddate' => 'xsd:dateTime',
791 'description' => 'xsd:string',
792 'isactive' => 'xsd:boolean',
793 'isstandard' => 'xsd:boolean',
794 'lastmodifiedbyid' => 'xsd:string',
795 'lastmodifieddate' => 'xsd:dateTime',
796 'name' => 'xsd:string',
797 'systemmodstamp' => 'xsd:dateTime',
798 },
799 'pricebookentry' => {
800 'createdbyid' => 'xsd:string',
801 'createddate' => 'xsd:dateTime',
802 'isactive' => 'xsd:boolean',
803 'lastmodifiedbyid' => 'xsd:string',
804 'lastmodifieddate' => 'xsd:dateTime',
805 'name' => 'xsd:string',
806 'pricebook2id' => 'xsd:string',
807 'product2id' => 'xsd:string',
808 'productcode' => 'xsd:string',
809 'systemmodstamp' => 'xsd:dateTime',
810 'unitprice' => 'xsd:double',
811 'usestandardprice' => 'xsd:boolean',
812 },
813 'product' => {
814 'createdbyid' => 'xsd:string',
815 'createddate' => 'xsd:dateTime',
816 'defaultprice' => 'xsd:double',
817 'description' => 'xsd:string',
818 'isactive' => 'xsd:boolean',
819 'lastmodifiedbyid' => 'xsd:string',
820 'lastmodifieddate' => 'xsd:dateTime',
821 'name' => 'xsd:string',
822 'pricebookid' => 'xsd:string',
823 'productcode' => 'xsd:string',
824 'systemmodstamp' => 'xsd:dateTime',
825 },
826 'product2' => {
827 'createdbyid' => 'xsd:string',
828 'createddate' => 'xsd:dateTime',
829 'description' => 'xsd:string',
830 'family' => 'xsd:string',
831 'isactive' => 'xsd:boolean',
832 'lastmodifiedbyid' => 'xsd:string',
833 'lastmodifieddate' => 'xsd:dateTime',
834 'name' => 'xsd:string',
835 'productcode' => 'xsd:string',
836 'systemmodstamp' => 'xsd:dateTime',
837 },
838 'profile' => {
839 'createdbyid' => 'xsd:string',
840 'createddate' => 'xsd:dateTime',
841 'description' => 'xsd:string',
842 'lastmodifiedbyid' => 'xsd:string',
843 'lastmodifieddate' => 'xsd:dateTime',
844 'name' => 'xsd:string',
845 'permissionsapiuseronly' => 'xsd:boolean',
846 'permissionsconvertleads' => 'xsd:boolean',
847 'permissionscreatemultiforce' => 'xsd:boolean',
848 'permissionscustomizeapplication' => 'xsd:boolean',
849 'permissionseditactivatedorders' => 'xsd:boolean',
850 'permissionseditevent' => 'xsd:boolean',
851 'permissionseditforecast' => 'xsd:boolean',
852 'permissionseditopplineitemunitprice' => 'xsd:boolean',
853 'permissionseditpublicdocuments' => 'xsd:boolean',
854 'permissionseditreadonlyfields' => 'xsd:boolean',
855 'permissionsedittask' => 'xsd:boolean',
856 'permissionsimportleads' => 'xsd:boolean',
857 'permissionsinstallmultiforce' => 'xsd:boolean',
858 'permissionsmanagecases' => 'xsd:boolean',
859 'permissionsmanagecategories' => 'xsd:boolean',
860 'permissionsmanagecssusers' => 'xsd:boolean',
861 'permissionsmanagedashboards' => 'xsd:boolean',
862 'permissionsmanageleads' => 'xsd:boolean',
863 'permissionsmanageselfservice' => 'xsd:boolean',
864 'permissionsmanagesolutions' => 'xsd:boolean',
865 'permissionsmanageterritories' => 'xsd:boolean',
866 'permissionsmanageusers' => 'xsd:boolean',
867 'permissionsmodifyalldata' => 'xsd:boolean',
868 'permissionspasswordneverexpires' => 'xsd:boolean',
869 'permissionspublishmultiforce' => 'xsd:boolean',
870 'permissionsrunreports' => 'xsd:boolean',
871 'permissionssendsitrequests' => 'xsd:boolean',
872 'permissionstransferanyentity' => 'xsd:boolean',
873 'permissionstransferanylead' => 'xsd:boolean',
874 'permissionsuseteamreassignwizards' => 'xsd:boolean',
875 'permissionsviewagentconsole' => 'xsd:boolean',
876 'permissionsviewalldata' => 'xsd:boolean',
877 'permissionsviewsetup' => 'xsd:boolean',
878 'systemmodstamp' => 'xsd:dateTime',
879 },
880 'recordtype' => {
881 'businessprocessid' => 'xsd:string',
882 'createdbyid' => 'xsd:string',
883 'createddate' => 'xsd:dateTime',
884 'description' => 'xsd:string',
885 'isactive' => 'xsd:boolean',
886 'lastmodifiedbyid' => 'xsd:string',
887 'lastmodifieddate' => 'xsd:dateTime',
888 'name' => 'xsd:string',
889 'sobjecttype' => 'xsd:string',
890 'systemmodstamp' => 'xsd:dateTime',
891 },
892 'scontrol' => {
893 'binary' => 'xsd:base64Binary',
894 'bodylength' => 'xsd:int',
895 'createdbyid' => 'xsd:string',
896 'createddate' => 'xsd:dateTime',
897 'description' => 'xsd:string',
898 'filename' => 'xsd:string',
899 'htmlwrapper' => 'xsd:string',
900 'lastmodifiedbyid' => 'xsd:string',
901 'lastmodifieddate' => 'xsd:dateTime',
902 'name' => 'xsd:string',
903 'systemmodstamp' => 'xsd:dateTime',
904 },
905 'selfserviceuser' => {
906 'contactid' => 'xsd:string',
907 'createdbyid' => 'xsd:string',
908 'createddate' => 'xsd:dateTime',
909 'email' => 'xsd:string',
910 'firstname' => 'xsd:string',
911 'isactive' => 'xsd:boolean',
912 'languagelocalekey' => 'xsd:string',
913 'lastlogindate' => 'xsd:dateTime',
914 'lastmodifiedbyid' => 'xsd:string',
915 'lastmodifieddate' => 'xsd:dateTime',
916 'lastname' => 'xsd:string',
917 'localesidkey' => 'xsd:string',
918 'superuser' => 'xsd:boolean',
919 'systemmodstamp' => 'xsd:dateTime',
920 'timezonesidkey' => 'xsd:string',
921 'username' => 'xsd:string',
922 },
923 'solution' => {
924 'createdbyid' => 'xsd:string',
925 'createddate' => 'xsd:dateTime',
926 'ispublished' => 'xsd:boolean',
927 'ispublishedinpublickb' => 'xsd:boolean',
928 'isreviewed' => 'xsd:boolean',
929 'lastmodifiedbyid' => 'xsd:string',
930 'lastmodifieddate' => 'xsd:dateTime',
931 'ownerid' => 'xsd:string',
932 'solutionname' => 'xsd:string',
933 'solutionnote' => 'xsd:string',
934 'solutionnumber' => 'xsd:string',
935 'status' => 'xsd:string',
936 'systemmodstamp' => 'xsd:dateTime',
937 },
938 'solutionstatus' => {
939 'createdbyid' => 'xsd:string',
940 'createddate' => 'xsd:dateTime',
941 'isdefault' => 'xsd:boolean',
942 'isreviewed' => 'xsd:boolean',
943 'lastmodifiedbyid' => 'xsd:string',
944 'lastmodifieddate' => 'xsd:dateTime',
945 'masterlabel' => 'xsd:string',
946 'sortorder' => 'xsd:int',
947 'systemmodstamp' => 'xsd:dateTime',
948 },
949 'task' => {
950 'accountid' => 'xsd:string',
951 'activitydate' => 'xsd:date',
952 'createdbyid' => 'xsd:string',
953 'createddate' => 'xsd:dateTime',
954 'description' => 'xsd:string',
955 'isclosed' => 'xsd:boolean',
956 'lastmodifiedbyid' => 'xsd:string',
957 'lastmodifieddate' => 'xsd:dateTime',
958 'ownerid' => 'xsd:string',
959 'priority' => 'xsd:string',
960 'status' => 'xsd:string',
961 'subject' => 'xsd:string',
962 'systemmodstamp' => 'xsd:dateTime',
963 'whatid' => 'xsd:string',
964 'whoid' => 'xsd:string',
965 },
966 'taskpriority' => {
967 'createdbyid' => 'xsd:string',
968 'createddate' => 'xsd:dateTime',
969 'isdefault' => 'xsd:boolean',
970 'ishighpriority' => 'xsd:boolean',
971 'lastmodifiedbyid' => 'xsd:string',
972 'lastmodifieddate' => 'xsd:dateTime',
973 'masterlabel' => 'xsd:string',
974 'sortorder' => 'xsd:int',
975 'systemmodstamp' => 'xsd:dateTime',
976 },
977 'taskstatus' => {
978 'createdbyid' => 'xsd:string',
979 'createddate' => 'xsd:dateTime',
980 'isclosed' => 'xsd:boolean',
981 'isdefault' => 'xsd:boolean',
982 'lastmodifiedbyid' => 'xsd:string',
983 'lastmodifieddate' => 'xsd:dateTime',
984 'masterlabel' => 'xsd:string',
985 'sortorder' => 'xsd:int',
986 'systemmodstamp' => 'xsd:dateTime',
987 },
988 'user' => {
989 'alias' => 'xsd:string',
990 'city' => 'xsd:string',
991 'companyname' => 'xsd:string',
992 'country' => 'xsd:string',
993 'createdbyid' => 'xsd:string',
994 'createddate' => 'xsd:dateTime',
995 'department' => 'xsd:string',
996 'division' => 'xsd:string',
997 'email' => 'xsd:string',
998 'emailencodingkey' => 'xsd:string',
999 'employeenumber' => 'xsd:string',
1000 'fax' => 'xsd:string',
1001 'firstname' => 'xsd:string',
1002 'isactive' => 'xsd:boolean',
1003 'languagelocalekey' => 'xsd:string',
1004 'lastlogindate' => 'xsd:dateTime',
1005 'lastmodifiedbyid' => 'xsd:string',
1006 'lastmodifieddate' => 'xsd:dateTime',
1007 'lastname' => 'xsd:string',
1008 'localesidkey' => 'xsd:string',
1009 'mobilephone' => 'xsd:string',
1010 'offlinepdatrialexpirationdate' => 'xsd:dateTime',
1011 'offlinetrialexpirationdate' => 'xsd:dateTime',
1012 'phone' => 'xsd:string',
1013 'postalcode' => 'xsd:string',
1014 'profileid' => 'xsd:string',
1015 'receivesadmininfoemails' => 'xsd:boolean',
1016 'receivesinfoemails' => 'xsd:boolean',
1017 'state' => 'xsd:string',
1018 'street' => 'xsd:string',
1019 'systemmodstamp' => 'xsd:dateTime',
1020 'timezonesidkey' => 'xsd:string',
1021 'title' => 'xsd:string',
1022 'userpermissionsmarketinguser' => 'xsd:boolean',
1023 'userpermissionsofflineuser' => 'xsd:boolean',
1024 'userroleid' => 'xsd:string',
1025 'username' => 'xsd:string',
1026 },
1027 'userrole' => {
1028 'caseaccessforaccountowner' => 'xsd:string',
1029 'lastmodifiedbyid' => 'xsd:string',
1030 'lastmodifieddate' => 'xsd:dateTime',
1031 'name' => 'xsd:string',
1032 'opportunityaccessforaccountowner' => 'xsd:string',
1033 'parentroleid' => 'xsd:string',
1034 'rollupdescription' => 'xsd:string',
1035 'systemmodstamp' => 'xsd:dateTime',
1036 },
1037 'weblink' => {
1038 'createdbyid' => 'xsd:string',
1039 'createddate' => 'xsd:dateTime',
1040 'encodingkey' => 'xsd:string',
1041 'hasmenubar' => 'xsd:boolean',
1042 'hasscrollbars' => 'xsd:boolean',
1043 'hastoolbar' => 'xsd:boolean',
1044 'height' => 'xsd:int',
1045 'isresizable' => 'xsd:boolean',
1046 'lastmodifiedbyid' => 'xsd:string',
1047 'lastmodifieddate' => 'xsd:dateTime',
1048 'linktype' => 'xsd:string',
1049 'name' => 'xsd:string',
1050 'opentype' => 'xsd:string',
1051 'pageorsobjecttype' => 'xsd:string',
1052 'position' => 'xsd:string',
1053 'scontrolid' => 'xsd:string',
1054 'showslocation' => 'xsd:boolean',
1055 'showsstatus' => 'xsd:boolean',
1056 'systemmodstamp' => 'xsd:dateTime',
1057 'url' => 'xsd:string',
1058 'width' => 'xsd:int',
1059 },
1060 'sobject' => {},
1061 );
1062  
1063 sub type {
1064 0 ▶ my $class = shift;
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
1065 0 my ( $object, $key ) = @_;
1066 0 return $TYPES{ lc($object) }->{ lc($key) };
1067 }
1068  
1069 sub register_type {
1070 0 ▶ my $class = shift;
Subroutine register_type: not called CC=1 SCAR=6.9
Pod undocumented
1071 0 my ( $object, $key, $type ) = @_;
1072 0 $TYPES{ lc($object) }->{ lc($key) } = $type;
1073 }
1074  
1075 sub register_types {
1076 0 ▶ my $class = shift;
Subroutine register_types: not called CC=3 SCAR=24.8
Pod undocumented
1077 0 my (%param) = @_;
1078  
1079 0 foreach my $object ( keys %param ) {
1080 0 foreach my $key ( keys %{ $param{$object} } ) {
1081 0 $TYPES{ lc($object) }->{ lc($key) } = $param{$object}->{$key};
1082 }
1083 }
1084 }
1085  
1086 2 1;
« Salesforce/Deserializer.pm ↑ Summary Salesforce/Serializer.pm »