<?php

namespace WeeConnectPay\Api\Requests;

use WeeConnectPay\Dependencies\Psr\Http\Message\ResponseInterface;
use WeeConnectPay\Api\ApiClient;
use WeeConnectPay\Api\ApiEndpoints;

/**
 * Reads the backend's authoritative integration-health verdict.
 *
 * Bearer + clover.context resolved server-side from the access token (no uuid in
 * the path). The response carries the contract health shape — see
 * weeconnect-api/docs/integration-health/plugin-health-contract.md §7.
 *
 * @since 4.2.0
 */
class IntegrationStatusRequest extends ApiClient {

	/**
	 * GET request
	 */
	public function GET(): ResponseInterface {
		return $this->client->get( ApiEndpoints::integrationStatus() );
	}
}
