initial import
[Net-DashCS.git] / lib / Net / DashCS / Interfaces / EmergencyProvisioningService / EmergencyProvisioningPort.pm
1 package Net::DashCS::Interfaces::EmergencyProvisioningService::EmergencyProvisioningPort;
2 use strict;
3 use warnings;
4 use Class::Std::Fast::Storable;
5 use Scalar::Util qw(blessed);
6 use base qw(SOAP::WSDL::Client::Base);
7
8 # only load if it hasn't been loaded before
9 require Net::DashCS::Typemaps::EmergencyProvisioningService
10     if not Net::DashCS::Typemaps::EmergencyProvisioningService->can('get_class');
11
12 sub START {
13     $_[0]->set_proxy('https://service.dashcs.com/dash-api/soap/emergencyprovisioning/v1') if not $_[2]->{proxy};
14     $_[0]->set_class_resolver('Net::DashCS::Typemaps::EmergencyProvisioningService')
15         if not $_[2]->{class_resolver};
16
17     $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
18 }
19
20 sub addLocation {
21     my ($self, $body, $header) = @_;
22     die "addLocation must be called as object method (\$self is <$self>)" if not blessed($self);
23     return $self->SUPER::call({
24         operation => 'addLocation',
25         soap_action => '',
26         style => 'document',
27         body => {
28             
29
30            'use'            => 'literal',
31             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
32             encodingStyle   => '',
33             parts           =>  [qw( Net::DashCS::Elements::addLocation )],
34         },
35         header => {
36             
37         },
38         headerfault => {
39             
40         }
41     }, $body, $header);
42 }
43
44
45 sub getAuthenticationCheck {
46     my ($self, $body, $header) = @_;
47     die "getAuthenticationCheck must be called as object method (\$self is <$self>)" if not blessed($self);
48     return $self->SUPER::call({
49         operation => 'getAuthenticationCheck',
50         soap_action => '',
51         style => 'document',
52         body => {
53             
54
55            'use'            => 'literal',
56             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
57             encodingStyle   => '',
58             parts           =>  [qw( Net::DashCS::Elements::getAuthenticationCheck )],
59         },
60         header => {
61             
62         },
63         headerfault => {
64             
65         }
66     }, $body, $header);
67 }
68
69
70 sub getProvisionedLocationByURI {
71     my ($self, $body, $header) = @_;
72     die "getProvisionedLocationByURI must be called as object method (\$self is <$self>)" if not blessed($self);
73     return $self->SUPER::call({
74         operation => 'getProvisionedLocationByURI',
75         soap_action => '',
76         style => 'document',
77         body => {
78             
79
80            'use'            => 'literal',
81             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
82             encodingStyle   => '',
83             parts           =>  [qw( Net::DashCS::Elements::getProvisionedLocationByURI )],
84         },
85         header => {
86             
87         },
88         headerfault => {
89             
90         }
91     }, $body, $header);
92 }
93
94
95 sub validateLocation {
96     my ($self, $body, $header) = @_;
97     die "validateLocation must be called as object method (\$self is <$self>)" if not blessed($self);
98     return $self->SUPER::call({
99         operation => 'validateLocation',
100         soap_action => '',
101         style => 'document',
102         body => {
103             
104
105            'use'            => 'literal',
106             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
107             encodingStyle   => '',
108             parts           =>  [qw( Net::DashCS::Elements::validateLocation )],
109         },
110         header => {
111             
112         },
113         headerfault => {
114             
115         }
116     }, $body, $header);
117 }
118
119
120 sub provisionLocation {
121     my ($self, $body, $header) = @_;
122     die "provisionLocation must be called as object method (\$self is <$self>)" if not blessed($self);
123     return $self->SUPER::call({
124         operation => 'provisionLocation',
125         soap_action => '',
126         style => 'document',
127         body => {
128             
129
130            'use'            => 'literal',
131             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
132             encodingStyle   => '',
133             parts           =>  [qw( Net::DashCS::Elements::provisionLocation )],
134         },
135         header => {
136             
137         },
138         headerfault => {
139             
140         }
141     }, $body, $header);
142 }
143
144
145 sub removeURI {
146     my ($self, $body, $header) = @_;
147     die "removeURI must be called as object method (\$self is <$self>)" if not blessed($self);
148     return $self->SUPER::call({
149         operation => 'removeURI',
150         soap_action => '',
151         style => 'document',
152         body => {
153             
154
155            'use'            => 'literal',
156             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
157             encodingStyle   => '',
158             parts           =>  [qw( Net::DashCS::Elements::removeURI )],
159         },
160         header => {
161             
162         },
163         headerfault => {
164             
165         }
166     }, $body, $header);
167 }
168
169
170 sub getProvisionedLocationHistoryByURI {
171     my ($self, $body, $header) = @_;
172     die "getProvisionedLocationHistoryByURI must be called as object method (\$self is <$self>)" if not blessed($self);
173     return $self->SUPER::call({
174         operation => 'getProvisionedLocationHistoryByURI',
175         soap_action => '',
176         style => 'document',
177         body => {
178             
179
180            'use'            => 'literal',
181             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
182             encodingStyle   => '',
183             parts           =>  [qw( Net::DashCS::Elements::getProvisionedLocationHistoryByURI )],
184         },
185         header => {
186             
187         },
188         headerfault => {
189             
190         }
191     }, $body, $header);
192 }
193
194
195 sub removeLocation {
196     my ($self, $body, $header) = @_;
197     die "removeLocation must be called as object method (\$self is <$self>)" if not blessed($self);
198     return $self->SUPER::call({
199         operation => 'removeLocation',
200         soap_action => '',
201         style => 'document',
202         body => {
203             
204
205            'use'            => 'literal',
206             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
207             encodingStyle   => '',
208             parts           =>  [qw( Net::DashCS::Elements::removeLocation )],
209         },
210         header => {
211             
212         },
213         headerfault => {
214             
215         }
216     }, $body, $header);
217 }
218
219
220 sub getURIs {
221     my ($self, $body, $header) = @_;
222     die "getURIs must be called as object method (\$self is <$self>)" if not blessed($self);
223     return $self->SUPER::call({
224         operation => 'getURIs',
225         soap_action => '',
226         style => 'document',
227         body => {
228             
229
230            'use'            => 'literal',
231             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
232             encodingStyle   => '',
233             parts           =>  [qw( Net::DashCS::Elements::getURIs )],
234         },
235         header => {
236             
237         },
238         headerfault => {
239             
240         }
241     }, $body, $header);
242 }
243
244
245 sub addPinCode {
246     my ($self, $body, $header) = @_;
247     die "addPinCode must be called as object method (\$self is <$self>)" if not blessed($self);
248     return $self->SUPER::call({
249         operation => 'addPinCode',
250         soap_action => '',
251         style => 'document',
252         body => {
253             
254
255            'use'            => 'literal',
256             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
257             encodingStyle   => '',
258             parts           =>  [qw( Net::DashCS::Elements::addPinCode )],
259         },
260         header => {
261             
262         },
263         headerfault => {
264             
265         }
266     }, $body, $header);
267 }
268
269
270 sub getLocationsByURI {
271     my ($self, $body, $header) = @_;
272     die "getLocationsByURI must be called as object method (\$self is <$self>)" if not blessed($self);
273     return $self->SUPER::call({
274         operation => 'getLocationsByURI',
275         soap_action => '',
276         style => 'document',
277         body => {
278             
279
280            'use'            => 'literal',
281             namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
282             encodingStyle   => '',
283             parts           =>  [qw( Net::DashCS::Elements::getLocationsByURI )],
284         },
285         header => {
286             
287         },
288         headerfault => {
289             
290         }
291     }, $body, $header);
292 }
293
294
295
296
297 1;
298
299
300
301 __END__
302
303 =pod
304
305 =head1 NAME
306
307 Net::DashCS::Interfaces::EmergencyProvisioningService::EmergencyProvisioningPort - SOAP Interface for the EmergencyProvisioningService Web Service
308
309 =head1 SYNOPSIS
310
311  use Net::DashCS::Interfaces::EmergencyProvisioningService::EmergencyProvisioningPort;
312  my $interface = Net::DashCS::Interfaces::EmergencyProvisioningService::EmergencyProvisioningPort->new();
313
314  my $response;
315  $response = $interface->addLocation();
316  $response = $interface->getAuthenticationCheck();
317  $response = $interface->getProvisionedLocationByURI();
318  $response = $interface->validateLocation();
319  $response = $interface->provisionLocation();
320  $response = $interface->removeURI();
321  $response = $interface->getProvisionedLocationHistoryByURI();
322  $response = $interface->removeLocation();
323  $response = $interface->getURIs();
324  $response = $interface->addPinCode();
325  $response = $interface->getLocationsByURI();
326
327
328
329 =head1 DESCRIPTION
330
331 SOAP Interface for the EmergencyProvisioningService web service
332 located at https://staging-service.dashcs.com/dash-api/soap/emergencyprovisioning/v1.
333
334 =head1 SERVICE EmergencyProvisioningService
335
336
337
338 =head2 Port EmergencyProvisioningPort
339
340
341
342 =head1 METHODS
343
344 =head2 General methods
345
346 =head3 new
347
348 Constructor.
349
350 All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>.
351
352 =head2 SOAP Service methods
353
354 Method synopsis is displayed with hash refs as parameters.
355
356 The commented class names in the method's parameters denote that objects
357 of the corresponding class can be passed instead of the marked hash ref.
358
359 You may pass any combination of objects, hash and list refs to these
360 methods, as long as you meet the structure.
361
362 List items (i.e. multiple occurences) are not displayed in the synopsis.
363 You may generally pass a list ref of hash refs (or objects) instead of a hash
364 ref - this may result in invalid XML if used improperly, though. Note that
365 SOAP::WSDL always expects list references at maximum depth position.
366
367 XML attributes are not displayed in this synopsis and cannot be set using
368 hash refs. See the respective class' documentation for additional information.
369
370
371
372 =head3 addLocation
373
374
375
376 Returns a L<Net::DashCS::Elements::addLocationResponse|Net::DashCS::Elements::addLocationResponse> object.
377
378  $response = $interface->addLocation( { # Net::DashCS::Types::addLocation
379     uri =>  { # Net::DashCS::Types::uri
380       callername =>  $some_value, # string
381       uri =>  $some_value, # string
382     },
383     location =>  { # Net::DashCS::Types::location
384       activatedtime =>  $some_value, # dateTime
385       address1 =>  $some_value, # string
386       address2 =>  $some_value, # string
387       callername =>  $some_value, # string
388       comments =>  $some_value, # string
389       community =>  $some_value, # string
390       customerorderid =>  $some_value, # string
391       latitude =>  $some_value, # double
392       legacydata =>  { # Net::DashCS::Types::legacyLocationData
393         housenumber =>  $some_value, # string
394         predirectional =>  $some_value, # string
395         streetname =>  $some_value, # string
396         suite =>  $some_value, # string
397       },
398       locationid =>  $some_value, # string
399       longitude =>  $some_value, # double
400       plusfour =>  $some_value, # string
401       postalcode =>  $some_value, # string
402       state =>  $some_value, # string
403       status =>  { # Net::DashCS::Types::locationStatus
404         code => $some_value, # locationStatusCode
405         description =>  $some_value, # string
406       },
407       type => $some_value, # locationType
408       updatetime =>  $some_value, # dateTime
409     },
410   },,
411  );
412
413 =head3 getAuthenticationCheck
414
415
416
417 Returns a L<Net::DashCS::Elements::getAuthenticationCheckResponse|Net::DashCS::Elements::getAuthenticationCheckResponse> object.
418
419  $response = $interface->getAuthenticationCheck( { # Net::DashCS::Types::getAuthenticationCheck
420   },,
421  );
422
423 =head3 getProvisionedLocationByURI
424
425
426
427 Returns a L<Net::DashCS::Elements::getProvisionedLocationByURIResponse|Net::DashCS::Elements::getProvisionedLocationByURIResponse> object.
428
429  $response = $interface->getProvisionedLocationByURI( { # Net::DashCS::Types::getProvisionedLocationByURI
430     uri =>  $some_value, # string
431   },,
432  );
433
434 =head3 validateLocation
435
436
437
438 Returns a L<Net::DashCS::Elements::validateLocationResponse|Net::DashCS::Elements::validateLocationResponse> object.
439
440  $response = $interface->validateLocation( { # Net::DashCS::Types::validateLocation
441     location =>  { # Net::DashCS::Types::location
442       activatedtime =>  $some_value, # dateTime
443       address1 =>  $some_value, # string
444       address2 =>  $some_value, # string
445       callername =>  $some_value, # string
446       comments =>  $some_value, # string
447       community =>  $some_value, # string
448       customerorderid =>  $some_value, # string
449       latitude =>  $some_value, # double
450       legacydata =>  { # Net::DashCS::Types::legacyLocationData
451         housenumber =>  $some_value, # string
452         predirectional =>  $some_value, # string
453         streetname =>  $some_value, # string
454         suite =>  $some_value, # string
455       },
456       locationid =>  $some_value, # string
457       longitude =>  $some_value, # double
458       plusfour =>  $some_value, # string
459       postalcode =>  $some_value, # string
460       state =>  $some_value, # string
461       status =>  { # Net::DashCS::Types::locationStatus
462         code => $some_value, # locationStatusCode
463         description =>  $some_value, # string
464       },
465       type => $some_value, # locationType
466       updatetime =>  $some_value, # dateTime
467     },
468   },,
469  );
470
471 =head3 provisionLocation
472
473
474
475 Returns a L<Net::DashCS::Elements::provisionLocationResponse|Net::DashCS::Elements::provisionLocationResponse> object.
476
477  $response = $interface->provisionLocation( { # Net::DashCS::Types::provisionLocation
478     locationid =>  $some_value, # string
479   },,
480  );
481
482 =head3 removeURI
483
484
485
486 Returns a L<Net::DashCS::Elements::removeURIResponse|Net::DashCS::Elements::removeURIResponse> object.
487
488  $response = $interface->removeURI( { # Net::DashCS::Types::removeURI
489     uri =>  $some_value, # string
490   },,
491  );
492
493 =head3 getProvisionedLocationHistoryByURI
494
495
496
497 Returns a L<Net::DashCS::Elements::getProvisionedLocationHistoryByURIResponse|Net::DashCS::Elements::getProvisionedLocationHistoryByURIResponse> object.
498
499  $response = $interface->getProvisionedLocationHistoryByURI( { # Net::DashCS::Types::getProvisionedLocationHistoryByURI
500     uri =>  $some_value, # string
501   },,
502  );
503
504 =head3 removeLocation
505
506
507
508 Returns a L<Net::DashCS::Elements::removeLocationResponse|Net::DashCS::Elements::removeLocationResponse> object.
509
510  $response = $interface->removeLocation( { # Net::DashCS::Types::removeLocation
511     locationid =>  $some_value, # string
512   },,
513  );
514
515 =head3 getURIs
516
517
518
519 Returns a L<Net::DashCS::Elements::getURIsResponse|Net::DashCS::Elements::getURIsResponse> object.
520
521  $response = $interface->getURIs( { # Net::DashCS::Types::getURIs
522   },,
523  );
524
525 =head3 addPinCode
526
527
528
529 Returns a L<Net::DashCS::Elements::addPinCodeResponse|Net::DashCS::Elements::addPinCodeResponse> object.
530
531  $response = $interface->addPinCode( { # Net::DashCS::Types::addPinCode
532     uri =>  $some_value, # string
533     pincode =>  $some_value, # string
534   },,
535  );
536
537 =head3 getLocationsByURI
538
539
540
541 Returns a L<Net::DashCS::Elements::getLocationsByURIResponse|Net::DashCS::Elements::getLocationsByURIResponse> object.
542
543  $response = $interface->getLocationsByURI( { # Net::DashCS::Types::getLocationsByURI
544     uri =>  $some_value, # string
545   },,
546  );
547
548
549
550 =head1 AUTHOR
551
552 Generated by SOAP::WSDL on Wed Mar 31 10:23:39 2010
553
554 =cut