ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace JR\NetSuite\Api;
|
||||
|
||||
use Magento\Framework\Api\SearchCriteriaInterface;
|
||||
|
||||
interface LocationRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Save location
|
||||
* @param \JR\NetSuite\Api\Data\LocationInterface $location
|
||||
* @return \JR\NetSuite\Api\Data\LocationInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(
|
||||
\JR\NetSuite\Api\Data\LocationInterface $location
|
||||
);
|
||||
|
||||
/**
|
||||
* Retrieve location
|
||||
* @param string $locationId
|
||||
* @return \JR\NetSuite\Api\Data\LocationInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($locationId);
|
||||
|
||||
/**
|
||||
* Retrieve location matching the specified criteria.
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
* @return \JR\NetSuite\Api\Data\LocationSearchResultsInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getList(
|
||||
SearchCriteriaInterface $searchCriteria
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete location
|
||||
* @param \JR\NetSuite\Api\Data\LocationInterface $location
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete(
|
||||
\JR\NetSuite\Api\Data\LocationInterface $location
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete location by ID
|
||||
* @param string $locationId
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function deleteById($locationId);
|
||||
}
|
||||
Reference in New Issue
Block a user