IEditSessionCreateDeliveryOrder Method (Guid, Guid, NullableInt32, DateTime, String, AddressDto, DateTime, IOrderType, IClientStub, IUser, NullableTimeSpan, Boolean) |
Creates new delivery order. User must have rights to edit delivery orders. Specify address for courier-service; leave it null for self-service.
Namespace:
Resto.Front.Api.Editors
Assembly:
Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax INewDeliveryOrderStub CreateDeliveryOrder(
Guid id,
Guid deliveryId,
int? number,
DateTime creationTime,
string phone,
AddressDto address,
DateTime expectedDeliverTime,
IOrderType type,
IClientStub client,
IUser deliveryOperator,
TimeSpan? duration = null,
bool hasFixedIikoCardDiscounts = false
)
Parameters
- id
- Type: SystemGuid
Unique identifier of the new order. MUST be unique for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid(). - deliveryId
- Type: SystemGuid
Id of the 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 the client. - address
- Type: Resto.Front.Api.Data.BrdAddressDto
Address where order should be delivered for courier-service or null for self-service. - expectedDeliverTime
- Type: SystemDateTime
Time when client wants the order to be delivered. - type
- Type: Resto.Front.Api.Data.OrganizationIOrderType
Order type. Order service type should be DeliveryByCourier or DeliveryByClient. - client
- Type: Resto.Front.Api.Editors.StubsIClientStub
Delivery client - deliveryOperator
- Type: Resto.Front.Api.Data.SecurityIUser
User who creates the order. - duration (Optional)
- Type: SystemNullableTimeSpan
Calculated delivery duration (accurate within minutes) or null to use default predefined duration. - hasFixedIikoCardDiscounts (Optional)
- Type: SystemBoolean
Order has fixed iikoCard discounts.
Return Value
Type:
INewDeliveryOrderStubSee Also