update
This commit is contained in:
37
inc/Hura8/Interfaces/iClientERP.php
Normal file
37
inc/Hura8/Interfaces/iClientERP.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by Glee Ltd.
|
||||
* Description: interface to work with our clients
|
||||
*/
|
||||
|
||||
namespace Hura8\Interfaces;
|
||||
|
||||
|
||||
interface iClientERP
|
||||
{
|
||||
public function createOrder(array $order_info) ;
|
||||
|
||||
/**
|
||||
* get log data
|
||||
*/
|
||||
public function getLog($type, $limit = 50);
|
||||
|
||||
/**
|
||||
* log data
|
||||
*/
|
||||
public function log($type, array $data);
|
||||
|
||||
/**
|
||||
* @description: clean any existing data before populate new ones
|
||||
*/
|
||||
public function cleanExistingData();
|
||||
|
||||
// get summary of products in the system
|
||||
public function getProductSummary();
|
||||
|
||||
// save product from erp to tmp tables
|
||||
public function saveProductToWeb(array $erp_product_list);
|
||||
|
||||
// start sync tmp tables to actual tables
|
||||
public function syncProductToWeb(array $options = []);
|
||||
}
|
||||
Reference in New Issue
Block a user