uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Unnecessary pass statement PYL-W0107
Style
Minor
a year agoa year old
 35    @abc.abstractmethod
 36    def __init__(self):
 37        """This method will be called from settings.py when checking to see if the payment processor is allowed. You should implement this to capture the necessary credentials from the environment variables and store them in the class instance."""
 38        pass 39
 40    @abc.abstractmethod
 41    def customer_connected(self, customer) -> bool:
 40    @abc.abstractmethod
 41    def customer_connected(self, customer) -> bool:
 42        """This method will be called in order to gate calls to create_payment_object."""
 43        pass 44
 45    @abc.abstractmethod
 46    def organization_connected(self, organization) -> bool:
 45    @abc.abstractmethod
 46    def organization_connected(self, organization) -> bool:
 47        """This method will be called in order to gate calls to create_payment_object. If the organization is not connected, then won't generate a payment object for the organization."""
 48        pass 49
 50    @abc.abstractmethod
 51    def working(self) -> bool:
 50    @abc.abstractmethod
 51    def working(self) -> bool:
 52        """In order to prevent errors on object creation, this method will be called to decide whether this payment processor is connected to this instance of Lotus."""
 53        pass 54
 55    @abc.abstractmethod
 56    def update_payment_object_status(
 57        self, payment_object_id: str
 58    ) -> Union[INVOICE_STATUS.PAID, INVOICE_STATUS.UNPAID]:
 59        """This method will be called periodically when the status of a payment object needs to be updated. It should return the status of the payment object, which should be either paid or unpaid."""
 60        pass 61
 62    ## IMPORT METHODS
 63    @abc.abstractmethod