Skip to content

Commit 7a6e32f

Browse files
committed
fix naming - saving to savings
1 parent 3c68721 commit 7a6e32f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetBalancesForPersonService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class GetBalancesForPersonService(
6161
balances =
6262
listOf(
6363
AccountBalance(accountCode = "spends", amount = nomisSpends),
64-
AccountBalance(accountCode = "saving", amount = nomisSavings),
64+
AccountBalance(accountCode = "savings", amount = nomisSavings),
6565
AccountBalance(accountCode = "cash", amount = nomisCash),
6666
),
6767
)

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/BalancesControllerTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BalancesControllerTest(
4545
balances =
4646
listOf(
4747
AccountBalance(accountCode = "spends", amount = 101),
48-
AccountBalance(accountCode = "saving", amount = 102),
48+
AccountBalance(accountCode = "savings", amount = 102),
4949
AccountBalance(accountCode = "cash", amount = 103),
5050
),
5151
)
@@ -72,7 +72,7 @@ class BalancesControllerTest(
7272
"amount": 101
7373
},
7474
{
75-
"accountCode": "saving",
75+
"accountCode": "savings",
7676
"amount": 102
7777
},
7878
{

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetBalancesForPersonServiceTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ internal class GetBalancesForPersonServiceTest(
5959
balances =
6060
listOf(
6161
AccountBalance(accountCode = "spends", amount = nomisSpends),
62-
AccountBalance(accountCode = "saving", amount = nomisSavings),
62+
AccountBalance(accountCode = "savings", amount = nomisSavings),
6363
AccountBalance(accountCode = "cash", amount = nomisCash),
6464
),
6565
)

0 commit comments

Comments
 (0)