Added Ride and Related Methods
In V8Preview2, the concept of a ride related to delivery (Ride) has been added, along with several methods for working with the new entity.
A ride is used when delivering orders through external courier services to track the order throughout its journey from the initial status of searching for an external courier to the final status of handing the order to the customer. Currently, integration is only implemented with the Yandex Delivery service.
Main properties of a ride:
Statusallows the waiter to see what stage the delivery of the order to the customer is at.StatusDetailsallows additional information about the ride to be passed from the external system to the front end.ExternalId— the identifier of the ride in the external system.EcsId— the identifier of the external courier service.
Three methods have been added for working with rides:
ChangeRideStatuschanges the status of the ride (Ride.Status).ChangeRideExternalIdallows specifying the identifier of the ride in the external system (Ride.ExternalId).ChangeRideExternalCouierchanges the courier of the external courier service in the ride related to delivery. This method replacedChangeDeliveryExternalCourier, which was previously used to change the external courier in the delivery itself.
To link the delivery order with the ride, a new method TryGetRideByDeliveryOrderId has been added, which allows determining which ride is assigned to the specified delivery.