Skip to content

Commit 350e7c7

Browse files
committed
EPBR-9262 Updates to action plan request return format for Scottish endpoint from view model update
1 parent e0009cc commit 350e7c7

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ gem "archive-zip"
2323
gem "aws-sdk-s3", "= 1.209.0"
2424
gem "csv", "~> 3.3"
2525
gem "epb-auth-tools", "~> 1.1.0"
26-
gem "epb_view_models", "~> 2.2.4"
26+
gem "epb_view_models", "~> 2.2.5"
2727
gem "geocoder", "~> 1.8.6"
2828
gem "json-schema", "~> 6.0"
2929
gem "namecase", "~> 2.0"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ GEM
6464
epb-auth-tools (1.1.0)
6565
jwt (~> 2.3)
6666
oauth2 (>= 1.4, < 3.0)
67-
epb_view_models (2.2.4)
67+
epb_view_models (2.2.5)
6868
nokogiri (~> 1.16)
6969
zeitwerk (~> 2.6)
7070
faraday (2.14.0)
@@ -283,7 +283,7 @@ DEPENDENCIES
283283
csv (~> 3.3)
284284
database_cleaner
285285
epb-auth-tools (~> 1.1.0)
286-
epb_view_models (~> 2.2.4)
286+
epb_view_models (~> 2.2.5)
287287
geocoder (~> 1.8.6)
288288
json-schema (~> 6.0)
289289
mock_redis (~> 0.52)

spec/acceptance/scotland-schema/scotland_certificate_summary_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,17 @@
510510
registeredBy: { name: "test scheme", schemeId: scheme_id } },
511511
ownerCommissionReport: "Y",
512512
delegatedPersonCommissionReport: "N",
513-
propertyTypeShortDescription: "General Industrial",
514-
propertyTypeLongDescription: "B2 to B7 General Industrial and Special Industrial Groups",
513+
propertyType: {
514+
propertyTypeShortDescription: "General Industrial",
515+
propertyTypeLongDescription: "B2 to B7 General Industrial and Special Industrial Groups",
516+
},
515517
buildingImprovements: "N",
516518
operationalRatings: "Y",
517519
dec: "N",
518520
plannedCompletionDate: "2028-12-12",
519521
actualCompletionDate: nil,
520-
targetEmissionSavings: "1.61",
521-
targetEnergySavings: "10.11",
522+
targetEmissionSavings: 1.61,
523+
targetEnergySavings: 10.11,
522524
acceptPrescriptiveImprovements: "Y",
523525
prescriptiveImprovements:
524526
[{ measureDescriptionShort: "Central time heating control", measureDescriptionLong: nil, measureValid: "N", measureType: nil },

0 commit comments

Comments
 (0)