diff --git a/Api/RetailerRepositoryInterface.php b/Api/RetailerRepositoryInterface.php index 1b16cc3..501193f 100644 --- a/Api/RetailerRepositoryInterface.php +++ b/Api/RetailerRepositoryInterface.php @@ -4,10 +4,7 @@ namespace Smile\Retailer\Api; -use Magento\Framework\Api\SearchCriteriaInterface; -use Smile\Retailer\Api\Data\RetailerInterface; use Smile\Retailer\Api\Data\RetailerSearchResultsInterface; -use Smile\Seller\Api\Data\SellerInterface; /** * @api @@ -17,18 +14,18 @@ interface RetailerRepositoryInterface /** * Create retailer service * - * @param RetailerInterface|SellerInterface $retailer The retailer - * @return RetailerInterface|SellerInterface + * @param \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface $retailer The retailer + * @return \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface * @throws \Magento\Framework\Exception\CouldNotSaveException */ - public function save(RetailerInterface|SellerInterface $retailer); + public function save(\Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface $retailer); /** * Get info about retailer by retailer id * * @param int $retailerId The retailer Id * @param ?int $storeId The store Id - * @return RetailerInterface|SellerInterface + * @return \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface * @throws \Magento\Framework\Exception\NoSuchEntityException */ public function get(int $retailerId, ?int $storeId = null); @@ -38,7 +35,7 @@ public function get(int $retailerId, ?int $storeId = null); * * @param string $retailerCode The retailer Code * @param ?int $storeId The store Id - * @return RetailerInterface|SellerInterface + * @return \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface * @throws \Magento\Framework\Exception\NoSuchEntityException */ public function getByCode(string $retailerCode, ?int $storeId = null); @@ -46,21 +43,23 @@ public function getByCode(string $retailerCode, ?int $storeId = null); /** * Get relation list * - * @param SearchCriteriaInterface $criteria Search criterai for collection + * @param \Magento\Framework\Api\SearchCriteriaInterface $criteria Search criterai for collection * @return RetailerSearchResultsInterface */ - public function getList(SearchCriteriaInterface $criteria): RetailerSearchResultsInterface; + public function getList(\Magento\Framework\Api\SearchCriteriaInterface $criteria): RetailerSearchResultsInterface; /** * Delete retailer by identifier * - * @param RetailerInterface|SellerInterface $retailer retailer which will deleted + * @param \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface $retailer to be deleted * @return bool Will returned True if deleted * @throws \Magento\Framework\Exception\InputException * @throws \Magento\Framework\Exception\StateException * @throws \Magento\Framework\Exception\NoSuchEntityException */ - public function delete(RetailerInterface|SellerInterface $retailer): bool; + public function delete( + \Smile\Retailer\Api\Data\RetailerInterface|\Smile\Seller\Api\Data\SellerInterface $retailer + ): bool; /** * Delete retailer by identifier diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e7569..5f6ff4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [2.0.2] - 2024-05-03 +[2.0.2]: https://github.com/Smile-SA/magento2-module-retailer/compare/2.0.2...2.0.2 + +- API model docblocks + ## [2.0.1] - 2024-05-03 [2.0.1]: https://github.com/Smile-SA/magento2-module-retailer/compare/2.0.0...2.0.1