From 496ba469cc282dffae18daaa6aca0c26299e8a35 Mon Sep 17 00:00:00 2001 From: Mesilov Maxim Date: Tue, 31 Oct 2017 00:24:22 +0300 Subject: [PATCH] issue#86 add support method crm.product.property.delete --- src/classes/crm/product/property.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/classes/crm/product/property.php b/src/classes/crm/product/property.php index 01262022..ea939457 100644 --- a/src/classes/crm/product/property.php +++ b/src/classes/crm/product/property.php @@ -32,6 +32,26 @@ public function get($productPropertyId) return $fullResult; } + /** + * delete product property by id + * + * @link https://dev.1c-bitrix.ru/rest_help/crm/products/crm_product_property_delete.php + * + * @param integer $productPropertyId - product property identifier + * + * @return array + * @throws Bitrix24Exception + */ + public function delete($productPropertyId) + { + $fullResult = $this->client->call( + 'crm.product.property.delete', + array('id' => $productPropertyId) + ); + + return $fullResult; + } + /** * get product property list *