Ë
    <@‹g H  ã                   ó”   — 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mZ d dlmZmZmZmZmZ erd dlmZ  G d„ d	ed	   «      Zy
)é    )ÚCreateableAPIResource)ÚExpandableField)ÚRequestOptions)ÚStripeObject)ÚClassVarÚListÚOptionalÚcast)ÚLiteralÚNotRequiredÚ	TypedDictÚUnpackÚTYPE_CHECKING)ÚConfigurationc                   ó@  — e Zd ZU dZdZeed      ed<    G d„ de«      Z	 G d„ de
«      Z G d„ d	e«      Z G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zed   ed<   	 eed <   	 eed!<   	 ee	   ed"<   	 eed#<   	 eed$<   	 eed%      ed&<   	 ed   ed'<   	 ee   ed(<   	 ee   ed)<   	 eed*<   	 ed+ed,   d-d fd.„«       Zed+ed,   d-d fd/„«       Z d"e	iZ!y0)1ÚSessionaä  
    The Billing customer portal is a Stripe-hosted UI for subscription and
    billing management.

    A portal configuration describes the functionality and features that you
    want to provide to your customers through the portal.

    A portal session describes the instantiation of the customer portal for
    a particular customer. By visiting the session's URL, the customer
    can manage their subscriptions and billing details. For security reasons,
    sessions are short-lived and will expire if the customer does not visit the URL.
    Create sessions on-demand when customers intend to manage their subscriptions
    and billing details.

    Related guide: [Customer management](https://stripe.com/customer-management)
    zbilling_portal.sessionÚOBJECT_NAMEc                   óÆ   — e Zd ZU  G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zeed	<   e	e   ed
<   	 e	e   ed<   	 e	e   ed<   	 e
d   ed<   	 eeeedœZy)úSession.Flowc                   óz   — e Zd ZU  G d„ de«      Z G d„ de«      Zee   ed<   	 ee   ed<   	 ed   ed<   	 eed	œZ	y
)úSession.Flow.AfterCompletionc                   ó   — e Zd ZU ee   ed<   y)ú/Session.Flow.AfterCompletion.HostedConfirmationÚcustom_messageN©Ú__name__Ú
__module__Ú__qualname__r	   ÚstrÚ__annotations__© ó    ú]/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/billing_portal/_session.pyÚHostedConfirmationr   ,   s   … Ø (¨¡Ó-ðr"   r$   c                   ó   — e Zd ZU eed<   y)ú%Session.Flow.AfterCompletion.RedirectÚ
return_urlN©r   r   r   r   r    r!   r"   r#   ÚRedirectr&   2   s   … Ø“ðr"   r)   Úhosted_confirmationÚredirect©r*   Úportal_homepager+   Útype)r*   r+   N)
r   r   r   r   r$   r)   r	   r    r   Ú_inner_class_typesr!   r"   r#   ÚAfterCompletionr   +   sb   … ô \ô ô˜<ô ð "*Ð*<Ñ!=Ó=ðð ˜xÑ(Ó(ðð ÐNÑOÓOðð (:Ø$ñ"Ñr"   r0   c                   óJ   — e Zd ZU  G d„ de«      Zee   ed<   	 eed<   	 deiZy)úSession.Flow.SubscriptionCancelc                   óP   — e Zd ZU  G d„ de«      Zee   ed<   	 ed   ed<   	 deiZy)ú)Session.Flow.SubscriptionCancel.Retentionc                   ó   — e Zd ZU eed<   y)ú5Session.Flow.SubscriptionCancel.Retention.CouponOfferÚcouponNr(   r!   r"   r#   ÚCouponOfferr6   K   s   … Ø“Kðr"   r8   Úcoupon_offerr.   N)	r   r   r   r   r8   r	   r    r   r/   r!   r"   r#   Ú	Retentionr4   J   s?   … ô ,ô ð ' {Ñ3Ó3ðð ˜nÑ-Ó-ðð '5°kÐ%BÑ"r"   r:   Ú	retentionÚsubscriptionN)	r   r   r   r   r:   r	   r    r   r/   r!   r"   r#   ÚSubscriptionCancelr2   I   s<   … ôC˜Lô Cð"   	Ñ*Ó*ðð Óðð #.¨yÐ!9Ñr"   r=   c                   ó   — e Zd ZU eed<   y)úSession.Flow.SubscriptionUpdater<   Nr(   r!   r"   r#   ÚSubscriptionUpdater?   e   s   … ØÓðr"   r@   c                   óz   — e Zd ZU  G d„ de«      Z G d„ de«      Zeee      ed<   	 ee   ed<   	 e	ed<   	 eedœZ
y	)
ú&Session.Flow.SubscriptionUpdateConfirmc                   ó0   — e Zd ZU ee   ed<   	 ee   ed<   y)ú/Session.Flow.SubscriptionUpdateConfirm.Discountr7   Úpromotion_codeNr   r!   r"   r#   ÚDiscountrD   l   s"   … Ø  ™Ó%ðð !)¨¡Ó-ðr"   rF   c                   óB   — e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)ú+Session.Flow.SubscriptionUpdateConfirm.ItemÚidÚpriceÚquantityN)r   r   r   r	   r   r    Úintr!   r"   r#   ÚItemrH   v   s3   … Ø˜S‘MÓ!ðð   ‘}Ó$ðð # 3™-Ó'ðr"   rM   Ú	discountsÚitemsr<   )rN   rO   N)r   r   r   r   rF   rM   r	   r   r    r   r/   r!   r"   r#   ÚSubscriptionUpdateConfirmrB   k   s[   … ô˜<ô ô�|ô ð    X¡Ñ/Ó/ðð ˜‘:Óðð Óðð 08À$Ñ!GÑr"   rP   Úafter_completionÚsubscription_cancelÚsubscription_updateÚsubscription_update_confirm©Úpayment_method_updaterR   rS   rT   r.   )rQ   rR   rS   rT   N)r   r   r   r   r0   r=   r@   rP   r    r	   r   r/   r!   r"   r#   ÚFlowr   *   s£   … ô	˜lô 	ô<	: ô 	:ô8	 ô 	ô%	H¨ô %	HðN *Ó)Ø%Ð&8Ñ9Ó9ð	ð &Ð&8Ñ9Ó9ð	ð &.Ð.GÑ%HÓHð	ð ð+ñ
ó 	
ð	ð !0Ø#5Ø#5Ø+Dñ	
Ñr"   rW   c                   ó�   — e Zd ZU ee   ed<   	 eed<   	 eee      ed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed	<   y
)úSession.CreateParamsÚconfigurationÚcustomerÚexpandúSession.CreateParamsFlowDataÚ	flow_data©/ÚautoÚbgÚcsÚdaÚdeÚelÚenzen-AUzen-CAzen-GBzen-IEzen-INzen-NZzen-SGÚeszes-419ÚetÚfiÚfilÚfrzfr-CAÚhrÚhurI   ÚitÚjaÚkoÚltÚlvÚmsÚmtÚnbÚnlÚplÚptzpt-BRÚroÚruÚskÚslÚsvÚthÚtrÚviÚzhzzh-HKzzh-TWÚlocaleÚon_behalf_ofr'   N)r   r   r   r   r   r    r   r   r!   r"   r#   ÚCreateParamsrY   ¯   s�   … Ø" 3Ñ'Ó'ð	ð ‹ð	ð ˜D ™IÑ&Ó&ð	ð Ð=Ñ>Ó>ð	ð Øð.ñ0ñ2
ó 2	
ðf	ð " #Ñ&Ó&ð	ð   Ñ$Ó$ð	r"   r„   c                   óf   — e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r]   ú+Session.CreateParamsFlowDataAfterCompletionrQ   ú.Session.CreateParamsFlowDataSubscriptionCancelrR   ú.Session.CreateParamsFlowDataSubscriptionUpdaterS   ú5Session.CreateParamsFlowDataSubscriptionUpdateConfirmrT   rU   r.   N©r   r   r   r   r    r   r!   r"   r#   ÚCreateParamsFlowDatazSession.CreateParamsFlowDataÿ   su   … Ø%Ø9ñ
ó 	
ð	ð )Ø<ñ
ó 	
ð	ð )Ø<ñ
ó 	
ð	ð &1ØCñ&
ó 	
ð	ð ð+ñ
ó 	
ð	r"   r‹   c                   óB   — e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r†   ú=Session.CreateParamsFlowDataAfterCompletionHostedConfirmationr*   ú3Session.CreateParamsFlowDataAfterCompletionRedirectr+   r,   r.   NrŠ   r!   r"   r#   Ú#CreateParamsFlowDataAfterCompletionz+Session.CreateParamsFlowDataAfterCompletion"  sA   … Ø(ØKñ
ó 	
ð	ð ØAñ
ó 	
ð	ð ÐJÑKÓKð	r"   r�   c                   ó   — e Zd ZU ee   ed<   y)r�   r   N©r   r   r   r   r   r    r!   r"   r#   Ú5CreateParamsFlowDataAfterCompletionHostedConfirmationz=Session.CreateParamsFlowDataAfterCompletionHostedConfirmation4  s   … Ø# CÑ(Ó(ð	r"   r’   c                   ó   — e Zd ZU eed<   y)rŽ   r'   Nr(   r!   r"   r#   Ú+CreateParamsFlowDataAfterCompletionRedirectz3Session.CreateParamsFlowDataAfterCompletionRedirect:  s   … Ø‹ð	r"   r”   c                   ó*   — e Zd ZU ed   ed<   	 eed<   y)r‡   ú7Session.CreateParamsFlowDataSubscriptionCancelRetentionr;   r<   N)r   r   r   r   r    r   r!   r"   r#   Ú&CreateParamsFlowDataSubscriptionCancelz.Session.CreateParamsFlowDataSubscriptionCancel@  s$   … ØØEñ
ó 	
ð	ð Óð	r"   r—   c                   ó*   — e Zd ZU ded<   	 ed   ed<   y)r–   úBSession.CreateParamsFlowDataSubscriptionCancelRetentionCouponOfferr9   r.   N)r   r   r   r    r   r!   r"   r#   Ú/CreateParamsFlowDataSubscriptionCancelRetentionz7Session.CreateParamsFlowDataSubscriptionCancelRetentionL  s   … ØZÓZð	ð �nÑ%Ó%ð	r"   rš   c                   ó   — e Zd ZU eed<   y)r™   r7   Nr(   r!   r"   r#   Ú:CreateParamsFlowDataSubscriptionCancelRetentionCouponOfferzBSession.CreateParamsFlowDataSubscriptionCancelRetentionCouponOfferV  s   … ð ‹ð	r"   rœ   c                   ó   — e Zd ZU eed<   y)rˆ   r<   Nr(   r!   r"   r#   Ú&CreateParamsFlowDataSubscriptionUpdatez.Session.CreateParamsFlowDataSubscriptionUpdate^  s   … ØÓð	r"   rž   c                   óB   — e Zd ZU eed      ed<   	 ed   ed<   	 eed<   y)r‰   ú=Session.CreateParamsFlowDataSubscriptionUpdateConfirmDiscountrN   ú9Session.CreateParamsFlowDataSubscriptionUpdateConfirmItemrO   r<   N)r   r   r   r   r   r    r   r!   r"   r#   Ú-CreateParamsFlowDataSubscriptionUpdateConfirmz5Session.CreateParamsFlowDataSubscriptionUpdateConfirmd  sC   … ØØØOññ
ó 	
ð
	ð ØGñ
