diff --git a/intaro.retailcrm/classes/general/ApiClient_v5.php b/intaro.retailcrm/classes/general/ApiClient_v5.php index 9f4add4f..7370e8f6 100644 --- a/intaro.retailcrm/classes/general/ApiClient_v5.php +++ b/intaro.retailcrm/classes/general/ApiClient_v5.php @@ -238,7 +238,7 @@ class ApiClient * * @return ApiResponse */ - public function customersСorporateFixExternalIds(array $ids) + public function customersCorporateFixExternalIds(array $ids) { if (! count($ids)) { throw new \InvalidArgumentException( @@ -293,7 +293,7 @@ class ApiClient * * @return ApiResponse */ - public function customersСorporateGet($id, $by = 'externalId', $site = null) + public function customersCorporateGet($id, $by = 'externalId', $site = null) { $this->checkIdParameter($by); @@ -362,7 +362,7 @@ class ApiClient * * @return ApiResponse */ - public function customersСorporateEdit(array $customer, $by = 'externalId', $site = null) + public function customersCorporateEdit(array $customer, $by = 'externalId', $site = null) { if (!count($customer)) { throw new \InvalidArgumentException( @@ -398,7 +398,7 @@ class ApiClient * @return ApiResponse * */ - public function customersСorporateHistory(array $filter = array(), $page = null, $limit = null) + public function customersCorporateHistory(array $filter = array(), $page = null, $limit = null) { $parameters = array(); diff --git a/intaro.retailcrm/classes/general/RCrmActions.php b/intaro.retailcrm/classes/general/RCrmActions.php index 7f29adaf..b1898d53 100644 --- a/intaro.retailcrm/classes/general/RCrmActions.php +++ b/intaro.retailcrm/classes/general/RCrmActions.php @@ -452,10 +452,10 @@ class RCrmActions case 'ordersEdit': case 'customersGet': case 'customersEdit': - case 'customersСorporateGet': + case 'customersCorporateGet': return self::proxy($api, $methodApi, $method, array($params, 'externalId', $site)); - case 'customersСorporateGetById': - return self::proxy($api, 'customersСorporateGet', $method, array($params, 'id', $site)); + case 'customersCorporateGetById': + return self::proxy($api, 'customersCorporateGet', $method, array($params, 'id', $site)); case 'customersGetById': return self::proxy($api, 'customersGet', $method, array($params, 'id', $site)); @@ -492,7 +492,7 @@ class RCrmActions if ($result->getStatusCode() !== 200 && $result->getStatusCode() !== 201) { if ($methodApi == 'ordersGet' || $methodApi == 'customersGet' - || $methodApi == 'customersСorporateGet' + || $methodApi == 'customersCorporateGet' ) { Logger::getInstance()->write(array( 'api' => $version,