<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
    <group id="simplyin">
        <!-- Sync plugin config from API - runs every 5 minutes until configured -->
        <job name="simplyin_plugin_config_sync" instance="Simplyin\Payment\Cron\SyncPluginConfig" method="execute">
            <schedule>*/5 * * * *</schedule>
        </job>

        <!-- Daily switchInfo sync - runs once per day at 1:00 AM -->
        <job name="simplyin_switch_info_sync" instance="Simplyin\Payment\Cron\SyncSwitchInfo" method="execute">
            <schedule>0 1 * * *</schedule>
        </job>

        <!-- Sync orders to SimplyIN - runs every 2 hours -->
        <job name="simplyin_sync_history_orders" instance="Simplyin\Payment\Cron\SyncOrders" method="execute">
            <schedule>0 */2 * * *</schedule>
        </job>
    </group>
</config>
