From 21c0a3eac5dc22156e836b9e807be4cc72fe1fcb Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Wed, 25 Sep 2024 16:33:21 +0300 Subject: [PATCH] fix path --- lib/RetailCrm/Methods/V5/Customers.php | 2 +- .../RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/RetailCrm/Methods/V5/Customers.php b/lib/RetailCrm/Methods/V5/Customers.php index 9489ceb..e4fb992 100644 --- a/lib/RetailCrm/Methods/V5/Customers.php +++ b/lib/RetailCrm/Methods/V5/Customers.php @@ -174,7 +174,7 @@ trait Customers /* @noinspection PhpUndefinedMethodInspection */ return $this->client->makeRequest( - sprintf('/customer/%s/subscriptions', $customerId), + sprintf('/customers/%s/subscriptions', $customerId), 'POST', $this->fillSite( $site, diff --git a/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php b/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php index 89bbee0..2cb2e20 100644 --- a/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php +++ b/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php @@ -11,7 +11,6 @@ namespace RetailCrm\Tests\Methods\Version5; -use RetailCrm\Http\Client; use RetailCrm\Response\ApiResponse; use RetailCrm\Test\TestCase;