1- from typing import Any , Dict , Tuple
1+ from typing import Tuple , Dict
22import requests
33from datetime import datetime
44
@@ -67,7 +67,7 @@ def mono_webhook_uri(self, new_uri):
6767
6868 @classmethod
6969 @property
70- def get_currency (cls ) -> Tuple [int , Dict [ str , Any ] ]:
70+ def get_currency (cls ) -> Tuple [int , Dict ]:
7171 try :
7272 session = cls ._session
7373 uri = cls ._mono_currency_uri
@@ -86,7 +86,7 @@ def get_currency(cls) -> Tuple[int, Dict[str, Any]]:
8686 }
8787 return exception
8888
89- def get_client_info (self ) -> Tuple [int , Dict [ str , Any ] ]:
89+ def get_client_info (self ) -> Tuple [int , Dict ]:
9090 try :
9191 session = self ._session
9292 token = self ._token
@@ -107,7 +107,7 @@ def get_client_info(self) -> Tuple[int, Dict[str, Any]]:
107107 }
108108 return exception
109109
110- def get_balance (self ) -> Tuple [int , Dict [ str , Any ] ]:
110+ def get_balance (self ) -> Tuple [int , Dict ]:
111111 try :
112112 response = self .get_client_info ()
113113 code = response [0 ]
@@ -119,7 +119,7 @@ def get_balance(self) -> Tuple[int, Dict[str, Any]]:
119119 except Exception :
120120 return response
121121
122- def get_statement (self , period : int ) -> Tuple [int , Dict [ str , Any ] ]:
122+ def get_statement (self , period : int ) -> Tuple [int , Dict ]:
123123 try :
124124 session = self ._session
125125 token = self ._token
@@ -141,13 +141,13 @@ def get_statement(self, period: int) -> Tuple[int, Dict[str, Any]]:
141141 }
142142 return exception
143143
144- def create_webhook (self , webHookUrl : str ) -> Tuple [int , Dict [ str , Any ] ]:
144+ def create_webhook (self , url : str ) -> Tuple [int , Dict ]:
145145 try :
146146 session = self ._session
147147 token = self ._token
148148 uri = self ._mono_webhook_uri
149149 headers = {"X-Token" : token }
150- response = session .post (uri , headers = headers , data = webHookUrl )
150+ response = session .post (uri , headers = headers , data = url )
151151 response .raise_for_status ()
152152 return response .status_code , response .json ()
153153 except requests .exceptions .HTTPError as exc :
0 commit comments