Ë
    ¸Aiõ+  ã                   ó  — d dl mZ d dlmZ d dlmZmZ d dlmZ d dl	m
Z
 e
rTd 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 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% ddgddgdœZ& G d„ de«      Z'y)é    )ÚStripeService)Úsanitize_id)ÚOptionalÚcast)Úimport_module)ÚTYPE_CHECKING)Ú
ListObject)ÚQuote)Ú$QuoteComputedUpfrontLineItemsService)ÚQuoteLineItemService)ÚRequestOptions)ÚQuoteAcceptParams)ÚQuoteCancelParams)ÚQuoteCreateParams)ÚQuoteFinalizeQuoteParams)ÚQuoteListParams)ÚQuotePdfParams)ÚQuoteRetrieveParams)ÚQuoteUpdateParams)ÚAnyz1stripe._quote_computed_upfront_line_items_servicer   zstripe._quote_line_item_servicer   )Úcomputed_upfront_line_itemsÚ
line_itemsc            	       óÊ  ‡ — e Zd ZU ded<   ded<   ˆ fd„Zd„ Z	 	 d'ded   d	ed
   ddfd„Z	 	 d'ded   d	ed
   ddfd„Z	 	 d'ded   d	ed
   ddfd„Z		 	 d'ded   d	ed
   ddfd„Z
	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded   d	ed
   ddfd„Z	 	 d'deded    d	ed
   ddfd!„Z	 	 d'deded    d	ed
   ddfd"„Z	 	 d'deded#   d	ed
   dd$fd%„Z	 	 d'deded#   d	ed
   dd$fd&„Zˆ xZS )(ÚQuoteServicer   r   r   r   c                 ó$   •— t         ‰|   |«       y ©N)ÚsuperÚ__init__)ÚselfÚ	requestorÚ	__class__s     €úH/var/www/html/immo/lib/python3.12/site-packages/stripe/_quote_service.pyr   zQuoteService.__init__*   s   ø€ Ü‰Ñ˜Õ#ó    c                 óÆ   — 	 t         |   \  }}t        t        |«      |«      }t        | | || j                  «      «       t        | |«      S # t
        $ r t        «       ‚w xY wr   )Ú_subservicesÚgetattrr   ÚsetattrÚ
_requestorÚKeyErrorÚAttributeError)r   ÚnameÚimport_fromÚserviceÚservice_classs        r"   Ú__getattr__zQuoteService.__getattr__-   sn   € ð	#Ü#/°Ñ#5Ñ ˆK˜Ü#Ü˜kÓ*ØóˆMô ØØÙ˜dŸo™oÓ.ôô
 ˜4 Ó&Ð&øÜò 	#Ü Ó"Ð"ð	#ús   ‚A	A ÁA Úparamsr   Úoptionsr   ÚreturnúListObject[Quote]c           
      óB   — t        d| j                  ddd||¬«      «      S )ú0
        Returns a list of your quotes.
        r3   Úgetú
/v1/quotesÚapi©Úbase_addressr0   r1   ©r   Ú_request©r   r0   r1   s      r"   ÚlistzQuoteService.list=   s4   € ô ØØM‰MØØØ"ØØð ó ó	
ð 		
r#   c           
   ƒ   ó^   K  — t        d| j                  ddd||¬«      ƒ d{  –—† «      S 7 Œ­w)r5   r3   r6   r7   r8   r9   N©r   Ú_request_asyncr=   s      r"   Ú
list_asynczQuoteService.list_asyncP   sD   è ø€ ô ØØ×%Ñ%ØØØ"ØØð &ó ÷ ó	
ð 		
ðúó   ‚ -¢+
£	-r   r
   c           
      óB   — t        d| j                  ddd||¬«      «      S )úï
        A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote).
        r
   Úpostr7   r8   r9   r;   r=   s      r"   ÚcreatezQuoteService.createc   s4   € ô ØØM‰MØØØ"ØØð ó ó	
ð 		
r#   c           
   ƒ   ó^   K  — t        d| j                  ddd||¬«      ƒ d{  –—† «      S 7 Œ­w)rE   r
   rF   r7   r8   r9   Nr@   r=   s      r"   Úcreate_asynczQuoteService.create_asyncv   sD   è ø€ ô ØØ×%Ñ%ØØØ"ØØð &ó ÷ ó	
ð 		
ðúrC   Úquoter   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )ú8
        Retrieves the quote with the given ID.
        r
   r6   ú/v1/quotes/{quote}©rJ   r8   r9   ©r   r<   Úformatr   ©r   rJ   r0   r1   s       r"   ÚretrievezQuoteService.retrieve‰   sG   € ô ØØM‰MØØ$×+Ñ+´+¸eÓ2DÐ+ÓEØ"ØØð ó ó	
ð 		
r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)rL   r
   r6   rM   rN   r8   r9   N©r   rA   rP   r   rQ   s       r"   Úretrieve_asynczQuoteService.retrieve_async   sW   è ø€ ô ØØ×%Ñ%ØØ$×+Ñ+´+¸eÓ2DÐ+ÓEØ"ØØð &ó ÷ ó	
ð 		
ðúó   ‚9A»A
¼	Ar   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )úD
        A quote models prices and services for a customer.
        r
   rF   rM   rN   r8   r9   rO   rQ   s       r"   ÚupdatezQuoteService.update±   sG   € ô ØØM‰MØØ$×+Ñ+´+¸eÓ2DÐ+ÓEØ"ØØð ó ó	
ð 		
r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)rX   r
   rF   rM   rN   r8   r9   NrT   rQ   s       r"   Úupdate_asynczQuoteService.update_asyncÅ   sW   è ø€ ô ØØ×%Ñ%ØØ$×+Ñ+´+¸eÓ2DÐ+ÓEØ"ØØð &ó ÷ ó	
