Click or drag to resize

IOperationServicePrepareDeliveryForSending Method

Prepares delivery for sending by courier, switches DeliveryStatus from New to Waiting.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
void PrepareDeliveryForSending(
	ICredentials credentials,
	IDeliveryOrder delivery,
	bool throwOnChanges = false
)

Parameters

credentials
Type: Resto.Front.Api.Data.SecurityICredentials
The credentials returned by AuthenticateByPin(String) method.
delivery
Type: Resto.Front.Api.Data.OrdersIDeliveryOrder
Delivery to prepare for sending.
throwOnChanges (Optional)
Type: SystemBoolean
Whether to stop method execution and throw EntityModifiedException if order changed according to the product auto-addition settings. Default is false, which means to proceed anyway. Set this flag to true if you have preconditions which should be checked again after adding new items to the delivery. Handle exceptions of type EntityModifiedException, check preconditions again and call this method again if you are ok with changes.
Remarks
This method may add some items according to the product auto-addition settings. Payment time should be set to on-delivery-closing in the settings.
See Also