<?php

namespace App\Modules\Lookup\Config;

use App\Facades\Settings;

class AutoTraderConfig extends \Mtc\VehicleValuation\Config\AutoTraderConfig
{
    #[\Override]
    public function enabled(): bool
    {
        return Settings::get('valuation-auto-trader-enabled') ?? false;
    }

    #[\Override]
    public function apiKey(): string
    {
        return config('services.auto-trader.api_key');
    }

    #[\Override]
    public function apiSecret(): string
    {
        return config('services.auto-trader.api_secret');
    }

    #[\Override]
    public function merchantId(): string
    {
        return Settings::get('auto-trader-advertiser-id') ?? '';
    }

    #[\Override]
    public function live(): bool
    {
        return config('services.auto-trader.use_live_api');
    }
}
