Add return types in transactions docstrings
This commit is contained in:
parent
5350a2e44c
commit
661582a97d
|
@ -38,6 +38,8 @@ class Transactions(object):
|
||||||
def transaction(self, data):
|
def transaction(self, data):
|
||||||
"""
|
"""
|
||||||
Store details of transaction.
|
Store details of transaction.
|
||||||
|
:param data: details of transaction
|
||||||
|
:type data: dict
|
||||||
"""
|
"""
|
||||||
event = data["event"]
|
event = data["event"]
|
||||||
ts = data["timestamp"]
|
ts = data["timestamp"]
|
||||||
|
@ -79,6 +81,8 @@ class Transactions(object):
|
||||||
Find transactions that match the given reference and amount.
|
Find transactions that match the given reference and amount.
|
||||||
:param reference: transaction reference in Revolut
|
:param reference: transaction reference in Revolut
|
||||||
:param amount: transaction amount
|
:param amount: transaction amount
|
||||||
|
:type reference: string
|
||||||
|
:type amount: int
|
||||||
:return: transaction details or AMOUNT_INVALID, or False
|
:return: transaction details or AMOUNT_INVALID, or False
|
||||||
"""
|
"""
|
||||||
all_transactions = r.scan(0, match="tx.*")
|
all_transactions = r.scan(0, match="tx.*")
|
||||||
|
|
Loading…
Reference in New Issue