/**
  * @param $activityId
  * @return mixed
  */
 public function getTransactionData($activityId)
 {
     return $this->transaction->where('activity_id', $activityId)->get();
 }
 /**
  * update transaction details
  * @param array $transactionDetails
  * @param       $transactionId
  */
 public function update(array $transactionDetails, $transactionId)
 {
     $transaction = $this->transactionRepo->getTransaction($transactionId);
     $transaction->transaction = $transactionDetails;
     $transaction->save();
 }