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'];