diff --git a/source/OutgoingMessages.Domain/DocumentWriters/RSM012/MeteredDateForMeasurementPointCimJsonDocumentWriter.cs b/source/OutgoingMessages.Domain/DocumentWriters/RSM012/MeteredDateForMeasurementPointCimJsonDocumentWriter.cs index 5dc60740f..0dcc1053d 100644 --- a/source/OutgoingMessages.Domain/DocumentWriters/RSM012/MeteredDateForMeasurementPointCimJsonDocumentWriter.cs +++ b/source/OutgoingMessages.Domain/DocumentWriters/RSM012/MeteredDateForMeasurementPointCimJsonDocumentWriter.cs @@ -64,11 +64,11 @@ private Document ParseFrom(OutgoingMessageHeader header, IReadOnlyCollection(); + var meteredDataForMeasurementSeries = new Collection(); foreach (var activityRecord in transactions.Select(t => _parser.From(t))) { - meteredDataForMeasurementPoints.Add( - new MeteredDataForMeasurementPoint( + meteredDataForMeasurementSeries.Add( + new MeteredDataForMeasurementSeries( activityRecord.TransactionId.Value, activityRecord.MarketEvaluationPointNumber, activityRecord.MarketEvaluationPointType, @@ -100,7 +100,7 @@ private Document ParseFrom(OutgoingMessageHeader header, IReadOnlyCollection? meteredDataForMeasurementPoints) + IReadOnlyCollection? meteredDataForMeasurementSeries) { [JsonPropertyName("mRID")] public string MessageId { get; init; } = messageId; @@ -151,11 +151,11 @@ internal class MeteredDateForMeasurementPoint( [JsonPropertyName("Series")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public IReadOnlyCollection? MeteredDataForMeasurementPoints { get; init; } = - meteredDataForMeasurementPoints; + public IReadOnlyCollection? MeteredDataForMeasurementSeries { get; init; } = + meteredDataForMeasurementSeries; } -internal class MeteredDataForMeasurementPoint( +internal class MeteredDataForMeasurementSeries( string transactionId, string marketEvaluationPointNumber, string marketEvaluationPointType,