@@ -23,93 +23,89 @@ This framework is published at the TestPyPI, install it with pip:
2323### Methods
2424
2525Get currencies
26-
2726``` python
2827>> > mng.get_currency()
2928[
30- 200 ,
31- [
32- {
33- " currencyCodeA" : 840 ,
34- " currencyCodeB" : 980 ,
35- " date" : 1702591273 ,
36- " rateBuy" : 36.95 ,
37- " rateSell" : 37.4406
38- },
39- {
40- " currencyCodeA" : 978 ,
41- " currencyCodeB" : 980 ,
42- " date" : 1702623973 ,
43- " rateBuy" : 40.35 ,
44- " rateSell" : 41.1404
45- },
46- {
47- " currencyCodeA" : 978 ,
48- " currencyCodeB" : 840 ,
49- " date" : 1702623973 ,
50- " rateBuy" : 1.086 ,
51- " rateSell" : 1.1025
52- },
53- ...
54- ]
29+ {
30+ " currencyCodeA" : 840 ,
31+ " currencyCodeB" : 980 ,
32+ " date" : 1702591273 ,
33+ " rateBuy" : 36.95 ,
34+ " rateSell" : 37.4406
35+ },
36+ {
37+ " currencyCodeA" : 978 ,
38+ " currencyCodeB" : 980 ,
39+ " date" : 1702623973 ,
40+ " rateBuy" : 40.35 ,
41+ " rateSell" : 41.1404
42+ },
43+ {
44+ " currencyCodeA" : 978 ,
45+ " currencyCodeB" : 840 ,
46+ " date" : 1702623973 ,
47+ " rateBuy" : 1.086 ,
48+ " rateSell" : 1.1025
49+ },
50+ ...
5551]
5652```
5753
5854Get client info
59-
6055``` python
6156>> > mng.get_client_info()
62- [
63- 200 ,
64- {
65- " clientId" : " xxxxxxxxxx" ,
66- " name" : " Lastname Firstname" ,
67- " webHookUrl" : " " ,
68- " permissions" : " psfj" ,
69- " accounts" : [
70- {
71- " id" : " xxxxxxxxxxxxxxxxxxxxxx" ,
72- " sendId" : " xxxxxxxxxx" ,
73- " currencyCode" : 980 ,
74- " cashbackType" : " UAH" ,
75- " balance" : 1341 ,
76- " creditLimit" : 0 ,
77- " maskedPan" : [
78- " xxxxxx******xxxx"
79- ],
80- " type" : " black" ,
81- " iban" : " UAxxxxxxxxxxxxxxxxxxxxxxxxxxx"
82- }
83- ]
84- }
85- ]
57+ {
58+ " clientId" : " xxxxxxxxxx" ,
59+ " name" : " Last name First name" ,
60+ " webHookUrl" : " " ,
61+ " permissions" : " psfj" ,
62+ " accounts" : [
63+ {
64+ " id" : " xxxxxxxxxxxxxxxxxxx" ,
65+ " sendId" : " xxxxxxxxxx" ,
66+ " currencyCode" : 980 ,
67+ " cashbackType" : " UAH" ,
68+ " balance" : xxxxx,
69+ " creditLimit" : 0 ,
70+ " maskedPan" : [
71+ " xxxxxx******xxxx"
72+ ],
73+ " type" : " black" ,
74+ " iban" : " UAxxxxxxxxxxxxxxxxxxxxxxxxxxx"
75+ }
76+ ]
77+ }
78+ ```
8679
80+ Get balance
81+ ``` python
82+ >> > mng.get_balance()
83+ {
84+ " balance" : x.xx
85+ }
8786```
8887
8988Get statement
9089``` python
9190>> > period = 31
9291>> > mng.get_statement(period)
9392[
94- 200 ,
95- [
96- {
97- " id" : " xxxxxxxxxxxxxxxxxx" ,
98- " time" : 1702464077 ,
99- " description" : " Файно Маркет" ,
100- " mcc" : 5499 ,
101- " originalMcc" : 5499 ,
102- " amount" : - 46030 ,
103- " operationAmount" : - 46030 ,
104- " currencyCode" : 980 ,
105- " commissionRate" : 0 ,
106- " cashbackAmount" : 460 ,
107- " balance" : 1341 ,
108- " hold" : false,
109- " receiptId" : " xxxx-xxxx-xxxx-xxxx"
110- },
93+ {
94+ " id" : " xxxxxxxxxxxxxxxxxx" ,
95+ " time" : xxxxxxxxxx,
96+ " description" : " xxxx xxxxx" ,
97+ " mcc" : xxxx,
98+ " originalMcc" : xxxx,
99+ " amount" : - xxxxx,
100+ " operationAmount" : - xxxxx,
101+ " currencyCode" : xxx,
102+ " commissionRate" : x,
103+ " cashbackAmount" : xxx,
104+ " balance" : xxxx,
105+ " hold" : false,
106+ " receiptId" : " xxxx-xxxx-xxxx-xxxx"
107+ },
111108 ...
112- ]
113109]
114110```
115111
0 commit comments