Skip to content

Commit

Permalink
[Surrey] Adds externalId for jobs and reports
Browse files Browse the repository at this point in the history
  • Loading branch information
MorayMySoc committed Aug 6, 2024
1 parent 35780e6 commit 18693cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions perllib/Open311/Endpoint/Integration/Boomi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ sub _get_service_requests_for_integration_id {
for my $result (@$results) {
my ($id, $loggedDate, $e, $n) = do {
if (my $enq = $result->{confirmEnquiry}) {
($enq->{enquiryNumber}, $enq->{loggedDate}, $enq->{easting}, $enq->{northing});
($enq->{externalId}, $enq->{loggedDate}, $enq->{easting}, $enq->{northing});
} else {
my $job = $result->{confirmJob};
("JOB_" . $job->{jobNumber}, $job->{entryDate}, $job->{easting}, $job->{northing});
("JOB_" . $job->{externalId}, $job->{entryDate}, $job->{easting}, $job->{northing});
}
};
$loggedDate = DateTime::Format::W3CDTF->parse_datetime($loggedDate);
Expand Down
4 changes: 2 additions & 2 deletions t/open311/endpoint/surrey_boomi.t
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ $lwp->mock(request => sub {
"results" => [
{
"confirmEnquiry" => {
"enquiryNumber" => 136416,
"externalId" => 136416,
"loggedDate" => "2024-07-26T08:42:52.000Z",
"statusCode" => "6000",
"subject" => {
Expand Down Expand Up @@ -222,7 +222,7 @@ $lwp->mock(request => sub {
{
"confirmJob" => {
"entryDate" => "2024-07-26T07:46:33.000Z",
"jobNumber" => 569081,
"externalId" => 569081,
"statusCode" => "2000",
"priorityCode" => "HW09",
"jobType" => {
Expand Down

0 comments on commit 18693cc

Please sign in to comment.