Skip to content

Commit

Permalink
transactions: create pending_review status const
Browse files Browse the repository at this point in the history
There's a new status `pending_review` on Pagar.me's API. This PR aims to
create a new const and a method `isPendingReview` on `AbstractTransaction` public interface
  • Loading branch information
leonampd committed Aug 13, 2018
1 parent bbeb873 commit 51e411b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Transaction/AbstractTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ abstract class AbstractTransaction
const WAITING_PAYMENT = 'waiting_payment';
const PENDING_REFUND = 'pending_refund';
const REFUSED = 'refused';
const PENDING_REVIEW = 'pending_review';

/**
* @var int
Expand Down Expand Up @@ -483,6 +484,14 @@ public function isRefused()
return $this->status == self::REFUSED;
}

/**
* @return boolean
*/
public function isPendingReview()
{
return $this->status == self::PENDING_REVIEW;
}

/**
* @return \PagarMe\Sdk\SplitRule\SplitRuleCollection
* @codeCoverageIgnore
Expand Down

0 comments on commit 51e411b

Please sign in to comment.