12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Signifyd\Model\SignifydGateway\Response;
- /**
- * Webhooks are messages sent by SIGNIFYD via HTTP POST to a url you configure on your
- * Notifications page in the SIGNIFYD settings.
- *
- * WebhookMessage messages are sent when certain events occur in the life of an investigation.
- * They allow your application to receive pushed updates about a case, rather than poll SIGNIFYD for status changes.
- *
- * @see https://www.signifyd.com/docs/api/#/reference/webhooks
- */
- class WebhookMessage
- {
- /**
- * Decoded webhook request body.
- *
- * @var array
- */
- private $data;
- /**
- * Event topic identifier.
- *
- * @var string
- */
- private $eventTopic;
- /**
- * @param array $data
- * @param string $eventTopic
- */
- public function __construct(
- array $data,
- $eventTopic
- ) {
- $this->data = $data;
- $this->eventTopic = $eventTopic;
- }
- /**
- * Returns decoded webhook request body.
- *
- * @return array
- */
- public function getData()
- {
- return $this->data;
- }
- /**
- * Returns event topic identifier.
- *
- * @return string
- */
- public function getEventTopic()
- {
- return $this->eventTopic;
- }
- }
|