(20241218) Getting full individual payment records is now possible.

This commit is contained in:
2024-12-18 09:59:14 +05:30
parent bfe7b1a78b
commit 85cc330711
7 changed files with 360 additions and 60 deletions
-16
View File
@@ -351,25 +351,11 @@ class PaymentController:
@staticmethod
async def get_payment(
mongo_conn: AsyncMongo,
token_id: ObjectId | str,
payment_id: ObjectId | str
) -> CorePaymentModel | None:
# Simply call the core model:
return await current_app.core_payment_controller.get_payment(
mongo_conn = mongo_conn,
token_id = token_id,
payment_id = payment_id
)
@staticmethod
async def get_payment_internal(
mongo_conn: AsyncMongo,
payment_id: ObjectId | str
) -> CorePaymentModel | None:
# Simply call the core model:
return await current_app.core_payment_controller.get_payment_internal(
mongo_conn = mongo_conn,
payment_id = payment_id
)
@@ -412,7 +398,6 @@ class PaymentController:
@staticmethod
async def update_tags(
mongo_conn: AsyncMongo,
token_id: ObjectId | str,
payment_id: ObjectId | str,
unset_tags: List[str] = None,
set_tags: List[str] = None
@@ -421,7 +406,6 @@ class PaymentController:
# Simply call the core model:
return await current_app.core_payment_controller.update_tags(
mongo_conn = mongo_conn,
token_id = token_id,
payment_id = payment_id,
unset_tags = unset_tags,
set_tags = set_tags