isQueued() || $this->isPending(); } /** * Is this refund queued? * * @return bool */ public function isQueued() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_QUEUED; } /** * Is this refund pending? * * @return bool */ public function isPending() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_PENDING; } /** * Is this refund processing? * * @return bool */ public function isProcessing() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_PROCESSING; } /** * Is this refund transferred to consumer? * * @return bool */ public function isTransferred() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_REFUNDED; } /** * Is this refund failed? * * @return bool */ public function isFailed() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_FAILED; } /** * Is this refund canceled? * * @return bool */ public function isCanceled() { return $this->status === \Mollie\Api\Types\RefundStatus::STATUS_CANCELED; } /** * Cancel the refund. * Returns null if successful. * * @return null * @throws \Mollie\Api\Exceptions\ApiException */ public function cancel() { return $this->client->paymentRefunds->cancelForId($this->paymentId, $this->id, $this->getPresetOptions()); } }