<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
declare(strict_types=1);

namespace Automattic\WooCommerce\Internal\Admin\Agentic;

/**
 * Agentic Commerce Integration class
 *
 * Registers the Agentic Commerce Protocol as a WooCommerce integration.
 * Manages settings for various AI agent providers (OpenAI, Anthropic, etc.)
 *
 * @since 10.4.0
 */
class AgenticCommerceIntegration extends \WC_Integration {

	/**
	 * Settings page instance.
	 *
	 * @var AgenticSettingsPage
	 */
	private $settings_page;

	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->id                 = 'agentic_commerce';
		$this->method_title       = __( 'Agentic Commerce', 'woocommerce' );
		$this->method_description = __( 'Configure settings to allow AI agents to purchase from your store.', 'woocommerce' );

		// Initialize settings page helper.
		$this->settings_page = new AgenticSettingsPage();

		// Bind to the save action for the settings.
		add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'proces