Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/Domain/TransactionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TransactionBase
const STATUS_VOIDED = 'Voided';
const STATUS_DECLINED = 'Declined';
const STATUS_REFUND_IN_PROCESSING = 'RefundInProcessing';
const STATUS_SUSPENDED = 'Suspended';

private $statusAllowed = array(
self::STATUS_CREATED,
Expand All @@ -41,6 +42,7 @@ class TransactionBase
self::STATUS_VOIDED,
self::STATUS_DECLINED,
self::STATUS_REFUND_IN_PROCESSING,
self::STATUS_SUSPENDED
);

const MERCHANT_TYPE_SALE = 'SALE';
Expand Down Expand Up @@ -419,4 +421,12 @@ public function isStatusRefundInProcessing()
{
return $this->status == self::STATUS_REFUND_IN_PROCESSING;
}
}

/**
* @return bool
*/
public function isStatusSuspended()
{
return $this->status == self::STATUS_SUSPENDED;
}
}