Copied!

WebhookDelivery

WebhookDelivery.php : 16
Read-only
Final

Immutable value object representing a single webhook delivery attempt.

Properties

public $attempt

WebhookDelivery.php : 26
public int $attempt

public $createdAt

WebhookDelivery.php : 32
public DateTimeImmutable $createdAt

public $deliveredAt

WebhookDelivery.php : 33
public DateTimeImmutable|null $deliveredAt = null

public $durationMs

WebhookDelivery.php : 28
public int|null $durationMs

public $error

WebhookDelivery.php : 29
public string|null $error

public $eventType

WebhookDelivery.php : 24
public string $eventType

public $id

WebhookDelivery.php : 22
public string $id

public $isTest

WebhookDelivery.php : 31
public bool $isTest

public $requestPayload

WebhookDelivery.php : 30
public string $requestPayload

public $responseCode

WebhookDelivery.php : 27
public int|null $responseCode

public $status

WebhookDelivery.php : 25
public DeliveryStatus $status

public $webhookId

WebhookDelivery.php : 23
public int $webhookId

Methods

public__construct()

WebhookDelivery.php : 21
public __construct(string $id, int $webhookId, string $eventType, DeliveryStatus $status, int $attempt, int|null $responseCode, int|null $durationMs, string|null $error, string $requestPayload, bool $isTest, DateTimeImmutable $createdAt[, DateTimeImmutable|null $deliveredAt = null ])

Parameters

Name Type Default value Description
$id string - -
$webhookId int - -
$eventType string - -
$status DeliveryStatus - -
$attempt int - -
$responseCode int|null - -
$durationMs int|null - -
$error string|null - -
$requestPayload string -

JSON-encoded delivery envelope, sent verbatim as the HTTP request body

$isTest bool - -
$createdAt DateTimeImmutable - -
$deliveredAt DateTimeImmutable|null null -