o
    Bi                     @   sl   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 G dd deZd	S )
    )InvoiceLineItem)
ListObject)RequestOptions)StripeService)DictListcast)LiteralNotRequired	TypedDictc                   @   s  e Zd ZG dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd  d eZG d!d" d"eZG d#d$ d$eZG d%d& d&eZG d'd( d(eZG d)d* d*eZG d+d, d,eZG d-d. d.eZG d/d0 d0eZG d1d2 d2eZG d3d4 d4eZG d5d6 d6eZG d7d8 d8eZG d9d: d:eZ G d;d< d<eZ!G d=d> d>eZ"G d?d@ d@eZ#G dAdB dBeZ$G dCdD dDeZ%G dEdF dFeZ&G dGdH dHeZ'G dIdJ dJeZ(G dKdL dLeZ)G dMdN dNeZ*G dOdP dPeZ+G dQdR dReZ,G dSdT dTeZ-G dUdV dVeZ.i i fdWdXdYe/dZe0e1 fd[d\Z2i i fdWdXdYe/dZe0e1 fd]d^Z3d_S )`InvoiceUpcomingLinesServicec                   @   s  e Zd ZU ed ed< 	 ee 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  ed< 	 eed  ed< 	 ed ed< 	 ee ed< 	 ed ed< 	 eed  ed< 	 e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d  ed!< 	 ed" ed#< 	 eed$  ed%< 	 eed&  ed'< 	 ee ed(< 	 eed)  ed*< 	 ee ed+< 	 ed, ed-< 	 ee	 ed.< d/S )0&InvoiceUpcomingLinesService.ListParams2InvoiceUpcomingLinesService.ListParamsAutomaticTaxautomatic_taxcouponcurrencycustomer5InvoiceUpcomingLinesService.ListParamsCustomerDetailscustomer_detailsz@Literal['']|List[InvoiceUpcomingLinesService.ListParamsDiscount]	discountsending_beforeexpand1InvoiceUpcomingLinesService.ListParamsInvoiceIteminvoice_items,InvoiceUpcomingLinesService.ListParamsIssuerissuerlimitLiteral['']|stron_behalf_of)next	recurringpreview_modeschedule5InvoiceUpcomingLinesService.ListParamsScheduleDetailsschedule_detailsstarting_aftersubscriptionLiteral['now', 'unchanged']|int!subscription_billing_cycle_anchorLiteral['']|intsubscription_cancel_at!subscription_cancel_at_period_endsubscription_cancel_nowLiteral['']|List[str]subscription_default_tax_rates9InvoiceUpcomingLinesService.ListParamsSubscriptionDetailssubscription_details6InvoiceUpcomingLinesService.ListParamsSubscriptionItemsubscription_itemsalways_invoicecreate_prorationsnonesubscription_proration_behaviorsubscription_proration_datenowsubscription_resume_atsubscription_start_dateLiteral['now']|intsubscription_trial_endsubscription_trial_from_planN)
__name__
__module____qualname__r
   __annotations__strr   intr	   bool rF   rF   f/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_invoice_upcoming_lines_service.py
ListParams   s   
 rH   c                   @   $   e Zd ZU eed< 	 ed ed< dS )r   enabled;InvoiceUpcomingLinesService.ListParamsAutomaticTaxLiability	liabilityNr?   r@   rA   rE   rB   r
   rF   rF   rF   rG   ListParamsAutomaticTax      
 rN   c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )rK   accountrQ   selftypeNr?   r@   rA   r
   rC   rB   r	   rF   rF   rF   rG   ListParamsAutomaticTaxLiability   
   
 rV   c                   @   sV   e Zd ZU ed ed< 	 ed ed< 	 ed ed< 	 ed ed< 	 eed	  ed
< dS )r   zHLiteral['']|InvoiceUpcomingLinesService.ListParamsCustomerDetailsAddressaddresszILiteral['']|InvoiceUpcomingLinesService.ListParamsCustomerDetailsShippingshipping8InvoiceUpcomingLinesService.ListParamsCustomerDetailsTaxtaxz0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exempt:InvoiceUpcomingLinesService.ListParamsCustomerDetailsTaxIdtax_idsN)r?   r@   rA   r
   rB   r   rF   rF   rF   rG   ListParamsCustomerDetails   s*   
 r_   c                   @   `   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )z<InvoiceUpcomingLinesService.ListParamsCustomerDetailsAddresscitycountryline1line2postal_codestateNr?   r@   rA   r
   rC   rB   rF   rF   rF   rG    ListParamsCustomerDetailsAddress      
 rh   c                   @   s.   e Zd ZU ded< 	 eed< 	 ee ed< dS )z=InvoiceUpcomingLinesService.ListParamsCustomerDetailsShippingDInvoiceUpcomingLinesService.ListParamsCustomerDetailsShippingAddressrX   namephoneN)r?   r@   rA   rB   rC   r
   rF   rF   rF   rG   !ListParamsCustomerDetailsShipping   s   
 rm   c                   @   r`   )rj   ra   rb   rc   rd   re   rf   Nrg   rF   rF   rF   rG   (ListParamsCustomerDetailsShippingAddress   ri   rn   c                   @   s   e Zd ZU ed ed< dS )rZ   r   
