diff --git a/src/Result/Invoice.php b/src/Result/Invoice.php index 62d0e87..bf24230 100644 --- a/src/Result/Invoice.php +++ b/src/Result/Invoice.php @@ -71,12 +71,6 @@ public function isArchived(): bool return $this->getData()['archived']; } - public function isPaid(): bool - { - $data = $this->getData(); - return $data['status'] === self::STATUS_SETTLED || $data['additionalStatus'] === self::ADDITIONAL_STATUS_PAID_PARTIAL; - } - public function isNew(): bool { $data = $this->getData(); @@ -86,7 +80,7 @@ public function isNew(): bool public function isSettled(): bool { $data = $this->getData(); - return $data['status'] === self::STATUS_SETTLED; + return $data['status'] === self::STATUS_SETTLED || $data['additionalStatus'] === self::ADDITIONAL_STATUS_PAID_LATE; } public function getStatus(): string