Skip to content

Commit 1ff272e

Browse files
fixup! fixup! [Bexley][WW] Implement Agile call to 'cancel'
1 parent 84f7894 commit 1ff272e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

perllib/Open311/Endpoint/Integration/Agile.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ sub _garden_subscription_cancel {
157157

158158
if ( $is_free->{IsFree} eq 'False' ) {
159159
my $res = $integration->Cancel( {
160-
CustomerExternalReference => $args->{attributes}{customer_reference},
160+
CustomerExternalReference => $args->{attributes}{customer_external_ref},
161161
ServiceContractUPRN => $args->{attributes}{uprn},
162162
Reason => $args->{attributes}{reason},
163163
DueDate => $args->{attributes}{due_date},

t/open311/endpoint/agile.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ subtest 'successfully cancel a garden subscription' => sub {
231231
lat => 51,
232232
long => -1,
233233
'attribute[fixmystreet_id]' => 2000002,
234-
'attribute[customer_reference]' => 'customer_ABC',
234+
'attribute[customer_external_ref]' => 'customer_ABC',
235235
'attribute[uprn]' => '234_has_sub',
236236
'attribute[reason]' => 'I used all my garden waste for a bonfire',
237237
'attribute[due_date]' => '01/01/2025',
@@ -253,7 +253,7 @@ subtest 'try to cancel when no subscription' => sub {
253253
lat => 51,
254254
long => -1,
255255
'attribute[fixmystreet_id]' => 2000002,
256-
'attribute[customer_reference]' => 'customer_ABC',
256+
'attribute[customer_external_ref]' => 'customer_ABC',
257257
'attribute[uprn]' => '123_no_sub',
258258
'attribute[reason]' => 'I used all my garden waste for a bonfire',
259259
'attribute[due_date]' => '01/01/2025',

0 commit comments

Comments
 (0)