Click or drag to resize

IOperationServiceSendDocumentToServer Method

Validates and queues a document for RMS exchange without printing. Returns all resulting local documents after warehouse splitting; processing in RMS is asynchronous.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IReadOnlyList<IDocument> SendDocumentToServer(
	Guid documentId,
	int revision,
	ICredentials credentials,
	DocumentAuthorization authorization = null
)

Parameters

documentId  Guid
Identifier of the locally stored document.
revision  Int32
Revision from the last read document snapshot. Re-read the document after a change conflict before retrying.
credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
authorization  DocumentAuthorization  (Optional)
Additional confirmation required by the operation settings. Supply either verified credentials or a card; null is allowed when confirmation is not required.

Return Value

IReadOnlyListIDocument
Exceptions
ExceptionCondition
PermissionDeniedExceptionThe caller has insufficient document permissions.
ConstraintViolationExceptionDocument data or state violates Front rules.
EntityModifiedExceptionRe-read the document and review the changes before retrying.
EntityAlreadyInUseExceptionThe document is locked by another operation.
AuthenticationExceptionThe required additional authorization is missing or invalid.
ServerConnectionExceptionCommunication with Front failed while preparing or queuing the document.
See Also