Skip to main content

Strategies

Customizable operational patterns.

IPrintOrder (strategy)

Implement this method on a concrete strategy class to override the printOrder feature.

The IPrintOrder strategy:

Name

Type

Description

apply

method

Implement this method on a concrete strategy class to override the printOrder feature.

Additional OrderProperties included in the returned result are saved in the OrderObject for later access.

apply

Allows the Plugin to override specific POS features with a custom strategy/implementation.

Method

apply(order,extraPrintData): Promise<{extraPrintData, additionalOrderProperties?}>;

Parameters

Name

Type

Description

order

OrderObject

An order object

extraPrintData

ExtraPrintData

Optional

Returns

Promise<{extraPrintData: ExtraPrintData, additionalOrderProperties?