diff --git a/src/Sameday/Requests/SamedayGetLockersRequest.php b/src/Sameday/Requests/SamedayGetLockersRequest.php index 6857640..7882998 100644 --- a/src/Sameday/Requests/SamedayGetLockersRequest.php +++ b/src/Sameday/Requests/SamedayGetLockersRequest.php @@ -34,7 +34,7 @@ public function buildRequest() return new SamedayRequest( true, 'GET', - '/api/locker/lockers', + '/api/client/lockers', count($this->lockerIds) > 0 ? ['lockersList' => implode(',', $this->lockerIds)] : [] ); } diff --git a/src/Sameday/SamedayClient.php b/src/Sameday/SamedayClient.php index 624ee90..9995dd8 100755 --- a/src/Sameday/SamedayClient.php +++ b/src/Sameday/SamedayClient.php @@ -27,7 +27,7 @@ */ class SamedayClient implements SamedayClientInterface { - const VERSION = '1.8.2'; + const VERSION = '2.1.1'; const API_HOST = 'https://api.sameday.ro'; const KEY_TOKEN = 'token'; const KEY_TOKEN_EXPIRES = 'expires_at'; diff --git a/tests/Requests/SamedayGetLockersRequestTest.php b/tests/Requests/SamedayGetLockersRequestTest.php index ee71014..64cf2df 100644 --- a/tests/Requests/SamedayGetLockersRequestTest.php +++ b/tests/Requests/SamedayGetLockersRequestTest.php @@ -34,7 +34,7 @@ public function testBuildRequest() $this->assertInstanceOf('Sameday\Http\SamedayRequest', $samedayRequest); $this->assertTrue($samedayRequest->isNeedAuth()); $this->assertEquals('GET', $samedayRequest->getMethod()); - $this->assertEquals('/api/locker/lockers', $samedayRequest->getEndpoint()); + $this->assertEquals('/api/client/lockers', $samedayRequest->getEndpoint()); $this->assertEmpty($samedayRequest->getQueryParams()); } @@ -46,7 +46,7 @@ public function testBuildRequestWithLockerIds() $this->assertInstanceOf('Sameday\Http\SamedayRequest', $samedayRequest); $this->assertTrue($samedayRequest->isNeedAuth()); $this->assertEquals('GET', $samedayRequest->getMethod()); - $this->assertEquals('/api/locker/lockers', $samedayRequest->getEndpoint()); + $this->assertEquals('/api/client/lockers', $samedayRequest->getEndpoint()); $this->assertEquals(['lockersList' => '1,2'], $samedayRequest->getQueryParams()); } }