+
    TŎi
-                         ^ RI t ^ 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	IHt  ! R
 R]4      tR# )    N)FacebookAdsApi)AdsPixel)Event)EventResponse)
HttpMethod)RequestOptions)Util)FacebookSessionc                     a  ] tR t^#t o RtRRRRRRRRRRR	RR
R/tR&R 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 tR tR tR tR tR  tR! tR" tR# tR$ tR%tV tR# )'EventRequestz 
Conversions API Event Request.
eventszlist[Event]test_event_codestrnamespace_id	upload_id
upload_tagupload_sourcepartner_agentNc                   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
        Vf   \        R4      hWn        V	e   V
f   \        R4      hV	e   Wn        V
e   Wn	        Ve   Wn
        W n        Ve   W0n        Ve   W@n        Ve   WPn        Ve   W`n        Ve   Wpn        Ve	   Wn        R # R # )Nz0Invalid value for `pixel_id`, must not be `None`zEAn access_token must also be passed in when passing in an http_client)_events_test_event_code_namespace_id
_upload_id_upload_tag_upload_source_partner_agent_EventRequest__pixel_id_EventRequest__http_client_EventRequest__access_token_EventRequest__appsecret
ValueErrorr   r   r   r   r   r   r   )selfpixel_idr   r   r   r   r   r   r   http_clientaccess_token	appsecrets   &&&&&&&&&&&&ڃ/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/facebook_business/adobjects/serverside/event_request.py__init__EventRequest.__init__2   s       $!""!"OPP""|';dee"!,#". (&#2 # , &N!(O$!.$!. %    c                    V P                   # )z]Gets the events.

An array of Server Event objects

:return: The events.
:rtype: list[Event]
)r   r"   s   &r'   r   EventRequest.eventsf   s     ||r*   c                0    Vf   \        R4      hWn        R# )zbSets the events.

An array of Server Event objects

:param events: The events.
:type: list[Event]
Nz.Invalid value for `events`, must not be `None`)r!   r   )r"   r   s   &&r'   r   r-   q   s     >MNNr*   c                    V P                   # )ap  Gets the test_event_code.

Code used to verify that your server events are received correctly by Facebook.
Use this code to test your server events in the Test Events feature in Events Manager.
See Test Events Tool (https://developers.facebook.com/docs/marketing-api/conversions-api/using-the-api#testEvents) for an example.

:return: The test_event_code.
:rtype: str
r   r,   s   &r'   r   EventRequest.test_event_code   s     $$$r*   c                    Wn         R# )a~  Sets the test_event_code.

Code used to verify that your server events are received correctly by Facebook.
Use this code to test your server events in the Test Events feature in Events Manager.
See Test Events Tool (https://developers.facebook.com/docs/marketing-api/conversions-api/using-the-api#testEvents) for an example.

:param test_event_code: The test_event_code.
:type: str
Nr0   )r"   r   s   &&r'   r   r1      s
     !0r*   c                    V P                   # )z?Gets the namespace_id.

:return: The namespace_id.
:rtype: str
r   r,   s   &r'   r   EventRequest.namespace_id   s     !!!r*   c                    Wn         R# )zJSets the namespace_id.

:param namespace_id: The namespace_id.
:type: str
Nr4   )r"   r   s   &&r'   r   r5      s
     *r*   c                    V P                   # )z9Gets the upload_id.

:return: The upload_id.
:rtype: str
r   r,   s   &r'   r   EventRequest.upload_id   s     r*   c                    Wn         R# )zASets the upload_id.

:param upload_id: The upload_id.
:type: str
Nr8   )r"   r   s   &&r'   r   r9      s	     $r*   c                    V P                   # )z;Gets the upload_tag.

:return: The upload_tag.
:rtype: str
r   r,   s   &r'   r   EventRequest.upload_tag   s     r*   c                    Wn         R# )zDSets the upload_tag.

:param upload_tag: The upload_tag.
:type: str
Nr<   )r"   r   s   &&r'   r   r=      s
     &r*   c                    V P                   # )zAGets the upload_source.

:return: The upload_source.
:rtype: str
r   r,   s   &r'   r   EventRequest.upload_source   s     """r*   c                    Wn         R# )zMSets the upload_source.

:param upload_source: The upload_source.
:type: str
Nr@   )r"   r   s   &&r'   r   rA      s
     ,r*   c                    V P                   # )zGets the partner_agent.

Allows you to specify the platform from which the event is sent e.g. wordpress

:return: The partner_agent.
:rtype: str
r   r,   s   &r'   r   EventRequest.partner_agent   s     """r*   c                    Wn         R# )zSets the partner_agent.

Allows you to specify the platform from which the event is sent e.g. wordpress

:param partner_agent: The partner_agent.
:type: str
NrD   )r"   r   s   &&r'   r   rE      s
     ,r*   c                f   / pV P                   e   V P                   VR&   V P                  e   V P                  VR&   V P                  e   V P                  VR&   V P                  e   V P                  VR&   V P                  e   V P                  VR&   V P
                  e   V P
                  VR&   V# )Nr   r   r   r   r   r   )r   r   r   r   r   r   r"   paramss   & r'   get_request_paramsEventRequest.get_request_params   s    +(,(<(<F$%(%)%6%6F>">>%"&..F;??&#'??F< )&*&8&8F?#)&*&8&8F?#r*   c                L    V P                  4       pV P                  4       VR &   V# )data)rJ   	normalizerH   s   & r'   
get_paramsEventRequest.get_params  s%    ((*)vr*   c                X   V P                  4       pV P                  e   V P                  V4      # \        V P                  4      P                  . VR7      pVP                  R4      '       d$   \        VR,          VR,          VR,          R7      # \        ^ VR,          VR,          R7      # )N)fieldsrI   events_received
fbtrace_idmessages)rS   rT   rU   )rO   r   execute_with_clientr   r   create_eventgetr   )r"   rI   responses   &  r'   executeEventRequest.execute  s    ")++F33DOO,99 : 
 <<)** :K1L2:<2H080DF F !2:<2H080DF Fr*   c                   R P                  \        P                  \        P                  V P
                  R.4      pV P                  VR&   V P                  e/   \        P                  ! V P                  V P                  4      VR&   \        \        P                  ! 4       R7      pV P                  P                  V\        P                  V\        P                   VR7      # )/r   r%   appsecret_proof)ca_bundle_path)urlmethodrequest_optionsheadersrI   )joinr
   GRAPHr   API_VERSIONr   r   r    r	   r^   r   r_   r   rZ   r   POSTHTTP_DEFAULT_HEADERS)r"   rI   r`   rb   s   &&  r'   rV    EventRequest.execute_with_client&  s    hh!!&&OO	
  "&!4!4~'(,(<(<T=M=MtObOb(cF$%(..0
 !!))??+"77 * 
 	
