o
    Bi                     @   sl   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
 d dlmZmZmZ G dd ded Zd	S )
    )
ListObject)ListableAPIResource)RequestOptions)StripeObject)ClassVarList)LiteralNotRequiredUnpackc                   @   s&  e Zd ZU dZdZeed  ed< G dd deZ	G dd de
ZG dd	 d	e
Ze	ed
< eed< 	 eed< 	 eed< 	 ed ed< 	 ed ed< 	 ed ed< 	 eded ded  fddZeded ded  fddZededed dd fddZededed dd fddZd
e	iZdS ) PhysicalBundlez
    A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
    zissuing.physical_bundleOBJECT_NAMEc                   @   s6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )zPhysicalBundle.Features)optionalrequiredunsupported	card_logocarrier_textsecond_lineN)__name__
__module____qualname__r   __annotations__ r   r   _/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/issuing/_physical_bundle.pyFeatures   s   
 r   c                   @   sl   e Zd ZU ee ed< 	 eee  ed< 	 ee ed< 	 ee ed< 	 eed  ed< 	 eed  ed< d	S )
PhysicalBundle.ListParamsending_beforeexpandlimitstarting_afteractiveinactivereviewstatuscustomstandardtypeN)	r   r   r   r	   strr   r   intr   r   r   r   r   
ListParams"   s   
 r*   c                   @   s   e Zd ZU eee  ed< dS )PhysicalBundle.RetrieveParamsr   N)r   r   r   r	   r   r(   r   r   r   r   r   RetrieveParams<   s   
 r,   featuresidlivemodenameobjectr   r#   r$   r'   paramsr   returnc                 K   s4   | j d|  |d}t|tstdt|j |S )
        Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        getr2   %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorr'   r   clsr2   resultr   r   r   list\   s   
zPhysicalBundle.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )r4   r5   r6   Nr7   )_static_request_asyncr9   r:   r   r;   r'   r   r<   r   r   r   
list_asyncp   s   
zPhysicalBundle.list_asyncr+   c                 K   s   | |fi |}|   |S )5
        Retrieves a physical bundle object.
        )refreshr=   r.   r2   instancer   r   r   retrieve   s   zPhysicalBundle.retrievec                    s$   | |fi |}|  I dH  |S )rB   N)refresh_asyncrD   r   r   r   retrieve_async   s   zPhysicalBundle.retrieve_asyncN)r   r   r   __doc__r   r   r   r   r   r   r   r*   r,   r(   boolclassmethodr
   r   r?   rA   rF   rH   _inner_class_typesr   r   r   r   r      sb   
 

r   N)stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   typingr   r   typing_extensionsr   r	   r
   r   r   r   r   r   <module>   s   