diff --git a/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/PriceCapping.scala b/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/PriceCapping.scala index caf47c34..c06e344a 100644 --- a/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/PriceCapping.scala +++ b/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/PriceCapping.scala @@ -1,6 +1,5 @@ package pricemigrationengine.migrations.newspaper2024Migration import pricemigrationengine.model._ -import pricemigrationengine.util.StringObfuscation.obfuscate import java.time.LocalDate @@ -866,6 +865,6 @@ object PriceCapping { "1&244AS097T" -> BigDecimal(0.83), "1&244S4TAT6" -> BigDecimal(0.83), ) - mapping.getOrElse(obfuscate(subscription.subscriptionNumber), BigDecimal(1)) + mapping.getOrElse(StringObfuscation.obfuscate(subscription.subscriptionNumber), BigDecimal(1)) } } diff --git a/lambda/src/main/scala/pricemigrationengine/util/StringObfuscation.scala b/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/StringObfuscation.scala similarity index 87% rename from lambda/src/main/scala/pricemigrationengine/util/StringObfuscation.scala rename to lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/StringObfuscation.scala index 548f7040..cb064c98 100644 --- a/lambda/src/main/scala/pricemigrationengine/util/StringObfuscation.scala +++ b/lambda/src/main/scala/pricemigrationengine/migrations/Newspaper2024Migration/StringObfuscation.scala @@ -1,4 +1,4 @@ -package pricemigrationengine.util +package pricemigrationengine.migrations.newspaper2024Migration import java.time.LocalDate object StringObfuscation { diff --git a/lambda/src/test/scala/pricemigrationengine/migrations/Newspaper2024MigrationTest.scala b/lambda/src/test/scala/pricemigrationengine/migrations/Newspaper2024MigrationTest.scala index f25a3e44..617f1cde 100644 --- a/lambda/src/test/scala/pricemigrationengine/migrations/Newspaper2024MigrationTest.scala +++ b/lambda/src/test/scala/pricemigrationengine/migrations/Newspaper2024MigrationTest.scala @@ -8,7 +8,7 @@ import pricemigrationengine.migrations.newspaper2024Migration.Estimation._ import pricemigrationengine.migrations.newspaper2024Migration.Amendment._ import pricemigrationengine.migrations.newspaper2024Migration.{Estimation, StaticData} import pricemigrationengine.migrations.newspaper2024Migration.StaticData.{ChargeDistribution2024, IndividualCharge2024} -import pricemigrationengine.util.StringObfuscation +import pricemigrationengine.migrations.newspaper2024Migration.StringObfuscation /* Correspondence between product names in Salesforce versus Zuora