using Biskilog_Accounting.Shared.CustomModels; using Biskilog_Accounting.Shared.POSModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Biskilog_Accounting.Shared.Interfaces { public interface ISalesInterface { Task FetchRecentTransaction(int a_limit); Task FetchTransaction(DateTime a_start, DateTime a_end); IEnumerable GetTransactions(DateTime a_start, DateTime a_end); IEnumerable GetRecentTransaction(); Task FetchReceipt(string a_receiptId); IEnumerable GetReceipt(string a_receiptId); Task> GetReceiptDetail(string a_receiptId); Task SyncCart(List a_item); Task SyncCancelledTransaction(List a_item); Task SyncCreditPurchase(List a_item); Task SyncCustomerAccount(List a_customerAccounts); Task SyncCustomerPurchase(List a_customerPurchase); Task SyncDiscountLogs(List a_discountLog); Task SyncDeliveryDetails(List a_details); Task SyncDeliveryHead(List a_heads); Task SyncDeliveryRecipients(List a_recipients); Task SyncInvoice(List a_invoice); DateTime GetLastSyncDate(string a_tablename); void SetLastSyncDate(string a_tableName, DateTime a_timestamp); event EventHandler TransactionsChanged; event EventHandler FetchComplete; event EventHandler FetchStart; } }