
    Ch$                     b    S SK Jr  S SKJr  S SKJr  S SKJrJr  S SK	J
r
JrJr   " S S\5      rg)	    )RequestOptions)StripeService)Session)Listcast)LiteralNotRequired	TypedDictc                   T   \ 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0 4SSS\S\4S jjr0 4SSS\S\4S jjrS rg!)"SessionService
   c                       \ rS rSr% \\   \S'    \\S'    \\\      \S'    \S   \S'    \\S      \S'    \\   \S	'    \\   \S
'   Sr	g)SessionService.CreateParams   configurationcustomerexpand#SessionService.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huid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_of
return_url N)
__name__
__module____qualname____firstlineno__r	   str__annotations__r   r   __static_attributes__r<       i/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/billing_portal/_session_service.pyCreateParamsr      s    "3''	 	 DI&&	 DEE	 .02
 2	
f	 "#&&	  $$	rD   rF   c                   n    \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \S   \S	'    \S
   \S'   Srg)r   [   2SessionService.CreateParamsFlowDataAfterCompletionafter_completion5SessionService.CreateParamsFlowDataSubscriptionCancelsubscription_cancel5SessionService.CreateParamsFlowDataSubscriptionUpdatesubscription_update<SessionService.CreateParamsFlowDataSubscriptionUpdateConfirmsubscription_update_confirm)payment_method_updaterL   rN   rP   typer<   Nr=   r>   r?   r@   r	   rB   r   rC   r<   rD   rE   CreateParamsFlowData#SessionService.CreateParamsFlowData[   su    %@
 	
	 )C
 	
	 )C
 	
	 &1J&
 	
	 +
 	
	rD   rT   c                   J    \ rS rSr% \S   \S'    \S   \S'    \S   \S'   Srg	)
rI   ~   DSessionService.CreateParamsFlowDataAfterCompletionHostedConfirmationhosted_confirmation:SessionService.CreateParamsFlowDataAfterCompletionRedirectredirect)rY   portal_homepager[   rR   r<   NrS   r<   rD   rE   #CreateParamsFlowDataAfterCompletion2SessionService.CreateParamsFlowDataAfterCompletion~   sA    (R
 	
	 H
 	
	 JKK	rD   r]   c                   &    \ rS rSr% \\   \S'   Srg)rX      custom_messager<   Nr=   r>   r?   r@   r	   rA   rB   rC   r<   rD   rE   5CreateParamsFlowDataAfterCompletionHostedConfirmationDSessionService.CreateParamsFlowDataAfterCompletionHostedConfirmation   s    #C((	rD   rc   c                        \ rS rSr% \\S'   Srg)rZ      r;   r<   Nr=   r>   r?   r@   rA   rB   rC   r<   rD   rE   +CreateParamsFlowDataAfterCompletionRedirect:SessionService.CreateParamsFlowDataAfterCompletionRedirect   s    	rD   rh   c                   2    \ rS rSr% \S   \S'    \\S'   Srg)rK      >SessionService.CreateParamsFlowDataSubscriptionCancelRetention	retentionsubscriptionr<   N)r=   r>   r?   r@   r	   rB   rA   rC   r<   rD   rE   &CreateParamsFlowDataSubscriptionCancel5SessionService.CreateParamsFlowDataSubscriptionCancel   s$    L
 	
	 	rD   ro   c                   2    \ rS rSr% S\S'    \S   \S'   Srg)rl      ISessionService.CreateParamsFlowDataSubscriptionCancelRetentionCouponOffercoupon_offerrR   r<   N)r=   r>   r?   r@   rB   r   rC   r<   rD   rE   /CreateParamsFlowDataSubscriptionCancelRetention>SessionService.CreateParamsFlowDataSubscriptionCancelRetention   s    aa	 n%%	rD   ru   c                        \ rS rSr% \\S'   Srg)rs      couponr<   Nrg   r<   rD   rE   :CreateParamsFlowDataSubscriptionCancelRetentionCouponOfferISessionService.CreateParamsFlowDataSubscriptionCancelRetentionCouponOffer   s     	rD   rz   c                        \ rS rSr% \\S'   Srg)rM      rn   r<   Nrg   r<   rD   rE   &CreateParamsFlowDataSubscriptionUpdate5SessionService.CreateParamsFlowDataSubscriptionUpdate   s    	rD   r~   c                   J    \ rS rSr% \\S      \S'    \S   \S'    \\S'   Srg)	rO      DSessionService.CreateParamsFlowDataSubscriptionUpdateConfirmDiscount	discounts@SessionService.CreateParamsFlowDataSubscriptionUpdateConfirmItemitemsrn   r<   N)	r=   r>   r?   r@   r	   r   rB   rA   rC   r<   rD   rE   -CreateParamsFlowDataSubscriptionUpdateConfirm<SessionService.CreateParamsFlowDataSubscriptionUpdateConfirm   sC    V
 	

	 N
 	
	 	rD   r   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r      ry   promotion_coder<   Nrb   r<   rD   rE   5CreateParamsFlowDataSubscriptionUpdateConfirmDiscountDSessionService.CreateParamsFlowDataSubscriptionUpdateConfirmDiscount   s$    C  	 $C((	rD   r   c                   D    \ rS rSr% \\S'    \\   \S'    \\   \S'   Srg)r      r$   pricequantityr<   N)	r=   r>   r?   r@   rA   rB   r	   intrC   r<   rD   rE   1CreateParamsFlowDataSubscriptionUpdateConfirmItem@SessionService.CreateParamsFlowDataSubscriptionUpdateConfirmItem   s0    	 3	 c""	rD   r   paramsr   optionsreturnc                 D    [        [        U R                  SSSUUS95      $ )+
Creates a session of the customer portal.
post/v1/billing_portal/sessionsapibase_addressr   r   )r   r   _requestselfr   r   s      rE   createSessionService.create   s4     MM-"  	
 		
rD   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   _request_asyncr   s      rE   create_asyncSessionService.create_async   sC      %%-" &  	
 		
s   !.,
	.r<   N)r=   r>   r?   r@   r
   rF   rT   r]   rc   rh   ro   ru   rz   r~   r   r   r   r   r   r   r   rC   r<   rD   rE   r   r   
   s    Ny N`!y !Fi $	 i 
 
)  	 (	 I " #%
-
  
 
	
, #%
-
  
 
	
 
rD   r   N)stripe._request_optionsr   stripe._stripe_servicer   stripe.billing_portal._sessionr   typingr   r   typing_extensionsr   r	   r
   r   r<   rD   rE   <module>r      s'    3 0 2  = =F
] F
rD   