diff --git a/facia-json/src/main/scala/com/gu/facia/client/models/Config.scala b/facia-json/src/main/scala/com/gu/facia/client/models/Config.scala index 10332029..f2767cc4 100644 --- a/facia-json/src/main/scala/com/gu/facia/client/models/Config.scala +++ b/facia-json/src/main/scala/com/gu/facia/client/models/Config.scala @@ -225,7 +225,8 @@ object CollectionConfigJson { userVisibility: Option[String] = None, targetedTerritory: Option[TargetedTerritory] = None, platform: Option[CollectionPlatform] = None, - frontsToolSettings: Option[FrontsToolSettings] = None + frontsToolSettings: Option[FrontsToolSettings] = None, + suppressImages: Option[Boolean] = None, ): CollectionConfigJson = CollectionConfigJson( displayName, @@ -248,7 +249,8 @@ object CollectionConfigJson { userVisibility, targetedTerritory, platform, - frontsToolSettings + frontsToolSettings, + suppressImages ) } @@ -274,6 +276,7 @@ case class CollectionConfigJson( targetedTerritory: Option[TargetedTerritory], platform: Option[CollectionPlatform], frontsToolSettings: Option[FrontsToolSettings], + suppressImages: Option[Boolean] ) { val collectionType = `type` diff --git a/fapi-client/src/main/scala/com/gu/facia/api/models/collectionconfig.scala b/fapi-client/src/main/scala/com/gu/facia/api/models/collectionconfig.scala index da79a08f..d8e805dc 100644 --- a/fapi-client/src/main/scala/com/gu/facia/api/models/collectionconfig.scala +++ b/fapi-client/src/main/scala/com/gu/facia/api/models/collectionconfig.scala @@ -34,7 +34,8 @@ case class CollectionConfig( userVisibility: Option[String], targetedTerritory: Option[TargetedTerritory], platform: CollectionPlatform = AnyPlatform, - frontsToolSettings: Option[FrontsToolSettings]) + frontsToolSettings: Option[FrontsToolSettings], + suppressImages: Option[Boolean]) object CollectionConfig { val DefaultCollectionType = "fixed/small/slow-IV" @@ -60,7 +61,8 @@ object CollectionConfig { userVisibility = None, targetedTerritory = None, platform = AnyPlatform, - frontsToolSettings = None) + frontsToolSettings = None, + suppressImages = false) def fromCollectionJson(collectionJson: CollectionConfigJson): CollectionConfig = CollectionConfig( @@ -84,5 +86,7 @@ object CollectionConfig { collectionJson.userVisibility, collectionJson.targetedTerritory, collectionJson.platform.getOrElse(AnyPlatform), - collectionJson.frontsToolSettings) + collectionJson.frontsToolSettings, + collectionJson.suppressImages.exists(identity), +) }