+
    TŎi?N                         ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt  ! R	 R
]4      tR# )    N)ActionSource)
CustomData)UserData)AppData)MessagingChannel)OriginalEventData)AttributionDatac                     a  ] tR t^!t o / RRbRRbRRbRRbRRbR	R
bRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbtRGR lt]R 4       t]P                  R 4       t]R  4       t	]	P                  R! 4       t	]R" 4       t
]
P                  R# 4       t
]R$ 4       t]P                  R% 4       t]R& 4       t]P                  R' 4       t]R( 4       t]P                  R) 4       t]R* 4       t]P                  R+ 4       t]R, 4       t]P                  R- 4       t]R. 4       t]P                  R/ 4       t]R0 4       t]P                  R1 4       t]R2 4       t]P                  R3 4       t]R4 4       t]P                  R5 4       t]R6 4       t]P                  R7 4       t]R8 4       t]P                  R9 4       t]R: 4       t]P                  R; 4       t]R< 4       t]P                  R= 4       tR> tR? tR@ tRA tRB tRC tRD tRE tRFt V t!R# )HEvent
event_namestr
event_timeintevent_source_urlopt_outboolevent_id	user_datar   custom_datar   app_datar   data_processing_optionsz	list[str]data_processing_options_countrydata_processing_options_stateaction_sourcer   advanced_measurement_tablemessaging_channelr   original_event_datar   attribution_datar	   Nc                   RV n         RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n	        RV n
        RV n        RV n        Wn        W n        RV n        RV n        RV n        Ve   W0n        Ve   W@n        Ve   WPn        Ve   W`n        Ve   Wpn        Ve   Wn        V	e   Wn        V
e   Wn        Ve   Wn        Ve   Wn        Ve   Wn        Ve   Wn        Ve   Wn        Ve
   VV n        R# R# )zConversions API EventN) _event_name_event_time_event_source_url_opt_out	_event_id
_user_data_custom_data	_app_data_data_processing_options _data_processing_options_country_data_processing_options_state_action_source_advanced_measurement_tabler   r   _messaging_channel_original_event_data_attribution_datar   r   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s   &&&&&&&&&&&&&&&&&{/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/facebook_business/adobjects/serverside/event.py__init__Event.__init__5   s5     !% (,%04-.2+"+/($$"&$(!!%'$4!"L$M &N"*$M".+B(*63R0(41N.$!.%1.H+(%6"*':$'$4D! (    c                    V P                   # )zGets the event_name of this Event.

A Facebook pixel Standard Event or Custom Event name.

:return: The event_name of this Event.
:rtype: str
)r    r0   s   &r1   r   Event.event_namel        r4   c                0    Vf   \        R4      hWn        R# )zSets the event_name of this Event.

A Facebook pixel Standard Event or Custom Event name.

:param event_name: The event_name of this Event.
:type: str
:return self
Nz2Invalid value for `event_name`, must not be `None`)
ValueErrorr    )r0   r   s   &&r1   r   r7   w   s     QRR%r4   c                    V P                   # )zGets the event_time of this Event.

A Unix timestamp in seconds indicating when the actual event occurred.

:return: The event_time of this Event.
:rtype: int
)r!   r6   s   &r1   r   Event.event_time   r8   r4   c                r    Vf   \        R4      h\        V\        4      '       g   \        R4      hWn        R# )zSets the event_time of this Event.

A Unix timestamp in seconds indicating when the actual event occurred.

:param event_time: The event_time of this Event.
:type: int
Nz2Invalid value for `event_time`, must not be `None`zEvent.event_time must be an int)r:   
isinstancer   	TypeErrorr!   )r0   r   s   &&r1   r   r<      s5     QRR*c**=>>%r4   c                    V P                   # )zGets the event_source_url of this Event.

The browser URL where the event happened.

:return: The event_source_url of this Event.
:rtype: str
r"   r6   s   &r1   r   Event.event_source_url        %%%r4   c                    Wn         R# )zSets the event_source_url of this Event.

The browser URL where the event happened.

:param event_source_url: The event_source_url of this Event.
:type: str
NrA   )r0   r   s   &&r1   r   rB      s
     "2r4   c                    V P                   # )zGets the opt_out of this Event.

A flag that indicates we should not use this event for ads delivery optimization.
If set to true, we only use the event for attribution.

:return: The opt_out of this Event.
:rtype: bool
)r#   r6   s   &r1   r   Event.opt_out   s     }}r4   c                T    \        V\        4      '       g   \        R4      hWn        R# )zSets the opt_out of this Event.

A flag that indicates we should not use this event for ads delivery optimization.
If set to true, we only use the event for attribution.

:param opt_out: The opt_out of this Event.
:type: bool
zEvent.opt_out must be a boolN)r>   r   r?   r#   )r0   r   s   &&r1   r   rF      s"     '4((:;;r4   c                    V P                   # )zGets the event_id of this Event.

This ID can be any string chosen by the advertiser.
This is used with event_name to determine if events sent from
both server and browser are identical.

:return: The event_id of this Event.
:rtype: str
r$   r6   s   &r1   r   Event.event_id   s     ~~r4   c                    Wn         R# )zSets the event_id of this Event.

This ID can be any string chosen by the advertiser.
This is used with event_name to determine if events sent from
both server and browser are identical.

:param event_id: The event_id of this Event.
:type: str
NrI   )r0   r   s   &&r1   r   rJ      s	     "r4   c                    V P                   # )z[Gets the user_data of this Event.


:return: The user_data of this Event.
:rtype: UserData
)r%   r6   s   &r1   r   Event.user_data   s     r4   c                r    Vf   \        R4      h\        V\        4      '       g   \        R4      hWn        R# )zcSets the user_data of this Event.


:param user_data: The user_data of this Event.
:type: UserData
Nz1Invalid value for `user_data`, must not be `None`z(Event.user_Data must be of type UserData)r:   r>   r   r?   r%   )r0   r   s   &&r1   r   rM      s4     PQQ)X..FGG#r4   c                    V P                   # )zaGets the custom_data of this Event.


:return: The custom_data of this Event.
:rtype: CustomData
)r&   r6   s   &r1   r   Event.custom_data	  s        r4   c                T    \        V\        4      '       g   \        R4      hWn        R# )zkSets the custom_data of this Event.


:param custom_data: The custom_data of this Event.
:type: CustomData
z,Event.custom_data must be of type CustomDataN)r>   r   r?   r&   )r0   r   s   &&r1   r   rP     s#     +z22JKK'r4   c                    V P                   # )zWGets the app_data of this Event.

:return: The app_data of this Event.
:rtype: AppData
)r'   r6   s   &r1   r   Event.app_data!  s     ~~r4   c                T    \        V\        4      '       g   \        R4      hWn        R# )z^Sets the app_data of this Event.

:param app_data: The app_data of this Event.
:type: AppData
z&Event.app_data must be of type AppDataN)r>   r   r?   r'   )r0   r   s   &&r1   r   rS   *  s"     (G,,DEE!r4   c                    V P                   # )zwGets the data_processing_options of this Event.

:return: The data_processing_options of this Event.
:rtype: list[str]
r(   r6   s   &r1   r   Event.data_processing_options6  s     ,,,r4   c                    Wn         R# )a0  Sets the data_processing_options of this Event.
Processing options you would like to enable for a specific event.
For more details see https://developers.facebook.com/docs/marketing-apis/data-processing-options

:param data_processing_options: The data_processing_options of this Event.
:type: list[str]
NrV   )r0   r   s   &&r1   r   rW   ?  s     )@%r4   c                    V P                   # )zGets the data_processing_options_country of this Event.

:return: The data_processing_options_country of this Event.
:rtype: int
)r)   r6   s   &r1   r   %Event.data_processing_options_countryK  s     444r4   c                T    \        V\        4      '       g   \        R4      hWn        R# )aI  Sets the data_processing_options_country of this Event.
A country that you want to associate to this data processing option.
For more details: https://developers.intern.facebook.com/docs/marketing-apis/data-processing-options

:param data_processing_options_country: The data_processing_options_country of this Event.
:type: int
z4Event.data_processing_options_country must be an intN)r>   r   r?   r)   )r0   r   s   &&r1   r   rZ   T  s$     93??RSS0O-r4   c                    V P                   # )z}Gets the data_processing_options_state of this Event.

:return: The data_processing_options_state of this Event.
:rtype: int
r*   r6   s   &r1   r   #Event.data_processing_options_statec  s     222r4   c                    Wn         R# )a0  Sets the data_processing_options_state of this Event.
A state that you want to associate with this data processing option.
For more details: https://developers.facebook.com/docs/marketing-apis/data-processing-options

:param data_processing_options: The data_processing_options of this Event.
:type: int
Nr]   )r0   r   s   &&r1   r   r^   l  s     /L+r4   c                    V P                   # )zGets the action_source.

Allows you to specify where the conversion occurred.

:return: The action_source.
:rtype: ActionSource
r+   r6   s   &r1   r   Event.action_sourcex  s     """r4   c                    Wn         R# )zSets the action_source.

Allows you to specify where the conversion occurred.

:param action_source: The action_source.
:type: ActionSource
Nra   r0   r   s   &&r1   r   rb     s
     ,r4   c                    V P                   # )zGets the advanced_measurement_table.

Only used for the Advanced Measurement API in the Advanced Analytics product.

:return: The advanced_measurement_table.
:rtype: str
r,   r6   s   &r1   r    Event.advanced_measurement_table  s     ///r4   c                    Wn         R# )zSets the advanced_measurement_table.

Only used for the Advanced Measurement API in the Advanced Analytics product.

:param advanced_measurement_table: The advanced_measurement_table.
:type: str
Nrf   )r0   r   s   &&r1   r   rg     s     ,F(r4   c                    V P                   # )zuGets the messaging_channel.

Return the messaging channel of the event.

:return: The messaging_channel.
:rtype: str
r-   r6   s   &r1   r   Event.messaging_channel  s     &&&r4   c                    Wn         R# )zSets the advanced_measurement_table.

Allow you to specify the messaging channel of the event.

:param messaging_channel: The messaging_channel.
:type: str
Nrj   r0   r   s   &&r1   r   rk     s
     #4r4   c                    V P                   # )zGets the original_event_data.

Return the original_event_data of the event.

:return: The original_event_data.
:rtype: OriginalEventData
r.   r6   s   &r1   r   Event.original_event_data  s     (((r4   c                    Wn         R# )zSets the original_event_data.

Allow you to specify the original_event_data of the event.

:param original_event_data: The original_event_data.
:type: OriginalEventData
Nro   )r0   r   s   &&r1   r   rp     s
     %8!r4   c                    V P                   # )z~Gets the attribution_data.

Return the attribution_data of the event.

:return: The attribution_data.
:rtype: AttributionData
r/   r6   s   &r1   r   Event.attribution_data  rC   r4   c                    Wn         R# )zSets the attribution_data.

Allow you to specify the attribution_data of the event.

:param attribution_data: The attribution_data.
:type: AttributionData
Nrs   )r0   r   s   &&r1   r   rt     s
     "2r4   c                   R V P                   RV P                  RV P                  RV P                  RV P                  RV P
                  RV P                  RV P                  RV P                  /	pV P                  e   V P                  P                  4       VR	&   V P                  e   V P                  P                  4       VR
&   V P                  e   V P                  P                  4       VR&   V P                  e5   V P                  V P                  4       V P                  P                  VR&   V P                   e5   V P#                  V P                   4       V P                   P                  VR&   V P$                  e   V P$                  P                  4       VR&   V P&                  e   V P&                  P                  4       VR&   VP)                  4        UUu/ uF  w  r#Vf   K  W#bK  	  pppV# u uppi )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r   r   r   r   	normalizer   r   r   validate_action_sourcevaluer   validate_messaging_channelr   r   items)r0   normalized_payloadkvs   &   r1   rw   Event.normalize  s   *DOO\4??0$2G2GTXT`T`($--9RTXTpTp?$BfBf=t?a?a:D<[<[^ >>%.2nn.F.F.H{+'040@0@0J0J0L}-==$-1]]-D-D-Fz*)''(:(:;262D2D2J2J/!!-++D,B,BC6:6L6L6R6R23##/8<8P8P8Z8Z8\45  ,595J5J5T5T5V12 0B/G/G/I[/ItqQdad/I[!! \s   G5*G5c                R    \        V4      \        8X  g   \        R V,          4      hR# )z=action_source must be an ActionSource. TypeError on value: %sN)typer   r?   rd   s   &&r1   rx   Event.validate_action_source
  s*    M"l2OR__  3r4   c                R    \        V4      \        8X  g   \        R V,          4      hR# )zFmessaging_channel must be an messaging_channel. TypeError on value: %sN)r   r   r?   rm   s   &&r1   rz    Event.validate_messaging_channel  s,    %&*::X[ll  ;r4   c                   / p\         P                  ! V P                  4       F  w  r#\        W4      p\	        V\
        4      '       d   \        \        R V4      4      W&   K@  \        VR4      '       d   VP                  4       W&   Kf  \	        V\        4      '       d)   \        \        R VP                  4       4      4      W&   K  WAV&   K  	  \        \        \        4      '       d   V P                  4        F	  w  rTWAV&   K  	  V# )z&Returns the model properties as a dictc                 J    \        V R 4      '       d   V P                  4       # T # )to_dicthasattrr   )xs   &r1   <lambda>Event.to_dict.<locals>.<lambda>  s    WQ	-B-BaiikIIr4   r   c                 x    \        V ^,          R4      '       d!   V ^ ,          V ^,          P                  4       3# T # )   r   r   )items   &r1   r   r   &  s9    tAw	22 #'q'47??+<!= "=8<"=r4   )six	iteritemsparam_typesgetattrr>   listmapr   r   dictr{   
issubclassr   )r0   resultattr_ry   keys   &     r1   r   Event.to_dict  s    }}T%5%56GDD'E%&&#CI%   	**$}}E4((#C=KKM%    %t! 7" eT"""jjl
#s + r4   c                J    \         P                  ! V P                  4       4      # )z.Returns the string representation of the model)pprintpformatr   r6   s   &r1   to_strEvent.to_str2  s    ~~dlln--r4   c                "    V P                  4       # )zFor `print` and `pprint`)r   r6   s   &r1   __repr__Event.__repr__6  s    {{}r4   c                d    \        V\        4      '       g   R# V P                  VP                  8H  # )z&Returns true if both objects are equalF)r>   r   __dict__r0   others   &&r1   __eq__Event.__eq__:  s%    %''}}..r4   c                    W8X  * # )z*Returns true if both objects are not equal r   s   &&r1   __ne__Event.__ne__A  s      r4   ) r+   r,   r'   r/   r&   r(   r)   r*   r$   r    r"   r!   r-   r#   r.   r%   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNNNNNNNNNN)"__name__
__module____qualname____firstlineno__r   r2   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rw   rx   rz   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r1   r   r   !   s    ee 	E 	6	
 	E 	Z 	| 	I 	"; 	*5 	( 	 	%e 	/ 	2  	-!K&55n     & &     & &  & & 	2 	2 	 	 ^^    
 
 __" "   $ $ ! ! ( (   __	" 	" - - ##	@ $	@ 5 5 %++P ,P 3 3 #))	L *	L # # 	, 	, 0 0  &&F 'F ' ' 4 4 ) ) 8  8 & & 2 2!"F6./! !r4   r   )r   r   4facebook_business.adobjects.serverside.action_sourcer   2facebook_business.adobjects.serverside.custom_datar   0facebook_business.adobjects.serverside.user_datar   /facebook_business.adobjects.serverside.app_datar   8facebook_business.adobjects.serverside.messaging_channelr   :facebook_business.adobjects.serverside.original_event_datar   7facebook_business.adobjects.serverside.attribution_datar	   objectr   r   r4   r1   <module>r      s0   *  
 M I E C U X Sb!F b!r4   