From 8abde3a3a3bf71b6903b83b261d45d54b16242b4 Mon Sep 17 00:00:00 2001 From: Piotr Synowiec Date: Wed, 18 May 2022 16:48:57 +0200 Subject: [PATCH] dead-code: update (#12) --- src/Message/RefundsRequest.php | 2 +- src/Message/RefundsResponse.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Message/RefundsRequest.php b/src/Message/RefundsRequest.php index a9921ce..3bce2e7 100644 --- a/src/Message/RefundsRequest.php +++ b/src/Message/RefundsRequest.php @@ -73,7 +73,7 @@ public function sendData($data): ResponseInterface $responseData = json_decode($httpResponse->getBody()->getContents(), true); - return $this->response = new RefundsResponse($this, $responseData, $this->getEndpoint()); + return $this->response = new RefundsResponse($this, $responseData); } /** diff --git a/src/Message/RefundsResponse.php b/src/Message/RefundsResponse.php index 90da4b2..5ca8a52 100644 --- a/src/Message/RefundsResponse.php +++ b/src/Message/RefundsResponse.php @@ -12,9 +12,9 @@ class RefundsResponse extends AbstractResponse private $responseCode; - public function __construct(RequestInterface $request, $data, $endpoint) + public function __construct(RequestInterface $request, $data) { - parent::__construct($request, $data, $endpoint); + parent::__construct($request, $data); $this->refunds = $data['data'] ?? null; if (isset($data['responseCode'])) { $this->responseCode = (int) $data['responseCode'];