IEditSessionCreateDeliveryOrder(NullableInt32, DateTime, String, AddressDto, NullableDateTime, IOrderType, IClientStub, IUser, NullableTimeSpan, String, Boolean, Boolean, String) Method |
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.EditorsAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
SyntaxINewDeliveryOrderStub CreateDeliveryOrder(
int? number,
DateTime creationTime,
string phone,
AddressDto address,
DateTime? expectedDeliverTime,
IOrderType type,
IClientStub client,
IUser deliveryOperator,
TimeSpan? duration = null,
string zone = null,
bool fixedRestrictions = false,
bool hasFixedIikoCardDiscounts = false,
string phoneExtension = null
)
Parameters
- number NullableInt32
- Delivery number
- creationTime DateTime
- Creation time of the delivery. Cannot be greater than current time at the moment of processing action at front.
- phone String
- Contact phone of the client.
- address AddressDto
- Address where order should be delivered for courier-service or null for self-service.
- expectedDeliverTime NullableDateTime
- Time when client wants the order to be delivered.
- type IOrderType
- Order type. Order service type should be DeliveryByCourier or DeliveryByClient.
- client IClientStub
- Client who ordered the delivery
- deliveryOperator IUser
- User who creates the order.
- duration NullableTimeSpan (Optional)
- Calculated delivery duration (accurate within minutes) or null to use default predefined duration. Should not be null if FixedRestrictions is true.
- zone String (Optional)
- Calculated delivery zone name.
- fixedRestrictions Boolean (Optional)
- Whether delivery restrictions check result values should be fixed and not corrected in iikoFront from now on. Fires only for Duration other than null
- hasFixedIikoCardDiscounts Boolean (Optional)
- Order has fixed iikoCard discounts.
- phoneExtension String (Optional)
- Extension contact phone of the client.
Return Value
INewDeliveryOrderStub
See Also