Click or drag to resize

IOperationServiceCheckEgaisMarkTareOperation Method

Preliminary check of an operation on EGAIS tare without sending any data: write-off (unsealing) or cancellation of the write-off (return). The same rules as in ProcessEgaisMarkTareOperation are applied; nothing is sent to EGAIS and nothing is reserved. The status is returned for every position in the order of the input collection. Available to any plugin.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IReadOnlyCollection<EgaisMarkTareOperationCheckResult> CheckEgaisMarkTareOperation(
	IReadOnlyCollection<EgaisMarkWriteOffData> products,
	EgaisMarkTareAction action,
	string fsRarId
)

Parameters

products  IReadOnlyCollectionEgaisMarkWriteOffData
Positions of the operation: one item per mark (or per unit of unmarked tare). Not empty, not null. A repeated mark is refused per position with the DuplicateInBatch status.
action  EgaisMarkTareAction
Kind of the operation: WriteOff for write-off (unsealing), Cancel for cancellation of the write-off.
fsRarId  String
FSRAR id of the organization (from the plugin configuration), common for all positions of the batch. Not empty, not null.

Return Value

IReadOnlyCollectionEgaisMarkTareOperationCheckResult
Exceptions
ExceptionCondition
ArgumentExceptionThe collection of positions is empty or contains null, or fsRarId is empty.
See Also