This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,67 @@
<?php
declare(strict_types=1);
namespace Stemcell\Customer\Api;
use Magento\Framework\Api\SearchCriteriaInterface;
interface AvatrRepositoryInterface
{
/**
* Save Avatr
* @param \Stemcell\Customer\Api\Data\AvatrInterface $avatr
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(
\Stemcell\Customer\Api\Data\AvatrInterface $avatr
);
/**
* Retrieve Avatr
* @param string $avatrId
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function get($avatrId);
/**
* Retrieve Clue
* @param string $telephone
* @param string $model
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getByTelephone(string $telephone, string $model): Data\AvatrInterface;
/**
* Retrieve Avatr matching the specified criteria.
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \Stemcell\Customer\Api\Data\AvatrSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList(
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
);
/**
* Delete Avatr
* @param \Stemcell\Customer\Api\Data\AvatrInterface $avatr
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(
\Stemcell\Customer\Api\Data\AvatrInterface $avatr
);
/**
* Delete Avatr by ID
* @param string $avatrId
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById($avatrId);
}