/**
  * @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 \Orm\Zed\Sales\Persistence\SpySalesOrder $order
  * @return \Generated\Shared\Transfer\ZeroPaymentConditionCheckTransfer
  */
 protected function createConditionTransfer(SpySalesOrder $order)
 {
     $conditionCheckTransfer = new ZeroPaymentConditionCheckTransfer();
     $conditionCheckTransfer->setFkSalesOrder($order->getPrimaryKey());
     return $conditionCheckTransfer;
 }