Magento Customer) CRUD interface. * * @api */ interface CustomerLinkRepositoryInterface { /** * Lists payment tokens that match specified search criteria. * * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria. * @return \Amazon\Login\Api\Data\CustomerLinkSearchResultsInterface search result interface. */ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria); /** * Loads by Customer ID. * * @param int $customerId The customer ID. * @return \Amazon\Login\Api\Data\CustomerLinkInterface Customer link interface. */ public function get($customerId); /** * Loads by Entity ID. * * @param int $entityId The customer link entity ID. * @return \Amazon\Login\Api\Data\CustomerLinkInterface Customer link interface. */ public function getById($entityId); /** * Delete customer link. * * @param \Amazon\Login\Api\Data\CustomerLinkInterface Customer link interface. * @return bool * @throws CouldNotDeleteException */ public function delete(Data\CustomerLinkInterface $customerLink); /** * Delete customer link by entity id * * @param string $entityId * @return bool * @throws CouldNotDeleteException * @throws NoSuchEntityException */ public function deleteById($entityId); /** * Save customer link * * @param \Amazon\Login\Api\Data\CustomerLinkInterface Customer link interface. * @return \Amazon\Login\Api\Data\CustomerLinkInterface * @throws CouldNotSaveException */ public function save(Data\CustomerLinkInterface $customerLink); }