<?php

return [
    'provider' => env('EINVOICE_PROVIDER'),
    'environment' => env('EINVOICE_ENVIRONMENT', 'sandbox'),
    'production_enabled' => (bool) env('EINVOICE_PRODUCTION_ENABLED', false),
    'timeout_seconds' => 30,
    'retry' => ['max_attempts' => 5, 'backoff_seconds' => [60, 300, 900, 3600]],

    // Current official UAE implementation values. Keep configurable and revalidate before go-live.
    'implementation' => [
        'pilot_start' => env('EINVOICE_PILOT_START', '2026-07-01'),
        'large_business_revenue_threshold_aed' => env('EINVOICE_LARGE_REVENUE_THRESHOLD', '50000000.00'),
        'large_business_provider_deadline' => env('EINVOICE_LARGE_PROVIDER_DEADLINE', '2026-07-31'),
        'large_business_mandatory_from' => env('EINVOICE_LARGE_MANDATORY_FROM', '2027-01-01'),
        'other_business_provider_deadline' => env('EINVOICE_OTHER_PROVIDER_DEADLINE', '2027-03-31'),
        'other_business_mandatory_from' => env('EINVOICE_OTHER_MANDATORY_FROM', '2027-07-01'),
        'government_mandatory_from' => env('EINVOICE_GOVERNMENT_MANDATORY_FROM', '2027-10-01'),
    ],
];
