aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Integrations/Echo.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-23 17:29:04 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-11-11 10:29:20 +0000
commitcabc4f91d55b952ab2521ec85ec745de4c354d8c (patch)
tree5ba392d8dd688f1c1475816abe5b1a7cf06e0616 /perllib/Integrations/Echo.pm
parent09209f4168fed34837d11fb828aec33523b71737 (diff)
[Bromley] Script to update open waste reports.
Diffstat (limited to 'perllib/Integrations/Echo.pm')
-rw-r--r--perllib/Integrations/Echo.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/perllib/Integrations/Echo.pm b/perllib/Integrations/Echo.pm
index 48a0edc6c..9a5b65ec2 100644
--- a/perllib/Integrations/Echo.pm
+++ b/perllib/Integrations/Echo.pm
@@ -291,6 +291,24 @@ sub GetServiceTaskInstances {
return force_arrayref($res, 'ServiceTaskInstances');
}
+sub GetEvent {
+ my ($self, $guid) = @_;
+ $self->call('GetEvent', ref => ixhash(
+ Key => 'Guid',
+ Type => 'Event',
+ Value => { 'msArray:anyType' => $guid },
+ ));
+}
+
+sub GetEventType {
+ my ($self, $id) = @_;
+ $self->call('GetEventType', ref => ixhash(
+ Key => 'Id',
+ Type => 'EventType',
+ Value => { 'msArray:anyType' => $id },
+ ));
+}
+
sub GetEventsForObject {
my ($self, $id, $type) = @_;
my $from = DateTime->now->set_time_zone(FixMyStreet->local_time_zone)->subtract(months => 3);