24 lines
586 B
PHP
24 lines
586 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Payment\Events;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Modules\Core\Payment\DTOs\PaymentResult;
|
|
|
|
/**
|
|
* Dispatched when SupportsRefunds::refund() fails to return settled funds
|
|
* — e.g. the gateway rejects refunding more than was originally captured.
|
|
*/
|
|
class PaymentRefundFailed
|
|
{
|
|
use Dispatchable;
|
|
|
|
/**
|
|
* @param array<string, mixed> $context
|
|
*/
|
|
public function __construct(
|
|
public readonly string $type,
|
|
public readonly PaymentResult $result,
|
|
public readonly array $context = [],
|
|
) {}
|
|
} |