OperationServiceExtensions.CreateClientWithOrganizationDetails Method |
Creates new client. The client must have orgatizations details info.
Namespace:
Resto.Front.Api.Extensions
Assembly:
Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntaxpublic static IClient CreateClientWithOrganizationDetails(
this IOperationService operationService,
Guid id,
string name,
string counteragentName,
string counteragentCode,
string counteragentAccountingReasonCode,
string counteragentAddress,
string counteragentRecipientCode,
string fullAddressPostCode,
string fullAddressCountry,
string fullAddressRegion,
string fullAddressCity,
string fullAddressStreet,
string fullAddressHouse,
DateTime? dateCreated,
ICredentials credentials
)
Parameters
- operationService
- Type: Resto.Front.Api.IOperationService
Operation service. - id
- Type: System.Guid
Id of creating client - name
- Type: System.String
Name of client - counteragentName
- Type: System.String
Client's organization name - counteragentCode
- Type: System.String
Client's organization code - counteragentAccountingReasonCode
- Type: System.String
Client's organization accounting reason code - counteragentAddress
- Type: System.String
Client's organization address - counteragentRecipientCode
- Type: System.String
Client's organization recipient code - fullAddressPostCode
- Type: System.String
Client's organization full address post code - fullAddressCountry
- Type: System.String
Client's organization full address country - fullAddressRegion
- Type: System.String
Client's organization full address region - fullAddressCity
- Type: System.String
Client's organization full address city - fullAddressStreet
- Type: System.String
Client's organization full address street - fullAddressHouse
- Type: System.String
Client's organization full address house - dateCreated
- Type: System.Nullable<DateTime>
Date when client was created. Must be not null, for actual reports by date created of clients. - credentials
- Type: Resto.Front.Api.Data.Security.ICredentials
Credentials of the user. Required to pass permission and some other checks, as well as execute personalized operations.
Return Value
Type:
IClientUsage 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