U
    W+d "                     @   s  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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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G d0d1 d1eZG d2d3 d3eZG d4d5 d5eZG d6d7 d7eZG d8d9 d9eZG d:d; d;eZG d<d= d=eZG d>d? d?eZ G d@dA dAeZ!G dBdC dCeZ"G dDdE dEeZ#G dFdG dGeZ$G dHdI dIeZ%G dJdK dKeZ&G dLdM dMeZ'G dNdO dOeZ(G dPdQ dQeZ)G dRdS dSeZ*G dTdU dUeZ+G dVdW dWeZ,G dXdY dYeZ-G dZd[ d[eZ.G d\d] d]eZ/G d^d_ d_eZ0G d`da daeZ1G dbdc dceZ2G ddde deeZ3G dfdg dgeZ4G dhdi dieZ5G djdk dkeZ6G dldm dmeZ7G dndo doeZ8G dpdq dqeZ9G drds dseZ:G dtdu dueZ;G dvdw dweZ<G dxdy dyeZ=G dzd{ d{eZ>d|S )}    )BotoServerErrorc                   @   s   e Zd Zdd ZdS )ResponseErrorFactoryc                 O   s>   t ||}t |jt}|j|f||}|j|j |S )N)r   globalsgetZ
error_codeResponseError__new____dict__update)clsargskwerrorZnewclassobj r   6/tmp/pip-unpacked-wheel-dlxw5sjy/boto/fps/exception.pyr      s
    
