<?php

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

// Plugin Basic Information
define('SMB2B_VERSION', '1.3.2');
define('SMB2B_DIR', plugin_dir_path(dirname(__FILE__)));
define('SMB2B_URL', plugin_dir_url(dirname(__FILE__)));
define('SMB2B_PLUGIN_BASE', plugin_basename(dirname(__FILE__)));
define('SMB2B_PLUGIN_NAME', 'softminal-b2b-wholesale-for-woocommerce');

// Minimum supported platform versions (FEATURES H7). Enforced with a graceful
// admin notice, never a fatal.
define('SMB2B_MIN_PHP', '8.1');
define('SMB2B_MIN_WP', '6.5');
define('SMB2B_MIN_WC', '8.0');

// Database Tables
define('SMB2B_TABLE_PREFIX', 'smb2b_');

// 1.8.0: owner_id/owner_type on price_rules + quantity_rules — nullable rule
// ownership for the Dokan bridge's later vendor self-service (admin-owned rules
// leave them NULL). Added now so Phase 5 needs no migration.
define('SMB2B_DB_VERSION', '1.8.0');

define('SMB2B_API_VERSION', 'v1');
define('SMB2B_API_NAMESPACE', 'smb2b/' . SMB2B_API_VERSION);

define('SMB2B_DEV_MODE', file_exists(SMB2B_DIR . '.dev'));
