
    (g[                         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  S SKJrJrJr   " S S	\5      rg
)    )
ListObject)RequestOptions)StripeService)sanitize_id)Configuration)DictListUnioncast)LiteralNotRequired	TypedDictc            	          \ 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\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 " S0 S1\5      r " S2 S3\5      r " S4 S5\5      r " S6 S7\5      r " S8 S9\5      r 0 0 4S:S;S<\!S=\"\#   4S> jjr$0 0 4S:S;S<\!S=\"\#   4S? jjr%0 4S:S@S<\!S=\#4SA jjr&0 4S:S@S<\!S=\#4SB jjr'0 0 4SC\(S:SDS<\!S=\#4SE jjr)0 0 4SC\(S:SDS<\!S=\#4SF jjr*0 0 4SC\(S:SGS<\!S=\#4SH jjr+0 0 4SC\(S:SGS<\!S=\#4SI jjr,SJr-gK)LConfigurationService   c                       \ rS rSr% \S   \S'    \S   \S'    \\\      \S'    S\S'    \S	   \S
'    \\\\4      \S'   Sr	g)!ConfigurationService.CreateParams   0ConfigurationService.CreateParamsBusinessProfilebusiness_profileLiteral['']|strdefault_return_urlexpand)ConfigurationService.CreateParamsFeaturesfeatures*ConfigurationService.CreateParamsLoginPage
login_pagemetadata N)
__name__
__module____qualname____firstlineno__r   __annotations__r	   strr   __static_attributes__r       qC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\stripe/billing_portal/_configuration_service.pyCreateParamsr      sz    %>
 	
	 ((9::	 DI&&	 >=	   LMM	 d38n--	r'   r)   c                   J    \ rS rSr% \S   \S'    \\   \S'    \\   \S'   Srg)r   )   r   headlineprivacy_policy_urlterms_of_service_urlr   N)r    r!   r"   r#   r   r$   r%   r&   r   r'   r(   CreateParamsBusinessProfile0ConfigurationService.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   7   7ConfigurationService.CreateParamsFeaturesCustomerUpdatecustomer_update7ConfigurationService.CreateParamsFeaturesInvoiceHistoryinvoice_history<ConfigurationService.CreateParamsFeaturesPaymentMethodUpdatepayment_method_update;ConfigurationService.CreateParamsFeaturesSubscriptionCancelsubscription_cancel;ConfigurationService.CreateParamsFeaturesSubscriptionUpdatesubscription_updater   Nr    r!   r"   r#   r   r$   r&   r   r'   r(   CreateParamsFeatures)ConfigurationService.CreateParamsFeatures7   s    $E
 	
	 %E
 	
	  +J 
 	
	 )I
 	
	 )I
 	
	r'   r>   c                   2    \ rS rSr% \S   \S'    \\S'   Srg)r3   W   TLiteral['']|List[Literal['address', 'email', 'name', 'phone', 'shipping', 'tax_id']]allowed_updatesenabledr   Nr    r!   r"   r#   r   r$   boolr&   r   r'   r(   "CreateParamsFeaturesCustomerUpdate7ConfigurationService.CreateParamsFeaturesCustomerUpdateW   s#    $b
 	
	 	r'   rH   c                        \ rS rSr% \\S'   Srg)r5   c   rE   r   Nr    r!   r"   r#   rG   r$   r&   r   r'   r(   "CreateParamsFeaturesInvoiceHistory7ConfigurationService.CreateParamsFeaturesInvoiceHistoryc       	r'   rM   c                        \ rS rSr% \\S'   Srg)r7   i   rE   r   NrL   r   r'   r(   'CreateParamsFeaturesPaymentMethodUpdate<ConfigurationService.CreateParamsFeaturesPaymentMethodUpdatei   rO   r'   rR   c                   b    \ rS rSr% \S   \S'    \\S'    \\S      \S'    \\S      \S'   S	rg
)r9   o   MConfigurationService.CreateParamsFeaturesSubscriptionCancelCancellationReasoncancellation_reasonrE   at_period_endimmediatelymodealways_invoicecreate_prorationsnoneproration_behaviorr   N	r    r!   r"   r#   r   r$   rG   r   r&   r   r'   r(   &CreateParamsFeaturesSubscriptionCancel;ConfigurationService.CreateParamsFeaturesSubscriptionCancelo   sX    ([
 	
	 	 '"@ABB	 (AB
 	
	r'   rb   c                   H    \ rS rSr% \\S'    \\S   \\S      4   \S'   Sr	g)rV      rE    )customer_servicelow_qualitymissing_featuresotherswitched_servicetoo_complextoo_expensiveunusedoptionsr   N)
