CreateWebhookEndpoint
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $endpointUrl : string
- The HTTPS URL where webhooks will be sent.
- $events : array<string|int, CreateWebhookEndpointEvents>
- The events that the Webhook Endpoint is subscribed to.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$endpointUrl
The HTTPS URL where webhooks will be sent.
public
string
$endpointUrl
$events
The events that the Webhook Endpoint is subscribed to.
public
array<string|int, CreateWebhookEndpointEvents>
$events
Methods
__construct()
public
__construct(string $endpointUrl, array<string|int, mixed> $events) : mixed
Parameters
- $endpointUrl : string
- $events : array<string|int, mixed>
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>