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                   @   s<   e Zd ZdZdZe			d	ddZedd
ddZ	dS )PaymentLinka0  
    A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times.

    When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.

    Related guide: [Payment Links API](https://stripe.com/docs/payments/payment-links/api)
    payment_linkNc                 K   s$   | j ddjt|d||||dS )Nget+/v1/payment_links/{payment_link}/line_itemsr
   )api_keystripe_versionstripe_accountparams)_static_requestformatr   sanitize_id)clsr
   r   r   r   r    r   X/var/www/ideatree/venv/lib/python3.10/site-packages/stripe/api_resources/payment_link.py_cls_list_line_items   s   	z PaymentLink._cls_list_line_itemsr   c                 K   s&   | j ddjt| dd||dS )Nr   r   idr   )idempotency_keyr   )_requestr   r   r   r   )selfr   r   r   r   r   list_line_items-   s   zPaymentLink.list_line_items)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   
