Salesforce/Constants.pm

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