<?php
/**
 * Copyright © Simplyin. All rights reserved.
 */
declare(strict_types=1);

namespace Simplyin\Payment;

/**
 * Build-time environment binding — the Magento analogue of the WooCommerce plugin's Simplyin_Env.php.
 *
 * The target Simply.IN backend is fixed HERE, in code, and set per build/branch by the deploy
 * pipeline. It is intentionally NOT an admin setting and NOT in core_config_data, so a merchant
 * cannot point their shop at the wrong (or another tenant's) backend from the admin panel.
 *
 * To switch environment: change {@see self::APP_ENV} (dev|stage|preprod|prod) in this one file.
 */
class Environment
{
    /**
     * Active backend environment. Overwritten per branch by the deploy pipeline.
     */
    public const APP_ENV = 'prod';

    /**
     * Backend API base URL per environment (no trailing slash; includes the /api prefix).
     */
    public const BASE_URLS = [
        'dev' => 'https://dev.backend.simplyin.app/api',
        'stage' => 'https://stage.backend.simplyin.app/api',
        'preprod' => 'https://preprod.backend.simplyin.app/api',
        'prod' => 'https://prod.backend.simply.in/api',
    ];
}
