<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( class_exists( 'AIEO_DMM_Marketplace_Order_Importer' ) ) {
    return;
}

class AIEO_DMM_Marketplace_Order_Importer extends AIEO_DMM_Module_Base {

    public function get_id()       { return 'marketplace_order_importer'; }
    public function get_label()    { return __( 'Marketplace Order Importer', 'ai-eshop-optimizer' ); }
    public function get_priority() { return 60; }
    public function get_group()    { return 'catalog_sync'; }

    public function is_pro_locked() { return true; }

    public function get_pro_promo() {
        return array(
            'title'       => __( 'Marketplace Order Importer', 'ai-eshop-optimizer' ),
            'description' => __( 'Pulls Skroutz, e-shop, Amazon, and other marketplace orders into WooCommerce as native orders so attribution, stock, customer profiles, and fulfillment all stay unified in one place — no spreadsheet reconciliation at month end.', 'ai-eshop-optimizer' ),
            'bullets'     => array(
                __( 'Marketplace orders become real WooCommerce orders — visible to every other tool.', 'ai-eshop-optimizer' ),
                __( 'Inbound log + retry semantics so a dropped webhook never loses an order.', 'ai-eshop-optimizer' ),
                __( 'SKU mapping handles marketplace SKU formats that do not match your internal codes.', 'ai-eshop-optimizer' ),
            ),
        );
    }

    public function render_subtab() {
        AIEO_MOI_Admin::instance()->render_subtab();
    }
}
