
    _j                         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e          ZdS )    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)ExchangeRate)
ListObject)RequestOptions)ExchangeRateListParams)ExchangeRateRetrieveParamsc            	           e Zd Z	 	 dded         ded         ddfdZ	 	 dded         ded         ddfd	Z	 	 dd
eded         ded         ddfdZ	 	 dd
eded         ded         ddfdZdS )ExchangeRateServiceNparamsr   optionsr
   returnListObject[ExchangeRate]c           
      R    t          d|                     ddd||                    S )`  
        [Deprecated] The ExchangeRate APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead.

        Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
        r   get/v1/exchange_ratesapibase_addressr   r   )r   _requestselfr   r   s      a/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/_exchange_rate_service.pylistzExchangeRateService.list   s>     &MM$"   	
 	
 		
    c           
      b   K   t          d|                     ddd||           d{V           S )r   r   r   r   r   r   N)r   _request_asyncr   s      r   
list_asynczExchangeRateService.list_async(   sb       &%%$" &        	
 	
 		
r   rate_idr   r   c                     t          d|                     dd                    t          |                    d||                    S )  
        [Deprecated] The ExchangeRate APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead.

        Retrieves the exchange rates from the given currency to every supported currency.
        r   r   /v1/exchange_rates/{rate_id}r#   r   r   )r   r   formatr   r   r#   r   r   s       r   retrievezExchangeRateService.retrieve=   s`     MM.55'00 6   #   
 
 	
r   c                    K   t          d|                     dd                    t          |                    d||           d{V           S )r%   r   r   r&   r'   r   r   N)r   r!   r(   r   r)   s       r   retrieve_asyncz"ExchangeRateService.retrieve_asyncU   s       %%.55'00 6   # &        
 
 	
r   )NN)	__name__
__module____qualname__r   r   r"   strr*   r,    r   r   r   r      sL        6:.2
 
12
 *+
 
$	
 
 
 
. 6:.2
 
12
 *+
 
$	
 
 
 
0 :>.2	
 

 56
 *+	

 

 
 
 
6 :>.2	
 

 56
 *+	

 

 
 
 
 
 
r   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._exchange_rater   stripe._list_objectr	   stripe._request_optionsr
   (stripe.params._exchange_rate_list_paramsr   ,stripe.params._exchange_rate_retrieve_paramsr   r   r1   r   r   <module>r;      s   1 0 0 0 0 0 $ $ $ $ $ $ ! ! ! ! ! ! ! ! + + + + + + 222222......666666OOOOOO     
Y
 Y
 Y
 Y
 Y
- Y
 Y
 Y
 Y
 Y
r   