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)ListableAPIResource)UpdateableAPIResourcec                   @   sd   e Zd ZdZdZe			dddZeddddZ	e			dd	d
Z
eddddZdS )PaymentMethoda  
    PaymentMethod objects represent your customer's payment instruments.
    You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
    Customer objects to store instrument details for future payments.

    Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
    payment_methodNc                 K   $   | j ddjt|d||||dS )Npost+/v1/payment_methods/{payment_method}/attachr
   api_keystripe_versionstripe_accountparams_static_requestformatr   sanitize_idclsr
   r   r   r   r    r   Z/var/www/ideatree/venv/lib/python3.10/site-packages/stripe/api_resources/payment_method.py_cls_attach      	zPaymentMethod._cls_attachr   c                 K   &   | j ddjt| dd||dS )Nr   r   idr   idempotency_keyr   _requestr   r   r   getselfr!   r   r   r   r   attach-      zPaymentMethod.attachc                 K   r   )Nr   +/v1/payment_methods/{payment_method}/detachr   r   r   r   r   r   r   _cls_detach8   r   zPaymentMethod._cls_detachr*   c                 K   r   )Nr   r)   r   r   r    r"   r%   r   r   r   detachL   r(   zPaymentMethod.detach)NNN)N)__name__
__module____qualname____doc__OBJECT_NAMEclassmethodr   r   class_method_variantr'   r*   r+   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   
