Files
ltsecurityinc/app/code/Lts/Inventory/Api/SourceCustomerRepositoryInterface.php

70 lines
2.0 KiB
PHP

<?php
/**
* Copyright © All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Lts\Inventory\Api;
use Lts\Inventory\Api\Data\SourceCustomerInterface;
use Magento\Framework\Api\SearchCriteriaInterface;
interface SourceCustomerRepositoryInterface
{
/**
* Save SourceCustomer
* @param \Lts\Inventory\Api\Data\SourceCustomerInterface $sourceCustomer
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(
\Lts\Inventory\Api\Data\SourceCustomerInterface $sourceCustomer
);
/**
* Retrieve SourceCustomer
* @param int $customerId
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getFromCustomerId(int $customerId): ?SourceCustomerInterface;
/**
* Retrieve SourceCustomer
* @param string $id
* @return \Lts\Inventory\Api\Data\SourceCustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function get($id);
/**
* Retrieve Inventory Source from customer id.
* @param string $customerId
* @return \Lts\Inventory\Api\Data\SourceCustomerSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList( string $customerId);
/**
* Delete SourceCustomer
* @param \Lts\Inventory\Api\Data\SourceCustomerInterface $inventorySourceCustomer
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(
\Lts\Inventory\Api\Data\SourceCustomerInterface $inventorySourceCustomer
);
/**
* Delete SourceCustomer by ID
* @param int $entityId
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById(int $entityId);
}