61 lines
1.7 KiB
PHP
Executable File
61 lines
1.7 KiB
PHP
Executable File
<?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);
|
|
} |