fintoc
Advanced tools
| """Module to hold the checkout sessions manager.""" | ||
| from fintoc.mixins import ManagerMixin | ||
| class CheckoutSessionsManager(ManagerMixin): | ||
| """Represents a checkout sessions manager.""" | ||
| resource = "checkout_session" | ||
| methods = ["list", "get", "create", "expire"] | ||
| def _expire(self, identifier, **kwargs): | ||
| """Expire a checkout session.""" | ||
| path = f"{self._build_path(**kwargs)}/{identifier}/expire" | ||
| return self._create(path_=path, **kwargs) |
| # pylint: disable=duplicate-code | ||
| """Module to hold the CheckoutSession resource.""" | ||
| from fintoc.mixins import ResourceMixin | ||
| class CheckoutSession(ResourceMixin): | ||
| """Represents a Fintoc CheckoutSession.""" |
+5
-1
@@ -24,4 +24,5 @@ """ | ||
| from fintoc.managers.v2 import AccountsManager as AccountsManagerV2 | ||
| from fintoc.managers.v2 import AccountVerificationsManager | ||
| from fintoc.managers.v2 import CheckoutSessionsManager as CheckoutSessionsManagerV2 | ||
| from fintoc.managers.v2 import ( | ||
| AccountVerificationsManager, | ||
| CustomersManager, | ||
@@ -86,1 +87,4 @@ EntitiesManager, | ||
| self.simulate = SimulateManager("/v2/simulate", client) | ||
| self.checkout_sessions = CheckoutSessionsManagerV2( | ||
| "/v2/checkout_sessions", client | ||
| ) |
@@ -6,2 +6,3 @@ """Init file for the v2 managers module of the SDK.""" | ||
| from .accounts_manager import AccountsManager | ||
| from .checkout_sessions_manager import CheckoutSessionsManager | ||
| from .customers_manager import CustomersManager | ||
@@ -8,0 +9,0 @@ from .entities_manager import EntitiesManager |
| """Module to hold the version utilities.""" | ||
| version_info = (2, 15, 0) | ||
| version_info = (2, 16, 0) | ||
| __version__ = ".".join([str(x) for x in version_info]) |
+1
-1
| Metadata-Version: 2.3 | ||
| Name: fintoc | ||
| Version: 2.15.0 | ||
| Version: 2.16.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.15.0" | ||
| version = "2.16.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.
77838
1.27%78
2.63%1417
1.43%