Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
WebhookMessage Class Reference

Public Member Functions

 __construct (array $data, $eventTopic)
 
 getData ()
 
 getEventTopic ()
 

Detailed Description

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 also
https://www.signifyd.com/docs/api/#/reference/webhooks

Definition at line 17 of file WebhookMessage.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $data,
  $eventTopic 
)
Parameters
array$data
string$eventTopic

Definition at line 37 of file WebhookMessage.php.

40  {
41  $this->data = $data;
42  $this->eventTopic = $eventTopic;
43  }

Member Function Documentation

◆ getData()

getData ( )

Returns decoded webhook request body.

Returns
array

Definition at line 50 of file WebhookMessage.php.

51  {
52  return $this->data;
53  }

◆ getEventTopic()

getEventTopic ( )

Returns event topic identifier.

Returns
string

Definition at line 60 of file WebhookMessage.php.

61  {
62  return $this->eventTopic;
63  }

The documentation for this class was generated from the following file: