123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Signifyd\Api\Data;
- use Magento\Signifyd\Model\SignifydGateway\Gateway;
- /**
- * Signifyd Case entity interface
- *
- * @api
- * @see https://www.signifyd.com/docs/api/#/reference/cases/retrieve-a-case/get-a-case
- * @since 100.2.0
- */
- interface CaseInterface
- {
- /**#@+
- * Constants for case available statuses
- */
- const STATUS_OPEN = Gateway::STATUS_OPEN;
- const STATUS_PENDING = 'PENDING';
- const STATUS_PROCESSING = Gateway::STATUS_PROCESSING;
- const STATUS_FLAGGED = Gateway::STATUS_FLAGGED;
- const STATUS_DISMISSED = Gateway::STATUS_DISMISSED;
- /**#@-*/
- /**#@+
- * Constants for guarantee available statuses
- */
- const GUARANTEE_APPROVED = Gateway::GUARANTEE_APPROVED;
- const GUARANTEE_DECLINED = Gateway::GUARANTEE_DECLINED;
- const GUARANTEE_PENDING = Gateway::GUARANTEE_PENDING;
- const GUARANTEE_CANCELED = Gateway::GUARANTEE_CANCELED;
- const GUARANTEE_IN_REVIEW = Gateway::GUARANTEE_IN_REVIEW;
- const GUARANTEE_UNREQUESTED = Gateway::GUARANTEE_UNREQUESTED;
- /**#@-*/
- /**#@+
- * Constants for case available review dispositions
- */
- const DISPOSITION_GOOD = Gateway::DISPOSITION_GOOD;
- const DISPOSITION_FRAUDULENT = Gateway::DISPOSITION_FRAUDULENT;
- const DISPOSITION_UNSET = Gateway::DISPOSITION_UNSET;
- /**#@-*/
- /**
- * Returns local case entity identifier.
- *
- * @return int
- * @since 100.2.0
- */
- public function getEntityId();
- /**
- * Sets local case entity id.
- *
- * @param int $id
- * @return $this
- * @since 100.2.0
- */
- public function setEntityId($id);
- /**
- * Returns Signifyd case identifier.
- *
- * @return int
- * @since 100.2.0
- */
- public function getCaseId();
- /**
- * Sets Signifyd case id.
- *
- * @param int $id
- * @return $this
- * @since 100.2.0
- */
- public function setCaseId($id);
- /**
- * Returns value, which indicates if a guarantee can be requested for a case.
- * Returns null if state of guarantee eligible does not set yet.
- *
- * @return boolean|null
- * @since 100.2.0
- */
- public function isGuaranteeEligible();
- /**
- * Sets value-indicator about guarantee availability for a case.
- *
- * @param bool $guaranteeEligible
- * @return $this
- * @since 100.2.0
- */
- public function setGuaranteeEligible($guaranteeEligible);
- /**
- * Returns decision state of the guarantee.
- *
- * @return string
- * @since 100.2.0
- */
- public function getGuaranteeDisposition();
- /**
- * Sets decision state of the guarantee.
- *
- * @param string $disposition
- * @return $this
- * @since 100.2.0
- */
- public function setGuaranteeDisposition($disposition);
- /**
- * Returns case status.
- *
- * @return string
- * @since 100.2.0
- */
- public function getStatus();
- /**
- * Sets case status.
- *
- * @param string $status
- * @return $this
- * @since 100.2.0
- */
- public function setStatus($status);
- /**
- * Returns value, which indicates the likelihood that the order is fraud.
- *
- * @return int
- * @since 100.2.0
- */
- public function getScore();
- /**
- * Sets risk level value.
- *
- * @param int $score
- * @return $this
- * @since 100.2.0
- */
- public function setScore($score);
- /**
- * Get order id for a case.
- *
- * @return int
- * @since 100.2.0
- */
- public function getOrderId();
- /**
- * Sets order id for a case.
- *
- * @param int $orderId
- * @return $this
- * @since 100.2.0
- */
- public function setOrderId($orderId);
- /**
- * Returns data about a team associated with a case.
- *
- * @return array
- * @since 100.2.0
- */
- public function getAssociatedTeam();
- /**
- * Sets team data associated with a case.
- *
- * @param array $team
- * @return $this
- * @since 100.2.0
- */
- public function setAssociatedTeam(array $team);
- /**
- * Returns disposition of an agent's opinion after reviewing the case.
- *
- * @return string
- * @since 100.2.0
- */
- public function getReviewDisposition();
- /**
- * Sets case disposition.
- *
- * @param string $disposition
- * @return $this
- * @since 100.2.0
- */
- public function setReviewDisposition($disposition);
- /**
- * Returns creation datetime for a case.
- *
- * @return string
- * @since 100.2.0
- */
- public function getCreatedAt();
- /**
- * Sets creation datetime for a case.
- *
- * @param string $datetime in DATE_ATOM format
- * @return $this
- * @since 100.2.0
- */
- public function setCreatedAt($datetime);
- /**
- * Returns updating datetime for a case.
- *
- * @return string
- * @since 100.2.0
- */
- public function getUpdatedAt();
- /**
- * Sets updating datetime for a case.
- *
- * @param string $datetime in DATE_ATOM format
- * @return $this
- * @since 100.2.0
- */
- public function setUpdatedAt($datetime);
- }
|