fix: pending property for PaymentStatus (#2324)

* fix: pending property for PaymentStatus

* fix: invoice status

* fix: check pending status from the payment details

* refactor: make condition more explicit
This commit is contained in:
Vlad Stan
2024-03-14 14:38:10 +02:00
committed by GitHub
parent 352fd23c0b
commit d44339b018
3 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class PaymentStatus(NamedTuple):
@property
def pending(self) -> bool:
return self.paid is not True
return self.paid is None
@property
def failed(self) -> bool: