aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311/endpoint/Endpoint_Warwick.pm
blob: c097f177e9dbe34540a47537a66734cad59a1bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package t::open311::endpoint::Endpoint_Warwick;
use Web::Simple;

our %BINDINGS;
our $UPDATES_SQL;

extends 'Open311::Endpoint::Integration::Warwick';

sub insert_into_db {
    my ($self, $bindings) = @_;

    %BINDINGS = %$bindings;
    # return ($pem_id, $error_value, $error_product);
    return (1001);
}

sub get_updates_from_sql {
    my ($self, $sql) = @_;
    $UPDATES_SQL = $sql;
    return (
        {
            row_id => 999,
            service_request_id => 1001,
            updated_datetime => '2014-07-23 11:07:00',
            status => 'closed',
            description => 'Closed the ticket',
        }
    );
}

1;