zResponseErrorFactory.__new__N)__name__
__module____qualname__r   r   r   r   r   r      s   r   c                   @   s$   e Zd ZdZdZdd Zdd ZdS )r   zUndefined response error.
    Fc                 C   s   d | jj| j| j| jS )Nz{0}({1}, {2},
	{3}))format	__class__r   statusreasonerror_messageselfr   r   r   __repr__   s
    
 zResponseError.__repr__c                 C   s   d | | jrdpd| j S )NzOFPS Response Error: {0.status} {0.__class__.__name__} {1}
{2}
{0.error_message}z(Retriable) )r   retry__doc__stripr   r   r   r   __str__   s
    zResponseError.__str__N)r   r   r   r   r   r   r    r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )RetriableResponseErrorTN)r   r   r   r   r   r   r   r   r!       s   r!   c                   @   s   e Zd ZdZdS )AccessFailurez Account cannot be accessed.
    Nr   r   r   r   r   r   r   r   r"   $   s   r"   c                   @   s   e Zd ZdZdS )AccountClosedzAccount is not active.
    Nr#   r   r   r   r   r$   )   s   r$   c                   @   s   e Zd ZdZdS )AccountLimitsExceededz@The spending or receiving limit on the account is exceeded.
    Nr#   r   r   r   r   r%   .   s   r%   c                   @   s   e Zd ZdZdS )AmountOutOfRangez;The transaction amount is more than the allowed range.
    Nr#   r   r   r   r   r&   3   s   r&   c                   @   s   e Zd ZdZdS )AuthFailurezBAWS was not able to validate the provided access credentials.
    Nr#   r   r   r   r   r'   8   s   r'   c                   @   s   e Zd ZdZdS )ConcurrentModificationziA retriable error can happen when two processes try to modify the
       same data at the same time.
    Nr#   r   r   r   r   r(   =   s   r(   c                   @   s   e Zd ZdZdS )DuplicateRequestzUA different request associated with this caller reference already
       exists.
    Nr#   r   r   r   r   r)   C   s   r)   c                   @   s   e Zd ZdZdS )InactiveInstrumentz$Payment instrument is inactive.
    Nr#   r   r   r   r   r*   I   s   r*   c                   @   s   e Zd ZdZdS )IncompatibleTokenszmThe transaction could not be completed because the tokens have
       incompatible payment instructions.
    Nr#   r   r   r   r   r+   N   s   r+   c                   @   s   e Zd ZdZdS )InstrumentAccessDeniedzjThe external calling application is not the recipient for this
       postpaid or prepaid instrument.
    Nr#   r   r   r   r   r,   T   s   r,   c                   @   s   e Zd ZdZdS )InstrumentExpiredz8The prepaid or the postpaid instrument has expired.
    Nr#   r   r   r   r   r-   Z   s   r-   c                   @   s   e Zd ZdZdS )InsufficientBalancezrThe sender, caller, or recipient's account balance has
       insufficient funds to complete the transaction.
    Nr#   r   r   r   r   r.   _   s   r.   c                   @   s   e Zd ZdZdS )InternalErrorzWA retriable error that happens due to some transient problem in
       the system.
    Nr#   r   r   r   r   r/   e   s   r/   c                   @   s   e Zd ZdZdS )InvalidAccountStatez/The account is either suspended or closed.
    Nr#   r   r   r   r   r0   k   s   r0   c                   @   s   e Zd ZdZdS )InvalidAccountState_CallerzAThe developer account cannot participate in the transaction.
    Nr#   r   r   r   r   r1   p   s   r1   c                   @   s   e Zd ZdZdS )InvalidAccountState_Recipientz=Recipient account cannot participate in the transaction.
    Nr#   r   r   r   r   r2   u   s   r2   c                   @   s   e Zd ZdZdS )InvalidAccountState_Senderz:Sender account cannot participate in the transaction.
    Nr#   r   r   r   r   r3   z   s   r3   c                   @   s   e Zd ZdZdS )InvalidCallerReferencezCThe Caller Reference does not have a token associated with it.
    Nr#   r   r   r   r   r4      s   r4   c                   @   s   e Zd ZdZdS )InvalidClientTokenIdzFThe AWS Access Key Id you provided does not exist in our records.
    Nr#   r   r   r   r   r5      s   r5   c                   @   s   e Zd ZdZdS )InvalidDateRangez_The end date specified is before the start date or the start date
       is in the future.
    Nr#   r   r   r   r   r6      s   r6   c                   @   s   e Zd ZdZdS )InvalidParamsz6One or more parameters in the request is invalid.
    Nr#   r   r   r   r   r7      s   r7   c                   @   s   e Zd ZdZdS )InvalidPaymentInstrumentz;The payment method used in the transaction is invalid.
    Nr#   r   r   r   r   r8      s   r8   c                   @   s   e Zd ZdZdS )InvalidPaymentMethodz$Specify correct payment method.
    Nr#   r   r   r   r   r9      s   r9   c                   @   s   e Zd ZdZdS ) InvalidRecipientForCCTransactionz6This account cannot receive credit card payments.
    Nr#   r   r   r   r   r:      s   r:   c                   @   s   e Zd ZdZdS )InvalidSenderRoleForAccountTypez2This token cannot be used for this operation.
    Nr#   r   r   r   r   r;      s   r;   c                   @   s   e Zd ZdZdS )InvalidTokenIdzAYou did not install the token that you are trying to cancel.
    Nr#   r   r   r   r   r<      s   r<   c                   @   s   e Zd ZdZdS )InvalidTokenId_RecipientzAThe recipient token specified is either invalid or canceled.
    Nr#   r   r   r   r   r=      s   r=   c                   @   s   e Zd ZdZdS )InvalidTokenId_Senderz`The sender token specified is either invalid or canceled or the
       token is not active.
    Nr#   r   r   r   r   r>      s   r>   c                   @   s   e Zd ZdZdS )InvalidTokenTypezAn invalid operation was performed on the token, for example,
       getting the token usage information on a single use token.
    Nr#   r   r   r   r   r?      s   r?   c                   @   s   e Zd ZdZdS )InvalidTransactionIdzThe specified transaction could not be found or the caller did not
       execute the transaction or this is not a Pay or Reserve call.
    Nr#   r   r   r   r   r@      s   r@   c                   @   s   e Zd ZdZdS )InvalidTransactionStatezCThe transaction is not complete, or it has temporarily failed.
    Nr#   r   r   r   r   rA      s   rA   c                   @   s   e Zd ZdZdS )NotMarketplaceAppzsThis is not an marketplace application or the caller does not
       match either the sender or the recipient.
    Nr#   r   r   r   r   rB      s   rB   c                   @   s   e Zd ZdZdS )OriginalTransactionFailedz)The original transaction has failed.
    Nr#   r   r   r   r   rC      s   rC   c                   @   s   e Zd ZdZdS )OriginalTransactionIncompletez3The original transaction is still in progress.
    Nr#   r   r   r   r   rD      s   rD   c                   @   s   e Zd ZdZdS )PaymentInstrumentNotCCzThe payment method specified in the transaction is not a credit
       card.  You can only use a credit card for this transaction.
    Nr#   r   r   r   r   rE      s   rE   c                   @   s   e Zd ZdZdS )PaymentMethodNotDefinedz6Payment method is not defined in the transaction.
    Nr#   r   r   r   r   rF      s   rF   c                   @   s   e Zd ZdZdS )PrepaidFundingLimitExceededzoAn attempt has been made to fund the prepaid instrument
       at a level greater than its recharge limit.
    Nr#   r   r   r   r   rG      s   rG   c                   @   s   e Zd ZdZdS )RefundAmountExceededz:The refund amount is more than the refundable amount.
    Nr#   r   r   r   r   rH      s   rH   c                   @   s   e Zd ZdZdS )SameSenderAndRecipientzAThe sender and receiver are identical, which is not allowed.
    Nr#   r   r   r   r   rI      s   rI   c                   @   s   e Zd ZdZdS )SameTokenIdUsedMultipleTimesz8This token is already used in earlier transactions.
    Nr#   r   r   r   r   rJ      s   rJ   c                   @   s   e Zd ZdZdS )SenderNotOriginalRecipientzbThe sender in the refund transaction is not
       the recipient of the original transaction.
    Nr#   r   r   r   r   rK      s   rK   c                   @   s   e Zd ZdZdS )SettleAmountGreaterThanDebtzUThe amount being settled or written off is
       greater than the current debt.
    Nr#   r   r   r   r   rL      s   rL   c                   @   s   e Zd ZdZdS )$SettleAmountGreaterThanReserveAmountzBThe amount being settled is greater than the reserved amount.
    Nr#   r   r   r   r   rM     s   rM   c                   @   s   e Zd ZdZdS )SignatureDoesNotMatchzaThe request signature calculated by Amazon does not match the
       signature you provided.
    Nr#   r   r   r   r   rN   
  s   rN   c                   @   s   e Zd ZdZdS )TokenAccessDeniedz.Permission to cancel the token is denied.
    Nr#   r   r   r   r   rO     s   rO   c                   @   s   e Zd ZdZdS )TokenNotActivezThe token is canceled.
    Nr#   r   r   r   r   rP     s   rP   c                   @   s   e Zd ZdZdS )TokenNotActive_Recipientz%The recipient token is canceled.
    Nr#   r   r   r   r   rQ     s   rQ   c                   @   s   e Zd ZdZdS )TokenNotActive_Senderz"The sender token is canceled.
    Nr#   r   r   r   r   rR     s   rR   c                   @   s   e Zd ZdZdS )TokenUsageErrorz'The token usage limit is exceeded.
    Nr#   r   r   r   r   rS   $  s   rS   c                   @   s   e Zd ZdZdS )TransactionDeniedz$The transaction is not allowed.
    Nr#   r   r   r   r   rT   )  s   rT   c                   @   s   e Zd ZdZdS )TransactionFullyRefundedAlreadyz:The transaction has already been completely refunded.
    Nr#   r   r   r   r   rU   .  s   rU   c                   @   s   e Zd ZdZdS )TransactionTypeNotRefundablez(You cannot refund this transaction.
    Nr#   r   r   r   r   rV   3  s   rV   c                   @   s   e Zd ZdZdS )UnverifiedAccount_RecipientzThe recipient's account must have a verified bank account or a
       credit card before this transaction can be initiated.
    Nr#   r   r   r   r   rW   8  s   rW   c                   @   s   e Zd ZdZdS )UnverifiedAccount_SenderzThe sender's account must have a verified U.S.  credit card or
       a verified U.S bank account before this transaction can be
       initiated.
    Nr#   r   r   r   r   rX   >  s   rX   c                   @   s   e Zd ZdZdS )UnverifiedBankAccountzAA verified bank account should be used for this transaction.
    Nr#   r   r   r   r   rY   E  s   rY   c                   @   s   e Zd ZdZdS )UnverifiedEmailAddress_Callerz;The caller account must have a verified email address.
    Nr#   r   r   r   r   rZ   J  s   rZ   c                   @   s   e Zd ZdZdS ) UnverifiedEmailAddress_Recipientz\The recipient account must have a verified
       email address for receiving payments.
    Nr#   r   r   r   r   r[   O  s   r[   c                   @   s   e Zd ZdZdS )UnverifiedEmailAddress_SenderzSThe sender account must have a verified
       email address for this payment.
    Nr#   r   r   r   r   r\   U  s   r\   N)?Zboto.exceptionr   r   r   r!   r"   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r   r   r   r   <module>   sz   
