18 lines
478 B
PHP
18 lines
478 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Order\Enums;
|
|
|
|
/**
|
|
* Same states/logic as Lunar's own ManageOrder::paymentStatus(), which
|
|
* only exists as a Filament-page Livewire #[Computed] method — this is
|
|
* that same derivation, reusable from anywhere via Order::paymentStatus().
|
|
*/
|
|
enum PaymentStatus: string
|
|
{
|
|
case Offline = 'offline';
|
|
case Uncaptured = 'uncaptured';
|
|
case Captured = 'captured';
|
|
case PartialRefund = 'partial-refund';
|
|
case Refunded = 'refunded';
|
|
}
|