@@ -871,6 +871,7 @@ def __init__(self, *, parent=None, con=None, **kwargs):
871871
872872 #: Unique identifier for the event. |br| **Type:** str
873873 self .object_id = cloud_data .get (cc ('id' ), None )
874+ self .__transaction_id = cloud_data .get (cc ("transactionId" ), None )
874875 self .__subject = cloud_data .get (cc ('subject' ),
875876 kwargs .get ('subject' , '' ) or '' )
876877 body = (
@@ -987,6 +988,7 @@ def to_api_data(self, restrict_keys=None):
987988 location = {cc ('displayName' ): '' }
988989
989990 data = {
991+ cc ("transactionId" ): self .__transaction_id ,
990992 cc ('subject' ): self .__subject ,
991993 cc ('body' ): {
992994 cc ('contentType' ): self .body_type ,
@@ -1074,6 +1076,23 @@ def subject(self, value):
10741076 self .__subject = value
10751077 self ._track_changes .add (self ._cc ('subject' ))
10761078
1079+ @property
1080+ def transaction_id (self ):
1081+ """Transaction Id of the event
1082+
1083+ :getter: Get transaction_id
1084+ :setter: Set transaction_id of event - can only be set for event creation
1085+ :type: str
1086+ """
1087+ return self .__transaction_id
1088+
1089+ @transaction_id .setter
1090+ def transaction_id (self , value ):
1091+ if self .object_id and value != self .__transaction_id :
1092+ raise ValueError ("Cannot change transaction_id after event creation" )
1093+ self .__transaction_id = value
1094+ self ._track_changes .add (self ._cc ("transactionId" ))
1095+
10771096 @property
10781097 def start (self ):
10791098 """ Start Time of event
0 commit comments