Init
This commit is contained in:
37
app/Temporal/OrderFulfillment/OrderActivityInterface.php
Normal file
37
app/Temporal/OrderFulfillment/OrderActivityInterface.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Temporal\OrderFulfillment;
|
||||
|
||||
use Temporal\Activity\ActivityInterface;
|
||||
use Temporal\Activity\ActivityMethod;
|
||||
|
||||
#[ActivityInterface]
|
||||
interface OrderActivityInterface
|
||||
{
|
||||
#[ActivityMethod]
|
||||
public function validateOrder(int $orderId, array $simulationConfig = []): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function checkInventory(int $orderId, array $simulationConfig = []): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function processPayment(int $orderId, array $simulationConfig = []): string;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function refundPayment(int $orderId, string $paymentId): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function updateInventory(int $orderId, array $simulationConfig = []): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function restoreInventory(int $orderId): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function notifyWarehouse(int $orderId, array $simulationConfig = []): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function cancelWarehouseNotification(int $orderId): bool;
|
||||
|
||||
#[ActivityMethod]
|
||||
public function sendTrackingInfo(int $orderId, string $trackingNumber, array $simulationConfig = []): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user