<?php

namespace Database\Seeders;

use App\Enums\PaymentMethodType;
use App\Models\PaymentMethod;
use Illuminate\Database\Seeder;

class PaymentMethodSeeder extends Seeder
{
    public function run(): void
    {
        PaymentMethod::create([
            'name' => 'Bank Wire Transfer',
            'type' => PaymentMethodType::BankTransfer,
            'instructions' => 'Transfer funds to the following bank account. Include your account reference in the transfer description.',
            'details' => [
                'bank_name' => 'National Bank',
                'account_number' => '0012345678',
                'routing_number' => '021000021',
                'swift' => 'SVLDUS33',
            ],
            'is_active' => true,
        ]);

        PaymentMethod::create([
            'name' => 'Bitcoin (BTC)',
            'type' => PaymentMethodType::Crypto,
            'instructions' => 'Send Bitcoin to the wallet address below. Allow 3 network confirmations for processing.',
            'details' => [
                'wallet_address' => 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh',
                'network' => 'Bitcoin Mainnet',
            ],
            'is_active' => true,
        ]);

        PaymentMethod::create([
            'name' => 'Mobile Money (M-Pesa)',
            'type' => PaymentMethodType::MobileMoney,
            'instructions' => 'Send via M-Pesa to the business number below. Use your account reference as the description.',
            'details' => [
                'business_number' => '247247',
                'account_name' => 'Online Banking',
            ],
            'is_active' => true,
        ]);
    }
}
