$this->refund =
$refund;
} public function getOrderTransaction(): OrderTransactionEntity
{ if ($this->refund->
getTransactionCapture() &&
$this->refund->
getTransactionCapture()->
getTransaction()) { return $this->refund->
getTransactionCapture()->
getTransaction();
} throw PaymentException::
refundInterrupted($this->refund->
getId(), 'No transaction found for refund.'
);
} public function getRefund(): OrderTransactionCaptureRefundEntity
{ return $this->refund;
} public function getOrder(): OrderEntity
{ return $this->order;
}