From c17db6dd83044f9a48f7a7e182bcc935dba4a380 Mon Sep 17 00:00:00 2001 From: Rostyslav Bohomaz Date: Thu, 9 Nov 2023 16:19:24 +0200 Subject: [PATCH] Add Language field to LiqpayCallbackDict --- liqpy/types/callback.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/liqpy/types/callback.py b/liqpy/types/callback.py index 6c89c11..7e2ad7e 100644 --- a/liqpy/types/callback.py +++ b/liqpy/types/callback.py @@ -4,7 +4,7 @@ from liqpy.exceptions import LiqPayErrcode from liqpy.types import status -from liqpy.types.acquring import Currency, PayType +from liqpy.types.common import Currency, PayType, Language CallbackAction = Literal[ @@ -13,7 +13,7 @@ ThreeDS = Literal[5, 6, 7] -class CallbackDict(TypedDict, total=False): +class LiqpayCallbackDict(TypedDict, total=False): acq_id: Number action: CallbackAction agent_commission: Number @@ -39,8 +39,9 @@ class CallbackDict(TypedDict, total=False): info: str ip: str is_3ds: bool + language: Language liqpay_order_id: str - mpi_eci: ThreeDS + mpi_eci: ThreeDS | Literal["5", "6", "7"] order_id: str payment_id: int paytype: PayType