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  Guid
Identifier of a ride whose status's to be changed.
newStatus  RideStatus
New status of a ride.
statusDetails  String
Some additional status info received from an external courier service. Maximum length is 1000 chars.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
Exceptions
ExceptionCondition
EntityNotFoundExceptionRide not found.
InvalidOperationExceptionWhen delivery status is not OnWay.
See Also