o
    i5                     @   s   d dl mZ d dlmZ G dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZ	G dd deZ
dS )    )StripeError)OAuthErrorObjectc                       s.   e Zd Z				d fdd	Zdd Z  ZS )
OAuthErrorNc                    s   t t| |||||| d S )N)superr   __init__)selfcodedescription	http_bodyhttp_status	json_bodyheaders	__class__ r/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/oauth_error.pyr      s   
	zOAuthError.__init__c                 C   s0   | j d u rd S ddlm} tj| j | ddS )Nr   )_APIRequestorV1)values	requestorapi_mode)r   stripe._api_requestorr   r   _construct_from_global_instance)r   r   r   r   r   _construct_error_object   s   
z"OAuthError._construct_error_object)NNNN)__name__
__module____qualname__r   r   __classcell__r   r   r   r   r      s    r   c                   @      e Zd ZdS )InvalidClientErrorNr   r   r   r   r   r   r   r            r    c                   @   r   )InvalidGrantErrorNr!   r   r   r   r   r#   $   r"   r#   c                   @   r   )InvalidRequestErrorNr!   r   r   r   r   r$   (   r"   r$   c                   @   r   )InvalidScopeErrorNr!   r   r   r   r   r%   ,   r"   r%   c                   @   r   )UnsupportedGrantTypeErrorNr!   r   r   r   r   r&   0   r"   r&   c                   @   r   )UnsupportedResponseTypeErrorNr!   r   r   r   r   r'   4   r"   r'   N)stripe._errorr   stripe._error_objectr   r   r    r#   r$   r%   r&   r'   r   r   r   r   <module>   s    