Click or drag to resize

IEditSessionCreateDelivery Method

Creates new delivery. Specify address for courier-service; leave it null for self-service.

Namespace:  Resto.Front.Api.V4.Editors
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
INewDeliveryStub CreateDelivery(
	Guid id,
	Nullable<int> number,
	DateTime creationTime,
	string phone,
	AddressDto address,
	string sourceKey,
	TimeSpan duration,
	DateTime expectedDeliverTime,
	IDeliveryOrderStub deliveryOrder,
	IClientStub client,
	IUser deliveryOperator
)

Parameters

id
Type: SystemGuid
Id of new delivery
number
Type: SystemNullableInt32
Delivery number
creationTime
Type: SystemDateTime
Creation time of delivery. Cannot be greater than current time at the moment of processing action at front.
phone
Type: SystemString
Contact phone of client for current delivery.
address
Type: Resto.Front.Api.V4.Data.DataTransferObjectsAddressDto
Address where order should be delivered for courier-service or null for self-service.
sourceKey
Type: SystemString
Source of delivery (for example, some web site, call center)
duration
Type: SystemTimeSpan
Calculated delivery duration (accurate within minutes).
expectedDeliverTime
Type: SystemDateTime
Time when client wants delivery to be delivered.
deliveryOrder
Type: Resto.Front.Api.V4.Editors.StubsIDeliveryOrderStub
Delivery order stub
client
Type: Resto.Front.Api.V4.Editors.StubsIClientStub
Delivery client
deliveryOperator
Type: Resto.Front.Api.V4.Data.SecurityIUser
User who creates delivery.

Return Value

Type: INewDeliveryStub
See Also