r*   c                    . pV P                    F8  pVP                  4       pVP                  \        P                  ! V4      4       K:  	  V# )N)r   rN   appendjsondumps)r"   normalized_eventseventnormalized_events   &   r'   rN   EventRequest.normalize<  sC    [[E$0$$TZZ0@%AB ! ! r*   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hasattrrt   )xs   &r'   <lambda>&EventRequest.to_dict.<locals>.<lambda>L  s    WQ	-B-BaiikIIr*   rt   c                 x    \        V ^,          R4      '       d!   V ^ ,          V ^,          P                  4       3# T # )   rt   ru   )items   &r'   rx   ry   S  s9    tAw	22 #'q'47??+<!= "=8<"=r*   )six	iteritemsparam_typesgetattr
isinstancelistmaprv   rt   dictitems
issubclassr   )r"   resultattr_valuekeys   &     r'   rt   EventRequest.to_dictD  s    }}T%5%56GDD'E%&&#CI%   	**$}}E4((#C=KKM%    %t! 7" lD))"jjl
#s + r*   c                J    \         P                  ! V P                  4       4      # )z.Returns the string representation of the model)pprintpformatrt   r,   s   &r'   to_strEventRequest.to_str_  s    ~~dlln--r*   c                "    V P                  4       # )zFor `print` and `pprint`)r   r,   s   &r'   __repr__EventRequest.__repr__c  s    {{}r*   c                d    \        V\        4      '       g   R# V P                  VP                  8H  # )z&Returns true if both objects are equalF)r   r   __dict__r"   others   &&r'   __eq__EventRequest.__eq__g  s%    %..}}..r*   c                    W8X  * # )z*Returns true if both objects are not equal r   s   &&r'   __ne__EventRequest.__ne__n  s      r*   )__access_token__appsecret__http_client
__pixel_idr   r   r   r   r   r   r   r   r   r   r   r   r   r   )NNNNNNNNNNN)__name__
__module____qualname____firstlineno____doc__r   r(   propertyr   setterr   r   r   r   r   r   rJ   rO   rZ   rV   rN   rt   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r'   r   r   #   s    
 	-5UeK2/h   ]]  
% 
% 0 0 " " * *   $ $     & & # # , , # # 	, 	,"
F&
,!6./! !r*   r   )rl   r   r}   facebook_businessr   $facebook_business.adobjects.adspixelr   ,facebook_business.adobjects.serverside.eventr   5facebook_business.adobjects.serverside.event_responser   2facebook_business.adobjects.serverside.http_methodr   6facebook_business.adobjects.serverside.request_optionsr   +facebook_business.adobjects.serverside.utilr	   facebook_business.sessionr
   objectr   r   r*   r'   <module>r      s6   *   
 , 9 > O I Q < 5M!6 M!r*   