Click or drag to resize

IOperationServiceChangeRideStatus Method

Changes ride current status to a new one and sets status details if any.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
void ChangeRideStatus(
	Guid rideId,
	RideStatus newStatus,
	string statusDetails,
	ICredentials credentials
)

Parameters

rideId
Type: SystemGuid
Identifier of a ride whose status's to be changed.
newStatus
Type: Resto.Front.Api.Data.BrdRideStatus
New status of a ride.
statusDetails
Type: SystemString
Some additional status info received from an external courier service. Maximum length is 1000 chars.
credentials
Type: Resto.Front.Api.Data.SecurityICredentials
The credentials returned by AuthenticateByPin(String) method.
Exceptions
ExceptionCondition
EntityNotFoundExceptionRide not found.
InvalidOperationExceptionWhen delivery status is not OnWay.
See Also