
    DhN                         S SK r S SKJrJr  S SKJr  S SKJr   " S S\5      r " S S5      r	 " S	 S
5      r
 " S S5      rg)    N)ClassVarOptional)Literal)StripeObjectc                       \ rS rSr% SrSr\\S      \S'    " S S\	5      r
\\   \S'    \\S'    \\S	'    \\S
'    \S   \S'    \\
   \S'    \\S'    S\
0rSrg)Event   a  
Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload.
zv2.core.eventOBJECT_NAMEc                   X    \ rS rSr%  " S S\5      r\\   \S'    \S   \S'    S\0r	Sr
g)Event.Reason   c                   ,    \ rS rSr% \\S'    \\S'   Srg)Event.Reason.Request   ididempotency_key N)__name__
__module____qualname____firstlineno__str__annotations____static_attributes__r       S/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/v2/_event.pyRequestr      s    G ! r   r   requesttyper   N)r   r   r   r   r   r   r   r   r   _inner_class_typesr   r   r   r   Reasonr      s?    	l 	 '""	 i  	 (1r   r!   contextcreatedr   livemodeobjectreasonr   r   N)r   r   r   r   __doc__r
   r   r   r   r   r!   r   r   boolr    r   r   r   r   r   r      s     7FK'/23E2 2* c] L 	G N O$$ V I #F+r   r   c                   B    \ rS rSr% \\S'   \\S'   S	S jrS\4S jrSrg)
r!   M   r   r   returnNc                 ,    US   U l         US   U l        g )Nr   r   r   r   selfds     r   __init__Reason.__init__Q   s    D' !23r   c                 <    SU R                    SU R                   S3$ )Nz<Reason id=z idempotency_key=>r-   r/   s    r   __repr__Reason.__repr__U   s#    TWWI%6t7K7K6LANNr   r-   r+   N	r   r   r   r   r   r   r1   r6   r   r   r   r   r!   r!   M   s     G4O# Or   r!   c                   L    \ rS rSr% \\S'   \\S'   \\S'   S
S jrS\4S jrS	rg)RelatedObjectY   r   r   urlr+   Nc                 @    US   U l         US   U l        US   U l        g )Nr   r   r=   r   r   r=   r.   s     r   r1   RelatedObject.__init__^   s#    D'fI	U8r   c                 V    SU R                    SU R                   SU R                   S3$ )Nz<RelatedObject id= type=z url=r4   r?   r5   s    r   r6   RelatedObject.__repr__c   s)    #DGG9F499+U488*ANNr   r?   r8   r9   r   r   r   r;   r;   Y   s$    G
I	H
O# Or   r;   c                       \ rS rSr% Sr\\S'    \\S'    \\S'    \\S'    Sr\	\   \S'    Sr
\	\   \S	'    Sr\	\   \S
'    S\SS4S jrS\4S jrSrg)	ThinEventg   a,  
ThinEvent represents the json that's delivered from an Event Destination. It's a basic `dict` with no additional methods or properties. Use it to check basic information about a delivered event. If you want more details, use `stripe.v2.Event.retrieve(thin_event.id)` to fetch the full event object.
r   r   r#   r$   Nr"   related_objectr&   payloadr+   c                 j   [         R                  " U5      nUS   U l        US   U l        US   U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      (       a  [        US   5      U l	        UR                  S5      (       a  [        US   5      U l        g g )Nr   r   r#   r$   r"   rG   r&   )jsonloadsr   r   r#   getr$   r"   r;   rG   r!   r&   )r/   rH   parseds      r   r1   ThinEvent.__init__   s    G$,6N	i(

:.zz),::&''"/7G0H"ID::h !12DK  r   c                     SU R                    SU R                   SU R                   SU R                   SU R                   SU R
                   S3$ )Nz<ThinEvent id=rB   z	 created=z	 context=z related_object=z reason=r4   )r   r   r#   r"   rG   r&   r5   s    r   r6   ThinEvent.__repr__   s    ytyyk4<<.PYZ^ZfZfYggwx|  yL  yL  xM  MU  VZ  Va  Va  Ub  bc  d  	dr   )r"   r#   r   r$   r&   rG   r   )r   r   r   r   r'   r   r   r(   r"   r   rG   r;   r&   r!   r1   r6   r   r   r   r   rE   rE   g   s     	G I L N "GXc]! /3NH]+2  $FHV#3 3 3d# dr   rE   )rJ   typingr   r   typing_extensionsr   stripe._stripe_objectr   r   r!   r;   rE   r   r   r   <module>rT      sD     % % .8,L 8,|	O 	OO O0d 0dr   