<?php

namespace App\Services\Providers;

use App\Models\Transaction;
use App\Services\Providers\Contracts\ProviderInterface;

class VtboxProvider extends MsorgProvider implements ProviderInterface
{
    protected function defaultBaseUrl(): ?string
    {
        return rtrim((string) ($this->vendor->base_url ?? ''), '/');
    }

    public function getPlans(?Transaction $transaction = null): array
    {
        return [
            'success' => false,
            'body' => ['message' => 'VTBox plan sync endpoint is vendor-script specific. Use internal plans and vendor mapping codes.'],
            'http_code' => null,
            'duration_ms' => null,
        ];
    }
}
