3

‘ã\›  ã               @   s„   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G dd„ deƒZdS )c               @   s   e Zd ZdS )ÚPaymentErrorN)Ú__name__Ú
__module__Ú__qualname__© r   r   ú8/var/www/html/oscar2019/oscar/apps/payment/exceptions.pyr      s   r   c               @   s   e Zd ZdZdS )ÚUserCancelledz¿
    Exception for when a customer decides to cancel their payment
    after the process has started -- for example if they press a "Cancel"
    button on a third-party payment platform.
    N)r   r   r   Ú__doc__r   r   r   r   r      s   r   c               @   s   e Zd ZdS )ÚTransactionDeclinedN)r   r   r   r   r   r   r   r	      s   r	   c               @   s   e Zd ZdS )ÚGatewayErrorN)r   r   r   r   r   r   r   r
      s   r
   c               @   s   e Zd ZdS )ÚInvalidGatewayRequestErrorN)r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdS )ÚInsufficientPaymentSourceszú
    Exception for when a user attempts to checkout without specifying enough
    payment sources to cover the entire order total.

    Eg. When selecting an allocation off a giftcard but not specifying a
    bankcard to take the remainder from.
    N)r   r   r   r   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdd„ ZdS )ÚRedirectRequiredzK
    Exception to be used when payment processsing requires a redirect
    c             C   s
   || _ d S )N)Úurl)Úselfr   r   r   r   Ú__init__*   s    zRedirectRequired.__init__N)r   r   r   r   r   r   r   r   r   r   %   s   r   c               @   s   e Zd ZdZdS )ÚUnableToTakePaymentz­
    Exception to be used for ANTICIPATED payment errors (eg card number wrong,
    expiry date has passed).  The message passed here will be shown to the end
    user.
    N)r   r   r   r   r   r   r   r   r   .   s   r   N)	Ú	Exceptionr   r   r	   r
   r   r   r   r   r   r   r   r   Ú<module>   s   		