
    Dh                     T    S SK Jr  S SKJrJrJrJr  \" S\S9r " S S\\\   5      rg)    )StripeObject)ListOptionalTypeVarGenericT)boundc                   j   ^  \ rS rSr% SrSr\\   \S'   \	\
   \S'   U 4S jrS rS rS	 rS
 rSrU =r$ )
ListObject   z
Represents one page of a list of V2 Stripe objects. Use `.data` to access
the objects on this page, or use

for item in list_object.auto_paging_iter():
  # do something with item

to iterate over this and all following pages.
listdatanext_page_urlc                    > [        U[        5      (       a  [        [        U ]  U5      $ [        S[        U5      < S[        U5      < S35      e)NzYou tried to access the z index, but ListObjectV2 types only support string keys. (HINT: List calls return an object with a 'data' (which is the data array). You likely want to call .data[z]))
isinstancestrsuperr   __getitem__KeyErrorrepr)selfk	__class__s     Y/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/v2/_list_object.pyr   ListObject.__getitem__   sC    aT6q99 !%Qa2     c                 8    [        U S/ 5      R                  5       $ Nr   )getattr__iter__r   s    r   r    ListObject.__iter__"   s    tVR(1133r   c                 8    [        U S/ 5      R                  5       $ r   )r   __len__r!   s    r   r$   ListObject.__len__%   s    tVR(0022r   c                 8    [        U S/ 5      R                  5       $ r   )r   __reversed__r!   s    r   r'   ListObject.__reversed__(   s    tVR(5577r   c              #      #    U R                   nU R                  n U H  nUv   M	     Uc  g U R                  SUSS9n[        U[        5      (       d   eUR                   nUR                  nMS  7f)Ngetapi)base_address)r   r   _requestr   r   )r   pager   itemresults        r   auto_paging_iterListObject.auto_paging_iter+   s~     yy**
 $]]" # F
 fj1111;;D"00M s   A-A/ )__name__
__module____qualname____firstlineno____doc__OBJECT_NAMEr   r   __annotations__r   r   r   r    r$   r'   r1   __static_attributes____classcell__)r   s   @r   r   r      s@     K
q'MC= 	4381 1r   r   N)	stripe._stripe_objectr   typingr   r   r   r   r   r   r3   r   r   <module>r?      s.    . 3 3 C|$31wqz 31r   