Click or drag to resize

RateScheduleMinimumDuration Property

Minumum duration of a service or null if there is no lower limit. If the lower limit is set and the actual duration is below of limit, it will be rounded up.

Namespace:  Resto.Front.Api.Data.Orders
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
public TimeSpan? MinimumDuration { get; }

Property Value

Type: NullableTimeSpan
Examples
  • Actual service duration is 15 minutes, TimingStep is 10 minutes and MinimumDuration is not set: service duration will just be rounded up to a multiple of TimingStep, the result is 20 minutes.
  • Actual service duration is 15 minutes, TimingStep is 10 minutes and MinimumDuration is 1 hour: at first service duration will be rounded up to 1 hour to meet the MinimumDuration and then will be rounded up to a multiple of TimingStep, the result is 1 hour.
  • Actual service duration is 75 minutes, TimingStep is 10 minutes and MinimumDuration is 1 hour: 75 mins already meets the MinimumDuration, so it will only be rounded up to a multiple of TimingStep, the result is 1 hour 20 mins.
See Also