1
0
mirror of synced 2024-11-21 21:06:09 +03:00

fix order upload error during installation (#125)

This commit is contained in:
Pavel 2020-08-26 11:21:56 +03:00 committed by GitHub
parent 346a0ea5fe
commit ecb845546d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 45 deletions

View File

@ -1,3 +1,6 @@
## 2020-08-26 v.5.4.4
* Исправлена ошибка при установке модуля
## 2020-08-25 v.5.4.3
* Исправлена ошибка с некорректным ID товара при редактировании заказа
* Исправлены опечатки в API-клиенте retailCRM

View File

@ -349,45 +349,6 @@ class ApiClient
);
}
/**
* Edit a customer corporate
*
* @param array $customer customer data
* @param string $by (default: 'externalId')
* @param string $site (default: null)
*
* @throws \InvalidArgumentException
* @throws \RetailCrm\Exception\CurlException
* @throws \RetailCrm\Exception\InvalidJsonException
*
* @return ApiResponse
*/
public function customersCorporateEdit(array $customer, $by = 'externalId', $site = null)
{
if (!count($customer)) {
throw new \InvalidArgumentException(
'Parameter `customer` must contains a data'
);
}
$this->checkIdParameter($by);
if (!array_key_exists($by, $customer)) {
throw new \InvalidArgumentException(
sprintf('Customer array must contain the "%s" parameter.', $by)
);
}
return $this->client->makeRequest(
sprintf('/customers-corporate/%s/edit', $customer[$by]),
Client::METHOD_POST,
$this->fillSite(
$site,
array('customerCorporate' => json_encode($customer), 'by' => $by)
)
);
}
/*
* Get customers corporate history
*

View File

@ -1,3 +1 @@
- Исправлена ошибка с некорректным ID товара при редактировании заказа
- Исправлены опечатки в API-клиенте retailCRM
- Добавлена фильтрация изменений истории по текущему API-ключу
- Исправлена ошибка при установке модуля

View File

@ -38,6 +38,6 @@ CModule::AddAutoloadClasses(
'AddressBuilder' => 'classes/general/AddressBuilder.php',
'AbstractBuilder' => 'classes/general/AbstractBuilder.php',
'BaseModel' => 'classes/general/Model/BaseModel.php',
'RetailCrmService' => 'classes/general/services/RetailCrmService.php',
'RetailCrmService' => 'classes/general/services/RetailCrmService.php'
)
);

View File

@ -141,6 +141,7 @@ class intaro_retailcrm extends CModule
include($this->INSTALL_PATH . '/../classes/general/Exception/CurlException.php');
include($this->INSTALL_PATH . '/../classes/general/RestNormalizer.php');
include($this->INSTALL_PATH . '/../classes/general/Logger.php');
include($this->INSTALL_PATH . '/../classes/general/services/RetailCrmService.php');
$version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0);
if ($version == 'v4') {

View File

@ -1,5 +1,5 @@
<?
$arModuleVersion = array(
"VERSION" => "5.4.3",
"VERSION_DATE" => "2020-08-25 11:20:00"
"VERSION" => "5.4.4",
"VERSION_DATE" => "2020-08-26 10:50:00"
);