
    _jk                         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
mZ erd dlmZ d dlmZ  G d d	ed	                   Zd
S )    )
ListObject)ListableAPIResource)StripeObject)ClassVar)LiteralUnpackTYPE_CHECKING)PhysicalBundleListParams)PhysicalBundleRetrieveParamsc                      e Zd ZU dZdZeed                  ed<    G 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            Zeded         ded          fd            Zede
ded         dd fd            Zede
ded         dd f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                   V    e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   dS )PhysicalBundle.Features)optionalrequiredunsupported	card_logocarrier_textsecond_lineN)__name__
__module____qualname__r   __annotations__     c/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/issuing/_physical_bundle.pyFeaturesr      sZ         @AAAA	 CDDDD	 BCCCC	 	r   r   featuresidlivemodenameobject)activeinactivereviewstatus)customstandardtypeparamsr
   returnc                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |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r+   %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorr*   r   clsr+   results      r   listzPhysicalBundle.listC   sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r.   r/   r0   Nr1   )_static_request_asyncr3   r4   r   r5   r*   r   r6   s      r   
list_asynczPhysicalBundle.list_asyncW   s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r   r   c                 @     | |fi |}|                                  |S )5
        Retrieves a physical bundle object.
        )refreshr7   r    r+   instances       r   retrievezPhysicalBundle.retrievek   s2     3r$$V$$r   c                 P   K    | |fi |}|                                  d{V  |S )r>   N)refresh_asyncr@   s       r   retrieve_asynczPhysicalBundle.retrieve_asyncv   sH       3r$$V$$$$&&&&&&&&&r   N)r   r   r   __doc__r   r   r   r   r   r   strboolclassmethodr   r   r9   r<   rB   rE   _inner_class_typesr   r   r   r   r      s         
 	" '";<=       <    GGG NNN III -.... 23333 &
'''' 89	$	%   [& 89	$	%   [&  &'E F	   [  &'E F	   [ %h/r   r   N)stripe._list_objectr   stripe._listable_api_resourcer   stripe._stripe_objectr   typingr   typing_extensionsr   r   r	   2stripe.params.issuing._physical_bundle_list_paramsr
   6stripe.params.issuing._physical_bundle_retrieve_paramsr   r   r   r   r   <module>rR      s    + * * * * * = = = = = = . . . . . .       < < < < < < < < < <           
o0 o0 o0 o0 o0()9: o0 o0 o0 o0 o0r   