o
    ȷe "                     @   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   sH   t |i |}t |jt}|j|g|R i |}|j|j |S )N)r   globalsget
error_codeResponseError__new____dict__update)clsargskwerrornewclassobj r   I/var/www/ideatree/venv/lib/python3.10/site-packages/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                   @      e Zd ZdZdS )RetriableResponseErrorTN)r   r   r   r   r   r   r   r   r$           r$   c                   @   r#   )AccessFailurez Account cannot be accessed.
    Nr   r   r   r    r   r   r   r   r&   $   r%   r&   c                   @   r#   )AccountClosedzAccount is not active.
    Nr'   r   r   r   r   r(   )   r%   r(   c                   @   r#   )AccountLimitsExceededz@The spending or receiving limit on the account is exceeded.
    Nr'   r   r   r   r   r)   .   r%   r)   c                   @   r#   )AmountOutOfRangez;The transaction amount is more than the allowed range.
    Nr'   r   r   r   r   r*   3   r%   r*   c                   @   r#   )AuthFailurezBAWS was not able to validate the provided access credentials.
    Nr'   r   r   r   r   r+   8   r%   r+   c                   @   r#   )ConcurrentModificationziA retriable error can happen when two processes try to modify the
       same data at the same time.
    Nr'   r   r   r   r   r,   =   r%   r,   c                   @   r#   )DuplicateRequestzUA different request associated with this caller reference already
       exists.
    Nr'   r   r   r   r   r-   C   r%   r-   c                   @   r#   )InactiveInstrumentz$Payment instrument is inactive.
    Nr'   r   r   r   r   r.   I   r%   r.   c                   @   r#   )IncompatibleTokenszmThe transaction could not be completed because the tokens have
       incompatible payment instructions.
    Nr'   r   r   r   r   r/   N   r%   r/   c                   @   r#   )InstrumentAccessDeniedzjThe external calling application is not the recipient for this
       postpaid or prepaid instrument.
    Nr'   r   r   r   r   r0   T   r%   r0   c                   @   r#   )InstrumentExpiredz8The prepaid or the postpaid instrument has expired.
    Nr'   r   r   r   r   r1   Z   r%   r1   c                   @   r#   )InsufficientBalancezrThe sender, caller, or recipient's account balance has
       insufficient funds to complete the transaction.
    Nr'   r   r   r   r   r2   _   r%   r2   c                   @   r#   )InternalErrorzWA retriable error that happens due to some transient problem in
       the system.
    Nr'   r   r   r   r   r3   e   r%   r3   c                   @   r#   )InvalidAccountStatez/The account is either suspended or closed.
    Nr'   r   r   r   r   r4   k   r%   r4   c                   @   r#   )InvalidAccountState_CallerzAThe developer account cannot participate in the transaction.
    Nr'   r   r   r   r   r5   p   r%   r5   c                   @   r#   )InvalidAccountState_Recipientz=Recipient account cannot participate in the transaction.
    Nr'   r   r   r   r   r6   u   r%   r6   c                   @   r#   )InvalidAccountState_Senderz:Sender account cannot participate in the transaction.
    Nr'   r   r   r   r   r7   z   r%   r7   c                   @   r#   )InvalidCallerReferencezCThe Caller Reference does not have a token associated with it.
    Nr'   r   r   r   r   r8      r%   r8   c                   @   r#   )InvalidClientTokenIdzFThe AWS Access Key Id you provided does not exist in our records.
    Nr'   r   r   r   r   r9      r%   r9   c                   @   r#   )InvalidDateRangez_The end date specified is before the start date or the start date
       is in the future.
    Nr'   r   r   r   r   r:      r%   r:   c                   @   r#   )InvalidParamsz6One or more parameters in the request is invalid.
    Nr'   r   r   r   r   r;      r%   r;   c                   @   r#   )InvalidPaymentInstrumentz;The payment method used in the transaction is invalid.
    Nr'   r   r   r   r   r<      r%   r<   c                   @   r#   )InvalidPaymentMethodz$Specify correct payment method.
    Nr'   r   r   r   r   r=      r%   r=   c                   @   r#   ) InvalidRecipientForCCTransactionz6This account cannot receive credit card payments.
    Nr'   r   r   r   r   r>      r%   r>   c                   @   r#   )InvalidSenderRoleForAccountTypez2This token cannot be used for this operation.
    Nr'   r   r   r   r   r?      r%   r?   c                   @   r#   )InvalidTokenIdzAYou did not install the token that you are trying to cancel.
    Nr'   r   r   r   r   r@      r%   r@   c                   @   r#   )InvalidTokenId_RecipientzAThe recipient token specified is either invalid or canceled.
    Nr'   r   r   r   r   rA      r%   rA   c                   @   r#   )InvalidTokenId_Senderz`The sender token specified is either invalid or canceled or the
       token is not active.
    Nr'   r   r   r   r   rB      r%   rB   c                   @   r#   )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   rC      r%   rC   c                   @   r#   )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   rD      r%   rD   c                   @   r#   )InvalidTransactionStatezCThe transaction is not complete, or it has temporarily failed.
    Nr'   r   r   r   r   rE      r%   rE   c                   @   r#   )NotMarketplaceAppzsThis is not an marketplace application or the caller does not
       match either the sender or the recipient.
    Nr'   r   r   r   r   rF      r%   rF   c                   @   r#   )OriginalTransactionFailedz)The original transaction has failed.
    Nr'   r   r   r   r   rG      r%   rG   c                   @   r#   )OriginalTransactionIncompletez3The original transaction is still in progress.
    Nr'   r   r   r   r   rH      r%   rH   c                   @   r#   )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   rI      r%   rI   c                   @   r#   )PaymentMethodNotDefinedz6Payment method is not defined in the transaction.
    Nr'   r   r   r   r   rJ      r%   rJ   c                   @   r#   )PrepaidFundingLimitExceededzoAn attempt has been made to fund the prepaid instrument
       at a level greater than its recharge limit.
    Nr'   r   r   r   r   rK      r%   rK   c                   @   r#   )RefundAmountExceededz:The refund amount is more than the refundable amount.
    Nr'   r   r   r   r   rL      r%   rL   c                   @   r#   )SameSenderAndRecipientzAThe sender and receiver are identical, which is not allowed.
    Nr'   r   r   r   r   rM      r%   rM   c                   @   r#   )SameTokenIdUsedMultipleTimesz8This token is already used in earlier transactions.
    Nr'   r   r   r   r   rN      r%   rN   c                   @   r#   )SenderNotOriginalRecipientzbThe sender in the refund transaction is not
       the recipient of the original transaction.
    Nr'   r   r   r   r   rO      r%   rO   c                   @   r#   )SettleAmountGreaterThanDebtzUThe amount being settled or written off is
       greater than the current debt.
    Nr'   r   r   r   r   rP      r%   rP   c                   @   r#   )$SettleAmountGreaterThanReserveAmountzBThe amount being settled is greater than the reserved amount.
    Nr'   r   r   r   r   rQ     r%   rQ   c                   @   r#   )SignatureDoesNotMatchzaThe request signature calculated by Amazon does not match the
       signature you provided.
    Nr'   r   r   r   r   rR   
  r%   rR   c                   @   r#   )TokenAccessDeniedz.Permission to cancel the token is denied.
    Nr'   r   r   r   r   rS     r%   rS   c                   @   r#   )TokenNotActivezThe token is canceled.
    Nr'   r   r   r   r   rT     r%   rT   c                   @   r#   )TokenNotActive_Recipientz%The recipient token is canceled.
    Nr'   r   r   r   r   rU     r%   rU   c                   @   r#   )TokenNotActive_Senderz"The sender token is canceled.
    Nr'   r   r   r   r   rV     r%   rV   c                   @   r#   )TokenUsageErrorz'The token usage limit is exceeded.
    Nr'   r   r   r   r   rW   $  r%   rW   c                   @   r#   )TransactionDeniedz$The transaction is not allowed.
    Nr'   r   r   r   r   rX   )  r%   rX   c                   @   r#   )TransactionFullyRefundedAlreadyz:The transaction has already been completely refunded.
    Nr'   r   r   r   r   rY   .  r%   rY   c                   @   r#   )TransactionTypeNotRefundablez(You cannot refund this transaction.
    Nr'   r   r   r   r   rZ   3  r%   rZ   c                   @   r#   )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   r[   8  r%   r[   c                   @   r#   )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   r\   >  r%   r\   c                   @   r#   )UnverifiedBankAccountzAA verified bank account should be used for this transaction.
    Nr'   r   r   r   r   r]   E  r%   r]   c                   @   r#   )UnverifiedEmailAddress_Callerz;The caller account must have a verified email address.
    Nr'   r   r   r   r   r^   J  r%   r^   c                   @   r#   ) UnverifiedEmailAddress_Recipientz\The recipient account must have a verified
       email address for receiving payments.
    Nr'   r   r   r   r   r_   O  r%   r_   c                   @   r#   )UnverifiedEmailAddress_SenderzSThe sender account must have a verified
       email address for this payment.
    Nr'   r   r   r   r   r`   U  r%   r`   N)?boto.exceptionr   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`   r   r   r   r   <module>   s|    
