<?php

namespace App\Modules\Lookup\Config;

use App\Facades\Settings;

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

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

    #[\Override]
    public function apiKey(): string
    {
        return config('lookup.drivers.at-connect.api_key');
    }

    #[\Override]
    public function apiSecret(): string
    {
        return config('lookup.drivers.at-connect.api_secret');
    }
}
