o
    i$                     @   s   d dl mZ d dlmZ d dlmZmZ d dlmZ er: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 G d
d deZdS )    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)PhysicalBundle)PhysicalBundleListParams)PhysicalBundleRetrieveParamsc                	   @   s   e Zd Z		dded ded ddfdd	Z		dded ded ddfd
dZ		ddeded ded ddfddZ		ddeded ded ddfddZdS )PhysicalBundleServiceNparamsr
   optionsr   returnListObject[PhysicalBundle]c              	   C   s   t d| jddd||d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.
        r   get/v1/issuing/physical_bundlesapibase_addressr   r   )r   _requestselfr   r    r   /var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/issuing/_physical_bundle_service.pylist   s   zPhysicalBundleService.listc              	      s"   t d| jddd||dI dH S )r   r   r   r   r   r   N)r   _request_asyncr   r   r   r   
list_async(   s   
z PhysicalBundleService.list_asyncphysical_bundler   r	   c              	   C   s&   t d| jddjt|dd||dS )5
        Retrieves a physical bundle object.
        r	   r   ./v1/issuing/physical_bundles/{physical_bundle}r   r   r   )r   r   formatr   r   r   r   r   r   r   r   retrieve;   s   	zPhysicalBundleService.retrievec              	      s.   t d| jddjt|dd||dI dH S )r    r	   r   r!   r"   r   r   N)r   r   r#   r   r$   r   r   r   retrieve_asyncQ   s   	
z$PhysicalBundleService.retrieve_async)NN)	__name__
__module____qualname__r   r   r   strr%   r&   r   r   r   r   r      sR    


r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr   stripe.issuing._physical_bundler	   2stripe.params.issuing._physical_bundle_list_paramsr
   6stripe.params.issuing._physical_bundle_retrieve_paramsr   r   r   r   r   r   <module>   s   