
    Ai5                         d dl mZ d dlmZ  G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z	 G d de      Z
y)    )StripeError)OAuthErrorObjectc                   .     e Zd Z	 	 	 	 d fd	Zd Z xZS )
OAuthErrorc                 6    t         t        |   ||||||       y )N)superr   __init__)selfcodedescription	http_bodyhttp_status	json_bodyheaders	__class__s          E/var/www/html/immo/lib/python3.12/site-packages/stripe/oauth_error.pyr	   zOAuthError.__init__   s!     	j$(KGT	
    c                     | j                   y ddlm} t        j                  | j                   |j                         d      S )Nr   )_APIRequestorV1)values	requestorapi_mode)r   stripe._api_requestorr   r   _construct_from_global_instance)r
   r   s     r   _construct_error_objectz"OAuthError._construct_error_object   s;    >>!7//>>#446
 	
r   )NNNN)__name__
__module____qualname__r	   r   __classcell__)r   s   @r   r   r      s    
 


r   r   c                       e Zd Zy)InvalidClientErrorNr   r   r     r   r   r#   r#           r   r#   c                       e Zd Zy)InvalidGrantErrorNr$   r%   r   r   r(   r(   $   r&   r   r(   c                       e Zd Zy)InvalidRequestErrorNr$   r%   r   r   r*   r*   (   r&   r   r*   c                       e Zd Zy)InvalidScopeErrorNr$   r%   r   r   r,   r,   ,   r&   r   r,   c                       e Zd Zy)UnsupportedGrantTypeErrorNr$   r%   r   r   r.   r.   0   r&   r   r.   c                       e Zd Zy)UnsupportedResponseTypeErrorNr$   r%   r   r   r0   r0   4   r&   r   r0   N)stripe._errorr   stripe._error_objectr   r   r#   r(   r*   r,   r.   r0   r%   r   r   <module>r3      s_    % 1
 
6	 		
 		* 		
 		
 		: 	r   