
    +h                         d dl 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)    N)StripeErrorc                   .     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/venv/lib/python3.12/site-packages/stripe/oauth_error.pyr	   zOAuthError.__init__   s!     	j$(KGT	
    c                     | j                   y t        j                  j                  j                  j                  | j                   t        j                        S r   )r   stripeapi_resourceserror_objectOAuthErrorObjectconstruct_fromapi_key)r
   s    r   construct_error_objectz!OAuthError.construct_error_object   sA    >>!##00AAPPNNFNN
 	
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,   ,   r$   r   r,   c                       e Zd Zy)UnsupportedResponseTypeErrorNr"   r#   r   r   r.   r.   0   r$   r   r.   )
r   stripe.errorr   r   r!   r&   r(   r*   r,   r.   r#   r   r   <module>r0      s_     $
 
.	 		
 		* 		
 		
 		: 	r   