a
    ù!fO  ã                   @   s¬   d dl mZ d dlmZ d dlmZmZmZmZ d dl	m
Z
mZ er˜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 d dlmZ G dd„ deƒZdS )é    )ÚExpandableField)ÚStripeObject)ÚClassVarÚDictÚListÚOptional)ÚLiteralÚTYPE_CHECKING)ÚDiscount)ÚInvoiceItem)ÚPlan)ÚPrice)ÚSubscription)ÚSubscriptionItem)ÚTaxRatec                   @   s˜  e Zd ZU dZeed  ed< G dd„ deƒZG dd„ deƒZ	G dd„ deƒZ
G d	d
„ d
eƒZeed< ee ed< eed< ee ed< eee  ed< eed< eeed   ed< eed< eed  ed< eed< eeef ed< ed ed< e	ed< ed ed< ed ed< eed< ee
 ed< ee ed < eed!  ed"< eed#  ed$< eee  ed%< eed&  ed'< ed( ed)< ee ed*< ee	e
ed+œZd,S )-ÚInvoiceLineItemZ	line_itemÚOBJECT_NAMEc                   @   s"   e Zd ZU eed< ed ed< dS )zInvoiceLineItem.DiscountAmountÚamountr
   ZdiscountN)Ú__name__Ú
__module__Ú__qualname__ÚintÚ__annotations__r   © r   r   úg/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/invoice_line_item.pyÚDiscountAmount   s   
r   c                   @   s   e Zd ZU eed< eed< dS )zInvoiceLineItem.PeriodÚendÚstartN)r   r   r   r   r   r   r   r   r   ÚPeriod   s   
r   c                   @   s2   e Zd ZU G dd„ deƒZee ed< deiZdS )z InvoiceLineItem.ProrationDetailsc                   @   s"   e Zd ZU eed< ee ed< dS )z.InvoiceLineItem.ProrationDetails.CreditedItemsZinvoiceZinvoice_line_itemsN)r   r   r   Ústrr   r   r   r   r   r   ÚCreditedItems*   s   
r    Zcredited_itemsN)r   r   r   r   r    r   r   Ú_inner_class_typesr   r   r   r   ÚProrationDetails)   s   

r"   c                   @   sF   e Zd ZU eed< eed< ed ed< eed  ed< ee ed< dS )	zInvoiceLineItem.TaxAmountr   Z	inclusiver   Ztax_rate)Zcustomer_exemptZnot_collectingZnot_subject_to_taxZnot_supportedZportion_product_exemptZportion_reduced_ratedZportion_standard_ratedZproduct_exemptZproduct_exempt_holidayZproportionally_ratedZreduced_ratedZreverse_chargeZstandard_ratedZtaxable_basis_reducedZ
zero_ratedZtaxability_reasonZtaxable_amountN)	r   r   r   r   r   Úboolr   r   r   r   r   r   r   Ú	TaxAmount:   s   
ÿÿr$   r   Zamount_excluding_taxÚcurrencyÚdescriptionÚdiscount_amountsZdiscountabler
   Z	discountsÚidr   Zinvoice_itemZlivemodeÚmetadataÚobjectÚperiodr   Zplanr   ZpriceZ	prorationÚproration_detailsZquantityr   Úsubscriptionr   Zsubscription_itemÚtax_amountsr   Z	tax_rates)Zinvoiceitemr-   ÚtypeZunit_amount_excluding_tax)r'   r+   r,   r.   N)r   r   r   r   r   r   r   r   r   r   r"   r$   r   r   r   r   r#   r   r   r!   r   r   r   r   r      sD   


(ür   N)Z%stripe.api_resources.expandable_fieldr   Zstripe.stripe_objectr   Útypingr   r   r   r   Ztyping_extensionsr   r	   Zstripe.api_resources.discountr
   Z!stripe.api_resources.invoice_itemr   Zstripe.api_resources.planr   Zstripe.api_resources.pricer   Z!stripe.api_resources.subscriptionr   Z&stripe.api_resources.subscription_itemr   Zstripe.api_resources.tax_rater   r   r   r   r   r   Ú<module>   s   