Commit c9bbd223 authored by Florent Viard's avatar Florent Viard Committed by hydrargyrum
Browse files

[capabilities/BankTransfer] Add TransferTimeout error similar to AddRecipientTimeout

parent 22614df9
......@@ -25,6 +25,7 @@
TransferStatus,
TransferError,
TransferBankError,
TransferTimeout,
TransferInvalidEmitter,
TransferInvalidRecipient,
TransferInvalidLabel,
......@@ -78,6 +79,7 @@
'TransferStatus',
'TransferError',
'TransferBankError',
'TransferTimeout',
'TransferInvalidEmitter',
'TransferInvalidRecipient',
'TransferInvalidLabel',
......
......@@ -43,8 +43,8 @@
'Transfer',
'TransferBankError', 'TransferCancelledByUser', 'TransferDateType', 'TransferError', 'TransferFrequency',
'TransferInsufficientFunds', 'TransferInvalidAmount', 'TransferInvalidCurrency',
'TransferInvalidDate', 'TransferInvalidEmitter', 'TransferInvalidLabel', 'TransferInvalidOTP', 'TransferInvalidRecipient',
'TransferNotFound', 'TransferStatus', 'TransferStep',
'TransferInvalidDate', 'TransferInvalidEmitter', 'TransferInvalidLabel', 'TransferTimeout', 'TransferInvalidOTP',
'TransferInvalidRecipient', 'TransferNotFound', 'TransferStatus', 'TransferStep',
]
......@@ -85,6 +85,12 @@ class TransferBankError(TransferError):
code = 'bankMessage'
class TransferTimeout(TransferError):
"""The transfer request timed out"""
code = 'timeout'
class TransferInvalidLabel(TransferError):
"""The transfer label is invalid."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment