iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api.Editors
IEditSession Interface
IEditSession Methods
CreateDeliveryOrder Method
CreateDeliveryOrder Method (Nullable(Int32), DateTime, String, AddressDto, DateTime, IOrderType, IClientStub, IUser, Nullable(TimeSpan), Boolean)
CreateDeliveryOrder Method (Guid, Guid, Nullable(Int32), DateTime, String, AddressDto, DateTime, IOrderType, IClientStub, IUser, Nullable(TimeSpan), Boolean)

# IEditSession CreateDeliveryOrder Method (Nullable Int32 , DateTime, String, AddressDto, DateTime, IOrderType, IClientStub, IUser, Nullable TimeSpan , 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) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    INewDeliveryOrderStub CreateDeliveryOrder(
    	int? number,
    	DateTime creationTime,
    	string phone,
    	AddressDto address,
    	DateTime expectedDeliverTime,
    	IOrderType type,
    	IClientStub client,
    	IUser deliveryOperator,
    	TimeSpan? duration = null,
    	bool hasIikoCardDiscounts = false
    )

#### Parameters

number
  Type: System
  Nullable
  Int32
  Delivery number
creationTime
  Type: System
  DateTime
  Creation time of the delivery. Cannot be greater than current time at the moment of processing action at front.
phone
  Type: System
  String
  Contact phone of the client.
address
  Type: Resto.Front.Api.Data.Brd
  AddressDto
  Address where order should be delivered for courier-service or null for self-service.
expectedDeliverTime
  Type: System
  DateTime
  Time when client wants the order to be delivered.
type
  Type: Resto.Front.Api.Data.Organization
  IOrderType
  Order type. Order service type should be DeliveryByCourier or DeliveryByClient.
client
  Type: Resto.Front.Api.Editors.Stubs
  IClientStub
  Client who ordered the delivery
deliveryOperator
  Type: Resto.Front.Api.Data.Security
  IUser
  User who creates the order.
duration (Optional)
  Type: System
  Nullable
  TimeSpan
  Calculated delivery duration (accurate within minutes) or null to use default predefined duration.
hasIikoCardDiscounts (Optional)
  Type: System
  Boolean
  Order has fixed iikoCard discounts.

#### Return Value

Type: INewDeliveryOrderStub
See Also

#### Reference

IEditSession Interface
CreateDeliveryOrder Overload
Resto.Front.Api.Editors Namespace