From d95c11a42ac9a64ac8805b1f28665b989b4e2728 Mon Sep 17 00:00:00 2001 From: hoosnick Date: Thu, 28 Sep 2023 21:49:28 +0500 Subject: [PATCH] hotfix: get_statement method bug (#52) --- lib/payme/methods/get_statement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/payme/methods/get_statement.py b/lib/payme/methods/get_statement.py index ba41c7e..6867092 100644 --- a/lib/payme/methods/get_statement.py +++ b/lib/payme/methods/get_statement.py @@ -43,12 +43,12 @@ def __call__(self, params: dict): 'time': int(t.created_at.timestamp()), 'amount': t.amount, 'account': {'order_id': t.order_id}, - 'create_time': t.state, + 'create_time': t.created_at_ms, 'perform_time': t.perform_time, 'cancel_time': t.cancel_time, 'transaction': t.order_id, 'state': t.state, - 'reason': t.reason, + 'reason': int(t.reason) if t.reason is not None else None, 'receivers': [] # not implemented } for t in transactions ]