status === RefundStatus::STATUS_QUEUED; } /** * Is this refund pending? * * @return bool */ public function isPending() { return $this->status === RefundStatus::STATUS_PENDING; } /** * Is this refund processing? * * @return bool */ public function isProcessing() { return $this->status === RefundStatus::STATUS_PROCESSING; } /** * Is this refund transferred to consumer? * * @return bool */ public function isTransferred() { return $this->status === RefundStatus::STATUS_REFUNDED; } /** * Cancel the refund. * Returns null if successful. * * @return null * @throws \Mollie\Api\Exceptions\ApiException */ public function cancel() { $this->client->performHttpCallToFullUrl( MollieApiClient::HTTP_DELETE, $this->_links->self->href ); return null; } }