Add return types in transactions docstrings

pull/1/head
Mark Veidemanis 3 years ago
parent 5350a2e44c
commit 661582a97d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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.*")

Loading…
Cancel
Save