public async Task <HttpResponseMessage> GetPSTransactionsAsync(int TILL_NUM, int SALE_NO, int PastDays) { var client = new HttpRestClient(); var url = string.Format(Urls.GetPSTransactions, TILL_NUM, SALE_NO, PastDays); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetAllCustomers(int pageIndex, bool loyalty) { var url = string.Format(loyalty ? Urls.GetAllLoyaltyCustomers : Urls.GetAllCustomers, PageSize, pageIndex); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetAllPolicies() { var client = new HttpRestClient(true); var url = string.Format(Urls.Policies, _cacheManager.RegisterNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
/// <summary> /// Method to get reason Lists /// </summary> /// <param name="reason"></param> /// <returns></returns> public async Task <HttpResponseMessage> GetReasonList(string reason) { var url = string.Format(Urls.GetReasonList, reason); var client = new HttpRestClient(true); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
/// <summary> /// Method to check balance for given card /// </summary> /// <param name="givexCardNumber"></param> /// <returns></returns> public async Task <HttpResponseMessage> GetCardBalance(string givexCardNumber) { var url = string.Format(Urls.GiveXBalance, givexCardNumber, _cacheManager.SaleNumber, _cacheManager.TillNumber); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetLoginPolicyAsync(string ipAddress) { var httpClient = new HttpRestClient(true); var url = string.Format(Urls.LoginPolicies, ipAddress); return(await httpClient.GetAsync(url)); }
/// <summary> /// Gets the HTTP response for the Get Stock items API /// </summary> /// <param name="pageIndex">Page Index</param> /// <returns>HTTP response from the API</returns> public async Task <HttpResponseMessage> GetStockItems(int pageIndex) { var url = string.Format(Urls.GetStockItems, PageSize, pageIndex); var client = new HttpRestClient(true); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> InitializeFuelPump() { var client = new HttpRestClient(); var url = string.Format(Urls.InitializeFuelPump, _cacheManager.TillNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> UncompletePrepayLoad() { var client = new HttpRestClient(); var url = string.Format(Urls.UncompletePrepayLoad, _cacheManager.TillNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> LoadPropanePumps(int gradeId) { var client = new HttpRestClient(); var url = string.Format(Urls.LoadPropanePumps, gradeId); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> ReadTotalizer(int tillNumber) { var client = new HttpRestClient(new TimeSpan(0, 10, 0)); var url = string.Format(Urls.ReadTotalizer, tillNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> SetPrepay(bool isPrepay) { var client = new HttpRestClient(); var url = string.Format(Urls.Prepay, isPrepay); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> LoadPriceIncrementsAndDecrements(bool taxExempt) { var client = new HttpRestClient(); var url = string.Format(Urls.LoadPriceIncrementsAndDecrements, taxExempt); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> SavePSTransactionIDAsync(int TILL_NUM, int SALE_NO, int LINE_NUM, string TransID) { var client = new HttpRestClient(); var url = string.Format(Urls.SavePSTransactionID, TILL_NUM, SALE_NO, LINE_NUM, TransID); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> VerifyMultiPO(string purchaseOrder) { var client = new HttpRestClient(); var url = string.Format(Urls.VerfifyMultiPO, _cacheManager.SaleNumber, _cacheManager.TillNumber, purchaseOrder); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetPumpStatus(int tillNumber) { var client = new HttpRestClient(); var url = string.Format(Urls.GetPumpStatus, tillNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetVendorCoupon(string vendorCode) { var client = new HttpRestClient(); var url = string.Format(Urls.GetVendorCoupon, _cacheManager.SaleNumber, _cacheManager.TillNumber, vendorCode); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> LoadGrade(int pumpId, bool switchPrepay, int tillNumber) { var client = new HttpRestClient(); var url = string.Format(Urls.LoadGrades, pumpId, switchPrepay, tillNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetPasswordAsync(string userName) { var url = string.Format(Urls.GetPassword, userName); var httpClient = new HttpRestClient(true); return(await httpClient.GetAsync(url)); }
public async Task <HttpResponseMessage> UpdateFuelPrice(int option, int counter) { var client = new HttpRestClient(); var url = string.Format(Urls.UpdateFuelPrice, option, counter); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
/// <summary> /// Gets the Bottles /// </summary> /// <param name="pageId">Page id</param> /// <returns>HTTP Response from the API</returns> public async Task <HttpResponseMessage> GetBottles(int pageId) { var url = string.Format(Urls.GetBottlesUrl, pageId); var client = new HttpRestClient(true); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetPumpAction(int pumpId, bool isStopPressed, bool isResumePressed) { var client = new HttpRestClient(); var url = string.Format(Urls.GetPumpAction, pumpId, isStopPressed, isResumePressed); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetGivexReport(string date) { var url = string.Format(Urls.GetGivexReport, date); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetReprintSales(string reportType, string date) { var url = string.Format(Urls.GetReprintSales, reportType, date); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetActiveTheme(string ipAddress) { var url = string.Format(Urls.GetActiveTheme, ipAddress); var client = new HttpRestClient(true); return(await client.GetAsync(url)); }
/// <summary> /// Gets the Over limit details for the current sale /// </summary> /// <param name="saleNumber">Sale number</param> /// <param name="tillNumber">Till number for the Current Sale</param> /// <returns></returns> public async Task <HttpResponseMessage> OverLimitDetails(int saleNumber, int tillNumber) { var url = string.Format(Urls.OverLimitDetails, saleNumber, tillNumber); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetAckrooCarwashStockCode(string sDesc) { var client = new HttpRestClient(); string url = string.Format(Urls.GetAckrooCarwashStockCode, sDesc); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
/// <summary> /// Method to get treaty Name /// </summary> /// <param name="treatyNumber"></param> /// <param name="captureMethod"></param> /// <returns></returns> public async Task <HttpResponseMessage> GetTreatyName(string treatyNumber, string captureMethod) { var url = string.Format(Urls.GetTreatyName, treatyNumber, captureMethod); var client = new HttpRestClient(); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> RefreshPolicies() { var client = new HttpRestClient(true); var url = string.Format(Urls.RefreshPolicies, _cacheManager.TillNumber, _cacheManager.SaleNumber); return(await client.GetAsync(url, _cacheManager.AuthKey)); }
public async Task <HttpResponseMessage> GetPSVoucherInfoAsync(string ProdName) { var client = new HttpRestClient(); var url = string.Format(Urls.GetPSVoucherInfo, ProdName); return(await client.GetAsync(url, _cacheManager.AuthKey)); }