From 155cd7aa89e9e0bd579a804aced7911a4fd24ee0 Mon Sep 17 00:00:00 2001 From: Warix <39554785+warix8@users.noreply.github.com> Date: Sat, 4 Apr 2026 14:39:20 +0200 Subject: [PATCH 1/3] Patch identity --- app/core/mypayment/endpoints_mypayment.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/core/mypayment/endpoints_mypayment.py b/app/core/mypayment/endpoints_mypayment.py index 7e2f0f318b..7b30b97a05 100644 --- a/app/core/mypayment/endpoints_mypayment.py +++ b/app/core/mypayment/endpoints_mypayment.py @@ -89,6 +89,7 @@ generate_pdf_from_template, get_core_data, get_file_from_data, + patch_identity_in_text, set_core_data, ) @@ -1491,7 +1492,9 @@ async def get_user_tos( return schemas_mypayment.TOSSignatureResponse( accepted_tos_version=existing_user_payment.accepted_tos_version, latest_tos_version=LATEST_TOS, - tos_content=Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), + tos_content=patch_identity_in_text( + Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), settings, + ), max_wallet_balance=settings.MYPAYMENT_MAXIMUM_WALLET_BALANCE, ) From 936210187698aa37bd90668783bafde05af68b88 Mon Sep 17 00:00:00 2001 From: Warix <39554785+warix8@users.noreply.github.com> Date: Sat, 4 Apr 2026 14:39:30 +0200 Subject: [PATCH 2/3] Bump to 5.3.8 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6bd4018ad4..c22bbfdc7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [{ name = "AEECL ECLAIR" }] # Hyperion follows Semantic Versioning # https://semver.org/ -version = "5.3.7" +version = "5.3.8" requires-python = ">= 3.12, < 3.15" license = "MIT" From e3eee48be2a35a70a4f01cb47fbda7ad98699423 Mon Sep 17 00:00:00 2001 From: Warix <39554785+warix8@users.noreply.github.com> Date: Sat, 4 Apr 2026 14:50:23 +0200 Subject: [PATCH 3/3] format --- app/core/mypayment/endpoints_mypayment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/mypayment/endpoints_mypayment.py b/app/core/mypayment/endpoints_mypayment.py index 7b30b97a05..7a38aac9b7 100644 --- a/app/core/mypayment/endpoints_mypayment.py +++ b/app/core/mypayment/endpoints_mypayment.py @@ -1493,7 +1493,8 @@ async def get_user_tos( accepted_tos_version=existing_user_payment.accepted_tos_version, latest_tos_version=LATEST_TOS, tos_content=patch_identity_in_text( - Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), settings, + Path("assets/mypayment-terms-of-service.txt").read_text("utf-8"), + settings, ), max_wallet_balance=settings.MYPAYMENT_MAXIMUM_WALLET_BALANCE, )