nomba-python 0.2.0__py3-none-any.whl → 0.3.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/client.py +10 -0
- nomba/data/nomba_openapi.json +542 -46
- nomba/http.py +110 -10
- nomba/models.py +44 -4
- nomba/resources/accounts.py +28 -156
- nomba/resources/airtime_data.py +24 -12
- nomba/resources/direct_debits.py +42 -110
- nomba/resources/global_payout.py +78 -18
- nomba/resources/terminals.py +54 -14
- nomba/resources/virtual_accounts.py +10 -10
- {nomba_python-0.2.0.dist-info → nomba_python-0.3.0.dist-info}/METADATA +3 -3
- {nomba_python-0.2.0.dist-info → nomba_python-0.3.0.dist-info}/RECORD +14 -14
- {nomba_python-0.2.0.dist-info → nomba_python-0.3.0.dist-info}/WHEEL +1 -1
- {nomba_python-0.2.0.dist-info → nomba_python-0.3.0.dist-info}/licenses/LICENSE +0 -0
nomba/client.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
3
5
|
from .http import AsyncNombaClient, NombaClient
|
|
4
6
|
from .resources import (
|
|
5
7
|
Accounts,
|
|
@@ -94,6 +96,10 @@ class Nomba:
|
|
|
94
96
|
def close(self) -> None:
|
|
95
97
|
self.client.close()
|
|
96
98
|
|
|
99
|
+
def revoke_token(self) -> dict[str, Any]:
|
|
100
|
+
"""Revoke the active access token. See ``NombaClient.revoke_token``."""
|
|
101
|
+
return self.client.revoke_token()
|
|
102
|
+
|
|
97
103
|
def card_payment(self, order_reference: str) -> "CardPaymentFlow":
|
|
98
104
|
"""Start a guided card-payment flow for an existing checkout order.
|
|
99
105
|
See `nomba.flows.CardPaymentFlow` for the full step-by-step API."""
|
|
@@ -164,6 +170,10 @@ class AsyncNomba:
|
|
|
164
170
|
async def close(self) -> None:
|
|
165
171
|
await self.client.close()
|
|
166
172
|
|
|
173
|
+
async def revoke_token(self) -> dict[str, Any]:
|
|
174
|
+
"""Revoke the active access token. See ``AsyncNombaClient.revoke_token``."""
|
|
175
|
+
return await self.client.revoke_token()
|
|
176
|
+
|
|
167
177
|
def card_payment(self, order_reference: str) -> "AsyncCardPaymentFlow":
|
|
168
178
|
"""Start a guided async card-payment flow for an existing checkout
|
|
169
179
|
order. See `nomba.flows.AsyncCardPaymentFlow` for the full API."""
|