Click or drag to resize

IIdentifierCodeHandlerIsIdentifierCodeSupported Method (IOrder, IOrderModifierItem, IOrderProductItem, String, IdentifierCodeHandlerFlags)

Determines whether this handler can process a raw input string representing a modifier code, and returns handler-specific processing flags.

Namespace:  Resto.Front.Api.Data.Orders
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
bool IsIdentifierCodeSupported(
	IOrder order,
	IOrderModifierItem modifierItem,
	IOrderProductItem parentOrderItem,
	string code,
	out IdentifierCodeHandlerFlags flags
)

Parameters

order
Type: Resto.Front.Api.Data.OrdersIOrder
The order associated with the code.
modifierItem
Type: Resto.Front.Api.Data.OrdersIOrderModifierItem
The modifier item to which the code is being assigned.
parentOrderItem
Type: Resto.Front.Api.Data.OrdersIOrderProductItem
The product item that the modifier is assigned to.
code
Type: SystemString
Raw string input representing the modifier identifier code.
flags
Type: Resto.Front.Api.Data.OrdersIdentifierCodeHandlerFlags
Output parameter. Handler-specific flags describing the properties of the code. Must be set if method returns true.

Return Value

Type: Boolean
true if this handler can process the code; otherwise, false.
Remarks
This method is called before the identifier code is added to the order, allowing handlers to indicate whether they support processing of the code. If true is returned and the returned IdentifierCodeHandlerFlags include RequiresVerification, then VerifyIdentifierCode(IOrder, IOrderModifierItem, IOrderProductItem, OrderItemIdentifierCode) will be called during the verification step.
See Also