ó 	
ð	ð Óð	r"   r¢   c                   ó0   — e Zd ZU ee   ed<   	 ee   ed<   y)r    r7   rE   Nr‘   r!   r"   r#   Ú5CreateParamsFlowDataSubscriptionUpdateConfirmDiscountz=Session.CreateParamsFlowDataSubscriptionUpdateConfirmDiscountx  s$   … Ø˜CÑ Ó ð	ð $ CÑ(Ó(ð	r"   r¤   c                   ó<   — e Zd ZU eed<   	 ee   ed<   	 ee   ed<   y)r¡   rI   rJ   rK   N)r   r   r   r   r    r   rL   r!   r"   r#   Ú1CreateParamsFlowDataSubscriptionUpdateConfirmItemz9Session.CreateParamsFlowDataSubscriptionUpdateConfirmItem‚  s0   … Ø‹ð	ð ˜3ÑÓð	ð ˜cÑ"Ó"ð	r"   r¦   r   rZ   Úcreatedr[   ÚflowrI   Úlivemoder_   r‚   Úobjectrƒ   r'   ÚurlÚparamsrY   Úreturnc                 óZ   — t        d| j                  d| j                  «       |¬«      «      S )ú;
        Creates a session of the customer portal.
        r   Úpost©r¬   )r
   Ú_static_requestÚ	class_url©Úclsr¬   s     r#   ÚcreatezSession.createï  s6   € ô
 ØØ×ÑØØ—‘“Øð  ó ó
