From 0f848afe97d301efda2475b6f8d57fe323610343 Mon Sep 17 00:00:00 2001
From: Felix Reichenbach <felix.reichenbach@mgm-tp.com>
Date: Thu, 3 Apr 2025 12:28:16 +0200
Subject: [PATCH] OZG-7908 adjust structure of payload

---
 .../main/protobuf/aggregationdata.model.proto | 20 ++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/aggregation-manager-interface/src/main/protobuf/aggregationdata.model.proto b/aggregation-manager-interface/src/main/protobuf/aggregationdata.model.proto
index 3a7655d..7861584 100644
--- a/aggregation-manager-interface/src/main/protobuf/aggregationdata.model.proto
+++ b/aggregation-manager-interface/src/main/protobuf/aggregationdata.model.proto
@@ -41,24 +41,30 @@ message GrpcAggregationData {
   string status = 2;
   string eingangDatum = 3;
   string vorgangName = 4;
-  GrpcPayload payload = 5;
+  GrpcObject payload = 5;
 }
 
-message GrpcPayload {
+message GrpcObject {
   repeated GrpcProperty properties = 1;
 }
 
 message GrpcProperty {
   string key = 1;
+  GrpcElement value = 2;
+}
+
+message GrpcElement {
   oneof value {
-    string stringValue = 2;
-    GrpcPayload nestedPayload = 3;
-    GrpcValueList valueList = 4;
+    bool boolValue = 1;
+    int64 longValue = 2;
+    string stringValue = 3;
+    GrpcElementList listValue = 4;
+    GrpcObject objectValue = 5;
   }
 }
 
-message GrpcValueList {
-  repeated string values = 1;
+message GrpcElementList {
+  repeated GrpcElement elements = 1;
 }
 
 message GrpcSendAggregationDataResponse {}
\ No newline at end of file
-- 
GitLab