ip_addressN)r?   r@   rA   r
   rB   rF   rF   rF   rG   ListParamsCustomerDetailsTax  s   
 rp   c                   @   s$   e Zd ZU ed ed< 	 eed< dS )r]   )Jad_nrtae_trnar_cuitau_abnau_arnbg_uicbh_vatbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstch_uidch_vatcl_tincn_tinco_nitcr_tinde_stndo_rcnec_ruceg_tines_cif
eu_oss_vateu_vatgb_vatge_vathk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnkz_binli_uidmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnz_gstom_vatpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatus_einuy_rucve_rifvn_tinza_vatrT   valueN)r?   r@   rA   r	   rB   rC   rF   rF   rF   rG   ListParamsCustomerDetailsTaxId  s   
 Lr   c                   @   6   e Zd ZU ee ed< 	 ee ed< 	 ee ed< dS )z.InvoiceUpcomingLinesService.ListParamsDiscountr   discountpromotion_codeNrg   rF   rF   rF   rG   ListParamsDiscountk     
 r   c                   @   s   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed	< 	 ed
 ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 eed  ed< 	 ed ed< 	 ed ed< 	 ee ed< 	 ee ed< dS )r   amountr   descriptiondiscountablezKLiteral['']|List[InvoiceUpcomingLinesService.ListParamsInvoiceItemDiscount]r   invoiceitemLiteral['']|Dict[str, str]metadata7InvoiceUpcomingLinesService.ListParamsInvoiceItemPeriodperiodprice:InvoiceUpcomingLinesService.ListParamsInvoiceItemPriceData
price_dataquantity	exclusive	inclusiveunspecifiedtax_behaviorr   tax_coder-   	tax_ratesunit_amountunit_amount_decimalN)	r?   r@   rA   r
   rD   rB   rC   rE   r	   rF   rF   rF   rG   ListParamsInvoiceItemy  sR   
 r   c                   @   r   )z9InvoiceUpcomingLinesService.ListParamsInvoiceItemDiscountr   r   r   Nrg   rF   rF   rF   rG   ListParamsInvoiceItemDiscount  r   r   c                   @   s    e Zd ZU eed< 	 eed< dS )r   endstartNr?   r@   rA   rD   rB   rF   rF   rF   rG   ListParamsInvoiceItemPeriod  s
   
 r   c                   @   N   e Zd ZU eed< 	 eed< 	 eed  ed< 	 ee ed< 	 ee ed< dS )r   r   productr   r   r   r   Nr?   r@   rA   rC   rB   r
   r	   rD   rF   rF   rF   rG   ListParamsInvoiceItemPriceData     
 r   c                   @   rP   )r   rQ   rR   rT   NrU   rF   rF   rF   rG   ListParamsIssuer  rW   r   c                   @   sB   e Zd ZU eed  ed< 	 eed  ed< 	 eed  ed< dS )r#   )cancelreleaseend_behavior:InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhasephasesr3   proration_behaviorN)r?   r@   rA   r
   r	   rB   r   rF   rF   rF   rG   ListParamsScheduleDetails  s   
 r   c                   @   sf  e Zd ZU eed  ed< 	 ee ed< 	 ed ed< 	 eed  ed< 	 ed ed	< 	 eed
  ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ed ed< 	 ed ed< 	 ed ed< 	 ed ed< 	 ed ed< 	 ee	 ed< 	 ee
