-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path__init__.py
More file actions
104 lines (100 loc) · 1.83 KB
/
__init__.py
File metadata and controls
104 lines (100 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
__all__ = [
'__version__',
'ApiKey',
'Account',
'Arpc',
'BalanceEntry',
'BillPayment',
'Card',
'CardActivation',
'CardTransaction',
'CardValidation',
'CashReference',
'Clabe',
'CurpValidation',
'Commission',
'Deposit',
'Endpoint',
'File',
'FileBatch',
'Identity',
'IdentityEvent',
'KYCValidation',
'LimitedWallet',
'LoginToken',
'Otp',
'Platform',
'Questionnaires',
'Saving',
'ServiceProvider',
'Session',
'Statement',
'Transfer',
'User',
'UserCredential',
'UserEvent',
'UserListsValidation',
'UserLogin',
'Verification',
'WalletTransaction',
'Webhook',
'WhatsappTransfer',
'configure',
'get_balance',
'JwtToken',
'TermsOfService',
'UserTOSAgreement',
'PostalCodes',
]
from . import http
from .resources import (
Account,
ApiKey,
Arpc,
BalanceEntry,
BillPayment,
Card,
CardActivation,
CardTransaction,
CardValidation,
CashReference,
Clabe,
Commission,
CurpValidation,
Deposit,
Endpoint,
File,
FileBatch,
Identity,
IdentityEvent,
JwtToken,
KYCValidation,
LimitedWallet,
LoginToken,
Otp,
Platform,
PostalCodes,
Questionnaires,
Saving,
ServiceProvider,
Session,
Statement,
TermsOfService,
Transfer,
User,
UserCredential,
UserEvent,
UserListsValidation,
UserLogin,
UserTOSAgreement,
Verification,
WalletTransaction,
Webhook,
WhatsappTransfer,
)
from .version import __version__
configure = http.session.configure
session = http.session
def get_balance(session: http.Session = session) -> int:
balance_entry = BalanceEntry.first(session=session)
return balance_entry.rolling_balance if balance_entry else 0