public static Fare GetFareFromEstimate(RideEstimate estimate) { if (estimate == null || !estimate.Price.HasValue) { return(new Fare()); } return(GetFareFromAmountInclTax(estimate.Price.Value, 0)); }
public HailRequest() { PickupAddress = new Address(); DropOffAddress = new Address(); Settings = new BookingSettings(); Payment = new PaymentSettings(); Estimate = new RideEstimate(); FromWebApp = false; }
public CreateOrderRequest() { PickupAddress = new Address(); DropOffAddress = new Address(); Settings = new BookingSettings(); Payment = new PaymentSettings(); Estimate = new RideEstimate(); FromWebApp = false; AssignVehicleId = String.Empty; }