
    (gv                         S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJr  S S	KJrJrJrJrJrJr  S S
KJrJrJrJrJr  \(       a  S SKJr   " S S\S   \S   \S   5      rg)    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)sanitize_id)ClassVarDictListOptionalUnioncast)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Applicationc                      \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\	5      r " S	 S
\	5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r  " S/ S0\5      r! " S1 S2\5      r" " S3 S4\5      r# " S5 S6\5      r$ " S7 S8\5      r% " S9 S:\5      r& " S; S<\5      r' " S= S>\5      r( " S? S@\5      r) " SA SB\5      r*\+\SC'    \,\-SD      \SE'    \
\SF'   \.\SG'    \,\/   \SH'    \\SI'   \/\SJ'    \+\SK'    \+\SL'    \\SM'   \,\0\/\/4      \SN'    \S   \SO'    \.\SP'    \1SQ\2SR   SSS 4ST j5       r3\1SQ\2SR   SSS 4SU j5       r4\1SQ\2SV   SS\5S    4SW j5       r6\1SQ\2SV   SS\5S    4SX j5       r7\1SJ\/SQ\2SY   SSS 4SZ j5       r8\1SJ\/SQ\2SY   SSS 4S[ j5       r9\1SJ\/SQ\2S\   SSS 4S] j5       r:\1SJ\/SQ\2S\   SSS 4S^ j5       r;\
\\S_.r<S`r=ga)bConfiguration   zV
A portal configuration describes the functionality and behavior of a portal session.
zbilling_portal.configurationOBJECT_NAMEc                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)Configuration.BusinessProfile%   headlineprivacy_policy_urlterms_of_service_url N)__name__
__module____qualname____firstlineno__r   str__annotations____static_attributes__r!       iC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\stripe/billing_portal/_configuration.pyBusinessProfiler   %   s3    3-	 %SM)	 'sm+	r)   r+   c                       \ rS rSr%  " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	\\
S'   \\
S'   \\
S'   \\
S'   \	\
S'   \\\\\	S.rSrg)Configuration.Features3   c                   8    \ rS rSr% \\S      \S'    \\S'   Srg)%Configuration.Features.CustomerUpdate4   )addressemailnamephoneshippingtax_idallowed_updatesenabledr!   N)	r"   r#   r$   r%   r   r   r'   boolr(   r!   r)   r*   CustomerUpdater0   4   s+    !M 
 Mr)   r;   c                        \ rS rSr% \\S'   Srg)%Configuration.Features.InvoiceHistoryB   r9   r!   Nr"   r#   r$   r%   r:   r'   r(   r!   r)   r*   InvoiceHistoryr=   B       Mr)   r@   c                        \ rS rSr% \\S'   Srg)*Configuration.Features.PaymentMethodUpdateH   r9   r!   Nr?   r!   r)   r*   PaymentMethodUpdaterC   H   rA   r)   rE   c                   n    \ rS rSr%  " S S\5      r\\S'   \\S'    \S   \S'    \S   \S	'    S\0r	S
r
g))Configuration.Features.SubscriptionCancelN   c                   8    \ rS rSr% \\S'    \\S      \S'   Srg)<Configuration.Features.SubscriptionCancel.CancellationReasonO   r9   customer_servicelow_qualitymissing_featuresotherswitched_servicetoo_complextoo_expensiveunusedoptionsr!   N)	r"   r#   r$   r%   r:   r'   r   r   r(   r!   r)   r*   CancellationReasonrJ   O   s-     "	 r)   rV   cancellation_reasonr9   at_period_endimmediatelymodealways_invoicecreate_prorationsnoneproration_behaviorr!   N)r"   r#   r$   r%   r   rV   r'   r:   r   _inner_class_typesr(   r!   r)   r*   SubscriptionCancelrG   N   sX    \ * "43M 899 !(=!  #89K!Lr)   rb   c                       \ rS rSr%  " S S\5      r " S S\5      r\\S      \	S'    \
\	S'    \\\      \	S	'    \S
   \	S'    \\	S'   \\S.rSrg))Configuration.Features.SubscriptionUpdateu   c                   2    \ rS rSr% \\   \S'    \\S'   Srg)1Configuration.Features.SubscriptionUpdate.Productv   pricesproductr!   Nr"   r#   r$   r%   r   r&   r'   r(   r!   r)   r*   Productrg   v   s    S	! r)   rl   c                   F    \ rS rSr%  " S S\5      r\\   \S'    S\0rSr	g)=Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd   c                   &    \ rS rSr% \S   \S'   Srg)GConfiguration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition   decreasing_item_amountshortening_intervaltyper!   Nr"   r#   r$   r%   r   r'   r(   r!   r)   r*   	Conditionrq      s    !G r)   rx   
