Skip to content

Commit db88588

Browse files
author
Willem Stuursma
committed
Add queued status to Refunds.
1 parent 97e2545 commit db88588

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/Mollie/API/Object/Payment/Refund.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232
class Mollie_API_Object_Payment_Refund
3333
{
3434
/**
35-
* The refund will be send to the bank on the next business day. You can still cancel the refund.
35+
* The refund is queued until there is enough balance to process te refund. You can still cancel the refund.
36+
*/
37+
const STATUS_QUEUED = 'queued';
38+
39+
/**
40+
* The refund will be sent to the bank on the next business day. You can still cancel the refund.
3641
*/
3742
const STATUS_PENDING = 'pending';
3843

@@ -88,6 +93,16 @@ class Mollie_API_Object_Payment_Refund
8893
*/
8994
public $status;
9095

96+
/**
97+
* Is this refund queued?
98+
*
99+
* @return bool
100+
*/
101+
public function isQueued ()
102+
{
103+
return $this->status == self::STATUS_QUEUED;
104+
}
105+
91106
/**
92107
* Is this refund pending?
93108
*

0 commit comments

Comments
 (0)