/**
  * Fetch collection from Braintree
  * @return \Braintree\ResourceCollection|null
  */
 protected function fetchIdsCollection()
 {
     if (empty($this->filtersList)) {
         return null;
     }
     // Fetch all transaction IDs in order to filter
     if (empty($this->collection)) {
         $filters = $this->getFilters();
         $this->collection = $this->braintreeAdapter->search($filters);
     }
     return $this->collection;
 }
 /**
  * @param OrderPaymentInterface $payment
  * @return boolean
  */
 private function isExpiredAuthorization(OrderPaymentInterface $payment)
 {
     $collection = $this->braintreeAdapter->search([$this->braintreeSearchAdapter->id()->is($payment->getLastTransId()), $this->braintreeSearchAdapter->status()->is(Transaction::AUTHORIZATION_EXPIRED)]);
     return $collection->maximumCount() > 0;
 }