Features: 1) Add setter method for can_be_used property in payments model;

Fixes: None;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-10-22 11:23:45 +03:00
parent 3fe3d571bb
commit ec8c1039f3

View file

@ -157,6 +157,10 @@ class Gateway(NiceModel):
return daily_ok and monthly_ok
@can_be_used.setter
def can_be_used(self, value: bool):
self.__dict__["can_be_used"] = value
def get_integration_class_object(self, raise_exc: bool = True) -> Type[AbstractGateway] | None:
if not self.integration_path:
if raise_exc: