o
    if                     @   sd   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de
dZG dd	 d	ee Zd
S )    )_util)APIResource)
quote_plus)TypeVarcast)StripeObjectT)boundc                   @   s2   e Zd ZedefddZeddddZdS )	UpdateableAPIResourcereturnc                 K   s*   d|   t|f }tt| jd||dS )Nz%s/%spost)params)	class_urlr   r   r   _static_request)clssidr   url r   /var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/_updateable_api_resource.pymodify   s   zUpdateableAPIResource.modifyzThe `save` method is deprecated and will be removed in a future major version of the library. Use the class method `modify` on the resource instead.Nc                 C   sD   |  d }|r||d< | jd|  |dgd | S tjd|  | S )Nidempotency_keyr   save)r   usagez&Trying to save already saved object %r)	serialize_request_and_refreshinstance_urlr   loggerdebug)selfr   updated_paramsr   r   r   r      s   
zUpdateableAPIResource.save)N)	__name__
__module____qualname__classmethodr   r   r   
deprecatedr   r   r   r   r   r
   
   s    r
   N)striper   stripe._api_resourcer   urllib.parser   typingr   r   stripe._stripe_objectr   r   r
   r   r   r   r   <module>   s    