/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources
Edit: /home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources/Refund.php (3207B)
isQueued() || $this->isPending();
}
/**
* Is this refund queued?
*
* @return bool
*/
public function isQueued()
{
return $this->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;
}
/**
* Is this refund failed?
*
* @return bool
*/
public function isFailed()
{
return $this->status === RefundStatus::STATUS_FAILED;
}
/**
* Is this refund canceled?
*
* @return bool
*/
public function isCanceled()
{
return $this->status === RefundStatus::STATUS_CANCELED;
}
/**
* 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;
}
}