public async Task <SetPriceDecrement> SetPriceDecrement(PriceDecrement price, bool taxExempt) { var action = new SetPriceDecrementSerializeAction(_fuelPriceRestClient, price, taxExempt); await PerformTask(action); return((SetPriceDecrement)action.ResponseValue); }
public SetPriceDecrementSerializeAction(IFuelPriceRestClient fuelPriceRestClient, PriceDecrement priceDecrement, bool taxExempt) : base("SetPriceDecrement") { _fuelPriceRestClient = fuelPriceRestClient; _priceDecrement = priceDecrement; _taxExempt = taxExempt; }
public async Task <SetPriceDecrement> SetPriceDecrement(PriceDecrement price, bool taxExempt) { var result = await _fuelPriceSerializeManager.SetPriceDecrement(price, taxExempt); if (result?.Report != null) { await _reportsBussinessLogic.SaveReport(result.Report); } return(result); }
public static DifferenceModel ToModel(this PriceDecrement model) { if (model == null) { return(null); } return(new DifferenceModel { Cash = model.Cash, Credit = model.Credit, LevelId = model.LevelId, Row = model.Row, TierId = model.TierId, TierLevel = model.TierLevel }); }