
    khc                         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)    )ExchangeRate)
ListObject)RequestOptions)StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)ExchangeRateListParams)ExchangeRateRetrieveParamsc            	           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)ExchangeRateServiceNparamsr   optionsreturnc           
      X    t        t        t           | j                  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.
        get/v1/exchange_ratesapibase_addressr   r   )r	   r   r   _requestselfr   r   s      ]/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/_exchange_rate_service.pylistzExchangeRateService.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ExchangeRateService.list_async(   sI      |$%%$" &  	
 		
s   +86
	8rate_idr   c                 |    t        t        | j                  ddj                  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   /v1/exchange_rates/{rate_id}r"   r   r   )r	   r   r   formatr   r   r"   r   r   s       r   retrievezExchangeRateService.retrieve=   sN     MM.55'0 6  #  
 	
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"ExchangeRateService.retrieve_asyncU   s^      %%.55'0 6  # &  
 	
s   =A
A
 	A
)NN)__name__
__module____qualname__r   r   r   r   r   r!   strr)   r+    r   r   r   r      s     6:,0
12
 .)
 
L	!	
. 6:,0
12
 .)
 
L	!	
0 :>,0	

 56
 .)	

 

6 :>,0	

 56
 .)	

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