Skip to content

Commit

Permalink
[Surrey] Expect serviceId from integration
Browse files Browse the repository at this point in the history
  • Loading branch information
MorayMySoc committed Aug 5, 2024
1 parent 50185b5 commit 35780e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perllib/Open311/Endpoint/Integration/Boomi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ sub _get_service_requests_for_integration_id {
updated_datetime => $loggedDate,
service => Open311::Endpoint::Service->new(
service_name => $result->{fmsReport}->{categorisation}->{subCategory},
service_code => "foobar",
service_code => $result->{fmsReport}->{categorisation}->{serviceId},
),
service_notice => $result->{fmsReport}->{categorisation}->{category},
latlong => [ $n, $e ],
Expand Down
7 changes: 5 additions & 2 deletions t/open311/endpoint/surrey_boomi.t
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ $lwp->mock(request => sub {
},
"categorisation" => {
"category" => "Trees and roots",
"subCategory" => "Other tree or roots issue"
"subCategory" => "Other tree or roots issue",
"serviceId" => 'foobar',
}
}
},
Expand Down Expand Up @@ -238,7 +239,9 @@ $lwp->mock(request => sub {
},
"categorisation" => {
"category" => "Gritting and Grit Bins",
"subCategory" => "Damaged grit bin"
"subCategory" => "Damaged grit bin",
"serviceId" => 'foobar',

}
}
},
Expand Down

0 comments on commit 35780e6

Please sign in to comment.