
     hK                     j    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eee	          Z
dS )	    )absolute_importdivisionprint_function)util)CreateableAPIResource)ListableAPIResource)UpdateableAPIResourcec                       e Zd ZdZdZe	 dd            Ze	 	 	 dd            Z ej	        d          d	d            Z
dS )

CreditNotez
    Issue a credit note to adjust an invoice's amount after the invoice is finalized.

    Related guide: [Credit Notes](https://stripe.com/docs/billing/invoices/credit-notes).
    credit_noteNc                 8    |                      dd||||          S )Ngetz/v1/credit_notes/previewapi_keystripe_versionstripe_accountparams)_static_request)clsr   r   r   r   s        \/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/stripe/api_resources/credit_note.pypreviewzCreditNote.preview   s3     ""&)) # 
 
 	
    c                     |                      dd                    t          j        |                    ||||          S )Npost/v1/credit_notes/{id}/voididr   )r   formatr   sanitize_id)r   r   r   r   r   r   s         r   _cls_void_credit_notez CreditNote._cls_void_credit_note%   sO     ""(//43CB3G3G/HH)) # 
 
 	
r   r    c           
          |                      dd                    t          j        |                     d                              ||          S )Nr   r   r   r   )idempotency_keyr   )_requestr   r   r   r   )selfr"   r   s      r   void_credit_notezCreditNote.void_credit_note7   sX    }}(//#DHHTNN33 0   ,  
 
 	
r   )NNN)N)__name__
__module____qualname____doc__OBJECT_NAMEclassmethodr   r    r   class_method_variantr%    r   r   r   r      s        
   K?C

 

 

 [

  
 
 
 [
" T677
 
 
 87
 
 
r   r   N)
__future__r   r   r   striper   stripe.api_resources.abstractr   r   r	   r   r-   r   r   <module>r1      s    A @ @ @ @ @ @ @ @ @       ? ? ? ? ? ? = = = = = = ? ? ? ? ? ?5
 5
 5
 5
 5
5
 5
 5
 5
 5
r   