ð 		
ðúrV   r   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )ú.
        Accepts the specified quote.
        r
   rF   ú/v1/quotes/{quote}/acceptrN   r8   r9   rO   rQ   s       r"   ÚacceptzQuoteService.acceptÙ   óG   € ô ØØM‰MØØ+×2Ñ2¼ÀUÓ9KÐ2ÓLØ"ØØð ó ó	
ð 		
r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)r]   r
   rF   r^   rN   r8   r9   NrT   rQ   s       r"   Úaccept_asynczQuoteService.accept_asyncí   óW   è ø€ ô ØØ×%Ñ%ØØ+×2Ñ2¼ÀUÓ9KÐ2ÓLØ"ØØð &ó ÷ ó	
ð 		
ðúrV   r   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )ú$
        Cancels the quote.
        r
   rF   ú/v1/quotes/{quote}/cancelrN   r8   r9   rO   rQ   s       r"   ÚcancelzQuoteService.cancel  r`   r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)re   r
   rF   rf   rN   r8   r9   NrT   rQ   s       r"   Úcancel_asynczQuoteService.cancel_async  rc   rV   r   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )ú&
        Finalizes the quote.
        r
   rF   ú/v1/quotes/{quote}/finalizerN   r8   r9   rO   rQ   s       r"   Úfinalize_quotezQuoteService.finalize_quote)  sG   € ô ØØM‰MØØ-×4Ñ4¼;ÀuÓ;MÐ4ÓNØ"ØØð ó ó	
ð 		
r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)rk   r
   rF   rl   rN   r8   r9   NrT   rQ   s       r"   Úfinalize_quote_asyncz!QuoteService.finalize_quote_async=  sW   è ø€ ô ØØ×%Ñ%ØØ-×4Ñ4¼;ÀuÓ;MÐ4ÓNØ"ØØð &ó ÷ ó	
ð 		
ðúrV   r   r   c                 ót   — t        d| j                  ddj                  t        |«      ¬«      d||¬«      «      S )ú¡
        Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
        r   r6   ú/v1/quotes/{quote}/pdfrN   Úfilesr9   )r   Ú_request_streamrP   r   rQ   s       r"   ÚpdfzQuoteService.pdfQ  sI   € ô ØØ× Ñ ØØ(×/Ñ/´kÀ%Ó6HÐ/ÓIØ$ØØð !ó ó	
ð 		
r#   c              ƒ   ó   K  — t        d| j                  ddj                  t        |«      ¬«      d||¬«      ƒ d{  –—† «      S 7 Œ­w)rq   r   r6   rr   rN   rs   r9   N)r   Ú_request_stream_asyncrP   r   rQ   s       r"   Ú	pdf_asynczQuoteService.pdf_asynce  sW   è ø€ ô ØØ×,Ñ,ØØ(×/Ñ/´kÀ%Ó6HÐ/ÓIØ$ØØð -ó ÷ ó	
ð 		
ðúrV   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r   r/   r   r>   rB   rG   rI   ÚstrrR   rU   rY   r[   r_   rb   rg   ri   rm   ro   ru   rx   Ú__classcell__)r!   s   @r"   r   r   &   sá  ø… Ø!GÓGØ&Ó&ô$ò#ð$ /3Ø.2ñ
àÐ*Ñ+ð
ð Ð*Ñ+ð
ð 
ó	
ð* /3Ø.2ñ
àÐ*Ñ+ð
ð Ð*Ñ+ð
ð 
ó	
ð* 15Ø.2ñ
àÐ,Ñ-ð
ð Ð*Ñ+ð
ð 
ó	
ð* 15Ø.2ñ
àÐ,Ñ-ð
ð Ð*Ñ+ð
ð 
ó	
ð, 37Ø.2ñ	
àð
ð Ð.Ñ/ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 37Ø.2ñ	
àð
ð Ð.Ñ/ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 15Ø.2ñ	
àð
ð Ð,Ñ-ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 8<Ø.2ñ	
àð
ð Ð3Ñ4ð
ð Ð*Ñ+ð	
ð
 
ó
ð. 8<Ø.2ñ	
àð
ð Ð3Ñ4ð
ð Ð*Ñ+ð	
ð
 
ó
ð. .2Ø.2ñ	
àð
ð Ð)Ñ*ð
ð Ð*Ñ+ð	
ð
 
ó
ð. .2Ø.2ñ	
àð
ð Ð)Ñ*ð
ð Ð*Ñ+ð	
ð
 
÷
r#   r   N)(Ústripe._stripe_servicer   Ústripe._utilr   Útypingr   r   Ú	importlibr   Útyping_extensionsr   Ústripe._list_objectr	   Ústripe._quoter
   Ú1stripe._quote_computed_upfront_line_items_servicer   Ústripe._quote_line_item_servicer   Ústripe._request_optionsr   Ú"stripe.params._quote_accept_paramsr   Ú"stripe.params._quote_cancel_paramsr   Ú"stripe.params._quote_create_paramsr   Ú*stripe.params._quote_finalize_quote_paramsr   Ú stripe.params._quote_list_paramsr   Ústripe.params._quote_pdf_paramsr   Ú$stripe.params._quote_retrieve_paramsr   Ú"stripe.params._quote_update_paramsr   r   r%   r   © r#   r"   ú<module>r’      sz   ðõ 1Ý $ß !Ý #Ý +áÝ.Ý#õõ EÝ6ÝDÝDÝDõõ AÝ>ÝHÝDÝð 	<Ø.ð$ð 5Ð6LÐMñ€ôQ
=õ Q
r#   