Click or drag to resize

IEditSessionCreateClient Method

Creates new client. After invoke of this action you need set necessary properties such as Name and also Phones or CardNumber. The client should at least have one phone number or number of discount cards.

Namespace:  Resto.Front.Api.V5.Editors
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
INewClientStub CreateClient(
	Guid id,
	string name,
	List<PhoneDto> phones,
	string cardNumber,
	DateTime? dateCreated,
	IPriceCategory priceCategory,
	IDiscountType cardDiscountType
)

Parameters

id
Type: SystemGuid
Id of creating client
name
Type: SystemString
Name of client
phones
Type: System.Collections.GenericListPhoneDto
List of client phones. Cannot contain null values and more than one main phone (i.e. with property IsMain = true)
cardNumber
Type: SystemString
Number of discount card.
dateCreated
Type: SystemNullableDateTime
Date when client was created. Must be not null, for actual reports by date created of clients.
priceCategory
Type: Resto.Front.Api.V5.Data.OrdersIPriceCategory
Price category.
cardDiscountType
Type: Resto.Front.Api.V5.Data.OrdersIDiscountType
Discount type.

Return Value

Type: INewClientStub
See Also