Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

fintoc

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fintoc - npm Package Compare versions

Comparing version
2.17.0
to
2.18.0
+10
fintoc/managers/v2/invoices_manager.py
"""Module to hold the invoices manager."""
from fintoc.mixins import ManagerMixin
class InvoicesManager(ManagerMixin):
"""Represents an invoices manager."""
resource = "invoice"
methods = ["list", "get"]
"""Module to hold the payment methods manager."""
from fintoc.mixins import ManagerMixin
class PaymentMethodsManager(ManagerMixin):
"""Represents a payment methods manager."""
resource = "payment_method"
methods = ["list", "get"]
"""Module to hold the subscriptions manager."""
from fintoc.mixins import ManagerMixin
class SubscriptionsManager(ManagerMixin):
"""Represents a subscriptions manager."""
resource = "subscription"
methods = ["list", "get", "cancel"]
def _cancel(self, identifier, **kwargs):
"""Cancel a subscription."""
path = f"{self._build_path(**kwargs)}/{identifier}/cancel"
return self._create(path_=path, **kwargs)
"""Module to hold the Invoice resource."""
from fintoc.mixins import ResourceMixin
class Invoice(ResourceMixin):
"""Represents a Fintoc Invoice."""
"""Module to hold the PaymentMethod resource."""
from fintoc.mixins import ResourceMixin
class PaymentMethod(ResourceMixin):
"""Represents a Fintoc PaymentMethod."""
"""Module to hold the Subscription resource."""
from fintoc.mixins import ResourceMixin
class Subscription(ResourceMixin):
"""Represents a Fintoc Subscription."""
+7
-1

@@ -27,4 +27,7 @@ """

from fintoc.managers.v2 import CustomersManager, EntitiesManager
from fintoc.managers.v2 import InvoicesManager as InvoicesManagerV2
from fintoc.managers.v2 import PaymentIntentsManager as PaymentIntentsManagerV2
from fintoc.managers.v2 import SimulateManager, TransfersManager
from fintoc.managers.v2 import PaymentMethodsManager, SimulateManager
from fintoc.managers.v2 import SubscriptionsManager as SubscriptionsManagerV2
from fintoc.managers.v2 import TransfersManager
from fintoc.version import __version__

@@ -87,2 +90,5 @@

)
self.invoices = InvoicesManagerV2("/v2/invoices", client)
self.payment_intents = PaymentIntentsManagerV2("/v2/payment_intents", client)
self.payment_methods = PaymentMethodsManager("/v2/payment_methods", client)
self.subscriptions = SubscriptionsManagerV2("/v2/subscriptions", client)

@@ -9,5 +9,8 @@ """Init file for the v2 managers module of the SDK."""

from .entities_manager import EntitiesManager
from .invoices_manager import InvoicesManager
from .movements_manager import MovementsManager
from .payment_intents_manager import PaymentIntentsManager
from .payment_methods_manager import PaymentMethodsManager
from .simulate_manager import SimulateManager
from .subscriptions_manager import SubscriptionsManager
from .transfers_manager import TransfersManager

@@ -31,3 +31,6 @@ """Init file for the resources module of the SDK."""

from .v2.entity import Entity
from .v2.invoice import Invoice as InvoiceV2
from .v2.payment_method import PaymentMethod
from .v2.subscription import Subscription as SubscriptionV2
from .v2.transfer import Transfer
from .webhook_endpoint import WebhookEndpoint

@@ -7,3 +7,6 @@ """Init file for the v2 resources module of the SDK."""

from .entity import Entity
from .invoice import Invoice
from .movement import Movement
from .payment_method import PaymentMethod
from .subscription import Subscription
from .transfer import Transfer
+1
-1
"""Module to hold the version utilities."""
version_info = (2, 17, 0)
version_info = (2, 18, 0)
__version__ = ".".join([str(x) for x in version_info])
Metadata-Version: 2.3
Name: fintoc
Version: 2.17.0
Version: 2.18.0
Summary: The official Python client for the Fintoc API.

@@ -5,0 +5,0 @@ License: BSD-3-Clause

[tool.poetry]
name = "fintoc"
version = "2.17.0"
version = "2.18.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>"]