17 lines
439 B
PHP
17 lines
439 B
PHP
<?php
|
|
|
|
namespace App\Temporal\WebhookDelivery;
|
|
|
|
use Temporal\Activity\ActivityInterface;
|
|
use Temporal\Activity\ActivityMethod;
|
|
|
|
#[ActivityInterface]
|
|
interface WebhookDeliveryActivityInterface
|
|
{
|
|
#[ActivityMethod]
|
|
public function deliverToEndpoint(string $endpoint, array $payload, array $simulationConfig = []): array;
|
|
|
|
#[ActivityMethod]
|
|
public function deadLetter(string $endpoint, array $payload, string $reason): bool;
|
|
}
|