
    Ain                         d dl mZ d dlmZ d dlmZmZ d dlmZ er0d 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 d dlmZ d dlmZ  G d de      Zy)    )StripeService)sanitize_id)Optionalcast)TYPE_CHECKING)
ListObject)RequestOptions)TestClockAdvanceParams)TestClockCreateParams)TestClockDeleteParams)TestClockListParams)TestClockRetrieveParams)	TestClockc            	          e Z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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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dded   ddfdZ	 dddded   ddfdZ	 ddeddded   ddfdZ	 ddeddded   ddfdZy)TestClockServiceN
test_clockparamsr   optionsr	   returnr   c                 t    t        d| j                  ddj                  t        |            d||            S )'
        Deletes a test clock.
        r   delete)/v1/test_helpers/test_clocks/{test_clock}r   apibase_addressr   r   r   _requestformatr   selfr   r   r   s       Z/var/www/html/immo/lib/python3.12/site-packages/stripe/test_helpers/_test_clock_service.pyr   zTestClockService.delete   sO     MM;BB*:6 C  #  
 	
    c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r   r   r   r   r   r   r   Nr   _request_asyncr    r   r!   s       r#   delete_asynczTestClockService.delete_async4   s_      %%;BB*:6 C  # &  
 	
   9AA
	Ar   c                 t    t        d| j                  ddj                  t        |            d||            S ))
        Retrieves a test clock.
        r   getr   r   r   r   r   r!   s       r#   retrievezTestClockService.retrieveJ   sO     MM;BB*:6 C  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)r+   r   r,   r   r   r   r   Nr&   r!   s       r#   retrieve_asynczTestClockService.retrieve_async`   s_      %%;BB*:6 C  # &  
 	
r)   r   ListObject[TestClock]c           
      B    t        d| j                  ddd||            S )5
        Returns a list of your test clocks.
        r0   r,   /v1/test_helpers/test_clocksr   r   r   r   r"   r   r   s      r#   listzTestClockService.listv   s4     #MM."  	
 		
r$   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r2   r0   r,   r3   r   r   Nr   r'   r5   s      r#   
list_asynczTestClockService.list_async   sD      #%%." &  	
 		
    -+
	-r   c           
      B    t        d| j                  ddd||            S )\
        Creates a new test clock that can be attached to new customers and quotes.
        r   postr3   r   r   r4   r5   s      r#   createzTestClockService.create   s4     MM."  	
 		
r$   c           
      ^   K   t        d| j                  ddd||       d{         S 7 w)r<   r   r=   r3   r   r   Nr8   r5   s      r#   create_asynczTestClockService.create_async   sD      %%." &  	
 		
r:   r
   c                 t    t        d| j                  ddj                  t        |            d||            S )
        Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.
        r   r=   1/v1/test_helpers/test_clocks/{test_clock}/advancer   r   r   r   r!   s       r#   advancezTestClockService.advance   sO     MMCJJ*:6 K  #  
 	
r$   c                    K   t        d| j                  ddj                  t        |            d||       d{         S 7 w)rB   r   r=   rC   r   r   r   Nr&   r!   s       r#   advance_asynczTestClockService.advance_async   s_      %%CJJ*:6 K  # &  
 	
r)   )NN)N)__name__
__module____qualname__strr   r   r(   r-   r/   r6   r9   r>   r@   rD   rF    r$   r#   r   r      s,    59.2	

 01
 *+	

 

2 59.2	

 01
 *+	

 

2 7;.2	

 23
 *+	

 

2 7;.2	

 23
 *+	

 

0 37.2
./
 *+
 
!	
* 37.2
./
 *+
 
!	
, /3
'
 *+
 
	
, /3
'
 *+
 
	
. /3	

 )
 *+	

 

4 /3	

 )
 *+	

 

r$   r   N)stripe._stripe_servicer   stripe._utilr   typingr   r   typing_extensionsr   stripe._list_objectr   stripe._request_optionsr	   5stripe.params.test_helpers._test_clock_advance_paramsr
   4stripe.params.test_helpers._test_clock_create_paramsr   4stripe.params.test_helpers._test_clock_delete_paramsr   2stripe.params.test_helpers._test_clock_list_paramsr   6stripe.params.test_helpers._test_clock_retrieve_paramsr   stripe.test_helpers._test_clockr   r   rK   r$   r#   <module>rX      sH    1 $ ! +.6 :O
} O
r$   