<?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 = []);
}
