
    khx                         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	 d dl
mZmZ d dlmZ erd dlmZ d d	lmZ  G d
 de      Zy)    )CountrySpec)
ListObject)RequestOptions)StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)CountrySpecListParams)CountrySpecRetrieveParamsc            	           e Zd Z	 	 dded   dee   dee   fdZ	 	 dded   dee   dee   fdZ	 	 dde	ded	   dee   defd
Z
	 	 dde	ded	   dee   defdZy)CountrySpecServiceNparamsr   optionsreturnc           
      X    t        t        t           | j                  ddd||            S )F
        Lists all Country Spec objects available in the API.
        get/v1/country_specsapibase_addressr   r   )r	   r   r   _requestselfr   r   s      \/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/_country_spec_service.pylistzCountrySpecService.list   s9     {#MM#"  	
 		
    c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r   r   r   r   r   N)r	   r   r   _request_asyncr   s      r   
list_asynczCountrySpecService.list_async&   sI      {#%%#" &  	
 		
s   +86
	8countryr   c                 |    t        t        | j                  ddj                  t	        |            d||            S )B
        Returns a Country Spec for a given Country code.
        r   /v1/country_specs/{country}r"   r   r   )r	   r   r   formatr   r   r"   r   r   s       r   retrievezCountrySpecService.retrieve9   sN     MM-44'0 5  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r$   r   r%   r&   r   r   N)r	   r   r    r'   r   r(   s       r   retrieve_asyncz!CountrySpecService.retrieve_asyncO   s^      %%-44'0 5  # &  
 	
s   =A
A
 	A
)NN)__name__
__module____qualname__r   r   r   r   r   r!   strr)   r+    r   r   r   r      s     59,0
01
 .)
 
K	 	
* 59,0
01
 .)
 
K	 	
, 9=,0	

 45
 .)	

 

2 9=,0	

 45
 .)	

 

r   r   N)stripe._country_specr   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   typing_extensionsr
   'stripe.params._country_spec_list_paramsr   +stripe.params._country_spec_retrieve_paramsr   r   r0   r   r   <module>r:      s5    - * 2 0 $ ! +M
Q
 Q
r   