* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PsAccounts\Http\Client; use PrestaShop\Module\PsAccounts\Vendor\GuzzleHttp\Client; /** * Interface that the guzzle client class implement */ interface ClientInterface { /** * Abtract client constructor * * @param array $options */ public function __construct($options); /** * @return Client */ public function getClient(); /** * @param mixed $response * * @return array */ public function handleResponse($response); /** * Check if the response is successful or not (response code 200 to 299). * * @param array $responseContents * @param int $httpStatusCode * * @return bool */ public function responseIsSuccessful($responseContents, $httpStatusCode); /** * @param mixed $response * * @return mixed */ public function getResponseJson($response); }