conditionsr!   N)
r"   r#   r$   r%   r   rx   r   r'   ra   r(   r!   r)   r*   ScheduleAtPeriodEndrn      s,      !O+ '3I%>"r)   rz   )pricepromotion_codequantitydefault_allowed_updatesr9   productsr\   r`   schedule_at_period_end)r   r   r!   N)r"   r#   r$   r%   r   rl   rz   r   r   r'   r:   r   ra   r(   r!   r)   r*   SubscriptionUpdaterd   u   s    , ?l ? &*=>&  M tG}-- !(=!  %87#*="r)   r   customer_updateinvoice_historypayment_method_updatesubscription_cancelsubscription_update)r   r   r   r   r   r!   N)r"   r#   r$   r%   r   r;   r@   rE   rb   r   r'   ra   r(   r!   r)   r*   Featuresr-   3   sy    	\ 		\ 		, 	%	M %	MN2	 2	h ('''22////--%8#5#5
r)   r   c                   2    \ rS rSr% \\S'    \\   \S'   Srg)Configuration.LoginPage   r9   urlr!   N)	r"   r#   r$   r%   r:   r'   r   r&   r(   r!   r)   r*   	LoginPager      s    	
 c]	r)   r   c                       \ rS rSr% \S   \S'    \S   \S'    \\\      \S'    S\S'    \S	   \S
'    \\\\4      \S'   Sr	g)Configuration.CreateParams   )Configuration.CreateParamsBusinessProfilebusiness_profileLiteral['']|strdefault_return_urlexpand"Configuration.CreateParamsFeaturesfeatures#Configuration.CreateParamsLoginPage
login_pagemetadatar!   N)
r"   r#   r$   r%   r   r'   r   r&   r   r(   r!   r)   r*   CreateParamsr      sz    %7
 	
	 ((9::	 DI&&	 76	   EFF	 d38n--	r)   r   c                   J    \ rS rSr% \S   \S'    \\   \S'    \\   \S'   Srg)r      r   r   r   r    r!   N)r"   r#   r$   r%   r   r'   r&   r(   r!   r)   r*   CreateParamsBusinessProfile)Configuration.CreateParamsBusinessProfile   s7    /00	 (,,	 *#..	r)   r   c                   n    \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'   Srg)r      0Configuration.CreateParamsFeaturesCustomerUpdater   0Configuration.CreateParamsFeaturesInvoiceHistoryr   5Configuration.CreateParamsFeaturesPaymentMethodUpdater   4Configuration.CreateParamsFeaturesSubscriptionCancelr   4Configuration.CreateParamsFeaturesSubscriptionUpdater   r!   Nr"   r#   r$   r%   r   r'   r(   r!   r)   r*   CreateParamsFeatures"Configuration.CreateParamsFeatures   s    $>
 	
	 %>
 	
	  +C 
 	
	 )B
 	
	 )B
 	
	r)   r   c                   2    \ rS rSr% \S   \S'    \\S'   Srg)r   i  TLiteral['']|List[Literal['address', 'email', 'name', 'phone', 'shipping', 'tax_id']]r8   r9   r!   Nr"   r#   r$   r%   r   r'   r:   r(   r!   r)   r*   "CreateParamsFeaturesCustomerUpdate0Configuration.CreateParamsFeaturesCustomerUpdate  s#    $b
 	
	 	r)   r   c                        \ rS rSr% \\S'   Srg)r   i  r9   r!   Nr?   r!   r)   r*   "CreateParamsFeaturesInvoiceHistory0Configuration.CreateParamsFeaturesInvoiceHistory      	r)   r   c                        \ rS rSr% \\S'   Srg)r   i  r9   r!   Nr?   r!   r)   r*   'CreateParamsFeaturesPaymentMethodUpdate5Configuration.CreateParamsFeaturesPaymentMethodUpdate  r   r)   r   c                   b    \ rS rSr% \S   \S'    \\S'    \\S      \S'    \\S      \S'   S	rg
)r   i$  FConfiguration.CreateParamsFeaturesSubscriptionCancelCancellationReasonrW   r9   rX   r[   r\   r`   r!   N	r"   r#   r$   r%   r   r'   r:   r   r(   r!   r)   r*   &CreateParamsFeaturesSubscriptionCancel4Configuration.CreateParamsFeaturesSubscriptionCancel$  sX    (T
 	
	 	 '"@ABB	 (AB
 	
	r)   r   c                   H    \ rS rSr% \\S'    \\S   \\S      4   \S'   Sr	g)r   i:  r9    rL   rU   r!   N)
