
    Cha                         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  " S: S;\5      r! " S< S=\5      r"0 0 4S>S?S@\#SA\$\%   4SB jjr&0 0 4S>S?S@\#SA\$\%   4SC jjr'0 4S>SDS@\#SA\%4SE jjr(0 4S>SDS@\#SA\%4SF jjr)0 0 4SG\*S>SHS@\#SA\%4SI jjr+0 0 4SG\*S>SHS@\#SA\%4SJ jjr,0 0 4SG\*S>SKS@\#SA\%4SL jjr-0 0 4SG\*S>SKS@\#SA\%4SM jjr.SNr/gO)PConfigurationService   c                       \ rS rSr% \S   \S'    \S   \S'    \\\      \S'    S\S'    \S	   \S
'    \\\\4      \S'    \S   \S'   Sr	g)!ConfigurationService.CreateParams   0ConfigurationService.CreateParamsBusinessProfilebusiness_profileLiteral['']|strdefault_return_urlexpand)ConfigurationService.CreateParamsFeaturesfeatures*ConfigurationService.CreateParamsLoginPage
login_pagemetadataname N)
__name__
__module____qualname____firstlineno__r   __annotations__r	   strr   __static_attributes__r        o/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/billing_portal/_configuration_service.pyCreateParamsr      s    %>
 	
	 ((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(   r0   c                   n    \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'   Srg)r   ;   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.CreateParamsFeatures;   s    $E
 	
	 %E
 	
	  +J 
 	
	 )I
 	
	 )I
 	
	r(   r?   c                   2    \ rS rSr% \S   \S'    \\S'   Srg)r4   [   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.CreateParamsFeaturesCustomerUpdate[   s#    $b
 	
	 	r(   rI   c                        \ rS rSr% \\S'   Srg)r6   g   rF   r    Nr!   r"   r#   r$   rH   r%   r'   r    r(   r)   "CreateParamsFeaturesInvoiceHistory7ConfigurationService.CreateParamsFeaturesInvoiceHistoryg       	r(   rN   c                        \ rS rSr% \\S'   Srg)r8   m   rF   r    NrM   r    r(   r)   'CreateParamsFeaturesPaymentMethodUpdate<ConfigurationService.CreateParamsFeaturesPaymentMethodUpdatem   rP   r(   rS   c                   b    \ rS rSr% \S   \S'    \\S'    \\S      \S'    \\S      \S'   S	rg
)r:   s   MConfigurationService.CreateParamsFeaturesSubscriptionCancelCancellationReasoncancellation_reasonrF   at_period_endimmediatelymodealways_invoicecreate_prorationsnoneproration_behaviorr    N	r!   r"   r#   r$   r   r%   rH   r   r'   r    r(   r)   &CreateParamsFeaturesSubscriptionCancel;ConfigurationService.CreateParamsFeaturesSubscriptionCancels   sX    ([
 	
	 	 '"@ABB	 (AB
 	
	r(   rc   c                   H    \ rS rSr% \\S'    \\S   \\S      4   \S'   Sr	g)rW      rF    )customer_servicelow_qualitymissing_featuresotherswitched_servicetoo_complextoo_expensiveunusedoptionsr    N)
r!   r"   r#   r$   rH   r%   r
   r   r	   r'   r    r(   r)   8CreateParamsFeaturesSubscriptionCancelCancellationReasonMConfigurationService.CreateParamsFeaturesSubscriptionCancelCancellationReason   sA    	 BK	
 	
	r(   rq   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_updatesrF   zTLiteral['']|List[ConfigurationService.CreateParamsFeaturesSubscriptionUpdateProduct]productsr]   ra   NConfigurationService.CreateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndschedule_at_period_endr    Nrb   r    r(   r)   &CreateParamsFeaturesSubscriptionUpdate;ConfigurationService.CreateParamsFeaturesSubscriptionUpdate   sn    !,N"
 	
	 	 b
 	
	 (AB
 	
	 !,\!
 	
	r(   rz   c                   D    \ rS rSr% \S   \S'    \\   \S'    \\S'   Srg)BConfigurationService.CreateParamsFeaturesSubscriptionUpdateProduct   TConfigurationService.CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantityadjustable_quantitypricesproductr    N	r!   r"   r#   r$   r   r%   r	   r&   r'   r    r(   r)   -CreateParamsFeaturesSubscriptionUpdateProductr}      4    (b
 	
	 S		 	r(   r   c                   D    \ rS rSr% \\S'    \\   \S'    \\   \S'   Srg)r      rF   maximumminimumr    N	r!   r"   r#   r$   rH   r%   r   intr'   r    r(   r)   ?CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantityTConfigurationService.CreateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity   2     	 S!!	 S!!	r(   r   c                   ,    \ rS rSr% \\S      \S'   Srg)rx      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      rF   r    NrM   r    r(   r)   CreateParamsLoginPage*ConfigurationService.CreateParamsLoginPage   rP   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   rH   r%   r&   r	   r   r'   r    r(   r)   
ListParamsr      sp    D!!	 #3''	 DI&&	  %%	 3	 $C((	r(   r   c                   ,    \ rS rSr% \\\      \S'   Srg)#ConfigurationService.RetrieveParamsi  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   \S'   Sr	g)!ConfigurationService.UpdateParamsi  r   0ConfigurationService.UpdateParamsBusinessProfiler   r   r   r   )ConfigurationService.UpdateParamsFeaturesr   *ConfigurationService.UpdateParamsLoginPager   zLiteral['']|Dict[str, str]r   r   r    N)
r!   r"   r#   r$   r   rH   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   iI  7ConfigurationService.UpdateParamsFeaturesCustomerUpdater5   7ConfigurationService.UpdateParamsFeaturesInvoiceHistoryr7   <ConfigurationService.UpdateParamsFeaturesPaymentMethodUpdater9   ;ConfigurationService.UpdateParamsFeaturesSubscriptionCancelr;   ;ConfigurationService.UpdateParamsFeaturesSubscriptionUpdater=   r    Nr>   r    r(   r)   UpdateParamsFeatures)ConfigurationService.UpdateParamsFeaturesI  rA   r(   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg)r   ii  rD   rE   rF   r    NrG   r    r(   r)   "UpdateParamsFeaturesCustomerUpdate7ConfigurationService.UpdateParamsFeaturesCustomerUpdatei  s)    $b
 	
	 T""	r(   r   c                        \ rS rSr% \\S'   Srg)r   iu  rF   r    NrM   r    r(   r)   "UpdateParamsFeaturesInvoiceHistory7ConfigurationService.UpdateParamsFeaturesInvoiceHistoryu  rP   r(   r   c                        \ rS rSr% \\S'   Srg)r   i{  rF   r    NrM   r    r(   r)   'UpdateParamsFeaturesPaymentMethodUpdate<ConfigurationService.UpdateParamsFeaturesPaymentMethodUpdate{  rP   r(   r   c                   h    \ rS rSr% \S   \S'    \\   \S'    \\S      \S'    \\S      \S'   S	rg
)r   i  MConfigurationService.UpdateParamsFeaturesSubscriptionCancelCancellationReasonrX   rF   rY   r\   r]   ra   r    Nrb   r    r(   r)   &UpdateParamsFeaturesSubscriptionCancel;ConfigurationService.UpdateParamsFeaturesSubscriptionCancel  s^    ([
 	
	 T""	 '"@ABB	 (AB
 	
	r(   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  rF   zLiteral['']|List[Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']]rp   r    N)r!   r"   r#   r$   rH   r%   r   r'   r    r(   r)   8UpdateParamsFeaturesSubscriptionCancelCancellationReasonMConfigurationService.UpdateParamsFeaturesSubscriptionCancelCancellationReason  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  ru   rv   rF   zTLiteral['']|List[ConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProduct]rw   r]   ra   NConfigurationService.UpdateParamsFeaturesSubscriptionUpdateScheduleAtPeriodEndry   r    Nrb   r    r(   r)   &UpdateParamsFeaturesSubscriptionUpdate;ConfigurationService.UpdateParamsFeaturesSubscriptionUpdate  st    !,N"
 	
	 T""	 b
 	
	 (AB
 	
	 !,\!
 	
	r(   r   c                   D    \ rS rSr% \S   \S'    \\   \S'    \\S'   Srg)BConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProducti  TConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProductAdjustableQuantityr   r   r   r    Nr   r    r(   r)   -UpdateParamsFeaturesSubscriptionUpdateProductr     r   r(   r   c                   D    \ rS rSr% \\S'    \\   \S'    \\   \S'   Srg)r   i  rF   r   r   r    Nr   r    r(   r)   ?UpdateParamsFeaturesSubscriptionUpdateProductAdjustableQuantityTConfigurationService.UpdateParamsFeaturesSubscriptionUpdateProductAdjustableQuantity  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  rF   r    NrM   r    r(   r)   UpdateParamsLoginPage*ConfigurationService.UpdateParamsLoginPage  s    	r(   r   paramsr   rp   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   rp   )r   r   r   _requestselfr   rp   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_async2  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   rp   s       r)   retrieveConfigurationService.retrieveE  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.updateq  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_async  s^      %%CJJ"-m"< K  # &  
 	
r  r    N)0r!   r"   r#   r$   r   r*   r0   r?   rI   rN   rS   rc   rq   rz   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      s   y @i y @
Y 
Y )  ,9 0 <	   I 	 Y 4 "y "H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 $ > * * = =O

= O

r(   