Click or drag to resize

OperationServiceExtensionsCreateClientWithOrganizationDetails Method

Creates new client. The client must have orgatizations details info.

Namespace: Resto.Front.Api.Extensions
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
public static IClient CreateClientWithOrganizationDetails(
	this IOperationService operationService,
	Guid id,
	string name,
	string counteragentName,
	string counteragentCode,
	string counteragentAccountingReasonCode,
	string counteragentAddress,
	string counteragentRecipientCode,
	string publicOrganizationProjectCode,
	string publicOrganizationTenderCode,
	string fullAddressPostCode,
	string fullAddressCountry,
	string fullAddressRegion,
	string fullAddressCity,
	string fullAddressStreet,
	string fullAddressHouse,
	string financiallyResponsiblePerson,
	DateTime? dateCreated,
	ICredentials credentials
)

Parameters

operationService  IOperationService
Operation service.
id  Guid
Id of creating client. MUST be unique for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid().
name  String
Name of client
counteragentName  String
Client's organization name
counteragentCode  String
Client's organization code
counteragentAccountingReasonCode  String
Client's organization accounting reason code
counteragentAddress  String
Client's organization address
counteragentRecipientCode  String
Client's organization recipient code
publicOrganizationProjectCode  String
Client's public organization unique project code
publicOrganizationTenderCode  String
Client's public organization tender identification code
fullAddressPostCode  String
Client's organization full address post code
fullAddressCountry  String
Client's organization full address country
fullAddressRegion  String
Client's organization full address region
fullAddressCity  String
Client's organization full address city
fullAddressStreet  String
Client's organization full address street
fullAddressHouse  String
Client's organization full address house
financiallyResponsiblePerson  String
Client's organization materially responsible person
dateCreated  NullableDateTime
Date when client was created. Must be not null, for actual reports by date created of clients.
credentials  ICredentials
Credentials of the user. Required to pass permission and some other checks, as well as execute personalized operations.

Return Value

IClient

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IOperationService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also