r"   r#   r$   r%   r:   r'   r   r   r   r(   r!   r)   r*   8CreateParamsFeaturesSubscriptionCancelCancellationReasonFConfiguration.CreateParamsFeaturesSubscriptionCancelCancellationReason:  sA    	 BK	
 	
	r)   r   c                   n    \ rS rSr% \S   \S'    \\S'    \S   \S'    \\S      \S'    \S	   \S
'   Srg)r   iR  @Literal['']|List[Literal['price', 'promotion_code', 'quantity']]r~   r9   zMLiteral['']|List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]r   r\   r`   GConfiguration.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndr   r!   Nr   r!   r)   r*   &CreateParamsFeaturesSubscriptionUpdate4Configuration.CreateParamsFeaturesSubscriptionUpdateR  sn    !,N"
 	
	 	 [
 	
	 (AB
 	
	 !,U!
 	
	r)   r   c                   2    \ rS rSr% \\   \S'    \\S'   Srg);Configuration.CreateParamsFeaturesSubscriptionUpdateProductip  ri   rj   r!   Nrk   r!   r)   r*   -CreateParamsFeaturesSubscriptionUpdateProductr   p      S		 	r)   r   c                   ,    \ rS rSr% \\S      \S'   Srg)r   iz  PConfiguration.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionry   r!   N)r"   r#   r$   r%   r   r   r'   r(   r!   r)   r*   9CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndGConfiguration.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndz  s    b
 	

	r)   r   c                   &    \ rS rSr% \S   \S'   Srg)r   i  rs   rv   r!   Nrw   r!   r)   r*   BCreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionPConfiguration.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition       EFF	r)   r   c                        \ rS rSr% \\S'   Srg)r   i  r9   r!   Nr?   r!   r)   r*   CreateParamsLoginPage#Configuration.CreateParamsLoginPage  r   r)   r   c                       \ rS rSr% \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \\	   \S'    \\   \S'   Sr
g	)
Configuration.ListParamsi  activeending_beforer   
is_defaultlimitstarting_afterr!   N)r"   r#   r$   r%   r   r:   r'   r&   r   intr(   r!   r)   r*   
ListParamsr     sp    D!!	 #3''	 DI&&	  %%	 3	 $C((	r)   r   c                       \ rS rSr% \\   \S'    \S   \S'    \S   \S'    \\\      \S'    \S   \S	'    \S
   \S'    \S   \S'   Sr	g)Configuration.ModifyParamsi  r   )Configuration.ModifyParamsBusinessProfiler   r   r   r   "Configuration.ModifyParamsFeaturesr   #Configuration.ModifyParamsLoginPager   zLiteral['']|Dict[str, str]r   r!   N)
