25 lines
612 B
PHP
25 lines
612 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Payment\Events;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Modules\Core\Payment\DTOs\PaymentResult;
|
|
|
|
/**
|
|
* Dispatched when SupportsVoids::void() fails to release a prior
|
|
* authorization — e.g. the hold already expired or was already captured,
|
|
* so there was nothing left to void.
|
|
*/
|
|
class PaymentVoidFailed
|
|
{
|
|
use Dispatchable;
|
|
|
|
/**
|
|
* @param array<string, mixed> $context
|
|
*/
|
|
public function __construct(
|
|
public readonly string $type,
|
|
public readonly PaymentResult $result,
|
|
public readonly array $context = [],
|
|
) {}
|
|
} |