ð 	
r"   c              ‹   óv   K  — t        d| j                  d| j                  «       |¬«      ƒ d{  –—† «      S 7 Œ­w)r¯   r   r°   r±   N)r
   Ú_static_request_asyncr³   r´   s     r#   Úcreate_asynczSession.create_asyncý  sD   è ø€ ô ØØ×+Ñ+ØØ—‘“Øð ,ó ÷ ó
ð 	
ðús   ‚,9®7
¯	9N)"r   r   r   Ú__doc__r   r   r   r    r   rW   r   r„   r   r‹   r�   r’   r”   r—   rš   rœ   rž   r¢   r¤   r¦   r   rL   r   r	   ÚboolÚclassmethodr   r¶   r¹   r/   r!   r"   r#   r   r      sÛ  … ñð$ 	!ð �˜'Ð":Ñ;Ñ<ó ôC
ˆ|ô C
ôJN�~ô Nô`!˜yô !ôF¨iô ô$À	ô ô°iô ô
°ô 
ô¸)ô ôØôô°ô ô¸	ô ô(À	ô ô¸Iô ð # ?Ñ3Ó3ðð ƒLðð ƒMðð �4‰.Óðð 	ƒGðð ƒNðð Øð.ñ0	
ñ2ó 2ðfð Ð,Ñ-Ó-ðð ˜3‘-Óðð ˜‘Óðð 
ƒHðð ð
˜fÐ%;Ñ<ð 
Àò 
ó ð
ð ð
ØÐ4Ñ5ð
à	ò
ó ð
ð ! $˜Ñr"   r   N)Ústripe._createable_api_resourcer   Ústripe._expandable_fieldr   Ústripe._request_optionsr   Ústripe._stripe_objectr   Útypingr   r   r	   r
   Útyping_extensionsr   r   r   r   r   Ú$stripe.billing_portal._configurationr   r   r!   r"   r#   ú<module>rÄ      s@   ðõ BÝ 4Ý 2Ý .ß 1Ó 1÷õ ñ ÝBôy(Ð# IÑ.õ y(r"   