
    Chw;                         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  S S	KJrJrJrJr   " S
 S\5      rg)    )connect_api_base)AuthenticationError)_APIRequestor)_api_encode)	urlencode)RequestOptions)StripeObject)ListcastOptional)LiteralNotRequired	TypedDictUnpackc                   8   \ 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 5       r\ SS\S\\   S\4S jj5       r\ SS\\   S\\
   S\4S jj5       r\ SS\\   S\\   S\4S jj5       rSrg)OAuth   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\S      \S'    \\   \S'    \\   \S'    \\   \S	'   S
r	g)OAuth.OAuthToken   access_tokenscopelivemodebearer
token_typerefresh_tokenstripe_user_idstripe_publishable_key N)
__name__
__module____qualname____firstlineno__r   str__annotations__boolr   __static_attributes__r       P/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_oauth.py
OAuthTokenr      s}    sm#	 }	 4. 	 WX.//	  }$	 !%	 !)-	r(   r*   c                        \ rS rSr% \\S'   Srg)OAuth.OAuthDeauthorization/   r   r   N)r    r!   r"   r#   r$   r%   r'   r   r(   r)   OAuthDeauthorizationr,   /   s    	r(   r.   c                       \ rS rSr% \\   \S'    \\S      \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S	'    \\	\      \S
'    \S   \S'   Sr
g)OAuth.OAuthAuthorizeUrlParams7   	client_idcoderesponse_typeredirect_urir   statestripe_landingalways_promptsuggested_capabilities'OAuth.OAuthAuthorizeUrlParamsStripeUserstripe_userr   N)r    r!   r"   r#   r   r$   r%   r   r&   r
   r'   r   r(   r)   OAuthAuthorizeUrlParamsr0   7   s    s##	 #76?33	 "#&&	
 3	 3	 $C((	 #4((	 !,DI 66	 !!JKK	r(   r<   c                      \ rS rSr% Sr\\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S	'    \\   \S
'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg) r:   e   z
A more detailed explanation of what it means for a field to be
required or optional can be found in our API documentation.
See `Account Creation (Overview)` and `Account Update`
emailurlcountryphone_numberbusiness_namebusiness_type
first_name	last_namedob_day	dob_monthdob_yearstreet_addresscityr6   zipphysical_productproduct_descriptioncurrencyfirst_name_kanafirst_name_kanjilast_name_kanalast_name_kanjigender
block_kanablock_kanjibuilding_kanabuilding_kanjir   N)	r    r!   r"   r#   __doc__r   r$   r%   r'   r   r(   r)   !OAuthAuthorizeUrlParamsStripeUser'OAuth.OAuthAuthorizeUrlParamsStripeUsere   s   	 3	 	 S!!	 "#&&	 #3''	 #3''	  $$	 s##	 S!!	 s##	 c""	 $C((	 #	 3	
 	
 &c**	 )--	 c""	 %S))	 &c**	 $C((	 %S))	 C  	  $$	
 !%%	
 #3''	
 $C((	r(   rZ   c                   t    \ rS rSr% \S   \S'    \\   \S'    \\   \S'    \\   \S'    \\\      \S'   Sr	g	)
OAuth.OAuthTokenParams   )authorization_coder   
grant_typer3   r   r   assert_capabilitiesr   N)
r    r!   r"   r#   r   r%   r   r$   r
   r'   r   r(   r)   OAuthTokenParamsr]      s_    ABB	 #	 #3''	 3	 )c33	r(   rb   c                   2    \ rS rSr% \\   \S'    \\S'   Srg)OAuth.OAuthDeauthorizeParamsi  r2   r   r   N)r    r!   r"   r#   r   r$   r%   r'   r   r(   r)   OAuthDeauthorizeParamsrd     s    s##	 	r(   re   c                 J    SU ;   a  g SSK Jn  U(       a  XS'   g [        S5      e)Nr2   r   )r2   ax  No client_id provided. (HINT: set your client_id using "stripe.client_id = <CLIENT-ID>"). You can find your client_ids in your Stripe dashboard at https://dashboard.stripe.com/account/applications/settings, after registering your account as a platform. See https://stripe.com/docs/connect/standalone-accounts for details, or email support@stripe.com if you have any questions.)striper2   r   )paramsr2   s     r)   _set_client_idOAuth._set_client_id  s1    & $"+;!E
 	
r(   expressrh   returnc                     U SL a  SnOSn[         R                  U5        SU;  a  SUS'   [        [        [	        US5      5      5      n[
        U-   S-   U-   nU$ )NFz/oauth/authorizez/express/oauth/authorizer4   r3   V1?)r   ri   r   listr   r   )rk   rh   pathqueryr@   s        r)   authorize_urlOAuth.authorize_url2  se     e%D-DV$&(&,F?#${6489:%+e3
r(   Napi_keyc                 n    SU 0n[         R                  " 5       n[        SUR                  SSUUSS95      $ )Nru   r   postz/oauth/tokenconnectrh   optionsbase_address)r   _global_instancer   requestru   rh   rz   	requestors       r)   tokenOAuth.tokenB  sN     $-g"6!224	&  	
 		
r(   c                     SU 0n[         R                  " 5       n[        R                  U5        [	        SUR                  SSUUSS95      $ )Nru   r,   rw   z/oauth/deauthorizerx   ry   )r   r|   r   ri   r   r}   r~   s       r)   deauthorizeOAuth.deauthorizeS  s\     $-g"6!224	V$($&  	
 		
r(   r   )F)N)r    r!   r"   r#   r	   r*   r.   r   r<   rZ   rb   re   staticmethodri   r&   r   r$   rs   r   r   r   r'   r   r(   r)   r   r      s
   \ @| ,) ,\SI Sj9 0	 	 
 
( )/0G)H	  !%
#
178H1I
	
 
  !%
#
178N1O
	
 
r(   r   N)rg   r   stripe._errorr   stripe._api_requestorr   stripe._encoder   urllib.parser   stripe._request_optionsr   stripe._stripe_objectr	   typingr
   r   r   typing_extensionsr   r   r   r   objectr   r   r(   r)   <module>r      s4    # - / & " 2 . ' ' E EU
F U
r(   