diff --git a/handler/transactions.py b/handler/transactions.py index 23cc3c9..9b01b1c 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -38,6 +38,8 @@ class Transactions(object): def transaction(self, data): """ Store details of transaction. + :param data: details of transaction + :type data: dict """ event = data["event"] ts = data["timestamp"] @@ -79,6 +81,8 @@ class Transactions(object): Find transactions that match the given reference and amount. :param reference: transaction reference in Revolut :param amount: transaction amount + :type reference: string + :type amount: int :return: transaction details or AMOUNT_INVALID, or False """ all_transactions = r.scan(0, match="tx.*")