Skip to content

Commit 6339abe

Browse files
author
Sameera Salameh
committed
get_transaction_problems and get_transaction_metadata to return a list
1 parent 63ea756 commit 6339abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

railib/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ def get_transaction(ctx: Context, id: str) -> dict:
300300
return _get_resource(ctx, f"{PATH_TRANSACTIONS}/{id}", key="transaction")
301301

302302

303-
def get_transaction_metadata(ctx: Context, id: str) -> dict:
303+
def get_transaction_metadata(ctx: Context, id: str) -> list:
304304
return _get_collection(ctx, f"{PATH_TRANSACTIONS}/{id}/metadata")
305305

306306

307307
def list_transactions(ctx: Context) -> list:
308308
return _get_collection(ctx, PATH_TRANSACTIONS, key="transactions")
309309

310310

311-
def get_transaction_problems(ctx: Context, id: str) -> dict:
311+
def get_transaction_problems(ctx: Context, id: str) -> list:
312312
return _get_collection(ctx, f"{PATH_TRANSACTIONS}/{id}/problems")
313313

314314

0 commit comments

Comments
 (0)