eef  ed< 	 ee ed< 	 eed  ed< 	 ed ed < 	 ed! ed"< 	 ee ed#< 	 ed ed$< d%S )&r   HInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAddInvoiceItemadd_invoice_itemsapplication_fee_percentFInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAutomaticTaxr   )	automaticphase_startbilling_cycle_anchorzWLiteral['']|InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseBillingThresholdsbilling_thresholds)charge_automaticallysend_invoicecollection_methodr   r   default_payment_methodr-   default_tax_ratesr   r   zTLiteral['']|List[InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseDiscount]r   zint|Literal['now']end_dateIInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseInvoiceSettingsinvoice_settings>InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemitems
iterationsr   r   r3   r   
start_dateFInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseTransferDatatransfer_datatrial	trial_endN)r?   r@   rA   r
   r   rB   floatr	   rC   rD   r   rE   rF   rF   rF   rG   ListParamsScheduleDetailsPhase  s   
 r  c                   @   sV   e Zd ZU eed  ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed< d	S )
r   PInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAddInvoiceItemDiscountr   r   QInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar   r   r-   r   N)r?   r@   rA   r
   r   rB   rC   rD   rF   rF   rF   rG   ,ListParamsScheduleDetailsPhaseAddInvoiceItem  s"   
 r  c                   @   r   )r  r   r   r   Nrg   rF   rF   rF   rG   4ListParamsScheduleDetailsPhaseAddInvoiceItemDiscount  r   r  c                   @   r   )r  r   r   r   r   r   r   Nr   rF   rF   rF   rG   5ListParamsScheduleDetailsPhaseAddInvoiceItemPriceData  r   r  c                   @   rI   )r   rJ   OInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseAutomaticTaxLiabilityrL   NrM   rF   rF   rF   rG   *ListParamsScheduleDetailsPhaseAutomaticTax  rO   r
  c                   @   rP   )r	  rQ   rR   rT   NrU   rF   rF   rF   rG   3ListParamsScheduleDetailsPhaseAutomaticTaxLiability  rW   r  c                   @   s(   e Zd ZU ee ed< 	 ee ed< dS )zKInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseBillingThresholds
amount_gtereset_billing_cycle_anchorN)r?   r@   rA   r
   rD   rB   rE   rF   rF   rF   rG   /ListParamsScheduleDetailsPhaseBillingThresholds  rW   r  c                   @   r   )zBInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseDiscountr   r   r   Nrg   rF   rF   rF   rG   &ListParamsScheduleDetailsPhaseDiscount  r   r  c                   @   s6   e Zd ZU ed ed< 	 ee ed< 	 ed ed< dS )r   r-   account_tax_idsdays_until_dueOInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseInvoiceSettingsIssuerr   N)r?   r@   rA   r
   rB   rD   rF   rF   rF   rG   -ListParamsScheduleDetailsPhaseInvoiceSettings  s   
 r  c                   @   rP   )r  rQ   rR   rT   NrU   rF   rF   rF   rG   3ListParamsScheduleDetailsPhaseInvoiceSettingsIssuer  rW   r  c                   @   s   e Zd ZU ed ed< 	 ed ed< 	 eeeef  ed< 	 ee ed< 	 ee ed< 	 ed ed	< 	 ee ed
< 	 ed ed< dS )r   z[Literal['']|InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemBillingThresholdsr   zXLiteral['']|List[InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemDiscount]r   r   planr   GInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemPriceDatar   r   r-   r   N)r?   r@   rA   r
   rB   r   rC   rD   rF   rF   rF   rG   "ListParamsScheduleDetailsPhaseItem  s.   
 r  c                   @      e Zd ZU eed< dS )zOInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemBillingThresholds	usage_gteNr   rF   rF   rF   rG   3ListParamsScheduleDetailsPhaseItemBillingThresholds3     
 r  c                   @   r   )zFInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemDiscountr   r   r   Nrg   rF   rF   rF   rG   *ListParamsScheduleDetailsPhaseItemDiscount9  r   r  c                   @   X   e Zd ZU eed< 	 eed< 	 ded< 	 eed  ed< 	 ee ed< 	 ee ed< d	S )
r  r   r   PInvoiceUpcomingLinesService.ListParamsScheduleDetailsPhaseItemPriceDataRecurringr    r   r   r   r   Nr   rF   rF   rF   rG   +ListParamsScheduleDetailsPhaseItemPriceDataG     
 r  c                   @   (   e Zd ZU ed ed< 	 ee ed< dS )r  daymonthweekyearintervalinterval_countNr?   r@   rA   r	   rB   r
   rD   rF   rF   rF   rG   4ListParamsScheduleDetailsPhaseItemPriceDataRecurringc  rW   r*  c                   @   s$   e Zd ZU ee ed< 	 eed< dS )r   amount_percentdestinationN)r?   r@   rA   r
   r  rB   rC   rF   rF   rF   rG   *ListParamsScheduleDetailsPhaseTransferDatam  s
   
 r-  c                   @   s   e Zd ZU ed ed< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 eed	  ed
