src/Notification/Model/LogVendorsManagerInterface.php
<?php
namespace HiPay\Wallet\Mirakl\Notification\Model;
/**
* Contains utility methods to create, save and find vendors
* To be implemented by the integrator of the library.
*
* @author Ivanis Kouamé <ivanis.kouame@smile.fr>
* @copyright 2015 Smile
*/
interface LogVendorsManagerInterface
{
public function create(
$miraklId,
$hipayId,
$login,
$statusWalletAccount,
$status,
$message,
$nbDoc,
$country,
$paymentBlocked
);
/**
* Insert more data into the vendor.
* Do not save it.
*
* @param LogVendorsInterface $logVendors
* @param array $logData
* @return mixed
*/
public function update(LogVendorsInterface $logVendors, array $logData);
/**
* Save an array of vendors.
*
* @param VendorInterface[] $vendors
*
* @return mixed
*/
public function saveAll(array $logVendors);
/**
* Save a vendor.
*
* @param VendorInterface $vendor
*
* @return mixed
*/
public function save($logVendors);
/**
* Find a vendor by is mirakl shop id.
*
* @param int $miraklShopId
*
* @return VendorInterface|null if not found
*/
public function findByMiraklId($miraklShopId);
/**
* Verify that a vendor is valid before save.
*
* @param $vendor
*
* @return bool
*/
public function isValid(LogVendorsInterface $logVendors);
}