fintoc
Advanced tools
| """Module to hold the refunds manager.""" | ||
| from fintoc.mixins import ManagerMixin | ||
| class RefundsManager(ManagerMixin): | ||
| """Represents a refunds manager.""" | ||
| resource = "refund" | ||
| methods = ["list", "get", "create", "cancel"] | ||
| def _cancel(self, identifier, **kwargs): | ||
| """Expire a refund.""" | ||
| path = f"{self._build_path(**kwargs)}/{identifier}/cancel" | ||
| return self._create(path_=path, **kwargs) |
| """Module to hold the Refund resource.""" | ||
| from fintoc.mixins import ResourceMixin | ||
| class Refund(ResourceMixin): | ||
| """Represents a Fintoc Refund.""" |
+2
-0
@@ -15,2 +15,3 @@ """ | ||
| RefreshIntentsManager, | ||
| RefundsManager, | ||
| SubscriptionIntentsManager, | ||
@@ -53,2 +54,3 @@ SubscriptionsManager, | ||
| ) | ||
| self.refunds = RefundsManager("/v1/refunds", self._client) | ||
| self.subscriptions = SubscriptionsManager("/v1/subscriptions", self._client) | ||
@@ -55,0 +57,0 @@ self.subscription_intents = SubscriptionIntentsManager( |
@@ -11,2 +11,3 @@ """Init file for the managers module of the SDK.""" | ||
| from .refresh_intents_manager import RefreshIntentsManager | ||
| from .refunds_manager import RefundsManager | ||
| from .subscription_intents_manager import SubscriptionIntentsManager | ||
@@ -13,0 +14,0 @@ from .subscriptions_manager import SubscriptionsManager |
| """Module to hold the version utilities.""" | ||
| version_info = (2, 11, 0) | ||
| version_info = (2, 12, 0) | ||
| __version__ = ".".join([str(x) for x in version_info]) |
+1
-1
| Metadata-Version: 2.3 | ||
| Name: fintoc | ||
| Version: 2.11.0 | ||
| Version: 2.12.0 | ||
| Summary: The official Python client for the Fintoc API. | ||
@@ -5,0 +5,0 @@ License: BSD-3-Clause |
+1
-1
| [tool.poetry] | ||
| name = "fintoc" | ||
| version = "2.11.0" | ||
| version = "2.12.0" | ||
| description = "The official Python client for the Fintoc API." | ||
@@ -5,0 +5,0 @@ authors = ["Daniel Leal <daniel@fintoc.com>", "Nebil Kawas <nebil@uc.cl>"] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
74901
0.96%72
2.86%1353
1.27%