33from datetime import datetime
44
55from .config import (
6- MONOBANK_CLIENT_INFO_URI ,
7- MONOBANK_CURRENCY_URI ,
8- MONOBANK_STATEMENT_URI ,
9- MONOBANK_WEBHOOK_URI ,
6+ MONOBANK_CURRENCIES_URI ,
107 MONOBANK_CURRENCIES ,
118 MONOBANK_CURRENCY_CODE_A ,
129 MONOBANK_CURRENCY_CODE_B ,
10+ MONOBANK_CLIENT_INFO_URI ,
11+ MONOBANK_STATEMENT_URI ,
12+ MONOBANK_WEBHOOK_URI ,
1313)
1414
1515
1616class MonoManager :
1717 def __init__ (self , token = None ):
1818 self ._token = token
1919
20- _mono_currency_uri = MONOBANK_CURRENCY_URI
21- _mono_client_info_uri = MONOBANK_CLIENT_INFO_URI
22- _mono_statement_uri = MONOBANK_STATEMENT_URI
23- _mono_webhook_uri = MONOBANK_WEBHOOK_URI
20+ _mono_currencies_uri = MONOBANK_CURRENCIES_URI
2421 _mono_currencies = MONOBANK_CURRENCIES
2522 _mono_currency_code_a = MONOBANK_CURRENCY_CODE_A
2623 _mono_currency_code_b = MONOBANK_CURRENCY_CODE_B
24+ _mono_client_info_uri = MONOBANK_CLIENT_INFO_URI
25+ _mono_statement_uri = MONOBANK_STATEMENT_URI
26+ _mono_webhook_uri = MONOBANK_WEBHOOK_URI
2727
2828 @property
2929 def token (self ) -> str :
@@ -34,36 +34,12 @@ def token(self, new_token: str):
3434 self ._token = new_token
3535
3636 @property
37- def mono_currency_uri (self ) -> str :
38- return self ._mono_currency_uri
39-
40- @mono_currency_uri .setter
41- def mono_currency_uri (self , new_uri : str ):
42- self ._mono_currency_uri = new_uri
43-
44- @property
45- def mono_client_info_uri (self ) -> str :
46- return self ._mono_client_info_uri
47-
48- @mono_client_info_uri .setter
49- def mono_client_info_uri (self , new_uri : str ):
50- self ._mono_client_info_uri = new_uri
51-
52- @property
53- def mono_statement_uri (self ) -> str :
54- return self ._mono_statement_uri
55-
56- @mono_statement_uri .setter
57- def mono_statement_uri (self , new_uri : str ):
58- self ._mono_statement_uri = new_uri
59-
60- @property
61- def mono_webhook_uri (self ) -> str :
62- return self ._mono_webhook_uri
37+ def mono_currencies_uri (self ) -> str :
38+ return self ._mono_currencies_uri
6339
64- @mono_webhook_uri .setter
65- def mono_webhook_uri (self , new_uri : str ):
66- self ._mono_webhook_uri = new_uri
40+ @mono_currencies_uri .setter
41+ def mono_currencies_uri (self , new_uri : str ):
42+ self ._mono_currencies_uri = new_uri
6743
6844 @property
6945 def mono_currency_code_a (self ) -> str :
@@ -89,6 +65,30 @@ def mono_currencies(self) -> Dict:
8965 def mono_currencies (self , new_currencies : Dict ):
9066 self ._mono_currencies = new_currencies
9167
68+ @property
69+ def mono_client_info_uri (self ) -> str :
70+ return self ._mono_client_info_uri
71+
72+ @mono_client_info_uri .setter
73+ def mono_client_info_uri (self , new_uri : str ):
74+ self ._mono_client_info_uri = new_uri
75+
76+ @property
77+ def mono_statement_uri (self ) -> str :
78+ return self ._mono_statement_uri
79+
80+ @mono_statement_uri .setter
81+ def mono_statement_uri (self , new_uri : str ):
82+ self ._mono_statement_uri = new_uri
83+
84+ @property
85+ def mono_webhook_uri (self ) -> str :
86+ return self ._mono_webhook_uri
87+
88+ @mono_webhook_uri .setter
89+ def mono_webhook_uri (self , new_uri : str ):
90+ self ._mono_webhook_uri = new_uri
91+
9292 @classmethod
9393 def session (cls ) -> requests .sessions .Session :
9494 return requests .Session ()
0 commit comments