
    +hp                         d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZmZmZ d dlmZmZmZmZ erd dlmZ d d	lmZ  G d
 ded         Zy)    )ListableAPIResource)ExpandableField)
ListObject)RequestOptions)StripeObject)ClassVarListOptional)LiteralNotRequiredUnpackTYPE_CHECKING)Discount)TaxRatec                      e Zd ZU dZdZeed      ed<    G d de      Z	 G d de      Z
er G d d	e      Zeed
<   	 ee   ed<   	 ee   ed<   	 eed<   	 ee	   ed<   	 eed<   	 ee   ed<   	 eed<   	 ed   ed<   	 ee   ed<   	 ee
   ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 e	 	 	 d%dee   dee   dee   d ed!   d"ed    f
d#       Ze	e
d$Zy)&CreditNoteLineItemz*
    The credit note line item object
    credit_note_line_itemOBJECT_NAMEc                   *    e Zd ZU eed<   	 ed   ed<   y)!CreditNoteLineItem.DiscountAmountamountr   discountN)__name__
__module____qualname__int__annotations__r        ]/var/www/html/venv/lib/python3.12/site-packages/stripe/api_resources/credit_note_line_item.pyDiscountAmountr      s    	 "*--	r   r!   c                   `    e Zd ZU eed<   	 eed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   y)	CreditNoteLineItem.TaxAmountr   	inclusiver   tax_rate)customer_exemptnot_collectingnot_subject_to_taxnot_supportedportion_product_exemptportion_reduced_ratedportion_standard_ratedproduct_exemptproduct_exempt_holidayproportionally_ratedreduced_ratedreverse_chargestandard_ratedtaxable_basis_reduced
zero_ratedtaxability_reasontaxable_amountN)	r   r   r   r   r   boolr   r
   r   r   r   r    	TaxAmountr#   #   s\    	 	 "),,	 $
 	
&	 !%	r   r8   c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	CreditNoteLineItem.ListParamsstrending_beforez	List[str]expandr   limitstarting_afterN)r   r   r   r   r   r   r   r    
ListParamsr:   M   sH    &u--  ,, u%% (..r   r@   r   amount_excluding_taxdescriptiondiscount_amountdiscount_amountsidinvoice_line_itemlivemodeobjectquantitytax_amountsr   	tax_rates)custom_line_itemrF   typeunit_amountunit_amount_decimalunit_amount_excluding_taxNapi_keystripe_versionstripe_accountparamsr:   returnc                     | j                  d| j                         ||||      }t        |t              s!t	        dt        |      j                  z        |S )z
        When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        get)rQ   rR   rS   rT   z%Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorrM   r   )clsrQ   rR   rS   rT   results         r    listzCreditNoteLineItem.list   sf     $$MMO)) % 
 &*-7<((* 
 r   )rD   rJ   )NNN)r   r   r   __doc__r   r   r   r   r   r!   r8   r   r   r@   r   r
   r;   r	   r7   classmethodr   r   r^   _inner_class_typesr   r   r    r   r      s    	  '(   &L &P 	 	$ K #3-' #  >** 	G  }$ N +,, sm i  I 9
:: # "#&  (},  "&(,(,	# ! !	
 89 
(	) 8 + r   r   N)stripe.api_resources.abstractr   %stripe.api_resources.expandable_fieldr    stripe.api_resources.list_objectr   stripe.request_optionsr   stripe.stripe_objectr   typingr   r	   r
   typing_extensionsr   r   r   r   stripe.api_resources.discountr   stripe.api_resources.tax_rater   r   r   r   r    <module>rk      s@    > A 7 1 - + + I I65o,-AB or   