o
    ˷e?                     @   s\   d dl mZmZ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ee	Z
dS )	    )absolute_importdivisionprint_function)util)CreateableAPIResource)DeletableAPIResource)ListableAPIResourcec                   @   s<   e Zd ZdZdZe			d	ddZedd
ddZ	dS )	TestClocka  
    A test clock enables deterministic control over objects in testmode. With a test clock, you can create
    objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances,
    you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time.
    ztest_helpers.test_clockNc                 K   s$   | j ddjt|d||||dS )Npost1/v1/test_helpers/test_clocks/{test_clock}/advance
test_clock)api_keystripe_versionstripe_accountparams)_static_requestformatr   sanitize_id)clsr   r   r   r   r    r   c/var/www/ideatree/venv/lib/python3.10/site-packages/stripe/api_resources/test_helpers/test_clock.py_cls_advance   s   	zTestClock._cls_advancer   c                 K   s&   | j ddjt| dd||dS )Nr
   r   idr   )idempotency_keyr   )_requestr   r   r   get)selfr   r   r   r   r   advance+   s   zTestClock.advance)NNN)N)
__name__
__module____qualname____doc__OBJECT_NAMEclassmethodr   r   class_method_variantr   r   r   r   r   r	   
   s    r	   N)
__future__r   r   r   striper   stripe.api_resources.abstractr   r   r   r	   r   r   r   r   <module>   s   
