/**
  * @param \Generated\Shared\Transfer\ZeroPaymentConditionCheckTransfer $conditionCheckTransfer
  * @return bool
  */
 public function isZeroPaymentSuccess(ZeroPaymentConditionCheckTransfer $conditionCheckTransfer)
 {
     $entity = $this->zeroPaymentReader->findZeroPaymentByFkSalesOrder($conditionCheckTransfer->getFkSalesOrder());
     if ($entity === null) {
         return false;
     }
     return $entity->getIsSuccess();
 }
 /**
  * @param \Generated\Shared\Transfer\ZeroPaymentResultCheckTransfer $zeroPaymentResultCheck
  * @return null|\Orm\Zed\ZeroPayment\Persistence\PavZeroPayment
  */
 protected function findZeroPayment(ZeroPaymentResultCheckTransfer $zeroPaymentResultCheck)
 {
     return $this->zeroPaymentReader->findZeroPaymentByFkSalesOrder($zeroPaymentResultCheck->getFkSalesOrder());
 }