Features: 1) Add setter method for can_be_used property in payments model;
Fixes: None; Extra: None;
This commit is contained in:
parent
3fe3d571bb
commit
ec8c1039f3
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue