nomba-python 0.2.1__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 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."""