<?php

namespace App\Modules\Valuation\Config;

use App\Facades\Settings;
use Mtc\VehicleValuation\Config\AutoTraderConfig;

class AutoTrader extends 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 vatPriceField(): string
    {
        return Settings::get('valuation-auto-trader-vat-price-field')
            ?? parent::vatPriceField();
    }
}
