<?php

declare(strict_types=1);

namespace App\Http\Requests\Wallet;

class UpdateBankCardRequest extends StoreBankCardRequest
{
    public function rules(): array
    {
        return [
            'bank_name' => ['sometimes', 'nullable', 'string', 'max:100'],
            'card_number' => ['sometimes', 'nullable', 'string', 'regex:/^\d{16}$/'],
            'shaba' => ['sometimes', 'string', 'regex:/^IR\d{24}$/'],
            'account_holder_name' => ['sometimes', 'string', 'max:120'],
            'is_default' => ['sometimes', 'boolean'],
            'status' => ['sometimes', 'in:active,inactive'],
        ];
    }
}
