<?php

return [
    [
        'id' => 'economic.sync_user_customer_discounts',
        'legacy_name' => 'SyncUserEconomicCustomerDiscounts',
        'name' => 'Sync e-conomic customer discounts',
        'description' => 'Clears cached customer discounts so e-conomic discount data can refresh.',
        'module' => 'economic',
        'handler' => 'SyncUserEconomicCustomerDiscounts',
        'schedule' => ['type' => 'interval', 'seconds' => 180],
        'timeout_seconds' => 300,
        'estimated_duration_ms' => 2000,
        'priority' => 30,
    ],
    [
        'id' => 'economic.sync_user_customer_details',
        'legacy_name' => 'SyncUserEconomicCustomerDetails',
        'name' => 'Sync e-conomic customer details',
        'description' => 'Refreshes customer details and search documents from e-conomic.',
        'module' => 'economic',
        'handler' => 'SyncUserEconomicCustomerDetails',
        'schedule' => ['type' => 'interval', 'seconds' => 43200],
        'timeout_seconds' => 1800,
        'estimated_duration_ms' => 30000,
        'priority' => 110,
    ],
    [
        'id' => 'economic.sync_system_search_customer_index',
        'legacy_name' => 'SyncSystemSearchEconomicCustomerIndex',
        'name' => 'Sync e-conomic customer search index',
        'description' => 'Refreshes the system search e-conomic customer index.',
        'module' => 'economic',
        'handler' => 'SyncSystemSearchEconomicCustomerIndex',
        'schedule' => ['type' => 'interval', 'seconds' => 900],
        'timeout_seconds' => 900,
        'estimated_duration_ms' => 10000,
        'priority' => 75,
    ],
    [
        'id' => 'economic.sync_invoice_status',
        'legacy_name' => 'SyncEconomicInvoiceStatus',
        'name' => 'Sync e-conomic invoice status',
        'description' => 'Checks e-conomic invoice errors and draft status.',
        'module' => 'economic',
        'handler' => 'SyncEconomicInvoiceStatus',
        'schedule' => ['type' => 'interval', 'seconds' => 120],
        'timeout_seconds' => 300,
        'estimated_duration_ms' => 3000,
        'priority' => 35,
    ],
    [
        'id' => 'economic.transfer_queue',
        'legacy_name' => 'EconomicTransferQueueCron',
        'name' => 'Process e-conomic transfer queue',
        'description' => 'Processes pending e-conomic transfer queue jobs in bounded batches.',
        'module' => 'economic',
        'handler' => 'EconomicTransferQueueCron',
        'schedule' => ['type' => 'interval', 'seconds' => 30],
        'timeout_seconds' => 300,
        'estimated_duration_ms' => 3000,
        'priority' => 20,
    ],
];