r"   r#   r$   r%   r   r:   r'   r   r&   r(   r!   r)   r*   ModifyParamsr     s    D!!	 &7
 	
	 ((9::	 DI&&	 BCC	   EFF	 :;;	r)   r   c                   J    \ rS rSr% \S   \S'    \S   \S'    \S   \S'   Srg)r   i  r   r   r   r    r!   Nr   r!   r)   r*   ModifyParamsBusinessProfile)Configuration.ModifyParamsBusinessProfile  s9    /00	 ((9::	 **;<<	r)   r   c                   n    \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'   Srg)r   i  0Configuration.ModifyParamsFeaturesCustomerUpdater   0Configuration.ModifyParamsFeaturesInvoiceHistoryr   5Configuration.ModifyParamsFeaturesPaymentMethodUpdater   4Configuration.ModifyParamsFeaturesSubscriptionCancelr   4Configuration.ModifyParamsFeaturesSubscriptionUpdater   r!   Nr   r!   r)   r*   ModifyParamsFeatures"Configuration.ModifyParamsFeatures  r   r)   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg)r   i  r   r8   r9   r!   Nr   r!   r)   r*   "ModifyParamsFeaturesCustomerUpdate0Configuration.ModifyParamsFeaturesCustomerUpdate  s)    $b
 	
	 T""	r)   r   c                        \ rS rSr% \\S'   Srg)r   i  r9   r!   Nr?   r!   r)   r*   "ModifyParamsFeaturesInvoiceHistory0Configuration.ModifyParamsFeaturesInvoiceHistory  r   r)   r   c                        \ rS rSr% \\S'   Srg)r   i  r9   r!   Nr?   r!   r)   r*   'ModifyParamsFeaturesPaymentMethodUpdate5Configuration.ModifyParamsFeaturesPaymentMethodUpdate  r   r)   r   c                   h    \ rS rSr% \S   \S'    \\   \S'    \\S      \S'    \\S      \S'   S	rg
)r   i  FConfiguration.ModifyParamsFeaturesSubscriptionCancelCancellationReasonrW   r9   rX   r[   r\   r`   r!   Nr   r!   r)   r*   &ModifyParamsFeaturesSubscriptionCancel4Configuration.ModifyParamsFeaturesSubscriptionCancel  s^    (T
 	
	 T""	 '"@ABB	 (AB
 	
	r)   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i(  r9   zLiteral['']|List[Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']]rU   r!   N)r"   r#   r$   r%   r:   r'   r   r(   r!   r)   r*   8ModifyParamsFeaturesSubscriptionCancelCancellationReasonFConfiguration.ModifyParamsFeaturesSubscriptionCancelCancellationReason(  s&    	  f
 	
	r)   r   c                   t    \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\S      \S'    \S	   \S
'   Srg)r   i4  r   r~   r9   zMLiteral['']|List[Configuration.ModifyParamsFeaturesSubscriptionUpdateProduct]r   r\   r`   GConfiguration.ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndr   r!   Nr   r!   r)   r*   &ModifyParamsFeaturesSubscriptionUpdate4Configuration.ModifyParamsFeaturesSubscriptionUpdate4  st    !,N"
 	
	 T""	 [
 	
	 (AB
 	
	 !,U!
 	
	r)   r   c                   2    \ rS rSr% \\   \S'    \\S'   Srg);Configuration.ModifyParamsFeaturesSubscriptionUpdateProductiR  ri   rj   r!   Nrk   r!   r)   r*   -ModifyParamsFeaturesSubscriptionUpdateProductr  R  r   r)   r  c                   &    \ rS rSr% \S   \S'   Srg)r   i\  zbLiteral['']|List[Configuration.ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition]ry   r!   Nr   r!   r)   r*   9ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndGConfiguration.ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd\  s    p
 	
	r)   r  c                   &    \ rS rSr% \S   \S'   Srg)PConfiguration.ModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionid  rs   rv   r!   Nrw   r!   r)   r*   BModifyParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionr  d  r   r)   r	  c                        \ rS rSr% \\S'   Srg)r   il  r9   r!   Nr?   r!   r)   r*   ModifyParamsLoginPage#Configuration.ModifyParamsLoginPagel  s    	r)   r  c                   ,    \ rS rSr% \\\      \S'   Srg)Configuration.RetrieveParamsit  r   r!   N)	r"   r#   r$   r%   r   r   r&   r'   r(   r!   r)   r*   RetrieveParamsr  t  s    DI&&	r)   r  r   r   applicationr   createdr   r   idr   livemoder   r   objectupdatedparamsr   returnc           	      T    [        SU R                  SU R                  5       US95      $ )Z
