From 216a34fe92d913de1679e803ddbf1f9f85b0408e Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Tue, 16 Apr 2024 12:16:18 -0400 Subject: [PATCH] fix: oob record their_service should be updatable Signed-off-by: Daniel Bluhm --- .../protocols/out_of_band/v1_0/models/oob_record.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aries_cloudagent/protocols/out_of_band/v1_0/models/oob_record.py b/aries_cloudagent/protocols/out_of_band/v1_0/models/oob_record.py index e99201bd4f..d79e226121 100644 --- a/aries_cloudagent/protocols/out_of_band/v1_0/models/oob_record.py +++ b/aries_cloudagent/protocols/out_of_band/v1_0/models/oob_record.py @@ -113,6 +113,11 @@ def their_service(self) -> Optional[ServiceDecorator]: """Accessor; get deserialized view.""" return None if self._their_service is None else self._their_service.de + @their_service.setter + def their_service(self, value: Union[ServiceDecorator, Mapping[str, Any]]): + """Setter; store de/serialized vies.""" + self._their_service = ServiceDecorator.serde(value) + @property def record_value(self) -> dict: """Accessor for the JSON record value generated for this invitation."""