r    r!   r"   r#   rG   r$   r
   r   r	   r&   r   r'   r(   8CreateParamsFeaturesSubscriptionCancelCancellationReasonMConfigurationService.CreateParamsFeaturesSubscriptionCancelCancellationReason   sA    	 BK	
 	
	r'   rp   c                   n    \ rS rSr% \S   \S'    \\S'    \S   \S'    \\S      \S'    \S	   \S
'   Srg)r;      @Literal['']|List[Literal['price', 'promotion_code', 'quantity']]default_allowed_updatesrE   zTLiteral['']|List[ConfigurationService.CreateParamsFeaturesSubscriptionUpdateProduct]productsr\   r`   NConfigurationService.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndschedule_at_period_endr   Nra   r   r'   r(   &CreateParamsFeaturesSubscriptionUpdate;ConfigurationService.CreateParamsFeaturesSubscriptionUpdate   sn    !,N"
 	
	 	 b
 	
	 (AB
 	
	 !,\!
 	
	r'   ry   c                   2    \ rS rSr% \\   \S'    \\S'   Srg)BConfigurationService.CreateParamsFeaturesSubscriptionUpdateProduct   pricesproductr   Nr    r!   r"   r#   r	   r%   r$   r&   r   r'   r(   -CreateParamsFeaturesSubscriptionUpdateProductr|          S		 	r'   r   c                   ,    \ rS rSr% \\S      \S'   Srg)rw      WConfigurationService.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition
conditionsr   N)r    r!   r"   r#   r   r	   r$   r&   r   r'   r(   9CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndNConfigurationService.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd   s    i
 	

	r'   r   c                   &    \ rS rSr% \S   \S'   Srg)r      decreasing_item_amountshortening_intervaltyper   Nr    r!   r"   r#   r   r$   r&   r   r'   r(   BCreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionWConfigurationService.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition        EFF	r'   r   c                        \ rS rSr% \\S'   Srg)r      rE   r   NrL   r   r'   r(   CreateParamsLoginPage*ConfigurationService.CreateParamsLoginPage   rO   r'   r   c                       \ rS rSr% \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \\	   \S'    \\   \S'   Sr
g	)
ConfigurationService.ListParams   activeending_beforer   
is_defaultlimitstarting_afterr   N)r    r!   r"   r#   r   rG   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rg)#ConfigurationService.RetrieveParams   r   r   N)	r    r!   r"   r#   r   r	   r%   r$   r&   r   r'   r(   RetrieveParamsr      s    DI&&	r'   r   c                       \ rS rSr% \\   \S'    \S   \S'    \S   \S'    \\\      \S'    \S   \S	'    \S
   \S'    \S   \S'   Sr	g)!ConfigurationService.UpdateParams   r   0ConfigurationService.UpdateParamsBusinessProfiler   r   r   r   )ConfigurationService.UpdateParamsFeaturesr   *ConfigurationService.UpdateParamsLoginPager   zLiteral['']|Dict[str, str]r   r   N)