Creates a configuration that describes the functionality and behavior of a PortalSession
r   postr  )r   _static_request	class_urlclsr  s     r*   createConfiguration.create  s6        
 	
r)   c           	      p   #    [        SU R                  SU R                  5       US9I Sh  vN 5      $  N7f)r  r   r  r  N)r   _static_request_asyncr  r  s     r*   create_asyncConfiguration.create_async  sC      ++ ,  
 	
s   )64
	6r   c                     U R                  SU R                  5       US9n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$ )Z
Returns a list of configurations that describe the functionality of the customer portal.
getr  %Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorrv   r"   r  r  results      r*   listConfiguration.list  s`     $$MMO % 

 &*--7<((* 
 r)   c                    #    U R                  SU R                  5       US9I Sh  vN n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$  N<7f)r'  r(  r  Nr)  )r#  r  r*  r   r+  rv   r"   r,  s      r*   
list_asyncConfiguration.list_async  sm      00MMO 1 
 

 &*--7<((* 
 
s   #A$A"=A$r   c           	      x    U R                  5       < S[        U5      < 3n[        SU R                  SUUS95      $ )R
Updates a configuration that describes the functionality of the customer portal.
/r   r  r  )r  r
   r   r  r  r  r  r   s       r*   modifyConfiguration.modify  sD     +b/:   
 	
r)   c           	         #    U R                  5       < S[        U5      < 3n[        SU R                  SUUS9I Sh  vN 5      $  N7f)r4  r5  r   r  r  N)r  r
   r   r#  r6  s       r*   modify_asyncConfiguration.modify_async  sQ      +b/:++ ,  
 	
s   ;AA
	Ar  c                 8    U " U40 UD6nUR                  5         U$ )T
Retrieves a configuration that describes the functionality of the customer portal.
)refreshr  r  r  instances       r*   retrieveConfiguration.retrieve  s$     r$V$r)   c                 T   #    U " U40 UD6nUR                  5       I Sh  vN   U$  N7f)r=  N)refresh_asyncr?  s       r*   retrieve_asyncConfiguration.retrieve_async  s2      r$V$$$&&& 	's   (&()r   r   r   r!   N)>r"   r#   r$   r%   __doc__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   r   r   r   r   r   r   r   r   r  r  r	  r  r  r:   r   r   r   r&   r   classmethodr   r   r$  r   r.  r1  r7  r:  rA  rE  ra   r(   r!   r)   r*   r   r      s   

 	' '"@AB , A
< A
F
L 
~ 8i y @
Y 
Y )  ,9 0 <	 I 	 ^ 4~ @i y @
Y 
Y )  ,
9 
 <	 I 	   L /-899 &%L !% G  N tCH~&& 233 L 
:;
	
 
 
:;
	
 
 89	O	$ & 89	O	$ & 

 &'C D
	
 
  

 &'C D
	
 
   &'E F	   &'E F	  ,r)   r   N) stripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer	   stripe._utilr
   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._applicationr   r   r!   r)   r*   <module>rT     s\    B 4 * = 2 . A $ > >  /R/*(/*Rr)   