< 	 eed  ed< 	 ee ed< 	 eed  ed< 	 ee ed< 	 ed ed< dS )r/   r'   r   r)   	cancel_atcancel_at_period_end
cancel_nowr-   r   =InvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemr   r3   r   proration_dater9   	resume_atr   r<   r  N)	r?   r@   rA   r
   rB   rE   r   r	   rD   rF   rF   rF   rG   ListParamsSubscriptionDetailsw  s:   
 r4  c                   @      e Zd ZU ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed	< 	 ee ed
< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed< dS )r1  zZLiteral['']|InvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemBillingThresholdsr   clear_usagedeletedzWLiteral['']|List[InvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemDiscount]r   idr   r   r  r   FInvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemPriceDatar   r   r-   r   Nr?   r@   rA   r
   rB   rE   rC   rD   rF   rF   rF   rG   !ListParamsSubscriptionDetailsItem  :   
 r;  c                   @   r  )zNInvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemBillingThresholdsr  Nr   rF   rF   rF   rG   2ListParamsSubscriptionDetailsItemBillingThresholds  r  r=  c                   @   r   )zEInvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemDiscountr   r   r   Nrg   rF   rF   rF   rG   )ListParamsSubscriptionDetailsItemDiscount  r   r>  c                   @   r  )
r9  r   r   OInvoiceUpcomingLinesService.ListParamsSubscriptionDetailsItemPriceDataRecurringr    r   r   r   r   Nr   rF   rF   rF   rG   *ListParamsSubscriptionDetailsItemPriceData  r   r@  c                   @   r!  )r?  r"  r'  r(  Nr)  rF   rF   rF   rG   3ListParamsSubscriptionDetailsItemPriceDataRecurring  rW   rA  c                   @   r5  )r1   zSLiteral['']|InvoiceUpcomingLinesService.ListParamsSubscriptionItemBillingThresholdsr   r6  r7  zPLiteral['']|List[InvoiceUpcomingLinesService.ListParamsSubscriptionItemDiscount]r   r8  r   r   r  r   ?InvoiceUpcomingLinesService.ListParamsSubscriptionItemPriceDatar   r   r-   r   Nr:  rF   rF   rF   rG   ListParamsSubscriptionItem  r<  rC  c                   @   r  )zGInvoiceUpcomingLinesService.ListParamsSubscriptionItemBillingThresholdsr  Nr   rF   rF   rF   rG   +ListParamsSubscriptionItemBillingThresholdsM  r  rD  c                   @   r   )z>InvoiceUpcomingLinesService.ListParamsSubscriptionItemDiscountr   r   r   Nrg   rF   rF   rF   rG   "ListParamsSubscriptionItemDiscountS  r   rE  c                   @   r  )
rB  r   r   HInvoiceUpcomingLinesService.ListParamsSubscriptionItemPriceDataRecurringr    r   r   r   r   Nr   rF   rF   rF   rG   #ListParamsSubscriptionItemPriceDataa  r   rG  c                   @   r!  )rF  r"  r'  r(  Nr)  rF   rF   rF   rG   ,ListParamsSubscriptionItemPriceDataRecurring}  rW   rH  paramsr   optionsreturnc              	   C   s   t tt | jddd||dS )
        When retrieving an upcoming invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        get/v1/invoices/upcoming/linesapibase_addressrI  rJ  )r   r   r   _requestrS   rI  rJ  rF   rF   rG   list  s   z InvoiceUpcomingLinesService.listc              	      s&   t tt | jddd||dI dH S )rL  rM  rN  rO  rP  N)r   r   r   _request_asyncrS  rF   rF   rG   
list_async  s   
z&InvoiceUpcomingLinesService.list_asyncN)4r?   r@   rA   r   rH   rN   rV   r_   rh   rm   rn   rp   r   r   r   r   r   r   r   r   r  r  r  r  r
  r  r  r  r  r  r  r  r  r  r*  r-  r4  r;  r=  r>  r@  rA  rC  rD  rE  rG  rH  r   r   r   rT  rV  rF   rF   rF   rG   r      s~     
 UJ

r


(

44
4
r   N)stripe._invoice_line_itemr   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   typingr   r   r   typing_extensionsr	   r
   r   r   rF   rF   rF   rG   <module>   s   