Skip to content

Commit

Permalink
ENGCOM-4771: [Fixed] Category Update without "name" cannot be saved i…
Browse files Browse the repository at this point in the history
…n scope "all" with REST API #22362
  • Loading branch information
sidolov authored Apr 18, 2019
2 parents 604c78f + 9a5d818 commit 0c7d387
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions app/code/Magento/Catalog/Api/Data/CategoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* Category data interface
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Catalog\Api\Data;

/**
* Category data interface.
*
* @api
* @since 100.0.2
*/
Expand Down Expand Up @@ -46,11 +46,15 @@ interface CategoryInterface extends \Magento\Framework\Api\CustomAttributesDataI
/**#@-*/

/**
* Retrieve category id.
*
* @return int|null
*/
public function getId();

/**
* Set category id.
*
* @param int $id
* @return $this
*/
Expand All @@ -74,7 +78,7 @@ public function setParentId($parentId);
/**
* Get category name
*
* @return string
* @return string|null
*/
public function getName();

Expand Down Expand Up @@ -132,60 +136,82 @@ public function getLevel();
public function setLevel($level);

/**
* Retrieve children ids comma separated.
*
* @return string|null
*/
public function getChildren();

/**
* Retrieve category creation date and time.
*
* @return string|null
*/
public function getCreatedAt();

/**
* Set category creation date and time.
*
* @param string $createdAt
* @return $this
*/
public function setCreatedAt($createdAt);

/**
* Retrieve category last update date and time.
*
* @return string|null
*/
public function getUpdatedAt();

/**
* Set category last update date and time.
*
* @param string $updatedAt
* @return $this
*/
public function setUpdatedAt($updatedAt);

/**
* Retrieve category full path.
*
* @return string|null
*/
public function getPath();

/**
* Set category full path.
*
* @param string $path
* @return $this
*/
public function setPath($path);

/**
* Retrieve available sort by for category.
*
* @return string[]|null
*/
public function getAvailableSortBy();

/**
* Set available sort by for category.
*
* @param string[]|string $availableSortBy
* @return $this
*/
public function setAvailableSortBy($availableSortBy);

/**
* Get category is included in menu.
*
* @return bool|null
*/
public function getIncludeInMenu();

/**
* Set category is included in menu.
*
* @param bool $includeInMenu
* @return $this
*/
Expand Down

0 comments on commit 0c7d387

Please sign in to comment.