Component evidence

EU Withdrawal Status Enum (Enums/WithdrawalStatus.php)

bagisto · packages/Webkul/EUWithdrawal/src/Enums/WithdrawalStatus.php · php · MIT
paymentsautomationlang:phptag:enums

Defines the lifecycle states for EU withdrawal requests, including received, refunded, and declined statuses. Use this to manage and validate withdrawal request states in e-commerce workflows.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/bagisto/bagisto | License: MIT | Copyright 2010-2025, Webkul Software
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Webkul\EUWithdrawal\Enums;

class WithdrawalStatus
{
    /**
     * Initial state — declaration recorded, awaiting admin action.
     */
    public const RECEIVED = 'received';

    /**
     * Terminal — refund has been issued (recorded by admin).
     */
    public const REFUNDED = 'refunded';

    /**
     * Terminal — merchant contests entitlement (recorded by admin with reason).
     */
    public const DECLINED = 'declined';

    /**
     * Return every valid status as a flat array.
     */
    public static function all(): array
    {
        return [self::RECEIVED, self::REFUNDED, self::DECLINED];
    }


... (truncated -- full source via MCP)