nomba-python 0.1.1__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nomba/__init__.py +1 -1
- nomba/client.py +18 -1
- nomba/data/nomba_openapi.json +8918 -3391
- nomba/models.py +293 -8
- nomba/resources/__init__.py +12 -0
- nomba/resources/accounts.py +213 -39
- nomba/resources/airtime_data.py +17 -8
- nomba/resources/betting.py +205 -0
- nomba/resources/cabletv.py +4 -4
- nomba/resources/charge.py +19 -18
- nomba/resources/checkout.py +104 -16
- nomba/resources/direct_debits.py +343 -0
- nomba/resources/electricity.py +11 -10
- nomba/resources/global_collections.py +133 -0
- nomba/resources/global_payout.py +381 -0
- nomba/resources/terminals.py +47 -4
- nomba/resources/transactions.py +19 -18
- nomba/resources/transfers.py +69 -46
- nomba/resources/virtual_accounts.py +111 -24
- {nomba_python-0.1.1.dist-info → nomba_python-0.2.0.dist-info}/METADATA +10 -5
- nomba_python-0.2.0.dist-info/RECORD +33 -0
- nomba_python-0.1.1.dist-info/RECORD +0 -29
- {nomba_python-0.1.1.dist-info → nomba_python-0.2.0.dist-info}/WHEEL +0 -0
- {nomba_python-0.1.1.dist-info → nomba_python-0.2.0.dist-info}/licenses/LICENSE +0 -0
nomba/__init__.py
CHANGED
nomba/client.py
CHANGED
|
@@ -6,18 +6,26 @@ from .resources import (
|
|
|
6
6
|
AirtimeData,
|
|
7
7
|
AsyncAccounts,
|
|
8
8
|
AsyncAirtimeData,
|
|
9
|
+
AsyncBetting,
|
|
9
10
|
AsyncCableTv,
|
|
10
11
|
AsyncCharge,
|
|
11
12
|
AsyncCheckout,
|
|
13
|
+
AsyncDirectDebits,
|
|
12
14
|
AsyncElectricity,
|
|
15
|
+
AsyncGlobalCollections,
|
|
16
|
+
AsyncGlobalPayout,
|
|
13
17
|
AsyncTerminals,
|
|
14
18
|
AsyncTransactions,
|
|
15
19
|
AsyncTransfers,
|
|
16
20
|
AsyncVirtualAccounts,
|
|
21
|
+
Betting,
|
|
17
22
|
CableTv,
|
|
18
23
|
Charge,
|
|
19
24
|
Checkout,
|
|
25
|
+
DirectDebits,
|
|
20
26
|
Electricity,
|
|
27
|
+
GlobalCollections,
|
|
28
|
+
GlobalPayout,
|
|
21
29
|
Terminals,
|
|
22
30
|
Transactions,
|
|
23
31
|
Transfers,
|
|
@@ -48,7 +56,8 @@ class Nomba:
|
|
|
48
56
|
|
|
49
57
|
Resource groups:
|
|
50
58
|
accounts, virtual_accounts, checkout, charge, transfers,
|
|
51
|
-
terminals, transactions, airtime_data, cabletv, electricity
|
|
59
|
+
terminals, transactions, airtime_data, cabletv, electricity,
|
|
60
|
+
betting, direct_debits, global_collections, global_payout
|
|
52
61
|
"""
|
|
53
62
|
|
|
54
63
|
def __init__(
|
|
@@ -77,6 +86,10 @@ class Nomba:
|
|
|
77
86
|
self.airtime_data = AirtimeData(self.client)
|
|
78
87
|
self.cabletv = CableTv(self.client)
|
|
79
88
|
self.electricity = Electricity(self.client)
|
|
89
|
+
self.betting = Betting(self.client)
|
|
90
|
+
self.direct_debits = DirectDebits(self.client)
|
|
91
|
+
self.global_collections = GlobalCollections(self.client)
|
|
92
|
+
self.global_payout = GlobalPayout(self.client)
|
|
80
93
|
|
|
81
94
|
def close(self) -> None:
|
|
82
95
|
self.client.close()
|
|
@@ -143,6 +156,10 @@ class AsyncNomba:
|
|
|
143
156
|
self.airtime_data = AsyncAirtimeData(self.client)
|
|
144
157
|
self.cabletv = AsyncCableTv(self.client)
|
|
145
158
|
self.electricity = AsyncElectricity(self.client)
|
|
159
|
+
self.betting = AsyncBetting(self.client)
|
|
160
|
+
self.direct_debits = AsyncDirectDebits(self.client)
|
|
161
|
+
self.global_collections = AsyncGlobalCollections(self.client)
|
|
162
|
+
self.global_payout = AsyncGlobalPayout(self.client)
|
|
146
163
|
|
|
147
164
|
async def close(self) -> None:
|
|
148
165
|
await self.client.close()
|