r    r!   r"   r#   r   rG   r$   r	   r%   r&   r   r'   r(   UpdateParamsr      s    D!!	 &>
 	
	 ((9::	 DI&&	 IJJ	   LMM	 :;;	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(   UpdateParamsBusinessProfile0ConfigurationService.UpdateParamsBusinessProfile  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+  7ConfigurationService.UpdateParamsFeaturesCustomerUpdater4   7ConfigurationService.UpdateParamsFeaturesInvoiceHistoryr6   <ConfigurationService.UpdateParamsFeaturesPaymentMethodUpdater8   ;ConfigurationService.UpdateParamsFeaturesSubscriptionCancelr:   ;ConfigurationService.UpdateParamsFeaturesSubscriptionUpdater<   r   Nr=   r   r'   r(   UpdateParamsFeatures)ConfigurationService.UpdateParamsFeatures+  r@   r'   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg)r   iK  rC   rD   rE   r   NrF   r   r'   r(   "UpdateParamsFeaturesCustomerUpdate7ConfigurationService.UpdateParamsFeaturesCustomerUpdateK  s)    $b
 	
	 T""	r'   r   c                        \ rS rSr% \\S'   Srg)r   iW  rE   r   NrL   r   r'   r(   "UpdateParamsFeaturesInvoiceHistory7ConfigurationService.UpdateParamsFeaturesInvoiceHistoryW  rO   r'   r   c                        \ rS rSr% \\S'   Srg)r   i]  rE   r   NrL   r   r'   r(   'UpdateParamsFeaturesPaymentMethodUpdate<ConfigurationService.UpdateParamsFeaturesPaymentMethodUpdate]  rO   r'   r   c                   h    \ rS rSr% \S   \S'    \\   \S'    \\S      \S'    \\S      \S'   S	rg
)r   ic  MConfigurationService.UpdateParamsFeaturesSubscriptionCancelCancellationReasonrW   rE   rX   r[   r\   r`   r   Nra   r   r'   r(   &UpdateParamsFeaturesSubscriptionCancel;ConfigurationService.UpdateParamsFeaturesSubscriptionCancelc  s^    ([
 	
	 T""	 '"@ABB	 (AB
 	
	r'   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   iy  rE   zLiteral['']|List[Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']]ro   r   N)r    r!   r"   r#   rG   r$   r   r&   r   r'   r(   8UpdateParamsFeaturesSubscriptionCancelCancellationReasonMConfigurationService.UpdateParamsFeaturesSubscriptionCancelCancellationReasony  s&    	  f
 	
	r'   r   c                   t    \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\S      \S'    \S	   \S
'   Srg)r   i  rt   ru   rE   zTLiteral['']|List[ConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProduct]rv   r\   r`   NConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndrx   r   Nra   r   r'   r(   &UpdateParamsFeaturesSubscriptionUpdate;ConfigurationService.UpdateParamsFeaturesSubscriptionUpdate  st    !,N"
 	
	 T""	 b
 	
	 (AB
 	
	 !,\!
 	
	r'   r   c                   2    \ rS rSr% \\   \S'    \\S'   Srg)BConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProducti  r~   r   r   Nr   r   r'   r(   -UpdateParamsFeaturesSubscriptionUpdateProductr     r   r'   r   c                   &    \ rS rSr% \S   \S'   Srg)r   i  ziLiteral['']|List[ConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition]r   r   Nr=   r   r'   r(   9UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndNConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEnd  s    w
 	
	r'   r   c                   &    \ rS rSr% \S   \S'   Srg)WConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditioni  r   r   r   Nr   r   r'   r(   BUpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionr     r   r'   r   c                        \ rS rSr% \\S'   Srg)r   i  rE   r   NrL   r   r'   r(   UpdateParamsLoginPage*ConfigurationService.UpdateParamsLoginPage  s    	r'   r   paramsr   ro   returnc                 R    [        [        [           U R                  SSSUUS95      $ )Z
Returns a list of configurations that describe the functionality of the customer portal.
get!/v1/billing_portal/configurationsapibase_addressr   ro   )r   r   r   _requestselfr   ro   s      r(   listConfigurationService.list  s9     }%MM3"  	
 		
r'   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r   r   r   r   r   N)r   r   r   _request_asyncr   s      r(   
list_asyncConfigurationService.list_async  sH      }%%%3" &  	
 		
s   (53
	5r   c                 D    [        [        U R                  SSSUUS95      $ )Z
Creates a configuration that describes the functionality and behavior of a PortalSession
postr   r   r   )r   r   r   r   s      r(   createConfigurationService.create  s4     MM3"  	
 		
r'   c                 `   #    [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)r   r   r   r   r   N)r   r   r   r   s      r(   create_async!ConfigurationService.create_async  sC      %%3" &  	
 		
s   !.,
	.configurationr   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )T
Retrieves a configuration that describes the functionality of the customer portal.
r   1/v1/billing_portal/configurations/{configuration}r   r   r   r   r   r   formatr   r   r   r   ro   s       r(   retrieveConfigurationService.retrieve  sO     MMCJJ"-m"< K  #  
 	
r'   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r   r   r   r   r   r   Nr   r   r   r   r   r   s       r(   retrieve_async#ConfigurationService.retrieve_async'  s^      %%CJJ"-m"< K  # &  
 	
   7AA
	Ar   c                 p    [        [        U R                  SSR                  [	        U5      S9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   s       r(   updateConfigurationService.update=  sO     MMCJJ"-m"< K  #  
 	
r'   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r  r   r   r   r   r   Nr   r   s       r(   update_async!ConfigurationService.update_asyncS  s^      %%CJJ"-m"< K  # &  
 	
r   r   N).r    r!   r"   r#   r   r)   r/   r>   rH   rM   rR   rb   rp   ry   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      s   y 8i y @
Y 
Y )  ,9 0 <	 I 	 Y 4 y @i y @
Y 
Y )  ,
9 
 <	 I 	  57"$
1
  
 
M	"	
* 57"$
1
  
 
M	"	
, #%
3
  
 
	
, #%
3
  
 
	
, 9;"$	

 6
  	

 

2 9;"$	

 6
  	

 

2 79"$	

 4
  	

 

2 79"$	

 4
  	

 

 
r'   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   $stripe.billing_portal._configurationr   typingr   r	   r
   r   typing_extensionsr   r   r   r   r   r'   r(   <module>r     s0    + 2 0 $ > * * = =[	
= [	
r'   