-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3edcf06
commit 0f5ce28
Showing
161 changed files
with
18,424 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
|
||
namespace DevStone\UsageCalculator\Api; | ||
|
||
|
||
interface CategoryRepositoryInterface | ||
{ | ||
|
||
|
||
/** | ||
* Save Category | ||
* @param \DevStone\UsageCalculator\Api\Data\CategoryInterface $usage | ||
* @return \DevStone\UsageCalculator\Api\Data\CategoryInterface | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function save( | ||
\DevStone\UsageCalculator\Api\Data\CategoryInterface $usage | ||
); | ||
|
||
/** | ||
* Retrieve Category | ||
* @param string $usageId | ||
* @return \DevStone\UsageCalculator\Api\Data\CategoryInterface | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function getById($usageId); | ||
|
||
/** | ||
* Retrieve Category matching the specified criteria. | ||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria | ||
* @return \DevStone\UsageCalculator\Api\Data\CategorySearchResultsInterface | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function getList( | ||
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria | ||
); | ||
|
||
/** | ||
* Delete Category | ||
* @param \DevStone\UsageCalculator\Api\Data\CategoryInterface $usage | ||
* @return bool true on success | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function delete( | ||
\DevStone\UsageCalculator\Api\Data\CategoryInterface $usage | ||
); | ||
|
||
/** | ||
* Delete Category by ID | ||
* @param string $usageId | ||
* @return bool true on success | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function deleteById($usageId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
|
||
namespace DevStone\UsageCalculator\Api\Data; | ||
|
||
interface CategoryInterface | ||
{ | ||
const NAME = 'name'; | ||
|
||
/** | ||
* Get usage_id | ||
* @return string|null | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Set usage_id | ||
* @param string $usage_id | ||
* @return \DevStone\UsageCalculator\Api\Data\CategoryInterface | ||
*/ | ||
public function setId($usageId); | ||
|
||
/** | ||
* Get name | ||
* @return string|null | ||
*/ | ||
public function getName(); | ||
|
||
/** | ||
* Set name | ||
* @param string $name | ||
* @return \DevStone\UsageCalculator\Api\Data\CategoryInterface | ||
*/ | ||
public function setName($name); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
|
||
namespace DevStone\UsageCalculator\Api\Data; | ||
|
||
interface CategorySearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface | ||
{ | ||
|
||
|
||
/** | ||
* Get Usage list. | ||
* @return \DevStone\UsageCalculator\Api\Data\CategoryInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set name list. | ||
* @param \DevStone\UsageCalculator\Api\Data\CategoryInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace DevStone\UsageCalculator\Api\Data; | ||
|
||
/** | ||
* Interface CustomOptionInterface | ||
* @api | ||
* @since 100.0.2 | ||
*/ | ||
interface CustomOptionInterface extends \Magento\Framework\Api\ExtensibleDataInterface | ||
{ | ||
/**#@+ | ||
* Constants | ||
*/ | ||
const OPTION_ID = 'option_id'; | ||
const OPTION_VALUE = 'option_value'; | ||
/**#@-*/ | ||
|
||
/** | ||
* Get option id | ||
* | ||
* @return string | ||
*/ | ||
public function getOptionId(); | ||
|
||
/** | ||
* Set option id | ||
* | ||
* @param string $value | ||
* @return bool | ||
*/ | ||
public function setOptionId($value); | ||
|
||
/** | ||
* Get option value | ||
* | ||
* @return string | ||
*/ | ||
public function getOptionValue(); | ||
|
||
/** | ||
* Set option value | ||
* | ||
* @param string $value | ||
* @return bool | ||
*/ | ||
public function setOptionValue($value); | ||
|
||
/** | ||
* Retrieve existing extension attributes object or create a new one. | ||
* | ||
* @return \Magento\Catalog\Api\Data\CustomOptionExtensionInterface|null | ||
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* | ||
* @param \Magento\Catalog\Api\Data\CustomOptionExtensionInterface|null $extensionAttributes | ||
* @return $this | ||
*/ | ||
public function setExtensionAttributes( | ||
\Magento\Catalog\Api\Data\CustomOptionExtensionInterface $extensionAttributes | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
|
||
namespace DevStone\UsageCalculator\Api\Data; | ||
|
||
interface SizeInterface | ||
{ | ||
const NAME = 'name'; | ||
|
||
/** | ||
* Get usage_id | ||
* @return string|null | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Set usage_id | ||
* @param string $usage_id | ||
* @return \DevStone\UsageCalculator\Api\Data\UsageInterface | ||
*/ | ||
public function setId($usageId); | ||
|
||
/** | ||
* Get name | ||
* @return string|null | ||
*/ | ||
public function getName(); | ||
|
||
/** | ||
* Set name | ||
* @param string $name | ||
* @return \DevStone\UsageCalculator\Api\Data\UsageInterface | ||
*/ | ||
public function setName($name); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
|
||
namespace DevStone\UsageCalculator\Api\Data; | ||
|
||
interface SizeSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface | ||
{ | ||
|
||
|
||
/** | ||
* Get Usage list. | ||
* @return \DevStone\UsageCalculator\Api\Data\UsageInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set name list. | ||
* @param \DevStone\UsageCalculator\Api\Data\UsageInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} |
Oops, something went wrong.