
    _j5                         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
dS )    )StripeError)OAuthErrorObjectc                   .     e Zd Z	 	 	 	 d fd	Zd Z xZS )
OAuthErrorNc                 b    t          t          |                               ||||||           d S )N)superr   __init__)selfcodedescription	http_bodyhttp_status	json_bodyheaders	__class__s          V/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/stripe/oauth_error.pyr	   zOAuthError.__init__   s>     	j$((KGT	
 	
 	
 	
 	
    c                 |    | j         d S ddlm} t          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   sR    >!4777777/>#4466
 
 
 	
r   )NNNN)__name__
__module____qualname__r	   r   __classcell__)r   s   @r   r   r      sZ        
 
 
 
 
 
 


 

 

 

 

 

 

r   r   c                       e Zd ZdS )InvalidClientErrorNr   r   r     r   r   r#   r#               Dr   r#   c                       e Zd ZdS )InvalidGrantErrorNr$   r%   r   r   r(   r(   $   r&   r   r(   c                       e Zd ZdS )InvalidRequestErrorNr$   r%   r   r   r*   r*   (   r&   r   r*   c                       e Zd ZdS )InvalidScopeErrorNr$   r%   r   r   r,   r,   ,   r&   r   r,   c                       e Zd ZdS )UnsupportedGrantTypeErrorNr$   r%   r   r   r.   r.   0   r&   r   r.   c                       e Zd ZdS )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      sY   % % % % % % 1 1 1 1 1 1
 
 
 
 
 
 
 
6	 	 	 	 	 	 	 		 	 	 	 	
 	 	 		 	 	 	 	* 	 	 		 	 	 	 	
 	 	 		 	 	 	 	
 	 	 		 	 	 	 	: 	 	 	 	 	r   