init
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api;
|
||||
|
||||
use Magento\Framework\Api\SearchCriteriaInterface;
|
||||
|
||||
interface SalespersonRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Save Salesperson
|
||||
* @param \Stemcell\Customer\Api\Data\SalespersonInterface $salesperson
|
||||
* @return \Stemcell\Customer\Api\Data\SalespersonInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(
|
||||
\Stemcell\Customer\Api\Data\SalespersonInterface $salesperson
|
||||
);
|
||||
|
||||
/**
|
||||
* Retrieve Salesperson
|
||||
* @param string $salespersonId
|
||||
* @return \Stemcell\Customer\Api\Data\SalespersonInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($salespersonId);
|
||||
|
||||
/**
|
||||
* Retrieve Salesperson matching the specified criteria.
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
* @return \Stemcell\Customer\Api\Data\SalespersonSearchResultsInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getList(
|
||||
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Salesperson
|
||||
* @param \Stemcell\Customer\Api\Data\SalespersonInterface $salesperson
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete(
|
||||
\Stemcell\Customer\Api\Data\SalespersonInterface $salesperson
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Salesperson by ID
|
||||
* @param string $salespersonId
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function deleteById($salespersonId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user